aerc/worker
Reto Brunner f1a0fd20d6 improve date parsing for notmuch/maildir
If a message date would fail to parse, the worker would never receive
the MessageInfo it asked for, and so it wouldn't display the message.

The problem is the spec for date formats is too lax, so trying to ensure
we can parse every weird date format out there is not a strategy we want
to pursue. On the other hand, preventing the user from reading and
working with a message due to the error format is also not a solution.

The maildir and notmuch workers will now fallback to the internal date, which
is based on the received header if we can't parse the format of the Date header.

The UI will also fallback to the received header whenever the date header can't
be parsed.

This patch is based on the work done by Lyudmil Angelov <lyudmilangelov@gmail.com>
But tries to handle a parsing error a bit more gracefully instead of just returning
the zero date.
2020-08-10 08:00:52 +02:00
..
handlers Register worker in init. 2019-07-19 15:37:55 -04:00
imap Add flag based search options 2020-07-25 08:08:08 +02:00
lib improve date parsing for notmuch/maildir 2020-08-10 08:00:52 +02:00
maildir maildir: Provide nicer error message on invalid url 2020-07-27 18:26:57 +02:00
notmuch notmuch: manually close notmuch objects 2020-08-07 09:49:57 +02:00
types run go fmt 2020-07-17 17:50:24 +02:00
handler_notmuch.go Add notmuch backend 2019-08-08 10:10:34 +09:00
worker.go Register worker in init. 2019-07-19 15:37:55 -04:00
worker_enabled.go Register worker in init. 2019-07-19 15:37:55 -04:00