Open Bug 821587 Opened 13 years ago Updated 3 years ago

pop3 "leave messages on server" doesn't work correctly after unchecking/disabling, and then enabling

Categories

(MailNews Core :: Networking: POP, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: krzf83, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11 Steps to reproduce: pop3 leave message on server only works after deleting all messages or new account 1) Adding new pop3 account. Default leave messages of server is checked. 2) Downloading 20 emails from pop3 acount. Messages are left on server. 3) I make "mistake" and uncheck "leave messages on server" 4) My server refuses to delete messages with -ERR messages here (it was designed to do so) 5) I correct my "mistake" and re-check "leave messages on server". Now Thunderbird keeps trying to delete all messages from server. Restart or anything does not fix this issue. I've tested same scenario on outlook express - it is ok there.
(In reply to krzf83 from comment #0) > 5) I correct my "mistake" and re-check "leave messages on server". > Now Thunderbird keeps trying to delete all messages from server. > Restart or anything does not fix this issue. Settings of "Leave messages on server" in Tb is as follows. [ x ] Leave messages on server [ ? ] For atmost NN days [ ? ] Until I delete them What is your actual setting for the POP3 account in Tb? Information about already downloaded message is kept in popstate.dat file under the POP3 account's mail directory in Tb(set of UIDL of mail, status of mail, timestamp data of download) if "Leave messages on server" is requested. What is saved in popstate.dat file?
I'd say at step 3. the messages are marked for deletion on the server (marked 'd' in the popstate.dat file). Then after step 5, they never return to the state 'k' to keep them on the server. They are still 'd' and so TB tries to delete them. krzf83, can you check if this is the case?
Flags: needinfo?(krzf83)
I've downloaded thunderbird again so I can check this and now I see problem is almost fixed (did anyone do that?). Now after re-enabling 'leave messages on server' popstate.dat gets cleaned (!). It means all messages will be re-downloaded (perhaps tousands). I consider this also a bug. Messages like you said should be switched to 'k' in popstate.dat, not deleted from it.
Flags: needinfo?(krzf83)
Component: Preferences → Networking: POP
Product: Thunderbird → MailNews Core
Version: 17 Branch → 17
Summary: pop3 leave message on server bug → pop3 "leave messages on server" doesn't work correctly after unchecking/disabling, and then enabling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.