[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: KMail blocks just before checking POP3 mailboxes
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2004-06-01 20:13:12
Message-ID: 200406012213.13748 () erwin ! ingo-kloecker ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 01 June 2004 06:35, Don Sanders wrote:
> Some versions of some pop servers sometimes erroneously return an
> empty list of uids (a bug in these pop servers that is totally
> non-reproducible). This causes all mail to be downloaded again
> (causing duplicate downloads) for people who leave mail on the
> server.
>
> Maybe it would be ok to only apply the
>  +    if (uidsOfNextSeenMsgs.isEmpty())
>  +       uidsOfNextSeenMsgs = uidsOfSeenMsgs;
> check when the user has _not_ selected the option to leave mail on
> the server?

Has _not_ selected the option to leave mail on the server? Are you sure? 
In this case uidsOfNextSeenMsgs will always be empty because only 
messages which have already been seen (i.e. none in case of not leaving 
mail on the server) will be added to this list during the uidl stage. 
The fetched messages will be added to this list _after_ they have 
actually been fetched (which is correct because otherwise some messages 
might get lost in case downloading is interrupted). Therefore in case 
of _not_ leaving mail on the server the seenUidList did constantly 
grow.

With the current version this shouldn't happen anymore because the UIDs 
of all messages which have been deleted from the server are removed 
from the seenUidList before the list is written to the file for the 
next check. So the seenUidList will be empty if no message was left on 
the server.

Moreover the list of old seen msgs is now only copied if the user leaves 
mail on the server and if the server really didn't send any UIDs 
although there are new messages.

Regards,
Ingo

[Attachment #5 (application/pgp-signature)]

_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic