summaryrefslogtreecommitdiff
path: root/awm
diff options
context:
space:
mode:
Diffstat (limited to 'awm')
-rwxr-xr-xawm5
1 files changed, 3 insertions, 2 deletions
diff --git a/awm b/awm
index 0f89936..8166509 100755
--- a/awm
+++ b/awm
@@ -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');