bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imap and pop mailboxes don't need to be opened?!


From: Alain Magloire
Subject: Re: imap and pop mailboxes don't need to be opened?!
Date: Fri, 8 Feb 2002 23:19:31 -0500 (EST)

> 
> Bon soir,
> 
> They don't keep track of whether they've been opened sucessfully,
> and for some operations they reopen if they've lost the connection.
> 
> I don't think the open should be optional, I am about to add some
> state, so they know they have been opened.
> 
> Before doing this, does anybody have a reason this was a good thing?
> 
> Sam
> 
> Background:
> 
> On sieve exit, I was expunging the mailbox before closing it, I
> wondered why I was getting prompted twice for my user name and
> password.

Having a too long timeout, will make receiving mail impossible,
since holding the mailbox lock is a requirement. So many
POP servers violate the RFC by having a very short timeout(I've
seen servers with timeout in term of seconds).

Note:
        The RFC says that timeout for POP3 is at least 10 minutes.

So when the timeout occurs, you do not know, only the first
write() will notice it.  The pop3 code tries to handle this gracefully
by reopening again and finish the operation, of course if the open fail
then it is a final failure.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]