imap: on TB startup message comes: deleting 12815 inbox messages, now reloading
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: buecher, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
start TB. Accepted profile in prof. manager and agreed to download new emails (I have that question set for startup).
When main window came up, I shortly saw the message 'deleting 12815 messages from inbox' flashing up in the status line.
Now it is re-downloading 12815 headers and then probably their bodies
Expected results:
download only new emails.
My mailserver is logging, is there anything I should look up?
If the delete came from TB, how would the imap command look like?
TB 68.5.0
Comment 1•6 years ago
|
||
It is not a gmail account?
Comment 2•6 years ago
•
|
||
If your imap server is keeping a log (must be not gmail) you should see messages coming in from tb to "store" the \deleted flag on messages. No idea why tb would just decide to "delete" all those messages, doesn't make sense. Then again, if they got re-downloaded then tb didn't mark them deleted and something else happened.
Need more info. Was this a new account or something was working fine and then just suddenly all your emails got deleted on tb startup?
P/S: Seeing the server log from when you started tb might help understand what happened. Also, I see that maybe you do a lot of addon development (looking at recent activities). Is it possible a broken addon may have contributed to this?
I have this once a month? it is a private imap server, self hosted on win10: hmailserver. They say many hosting services are using it as well.
But I never saw the status line in TB announcing: deleting 12800 messages.
this is part of the log: I think it is the right time of day. logging in to two accounts: nn@domain.com, nn2@domain.com (not the real addresses)
there are 5 connections allowed in TB, is 2571-2575 the reference for the connections?
Later, I have three parallel selects on the same inbox from apparently three connections. Is that expected?
And they get different answers?
I may be totally on a wrong path. What do I have to look for?
login:
"IMAPD" 6452 2571 "2020-03-31 10:33:31.714" "192.168.23.87" "RECEIVED: 3 login "nn@domain.com" ***"
"IMAPD" 6444 2572 "2020-03-31 10:33:31.714" "192.168.23.87" "RECEIVED: 3 login "nn@domain.com" ***"
"IMAPD" 6436 2575 "2020-03-31 10:33:31.714" "192.168.23.87" "RECEIVED: 3 login "nn@domain.com" ***"
"IMAPD" 6444 2572 "2020-03-31 10:33:31.729" "192.168.23.87" "SENT: 3 OK LOGIN completed"
"IMAPD" 6436 2575 "2020-03-31 10:33:31.729" "192.168.23.87" "SENT: 3 OK LOGIN completed"
"IMAPD" 6452 2571 "2020-03-31 10:33:31.745" "192.168.23.87" "SENT: 3 OK LOGIN completed"
"IMAPD" 6444 2573 "2020-03-31 10:33:31.979" "192.168.23.87" "RECEIVED: 3 login "nn2@domain.com" ***"
"IMAPD" 6464 2574 "2020-03-31 10:33:31.979" "192.168.23.87" "RECEIVED: 3 login "nn2@domain.com" ***"
"IMAPD" 6464 2574 "2020-03-31 10:33:31.979" "192.168.23.87" "SENT: 3 OK LOGIN completed"
3connections select the same folder (inbox) of the same account:?
"IMAPD" 6444 2571 "2020-03-31 10:33:43.167" "192.168.23.87" "RECEIVED: 10 select "INBOX""
"IMAPD" 6424 2575 "2020-03-31 10:33:43.167" "192.168.23.87" "RECEIVED: 10 select "INBOX""
"IMAPD" 6452 2572 "2020-03-31 10:33:43.167" "192.168.23.87" "RECEIVED: 9 select "INBOX""
3 answers, but not identical:
"IMAPD" 6444 2571 "2020-03-31 10:33:43.292" "192.168.23.87" "SENT: * 12957 EXISTS[nl]* 792 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1288472591] current uidvalidity[nl]* OK [UNSEEN 33519] unseen messages[nl]* OK [UIDNEXT 315474] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]10 OK [READ-WRITE] SELECT completed"
"IMAPD" 6452 2572 "2020-03-31 10:33:43.292" "192.168.23.87" "SENT: * 0 EXISTS[nl]* 792 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1288472591] current uidvalidity[nl]* OK [UNSEEN 33519] unseen messages[nl]* OK [UIDNEXT 315474] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]9 OK [READ-WRITE] SELECT completed"
"IMAPD" 6424 2575 "2020-03-31 10:33:43.292" "192.168.23.87" "SENT: * 0 EXISTS[nl]* 792 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1288472591] current uidvalidity[nl]* OK [UNSEEN 33519] unseen messages[nl]* OK [UIDNEXT 315474] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]10 OK [READ-WRITE] SELECT completed"
not sure that helps,
Klaus
Comment 4•6 years ago
|
||
I think the redownload could happen if the UIDs changed on the server, due to a bug or some internal move.
Comment 5•6 years ago
•
|
||
Magnus, good point. You may also be referring to the UIDVALIDITY. If the server resets or changes the UIDVALIDITY number for a mailbox, TB will be forced to re-download the whole mailbox (folder).
See Bug 1584983 for the same issue.
I see UIDVALIDITY in the log fragment above but not sure it is pointing to a problem.
UIDVALIDITY did not change for the three connections into inbox.
Is 2571-2575 a number for the connection (5 are allowed in TB).
If yes, is it correct to have three concurrent connections into the same folder? At least two of the three connections are requesting flags from the same folder (INBOX) within 1 sec? RECEIVED: 8 UID fetch 1:* (FLAGS) for two connections into inbox.
Comment 7•6 years ago
|
||
klaus, is the above log fragments from when the messages were deleted and re-downloaded? If not, maybe when that happened there was a uidvalidity problem?
Do you mean you have the messages deleted and re-downloads once a month?
The 5 connections (max) will be to selected to different folders, not the same folder. I don't understand the log you show above so if you could record and attach the tb imap log I could tell more about what is going on. If you could attach the full server log and the tb log that would be even better. Tb logging info: https://wiki.mozilla.org/MailNews:Logging
Be sure to describe exactly what you were doing while recording the log. That's always a big help.
Thanks.
Comment 8•6 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)
Comment 10•5 years ago
|
||
Resolved per whiteboard
Updated•5 years ago
|
Description
•