Quoting Claude Tompers <claude.tomp...@restena.lu>:
Hi,
I have a user with quite a large mail box (about 200 messages in the
inbox and a gazillion folders).
If he enables new mail notifications, it takes him about a minute to get
it's inbox displayed.
Is this normal behaviour because the system scans all folders or should
it be faster ?
If he has a "gazillion" folders, and he is checking each one for
newmail, than yes... this is expected. From RFC 3501 [6.3.10]:
Unlike the LIST command, the STATUS command is not guaranteed to
be fast in its response. Under certain circumstances, it can be
quite slow. In some implementations, the server is obliged to
open the mailbox read-only internally to obtain certain status
information...
The STATUS command MUST NOT be used as a "check for new
messages in the selected mailbox" operation (refer to
sections 7, 7.3.1, and 7.3.2 for more information about
the proper method for new message checking).
Because the STATUS command is not guaranteed to be fast
in its results, clients SHOULD NOT expect to be able to
issue many consecutive STATUS commands and obtain
reasonable performance.
Despite this warning, this is EXACTLY what everybody uses STATUS for.
So recent IMAP extensions have directly addressed this issue. You
should upgrade to an IMAP server that supports LIST-STATUS (and/or
mailbox stat caching) if you want to see much improved behavior. Or,
the better solution, is to disable the option to allow a user to poll
all mailboxes. THIS IS A TERRIBLE IDEA AND IS ALMOST CERTAINLY NOT
WHAT THE USER WANTS. NO USER SHOULD BE POLLING *ALL* THEIR MAILBOXES.
michael
___________________________________
Michael Slusarz [slus...@horde.org]
--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org