Menu

#2631 traptoemail: locale-dependent (thus often invalid) date format

64-bit
pending
None
5
2018-06-07
2015-05-18
No

This is Debian bug #785380.

In short: the traptoemail Perl script emits a locale-dependent Date header, which does not conform to RFC 5322 in general. This happens because strftime() is locale-dependent, and could be solved for example by temporarily resetting the locale to C for the strftime() call.

Discussion

  • Niels Baggesen

    Niels Baggesen - 2015-06-04
    • status: open --> pending
    • assigned_to: Niels Baggesen
     
  • Niels Baggesen

    Niels Baggesen - 2015-06-04

    The simplest solution is probably just to drop generating the Date header all together and leave it to the MSA to fill it in.

    What do you think?

     
  • Ferenc Wágner

    Ferenc Wágner - 2015-06-05

    I totally agree.

     
  • Josef Ridky

    Josef Ridky - 2018-06-07

    patch with possible solution. May I ask for review/accept?

     

Log in to post a comment.