On Thu, 13 Mar 2003, Jesper Toft wrote:
>Hi,
>Yet an other 1000 constant :-)
>bincimapd-append.cc: 233
>       while (attempt < 1000)
>A way to remove the constant from the loops, could be something like this:

Yes, got it.

>And what is this sleep good for? Yet an other "we cant have flags in new/"
>problem ? :

The sleep should only be there if one is appending a message to a folder
that is currently selected. That will help a bit. Other than that, the
sleep has to stay. But it shouldn't be a sleep() call, rather a select()

>It makes the server awfull slow when copying from a local folder to an imap
>folder.

APPEND isn't used for copying, and COPY only sleeps one second after
copying all messages in a set. I got an answer from the IMAP mailing list
that allows us to not sleep 1 second unless the copy/append is to the
currently selected mailbox, so.. improvements to come.

Andy :-)

-- 
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP    | Nil desperandum

Reply via email to