diff options
Diffstat (limited to 'awm')
-rwxr-xr-x | awm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -139,8 +139,9 @@ sub gettime($) { my $mail = new Mail::Internet($maillines); my $header = $mail->head(); my $received = $header->get('Received', 0); - my ($date) = $received =~ /;([^;]+)$/ if defined $received; - my $time = parsedate($date) if defined $date; + my ($date, $time); + ($date) = $received =~ /;([^;]+)$/ if defined $received; + $time = parsedate($date) if defined $date; unless (defined $time) { $QUIET or warn ("$PROGRAM_NAME: Falling back to date header in $file\n"); $date = $header->get('Date'); |