Red Hat Bugzilla – Bug 24258
mailx should set date in recorded mail
Last modified: 2007-04-18 12:30:45 EDT
When mailx has the "record" option set to record sent mail
the header date field is not being set.
Some mail clients, when accessing such a file via IMAP, need
to have the date field set in the header in order to accurately
determine the appropriate time (eg. Outlook Express, sorry).
I have a patch, but a bit of work would be needed to ensure
that it works on platform other than glibc-2.2.
The problem being the tm_gmtoff element of struct tm:
sun: (p->tm_isdst > 0 && daylist) ? -altzone : -gtimezone
Could, of course, have used strftime()but the %z is not supported
on sun ...
Created attachment 7768 [details]
adds date to mail header when recording outgoing mail
It is not necessary to fill the header Date. In the header there is
the date written in From.