Add correct timestamp to mbox when processing.

Picked from upstream.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2014-02-16 13:36:28 +01:00
parent 52a699fdc7
commit 3cb13d5a31
2 changed files with 4 additions and 1 deletions

View file

@ -162,7 +162,7 @@ sub process {
} else {
$fromline .= 'foo@bar.invalid';
}
$fromline .= ' ' . localtime() . "\n"; #strftime ('%a %b %d %H:%M:%S %Y', localtime) . "\n";
$fromline .= ' ' . localtime($_->timestamp()) . "\n";
push (@mails, $fromline . $mail);
}
}