Nathan Phillip Brink writes:
Sam Varshavchik wrote:Nathan Phillip Brink writes:Also, is this the place to report bugs?Well, yes, if this was an actual bug.good.Then what software names a file ``courier.lock''? And why would removing this file cause courier to behave properly afterwards?Below is an edited shell session of me finding and removing the stale lock: margbr...@ohnopublishing ~/.maildir/.Trash/tmp $ ls -lha ... -rw-r--r-- 1 margbrink margbrink 8 Jul 21 21:00 1248224418.M734712P16152.ohnopublishing.net -rw-r--r-- 1 margbrink margbrink 23 Jul 18 21:19 courier.lock $ less courier.lock 7892:ohnopublishing.netWhatever this file is, it wasn't created by Courier-IMAP. Furthermore, Courier-IMAP has no problems with concurrent access to the same folder, by different instances of the IMAP server, so it has no need for any locks of any kind, here.I'm sorry so say so, but I don't believe you. I recognize that courier-imapd should require no locks (according to the docs), but its own manpages say that locks are suggested when enabling the IDLE command (which I have done). Maybe my installation of courier-imap (possibly modified by Gentoo?) uses a nonstandard value for WATCHDOTLOCK:./maildir/maildirwatch.h:#define WATCHDOTLOCK "tmp/courier.lock"
I stand corrected -- I was looking elsewhere and did overlook this reference. These bits of code have been quietly doing their jobs for many years, without much fanfare or notice.
There's a two minute timeout on this lock. If this lock exists, after two minutes it gets removed by the waiting imap process. There are two reasons I could think of why this file would not get cleared after two minutes. One would be the mailboxes on an NFS mount, and there's a major clock skew on the NFS server; easy to fix -- fix the clock and use ntp. The other reason is that this code gets used only on platforms with FAM or gamin libraries. FAM/gamin can occasionally be miscompiled or broken, that's one thing to look into.
pgp4LLDwfgeJa.pgp
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
