2 messages in net.sourceforge.lists.courier-users[courier-users] POP messages download...
FromSent OnAttachments
Tabor J. WellsNov 15, 2000 12:02 pm 
Tabor J. WellsNov 15, 2000 7:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] POP messages downloaded out of orderActions...
From:Tabor J. Wells (twe@atg.com)
Date:Nov 15, 2000 12:02:03 pm
List:net.sourceforge.lists.courier-users

I have Courier IMAP 1.2.2 installed on Solaris. Maildir delivery is done via either Exim (3.16) or Procmail (3.15) depending on whether or not the user has a .procmailrc. The problem is this. When picked up via POP, mail is downloaded out of order from the order it was delivered to the user's maildir. I suspect this is because of how Courier POP lists mail in the new directory when determining what to download.

Exim delivers mail with the name constructed from the unix timestamp, so the mail sorts in order in the directory:

Nov 15 13:22 974312522.12262.hostname.domain.com Nov 15 13:23 974312611.12283.hostname.domain.com Nov 15 13:25 974312707.12330.hostname.domain.com Nov 15 13:32 974313175.12403.hostname.domain.com Nov 15 13:53 974314414.12512.hostname.domain.com

Procmail deliveries, however, use a different naming scheme with the hostname which doesn't sort:

Nov 15 14:46 _5KD.TguE6.hostname Nov 15 14:51 _ELD._kuE6.hostname Nov 15 14:42 _cKD.9cuE6.hostname Nov 15 14:42 _pKD.CduE6.hostname

So I guess the question is, is there any way in Courier to have it use the creation time of the file as the sorting mechanism rather than the filename? Or alternatively can anyone suggest how I can work around this problem with procmail?

Thanks,

Tabor