On Mon, 2003-06-23 at 23:58, Mark Crispin wrote: > On Mon, 23 Jun 2003, Timo Sirainen wrote: > > Or actually .. UW-IMAP + mbox seems to set mailbox \Unmarked even if I > > do only STATUS for it. That wouldn't work well. Is it even > > RFC-compliant? :) > > What version?
Tested with 2003.337 and 2002c. > What host operating system? Linux and XFS filesystem. > If UW imapd does that, then it is a bug and I will fix it. I can't > reproduce that problem on my test system, so it's probably yet another > case of something that depends upon the underlying UNIX variant. I thought \Marked == atime < mtime, \Unmarked == atime >= mtime? STATUS opens the mbox file which updates atime, so how could it even work? You could fix it with utime() but that'd be ugly and racy. % printf 'x list "" mail/foo\nx status mail/foo (messages)\nx list "" mail/foo\n'|~/src/imap-2002c/imapd/imapd * PREAUTH [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] Pre-authenticated user cras hurina IMAP4rev1 2003.337 at Tue, 24 Jun 2003 00:24:16 +0300 (EEST) * LIST (\NoInferiors \Marked) "/" mail/foo x OK LIST completed * STATUS mail/foo (MESSAGES 4) x OK STATUS completed * LIST (\NoInferiors \UnMarked) "/" mail/foo x OK LIST completed
