[Dovecot] SORT(DATE) and missing Date headers
Timo Sirainen
tss at iki.fi
Tue Sep 25 12:39:36 EEST 2007
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(..);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070925/59b8cb19/attachment.bin
More information about the dovecot
mailing list