URL:
<http://savannah.nongnu.org/bugs/?45817>
Summary: MSGLOCALDATE and MSGGMTDATE always produce Dec 31
1969
Project: MHonArc
Submitted by: bonsaiviking
Submitted on: Tue 25 Aug 2015 05:01:24 AM GMT
Category: Resource Variables
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Behavior
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Operating System: Linux
Perl Version: v5.16.3
Component Version: v2.6.19
Fixed Release:
_______________________________________________________
Details:
Due to a bug in mhamain.pl, MSGLOCALDATE and MSGGMTDATE do not print the
correct date. The date is retrieved from the %Time hash, which is populated in
read_mail_header in mhamain.pl. The date is read into $index, but the value
stored in $Time{$index} is $t, which is undefined. The following patch fixes
the issue:
Index: lib/mhamain.pl
===================================================================
--- lib/mhamain.pl (revision 28911)
+++ lib/mhamain.pl (working copy)
@@ -866,6 +866,7 @@
if (&expired_time($index)) {
return undef;
}
+ my $t = $index;
## Insure uniqueness of index
$index .= $X . sprintf('%d',(defined($msgnum)?$msgnum:($LastMsgNum+1)));
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?45817>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV