4 messages in net.sourceforge.lists.courier-users[courier-users] deliverquota warning ...
FromSent OnAttachments
Mikolaj "J." HabrynFeb 9, 2001 2:09 am.Other
Brian CandlerFeb 9, 2001 6:34 am 
Mikolaj J. HabrynFeb 10, 2001 12:34 am.Other
Brian CandlerFeb 10, 2001 6:20 am.Other
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] deliverquota warning bugletActions...
From:Mikolaj "J." Habryn (dich@rcpt.to)
Date:Feb 9, 2001 2:09:49 am
List:net.sourceforge.lists.courier-users
Attachments:
deliverquota-warning - 0.3k

Is it just me, or does deliverquota, when delivering a warning, try to reuse the same unique filename for maildir delivery? The one saving grace is that the Maildir++ filename differs for different sizes, but if you try to deliver a message that's the same size as the quota warning, it will be silently replaced.

m.

PS: It's a crude fix :) I guess the right way of doing it is adding a per-process serial number into the filename generation code. PPS: Why does courier rename into new instead of link/unlink? It probably doesn't make a huge difference in most cases, but it would stop the mail loss in this case.

--- courier-imap-1.3.3/maildir/deliverquota.c.orig Fri Feb 9 20:37:21 2001 +++ courier-imap-1.3.3/maildir/deliverquota.c Fri Feb 9 20:37:38 2001 @@ -191,6 +191,7 @@ /* Make sure the quota message's size itself is factored into ** the quota. */ + sleep(2); deliver(fd, dir, q, 0, 0, -1); } close(fd);