Re: MaildirQueue
Stephen Warren <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
Jason R. Mastaler wrote: > The only issue is the case where TMDA is looking for a confirmed > message in pending at the same time a MUA is moving it from new/ to > cur/ and renaming it. There exists the possibility for TMDA to think > that the message is not there, thus returning a bounce > (ACTION_MISSING_PENDING). I think this can be handled by doing a > small loop and retrying multiple times before giving up and > determining the message is *really* not there. Since this is a rare > case, the extra computational expense can be justified. I haven't read the Maildir spec in a while, but isn't Maildir defined such that the new->cur move must be one of (a) an atomic rename() operation or (b) a hard-link operation so the file appears in both new and cur, then an unlink from new? If one of the above is the case, then at no time should a message not exist in at least one of new/cur, and if we check new first, then cur, we should be guaranteed to find any message that's there. Or, is there some hole in my reasoning?
signature.asc
(application/pgp-signature, 250 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFJITAhk3bo0lNTrURAk7lAKD3Dvz7DgVvujVsioKpXSRSHzSNvACfUIdd WfT1yWmDVj8N9tNbX5VV7ts= =jxGD -----END PGP SIGNATURE-----