On Mon, 2007-09-24 at 14:38 -0500, Kyle Wheeler wrote:
> Would it be possible to get Dovecot to fall back to Received 
> header parsing whenever a message is missing a Date header? The idea 
> is that SORT (DATE) would then become useful even in the face of 
> commonly malformed email.

Unfortunately that would violate the SORT spec.

> How hard would this be to hack into the current Dovecot source?

Replace mail_get_date() calls in src/imap/imap-sort.c with something
like:

t = mail_get_date(..);
if (t == (time_t)-1) t = mail_get_received_date(..);

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to