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 2, 2003 4:40:41 am
List:net.sourceforge.lists.courier-maildrop

Sam V. wrote:

if ( is a mailing list ) { flock lockfile { if mailing_list_maildir doesn't exist { create new mailing_list_maildir } }

Will not work, for the same reason as the earlier attempts.

How so?

If two delivery attempts come at the same time, the first one will get the lock,
and check for the existence of the maildir, creating it if necessary. Meanwhile, the second delivery will wait for the lock
to release then get its own lock. When it checks for the existence of the maildir it will already exist. Delivery will then proceed
normally.

Where's the race condition?

Cheers,

R.