On 10/4/2010 2:15 PM, Timo Sirainen wrote:
On 4.10.2010, at 19.53, Tom Hendrikx wrote:
It seems Mail.app uses the timestamp ('arrived date'?) on the mail file itself (Maildir here) to display the time.
When your MUA accesses the mail over IMAP, it does not see the Maildir file's mtime. Your MUA should use the Date header in the e-mail, or the date/time when it first sees the message (f.i. when not Date header is available). IMAP protocol has a concept of "INTERNALDATE", which contains the time when the message was received. With Maildir it's the same as the file's mtime.
With Mail.app you can configure it to show/sort messages by "Date Received" (=INTERNALDATE) or "Date Sent" (=Date: header). I prefer the "Date Received" so that a bad Date: header won't put the mail in the middle of the mailbox.
That's it exactly - the odd thing is that when 'deliver' drops a message in the mailbox, it uses GMT. When I use vdelivermail, time is GMT -0500.
Here's an ls -la of my new/ directory, you can see where I changed to vdelivermail, then back to deliver. -rw------- 2 vpopmail vchkpw 30963 Oct 4 17:58 1286215128.M313112P44778.mx.myhost.net,S=30963,W=31528:2,ST -rw------- 2 vpopmail vchkpw 6522 Oct 4 17:59 1286215163.M989313P13015.www51.myhost.net,S=6522,W=6653:2,ST -rw------- 1 vpopmail vchkpw 1536 Oct 4 13:00 1286215228.45853.mx.myhost.net,S=1536:2,S -rw------- 2 vpopmail vchkpw 59740 Oct 4 13:03 1286215329.78288.random.myhost.net,S=59740:2,ST -rw------- 1 vpopmail vchkpw 1412 Oct 4 18:04 1286215469.M717887P50916.mx.myhost.net,S=1412,W=1441:2,S -rw------- 2 vpopmail vchkpw 2895 Oct 4 18:06 1286215577.M668341P79422.random.myhost.net,S=2895,W=2964:2,ST
What I don't understand is why the timestamp would be different with deliver. What's odd is that the time in the filename itself appears correct. Weird.
I'm calling deliver from procmail like so: #|/usr/bin/env -i HOME=$DOMDIR /usr/local/libexec/dovecot/deliver