15 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] Re: Marking messages ...
FromSent OnAttachments
Chris AndersonSep 30, 2003 7:48 pm 
Pedro HernadezSep 30, 2003 10:01 pm 
Martin LohmeierOct 1, 2003 5:32 am 
Robin BowesOct 1, 2003 8:30 am 
Sam VarshavchikOct 1, 2003 2:58 pm 
Robin BowesOct 1, 2003 3:16 pm 
Sam VarshavchikOct 1, 2003 3:30 pm 
Robin BowesOct 1, 2003 3:48 pm 
Sam VarshavchikOct 1, 2003 7:43 pm 
Robin BowesOct 2, 2003 1:30 am 
Sam VarshavchikOct 2, 2003 4:27 am 
Robin BowesOct 2, 2003 4:40 am 
Sam VarshavchikOct 2, 2003 1:29 pm 
Chris AndersonOct 2, 2003 5:04 pm 
Pedro HernadezOct 3, 2003 11:23 am 
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:RE: [maildropl] Re: Marking messages as read automaticallyActions...
From:Robin Bowes (robi@robinbowes.com)
Date:Oct 1, 2003 3:48:45 pm
List:net.sourceforge.lists.courier-maildrop

Sam Varshavchik wrote:

If you simultaneously receive the first two messages from a new mailing list, one of the maildirmakes will succeed, the other maildrop process's maildirmake will fail, causing an exception trap, which will abort the delivery of the second message.

You need to put the whole thing under an flock, and trap exceptions only from the maildirmake process.

How about something like this:

if ( this is a mailing list ) { exception { to "${VMAILDIR}/.${LISTS}.${MATCH2}/" } exception { flock lockfile_${MATCH2} { `${MAILDIRMAKE} -f ${LISTS}.${MATCH2} ${VMAILDIR}` } `( echo Subject: New IMAP folder created ; \ echo Created ${LISTS}.${MATCH2} in ${VMAILDIR} ) \ | QMAILNAME="Mail Admin" \ QMAILUSER="postmaster" \ QMAILHOST=robinbowes.com \ ${QMAILINJECT} ${EXT}@${HOST}` to "${VMAILDIR}/.${LISTS}.${MATCH2}/" } }

... or am I missing the point?

R.