Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583882 - dev-perl/mime-construct should include "Date" field in generated messages
Summary: dev-perl/mime-construct should include "Date" field in generated messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Perl team
URL: https://rt.cpan.org/Public/Bug/Displa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 14:09 UTC by Maciej S. Szmigiero
Modified: 2017-01-16 22:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch fixing the issue (mime-construct-add-date-field.patch,634 bytes, patch)
2016-05-23 14:09 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2016-05-23 14:09:51 UTC
Created attachment 435074 [details, diff]
patch fixing the issue

Currently, mime-construct does not include "Date" field in
generated messages.

This field is required according to RFC 5322 and
not every MTA or SMTP client adds it when it is missing
(for example mail-mta/msmtp doesn't).

This means that mail clients often timestamp such
messages as either 01.01.1970 or date it was first seen
by them rather than posting date.

A possible fix is to use Email::Date::Format to
easily format "Date" field value.
I attach a simple patch to do it.

This would also require adding dev-perl/Email-Date-Format
to dev-perl/mime-construct runtime dependencies.

I've added this as CPAN bug 111372 a few months ago and
mailed mime-construct author about it but there was no
response - the software had last release in 2010 so it
is probably no longer maintained.
Comment 1 Maciej S. Szmigiero 2017-01-09 23:00:41 UTC
Created Github PR 3408 that resolves this issue.
Comment 2 Maciej S. Szmigiero 2017-01-16 22:43:33 UTC
Closing this bug since the PR was merged.