Re: Dealing with Missing Date Headers

Subject: Re: Dealing with Missing Date Headers

Date: Tue, 18 Jan 2022 09:35:59 -0400

To: Kevin Foley, notmuch@notmuchmail.org

Cc:

From: David Bremner


Kevin Foley <kevin@kevinjfoley.me> writes:

> Has anyone ever dealt with missing "Date" headers?  My emails from Etrade
> in particular are missing them for whatever reason.
>
> My only thought is to possibly use `sed` or something similar to add a
> "Date" header based on the dates in one of the "Received" headers but
> I'm not crazy about this idea.
>
> I also plan to reach out to Etrade to see if they'll resolve it for
> future messages.

If you access to .forward style processing on the delivery host (a
relatively uncommon case, but perhaps less so among notmuch users) then
adding time of delivery could be done by piping messages through

formail -a $(date -R)

formail is part of procmail; if that is not available the functionality
could probably be replaced by a short python script, which would likely
be more robust than a sed pipeline.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: