From: Peter Graves <peter@ar...> - 2002-06-24 22:31:41
Yet another snapshot:
http://armedbear.org/j-jar.zip (just j.jar)
This one contains a couple of important IMAP changes.
First, the CheckMailTask now waits a minimum of two minutes after an
error is encountered for the mailbox in question. Two kinds of errors
count for this purpose: an IOException (which is most likely to be a
socket timeout), or a failure by reselect() to get read-write access
to the mailbox. Both of these errors suggest that the server is busy
(in the case of a timeout) and/or another process has locked the
mailbox, so it makes sense to allow a little extra time for things to
Two minutes is currently a hard-coded constant. Its main virtue is
that it's much longer than one minute, which is the default check
interval. Two minutes seems to work well for me, but my server and
both of my clients are in the same room... ;)
Second, GetNewMessages.run(), which does the real work for the
CheckMailTask, now returns at once if reselect() fails to get read-
write access to the mailbox. In previous versions it carried on
anyway, only to fail a moment later if there were any incoming filters
that wanted to delete (or move) a message. The new approach tries to
ensure that we won't bother to retrieve any new messages unless things
are in an appropriate state so we can process them when they arrive.
Get latest updates about Open Source Projects, Conferences and News.