bugMHonArc - Bugs: bug #45817, MSGLOCALDATE and MSGGMTDATE always...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45817: MSGLOCALDATE and MSGGMTDATE always produce Dec 31 1969

Submitted by:  Daniel Miller <bonsaiviking>
Submitted on:  Tue 25 Aug 2015 05:01:24 AM UTC  
 
Category: Resource VariablesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Behavior
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Operating System: LinuxPerl Version: v5.16.3
Component Version: v2.6.19Fixed Release: 

Sat 17 Oct 2015 07:42:12 AM UTC, comment #2:

Meant to say, line numbers do not match original source.

Earl Hood <ehood>
Project Administrator
Sat 17 Oct 2015 07:40:53 AM UTC, comment #1:
[Unable to reproduce]

The diff you send is bogus. The line numbers do match
the line numbers in the version of MHonArc cited, and
I have not seen the behavior reported.

Make sure you have a correct version of MHonArc, a version
that has not been edited or modified by another party.

Earl Hood <ehood>
Project Administrator
Tue 25 Aug 2015 05:01:24 AM UTC, original submission:

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)));

Daniel Miller <bonsaiviking>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ehood (Posted a comment)
  • -unavailable- added by bonsaiviking (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1