+ if ($datestyle eq "from") {
+ # Get date from the "From " line (this should appears here for the first message only)
+ $date = $1 if $line =~ /^From [^ ^\t]+[ \t]+(.{24})/;
+ } elsif ($datestyle eq "date") {
+ # Get date from the "Date: " header
+ $date = $1 if $line =~ /^Date: (.*)$/;
+ }