I'm trying to use Dovecot to make administering ASSP a bit easier. I've created a mailbox with a number of subfolders (Spam, Ham, etc.) and have ASSP setup to save mail in the appropriate folder e.g. /var/mail/ASSP/.INBOX.Ham/new. But I'm having problems with ASSP complaining about the newly created files - I believe the file gets opened, then it disappears before ASSP finishes writing to it. Is Dovecot grabbing the file from "new" and moving it to "cur" faster than ASSP can write? How can I get around this? ASSP only allows for a folder to save each category to - I can't specify an LDA. -- Daniel
On Mon, 2007-05-14 at 14:56 -0700, Daniel L. Miller wrote:> Is Dovecot grabbing the file from "new" and moving it to "cur" faster > than ASSP can write?Possible, if it uses inotify there.> How can I get around this? ASSP only allows for a > folder to save each category to - I can't specify an LDA.Well if it's writing maildir it should open a new file in tmp/, write to it and then move it to new/ instead of opening a file in new/ and writing to it. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070515/ffbf47df/attachment.bin>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On May 15, 2007, at 2:16 AM, Johannes Berg wrote:> On Mon, 2007-05-14 at 14:56 -0700, Daniel L. Miller wrote: > >> Is Dovecot grabbing the file from "new" and moving it to "cur" faster >> than ASSP can write? > > Possible, if it uses inotify there. > >> How can I get around this? ASSP only allows for a >> folder to save each category to - I can't specify an LDA. > > Well if it's writing maildir it should open a new file in tmp/, > write to > it and then move it to new/ instead of opening a file in new/ and > writing to it.I agree that's the right thing to do, but I'm curious: Does dovecot relink the file, or copy? If it links the file (i.e., mv) then the process writing the file shouldn't have any problems, and the file should be written correctly. . . Sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFGS99VA7vyqo9ewCgRAsAyAKDTt3Sf5NhYi8yngt+ll2IZoaXuEQCgj2ao xfYfgBXyKIz0sn9nktt7PdE=A3q/ -----END PGP SIGNATURE-----