(Picking up a thread running from 26th July to 9th August)

Jacob,

>I find that qmail is taking my maildir and sending <last in first out>
>
>I would like to have qmail changed to do a 
>sort mailbox by seize and 
>send the smallest first.

I've not got round to replying to this one: There may be an easy
solution for you as follows - I've noticed that the order of messages
listed by qmail-pop3d can be altered by touching (Unix
command "touch") the messages in the new/cur directories. I
assume that within a (C) program you could do the same with
open-for-append followed by close.

To perform tricks with this for qmail-pop3d, you can write a small shim to
go between checkpassword and qmail-pop3d which 'touches' [in
your case] all small files in Maildir/new, Maildir/cur before exec-ing
qmail-pop3d as normal. This even works if your varying size files
are distributed across new and cur! I haven't looked at the qmail-pop3d
code, but I assume this is down to 'Cool DJB code' rather than a quirk
of the system I tried it on (Linux).

Hopefully the same can be achieved in your case for other mail
collection mechanisms.

cheers,

Andrew.

PS: Where's
".lk"?

Reply via email to