bug-mailutils
[Top][All Lists]
Advanced

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

Re: converting from qpopper


From: Sergey Poznyakoff
Subject: Re: converting from qpopper
Date: Sun, 11 Nov 2001 02:49:51 +0200

>           else if (newsize < mailbox_size) /* FIXME: Should it be a != ? */
> 
> We are trying to be smart by guessing that if the newsize is larger,
> it is because a new mail was ___APPENDED___ to the mailbox so the offsets
> maintained by the mailbox_t will still be sane and mailbox_expunge ()
> will do the right thing (i.e. seeing that they was new mail when doing
> the ftruncate()).
> 
> I do not remember the rationale behind this but it was a long exchange
> between sergey.
> I do not particularly like it and would prefer that if the mailbox lock
> was not respected to bailout immediately without being smart.  

The main rationale was that if pop3d had bailed out at any change in
mailbox size, the pop session would break at every new message
arrived, which would make pop3d almost unusable for someone
with heavy loaded mailbox. The situation gets even worse if we take
into account that RFC forbids an implementation to flush changes
until the user issues QUIT command. If we accept this behaviour
any changes the user might have done to his mailbox will be
lost with the arrival of the new message. And if we imagine
someone with, say, 200 messages in his mailbox, it is quite
possible he would never get a chance to delete any of them :^)

-Sergey




reply via email to

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