Open Bug 406929 Opened 17 years ago Updated 11 hours ago

"message was sent but copying to sent folder failed" error after IMAP timeout

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
All
defect

Tracking

(Not tracked)

People

(Reporter: mpappin, Unassigned, NeedInfo)

References

Details

(Whiteboard: [dupeme?])

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.10) Gecko/20071126 Ubuntu/7.10 (gutsy) Firefox/2.0.0.10 Build Identifier: Linux version 2.0.0.6 (20071022) and Windows version 2.0.0.9 (20071031) Filed as a new report per request in bug 206408 comment 263. Similar to that and bug 89285 and numerous others: User presses Send, progress bar indicates message handoff to SMTP server, then "copying to Sent folder" spins for a while before timing out. Message is sent, but copy isn't saved. Viewing of IMAP folders before or after this event continues to work fine. - occurs under both Windows XP and Linux - using SSL or not - all mail folders on IMAP server on local network - no "Local folders" - occurs with number of cached connections set to 0, or any greater value (I think it's a Courier IMAP server.) Reproducible: Always Steps to Reproduce: 1. Create IMAP account 2. Compose new message 3. Send Actual Results: Message was sent, but not copied to IMAP "Sent" folder. Error dialog appeared, Compose window remained on screen. Expected Results: Compose window disappeared, message copy lands in Sent folder. - one user, with mailbox name of the form "Firstname.Lastname", sees this symptom - other users, with mailbox names of the form "flastname", do not see this It seems possible that it's related to bug 382912 - in that bug, a case-_in_sensitive IMAP server's unexpected reply led to TB catatonia; here, this user is the only one on-site with a LongMixedCase mailbox name. I'll try renaming the mailbox to somthing short and monocase and see if it changes anything.
Get IMAP protocol log, and check real protocol level flow first. (bug 206408 comment #263 requests log) I think following option is better for first problem analysis. > #(for bsh): > export NSPR_LOG_MODULES=smtp:5,imap:5
I've found the same bug Thunderbird send the e-mail and try's then to copy the mail to the "sent mail" folder that works but Thunderbird thinks it didn't worked and keeps trying. I've got a @cs.com mail smtp server is smtp.cs.com ssl verbinding on port 465. Sending only works on that port. (my english isn't very good so i'm sorry for any spell mistakes)
I still have this bug on last Thunderbird build. Version 2.0.0.12 (20080213) I googled a lot about this and found out that a lot of people have this problem too but I never saw any solution about this. Even if the mail is really sent to the person, the fact that the mail is not stored in Sent folder could be seen as a loss of data, and a loss of data is a severe bug !
bug 215044 are almost same just little different conditions
Status: UNCONFIRMED → NEW
Ever confirmed: true
Fabien, Daan, Mark, we need a log to diagnose this. please attach log file to bug. see https://wiki.mozilla.org/MailNews:Logging (In reply to comment #4) > bug 215044 are almost same just little different conditions only the words are the same - the results are much different, 215044 has dataloss.
Whiteboard: [needs protocol log]
Hello I´m using TB3b2 and TB3b3 on WinXP SP3 with qmail + Courier IMAP server. 1 - When server and workstation is in the same network (local) everything is fine, I sent message (with or without attachments) and the message was sent and copying to sent forder (IMAP) 2 - When I´m in other network (remotely) and I´m sent a simple message without attachment, the message goes and message was copying to Sent folder 3 - When I´m in other network (remotely) and I´m trying sent message WITH attachment (less than 1 MB) the message goes, but when TB3 starting to copy sent message to Sent folder, the progress bar works too slow and when complete 100% the progress bar starts again (slowly) and when finish 100% appears an error message "There is an error to copy to sent folder, retry ?" (maybe this message was translate wrong, because I´m using pt_BR version) --------------- IMAP LOG 3896[3048240]: ImapThreadMainLoop entering [this=382f800] 0[1730140]: 382f800:mail.m7info.com.br:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN 3896[3048240]: 382f800:mail.m7info.com.br:NA:ProcessCurrentURL: entering 3896[3048240]: 382f800:mail.m7info.com.br:NA:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/select%3E.INBOX: = currentUrl 3896[3048240]: ReadNextLine [stream=30e4608 nb=242 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. 3896[3048240]: 382f800:mail.m7info.com.br:NA:SendData: Logging suppressed for this command (it probably contained authentication information) 3896[3048240]: ReadNextLine [stream=30e4608 nb=16 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok. 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 2 namespace 3896[3048240]: ReadNextLine [stream=30e4608 nb=68 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." ".")) 3896[3048240]: ReadNextLine [stream=30e4608 nb=27 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 2 OK NAMESPACE completed. 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 3 lsub "" "INBOX.*" 3896[3048240]: ReadNextLine [stream=30e4608 nb=47 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Templates" 3896[3048240]: ReadNextLine [stream=30e4608 nb=44 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Drafts" 3896[3048240]: ReadNextLine [stream=30e4608 nb=43 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Trash" 3896[3048240]: ReadNextLine [stream=30e4608 nb=42 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Sent" 3896[3048240]: ReadNextLine [stream=30e4608 nb=21 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 3 OK LSUB completed 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 4 lsub "" "#shared.*" 3896[3048240]: ReadNextLine [stream=30e4608 nb=21 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 4 OK LSUB completed 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 5 lsub "" "shared.*" 3896[3048240]: ReadNextLine [stream=30e4608 nb=21 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 5 OK LSUB completed 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 6 list "" "INBOX" 3896[3048240]: ReadNextLine [stream=30e4608 nb=43 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * LIST (\Marked \HasChildren) "." "INBOX" 3896[3048240]: ReadNextLine [stream=30e4608 nb=21 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 6 OK LIST completed 3896[3048240]: 382f800:mail.m7info.com.br:A:SendData: 7 select "INBOX" 3896[3048240]: ReadNextLine [stream=30e4608 nb=60 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) 3896[3048240]: ReadNextLine [stream=30e4608 nb=77 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited 3896[3048240]: ReadNextLine [stream=30e4608 nb=13 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * 41 EXISTS 3896[3048240]: ReadNextLine [stream=30e4608 nb=12 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * 0 RECENT 3896[3048240]: ReadNextLine [stream=30e4608 nb=34 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 1145064847] Ok 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [MYRIGHTS "acdilrsw"] ACL 3896[3048240]: ReadNextLine [stream=30e4608 nb=22 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:A:CreateNewLineFromSocket: 7 OK [READ-WRITE] Ok 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: 8 getquotaroot "INBOX" 3896[3048240]: ReadNextLine [stream=30e4608 nb=28 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * QUOTAROOT "INBOX" "ROOT" 3896[3048240]: ReadNextLine [stream=30e4608 nb=16 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * QUOTA "ROOT" 3896[3048240]: ReadNextLine [stream=30e4608 nb=23 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: 8 OK GETQUOTAROOT Ok. 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: 9 UID fetch 1:* (FLAGS) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 1 FETCH (UID 1235 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=36 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 2 FETCH (UID 1239 FLAGS (\Seen)) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 3 FETCH (UID 1560 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 4 FETCH (UID 1564 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 5 FETCH (UID 1565 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=36 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 6 FETCH (UID 1761 FLAGS (\Seen)) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 7 FETCH (UID 1762 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=36 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 8 FETCH (UID 1764 FLAGS (\Seen)) 3896[3048240]: ReadNextLine [stream=30e4608 nb=31 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 9 FETCH (UID 4750 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 10 FETCH (UID 4751 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 11 FETCH (UID 4752 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 12 FETCH (UID 4753 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 13 FETCH (UID 4754 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 14 FETCH (UID 4755 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 15 FETCH (UID 4756 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 16 FETCH (UID 4757 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 17 FETCH (UID 4758 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 18 FETCH (UID 4759 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 19 FETCH (UID 4760 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 20 FETCH (UID 4761 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 21 FETCH (UID 4762 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 22 FETCH (UID 4763 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 23 FETCH (UID 4764 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 24 FETCH (UID 4765 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 25 FETCH (UID 4766 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 26 FETCH (UID 4767 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 27 FETCH (UID 4768 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 28 FETCH (UID 4769 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 29 FETCH (UID 4770 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 30 FETCH (UID 4771 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 31 FETCH (UID 4772 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 32 FETCH (UID 4773 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 33 FETCH (UID 4774 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 34 FETCH (UID 4775 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 35 FETCH (UID 4776 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 36 FETCH (UID 4777 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 37 FETCH (UID 4778 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 38 FETCH (UID 4779 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 39 FETCH (UID 4780 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=32 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 40 FETCH (UID 4781 FLAGS ()) 3896[3048240]: ReadNextLine [stream=30e4608 nb=37 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: * 41 FETCH (UID 4782 FLAGS (\Seen)) 3896[3048240]: ReadNextLine [stream=30e4608 nb=23 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: 9 OK FETCH completed. 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: 10 IDLE 3896[3048240]: ReadNextLine [stream=30e4608 nb=22 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: + entering idle mode 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: DONE 3896[3048240]: ReadNextLine [stream=30e4608 nb=22 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: 10 OK IDLE completed 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:ProcessCurrentURL: entering 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/folderstatus%3E.INBOX: = currentUrl 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: 11 noop 3896[3048240]: ReadNextLine [stream=30e4608 nb=22 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: 11 OK NOOP completed 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:SendData: 12 IDLE 3344[40e02c0]: ImapThreadMainLoop entering [this=47a3000] 0[1730140]: 47a3000:mail.m7info.com.br:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN 3344[40e02c0]: 47a3000:mail.m7info.com.br:NA:ProcessCurrentURL: entering 3344[40e02c0]: 47a3000:mail.m7info.com.br:NA:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/folderstatus%3E.INBOX.Trash: = currentUrl 3896[3048240]: ReadNextLine [stream=30e4608 nb=22 needmore=0] 3896[3048240]: 382f800:mail.m7info.com.br:S-INBOX:CreateNewLineFromSocket: + entering idle mode 3344[40e02c0]: ReadNextLine [stream=406a608 nb=242 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. 3344[40e02c0]: 47a3000:mail.m7info.com.br:NA:SendData: Logging suppressed for this command (it probably contained authentication information) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=16 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok. 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: 2 STATUS "INBOX.Trash" (UIDNEXT MESSAGES UNSEEN RECENT) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=67 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: * STATUS "INBOX.Trash" (MESSAGES 0 RECENT 0 UIDNEXT 631 UNSEEN 0) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=24 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: 2 OK STATUS Completed. 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL: entering 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/folderstatus%3E.INBOX.Sent: = currentUrl 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: 3 STATUS "INBOX.Sent" (UIDNEXT MESSAGES UNSEEN RECENT) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=66 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: * STATUS "INBOX.Sent" (MESSAGES 19 RECENT 0 UIDNEXT 27 UNSEEN 0) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=24 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: 3 OK STATUS Completed. 4012[40e0400]: ImapThreadMainLoop entering [this=4934c00] 0[1730140]: 4934c00:mail.m7info.com.br:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN 4012[40e0400]: 4934c00:mail.m7info.com.br:NA:ProcessCurrentURL: entering 4012[40e0400]: 4934c00:mail.m7info.com.br:NA:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/select%3E.INBOX.Sent: = currentUrl 4012[40e0400]: ReadNextLine [stream=406a888 nb=242 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. 4012[40e0400]: 4934c00:mail.m7info.com.br:NA:SendData: Logging suppressed for this command (it probably contained authentication information) 4012[40e0400]: ReadNextLine [stream=406a888 nb=16 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok. 4012[40e0400]: 4934c00:mail.m7info.com.br:A:SendData: 2 select "INBOX.Sent" 4012[40e0400]: ReadNextLine [stream=406a888 nb=60 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) 4012[40e0400]: ReadNextLine [stream=406a888 nb=77 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited 4012[40e0400]: ReadNextLine [stream=406a888 nb=13 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 19 EXISTS 4012[40e0400]: ReadNextLine [stream=406a888 nb=12 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 0 RECENT 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 1145066202] Ok 4012[40e0400]: ReadNextLine [stream=406a888 nb=32 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [MYRIGHTS "acdilrsw"] ACL 4012[40e0400]: ReadNextLine [stream=406a888 nb=22 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Ok 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 3 getquotaroot "INBOX.Sent" 4012[40e0400]: ReadNextLine [stream=406a888 nb=33 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * QUOTAROOT "INBOX.Sent" "ROOT" 4012[40e0400]: ReadNextLine [stream=406a888 nb=16 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * QUOTA "ROOT" 4012[40e0400]: ReadNextLine [stream=406a888 nb=23 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 3 OK GETQUOTAROOT Ok. 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 4 UID fetch 1:* (FLAGS) 4012[40e0400]: ReadNextLine [stream=406a888 nb=33 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 1 FETCH (UID 8 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=33 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 2 FETCH (UID 9 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 3 FETCH (UID 10 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 4 FETCH (UID 11 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 5 FETCH (UID 12 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 6 FETCH (UID 13 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 7 FETCH (UID 14 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 8 FETCH (UID 15 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=34 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 9 FETCH (UID 16 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 10 FETCH (UID 17 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 11 FETCH (UID 18 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 12 FETCH (UID 19 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 13 FETCH (UID 20 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 14 FETCH (UID 21 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 15 FETCH (UID 22 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 16 FETCH (UID 23 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 17 FETCH (UID 24 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 18 FETCH (UID 25 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=35 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 19 FETCH (UID 26 FLAGS (\Seen)) 4012[40e0400]: ReadNextLine [stream=406a888 nb=23 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 4 OK FETCH completed. 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 5 UID fetch 25:26 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority X-Priority References Newsgroups In-Reply-To Content-Type)]) 4012[40e0400]: ReadNextLine [stream=406a888 nb=213 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 18 FETCH (UID 25 RFC822.SIZE 630385 FLAGS (\Seen) BODY[HEADER.FIELDS ("From" "To" "Cc" "Bcc" "Subject" "Date" "Message-ID" "Priority" "X-Priority" "References" "Newsgroups" "In-Reply-To" "Content-Type")] {273} 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:STREAM:OPEN Size: 630385: Begin Message Download Stream 4012[40e0400]: ReadNextLine [stream=406a888 nb=51 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Message-ID: <4A68DBAE.2080500@sealtelecom.com.br> 4012[40e0400]: ReadNextLine [stream=406a888 nb=39 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Date: Thu, 23 Jul 2009 18:52:46 -0300 4012[40e0400]: ReadNextLine [stream=406a888 nb=51 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: From: Marco Varanda <mvaranda@sealtelecom.com.br> 4012[40e0400]: ReadNextLine [stream=406a888 nb=24 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: To: teste.m7@gmail.com 4012[40e0400]: ReadNextLine [stream=406a888 nb=24 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Subject: teste 1-tb3b3 4012[40e0400]: ReadNextLine [stream=406a888 nb=32 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Content-Type: multipart/mixed; 4012[40e0400]: ReadNextLine [stream=406a888 nb=50 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: boundary="------------090507070500090207050209" 4012[40e0400]: ReadNextLine [stream=406a888 nb=2 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 4012[40e0400]: ReadNextLine [stream=406a888 nb=3 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: ) 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:STREAM:CLOSE: Normal Message End Download Stream 4012[40e0400]: ReadNextLine [stream=406a888 nb=213 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: * 19 FETCH (UID 26 RFC822.SIZE 630385 FLAGS (\Seen) BODY[HEADER.FIELDS ("From" "To" "Cc" "Bcc" "Subject" "Date" "Message-ID" "Priority" "X-Priority" "References" "Newsgroups" "In-Reply-To" "Content-Type")] {273} 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:STREAM:OPEN Size: 630385: Begin Message Download Stream 4012[40e0400]: ReadNextLine [stream=406a888 nb=51 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Message-ID: <4A68DBAE.2080500@sealtelecom.com.br> 4012[40e0400]: ReadNextLine [stream=406a888 nb=39 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Date: Thu, 23 Jul 2009 18:52:46 -0300 4012[40e0400]: ReadNextLine [stream=406a888 nb=51 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: From: Marco Varanda <mvaranda@sealtelecom.com.br> 4012[40e0400]: ReadNextLine [stream=406a888 nb=24 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: To: teste.m7@gmail.com 4012[40e0400]: ReadNextLine [stream=406a888 nb=24 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Subject: teste 1-tb3b3 4012[40e0400]: ReadNextLine [stream=406a888 nb=32 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: Content-Type: multipart/mixed; 4012[40e0400]: ReadNextLine [stream=406a888 nb=50 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: boundary="------------090507070500090207050209" 4012[40e0400]: ReadNextLine [stream=406a888 nb=2 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 4012[40e0400]: ReadNextLine [stream=406a888 nb=3 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: ) 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:STREAM:CLOSE: Normal Message End Download Stream 4012[40e0400]: ReadNextLine [stream=406a888 nb=23 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 5 OK FETCH completed. 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 6 IDLE 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL: entering 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/folderstatus%3E.INBOX.Templates: = currentUrl 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: 4 STATUS "INBOX.Templates" (UIDNEXT MESSAGES UNSEEN RECENT) 4012[40e0400]: ReadNextLine [stream=406a888 nb=22 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: + entering idle mode 3344[40e02c0]: ReadNextLine [stream=406a608 nb=69 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: * STATUS "INBOX.Templates" (MESSAGES 2 RECENT 0 UIDNEXT 3 UNSEEN 0) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=24 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: 4 OK STATUS Completed. 1280[1734b00]: ImapThreadMainLoop entering [this=2e5ec00] 0[1730140]: 2e5ec00:mail.m7info.com.br:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN 1280[1734b00]: 2e5ec00:mail.m7info.com.br:NA:ProcessCurrentURL: entering 1280[1734b00]: 2e5ec00:mail.m7info.com.br:NA:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/select%3E.INBOX.Templates: = currentUrl 1280[1734b00]: ReadNextLine [stream=1711708 nb=242 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. 1280[1734b00]: 2e5ec00:mail.m7info.com.br:NA:SendData: Logging suppressed for this command (it probably contained authentication information) 1280[1734b00]: ReadNextLine [stream=1711708 nb=16 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok. 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:SendData: 2 select "INBOX.Templates" 1280[1734b00]: ReadNextLine [stream=1711708 nb=60 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) 1280[1734b00]: ReadNextLine [stream=1711708 nb=77 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited 1280[1734b00]: ReadNextLine [stream=1711708 nb=12 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 2 EXISTS 1280[1734b00]: ReadNextLine [stream=1711708 nb=12 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 0 RECENT 1280[1734b00]: ReadNextLine [stream=1711708 nb=34 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 1248386618] Ok 1280[1734b00]: ReadNextLine [stream=1711708 nb=32 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [MYRIGHTS "acdilrsw"] ACL 1280[1734b00]: ReadNextLine [stream=1711708 nb=22 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Ok 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:SendData: 3 getquotaroot "INBOX.Templates" 1280[1734b00]: ReadNextLine [stream=1711708 nb=38 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: * QUOTAROOT "INBOX.Templates" "ROOT" 1280[1734b00]: ReadNextLine [stream=1711708 nb=16 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: * QUOTA "ROOT" 1280[1734b00]: ReadNextLine [stream=1711708 nb=23 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: 3 OK GETQUOTAROOT Ok. 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:SendData: 4 UID fetch 1:* (FLAGS) 1280[1734b00]: ReadNextLine [stream=1711708 nb=33 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: * 1 FETCH (UID 1 FLAGS (\Seen)) 1280[1734b00]: ReadNextLine [stream=1711708 nb=33 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: * 2 FETCH (UID 2 FLAGS (\Seen)) 1280[1734b00]: ReadNextLine [stream=1711708 nb=23 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: 4 OK FETCH completed. 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:SendData: 5 IDLE 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL: entering 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/folderstatus%3E.INBOX.Drafts: = currentUrl 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: 5 STATUS "INBOX.Drafts" (UIDNEXT MESSAGES UNSEEN RECENT) 1280[1734b00]: ReadNextLine [stream=1711708 nb=22 needmore=0] 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:CreateNewLineFromSocket: + entering idle mode 3344[40e02c0]: ReadNextLine [stream=406a608 nb=66 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: * STATUS "INBOX.Drafts" (MESSAGES 0 RECENT 0 UIDNEXT 1 UNSEEN 0) 3344[40e02c0]: ReadNextLine [stream=406a608 nb=24 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: 5 OK STATUS Completed. 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: DONE 4012[40e0400]: ReadNextLine [stream=406a888 nb=21 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: 6 OK IDLE completed 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:ProcessCurrentURL: entering 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/appendmsgfromfile%3E.INBOX.Sent: = currentUrl 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 7 append "INBOX.Sent" (\Seen) {595687} 4012[40e0400]: ReadNextLine [stream=406a888 nb=6 needmore=0] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: + OK 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: Message-ID: <4A68E13C.3060907@sealtelecom.com.br> Date: Thu, 23 Jul 2009 19:16:28 -0300 From: Marco Varanda <mvaranda@sealtelecom.com.br> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: teste.m7@gmail.com Subject: teste 2 Content-Type: multipart/mixed; boundary="------------070902050501020103040108" 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 461m6fa eWjStgsxOeMVpZ6DpXJiLc75S4lTUJlhtmxyx6Ad65szSSKHBy27p7Vv6tAXt9+N205xVeyi sJbUtLtWRBlgT/KuvD2VO8dyJbi6NdbwYyDuU4zWznHesbTY1N68qKdmOK2ec1yYpL2hcdhC RsyBuHUUmBgKcjJpTjOPXihRgcfdAAArn6DFyN2DkHrQTtUk849KOrdenalNQMi25Y7uRx+e aUAr15Gec96XcMAg8EZxmlx0yenUVbYhxz0B7UtIOnt7UY71ncYtFFANACA8njGOKWiigQCi gDA6YoosAUUdvSikAUUUD2pgFHBpaTtQAUUA5opDDFFFHc0xBRRSDpzQMXHOaKKM5pAHeiii 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 36VBqVnBcrbWw+VJLhmYoeVbaxz7HNR2lzO2p2tndg/aYA5L9pF ATTACHMENT WAS SUPRESSED HERE gI6+Uvc+n5/5471YJKqx54Hp/h/T8O9VdAYIsmJ0iGcOvlROXKEgqcZAz1HXtWvbW0dojJGz kdfncseOev8Ah+HNTNwST0A/z0/p+HNL0znI469P5f0/DnNKUrgIeCeufXp/n/JHNIRkeg9f T/P/ANfrS4PP5Y6e/b/PpzSZwRn/AD3/AM/40kA7AwFxj/Of8/n1qEuFkAfaBng+vrx/n161 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=242 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. 3828[33fb940]: 4994c00:mail.m7info.com.br:NA:SendData: Logging suppressed for this command (it probably contained authentication information) 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=16 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok. 3828[33fb940]: 4994c00:mail.m7info.com.br:A:SendData: 2 select "INBOX.Drafts" 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: Yn/GtWin7RhYyRaarz/plsfT9 0T/WlNpqpP8Ax+W2PeI/41q0UudgZX2PVBn/AE23yeB+5P8AjQbPU8HF5bDt/qT/AI1q0Ue0 YGQLLVB/y+23T/nif8f8+9As9UB/4/LYjPeI/wCNa9FHOwMn7FqmP+P2246ZhJ/rSCz1Qf8A L5beo/cn/GteijnYGUbPU+15b+v+pP8AjTUtNS3Z+3QNjsYT/j/np0rXoxg0c7AyjZ6kSCLy 3wD/AM8T/j/n6cUC01P/AJ/Lb2/cn/GtWijnYzK+x6n3vLbPXPkn/wCKpPsWqHGL22Hr+5PX 8/8AP04rWo7cCjnYjJ+x6ngD7Zbe5EJ/xpPsWqAf8ftv9PJI/rWvRRzsZkmz1LHF5bf9+SP5 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: L0G++16ZHuYGWPKN+HQ/lWmeTxWTjyuzGDEIpLkADkknH41B9ttQcG6h5/wCmi03U+dMu wP8Ank38q5DQtOt9RmmSdmRUUFdpAySea0hBOLk2I7H7daZ5uYePVx/jT2uIFjWUzRhG+6xY AH8axT4ZsBz5s20D++v+FQeIrdLXQraGPcVjkABbBOMGmoRbSTA6JJI5E3ROrr6qc0ye9trY /v544yeQGPNYukzPD4WkljPzoJCuPXNZWiW9nezzNqExMnBCs+3fnOST3pqmtW9kB1ltfWlx IfIuo5Cf4Q/I/CrRIPtXMah4bDxo+nHa+eVZ/lx6g1tWDXMOmg6gR5sWcsDnKjv+VTOK3iwL 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=60 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=77 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=12 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 0 EXISTS 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=12 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * 0 RECENT 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=34 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 1248386535] Ok 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=32 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: * OK [MYRIGHTS "acdilrsw"] ACL 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=22 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Ok 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:SendData: 3 getquotaroot "INBOX.Drafts" 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: kUDA4wcChj8vpjoaiup1trWacgsI0LY9aW4EoOD zx7nijbkc9euaw7LSY762S61IyTzTDdjeQEHYAVNDa3NjDexGVpLQREwszZdDg5H0q3FLZiN WSJZVKugdSOQw4NQQafZwNugtoo3/vKgBrA0ywsLjT4pbi6bzXXLKbjHP0q1qcEVr4ekW0lY oZFO4ybu4zzVctnypgbpXp1pRnqcdKwL7TLWzspbiC7nhljQsrCbqfStbT5XmsbeWZSJHjBI I7kVDWgyznijoM1ihJtU1G7T7VcQW1uwjAhO0s3ck02K6vorTULVN1xd2rBY2I5ZW6E+4FPk 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=35 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:CreateNewLineFromSocket: * QUOTAROOT "INBOX.Drafts" "ROOT" 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=16 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:CreateNewLineFromSocket: * QUOTA "ROOT" 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=23 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:CreateNewLineFromSocket: 3 OK GETQUOTAROOT Ok. 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:SendData: 4 IDLE 3828[33fb940]: ReadNextLine [stream=30e4c48 nb=22 needmore=0] 3828[33fb940]: 4994c00:mail.m7info.com.br:S-INBOX.Drafts:CreateNewLineFromSocket: + entering idle mode 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: TLyKWTyIT tlkhByh2gZxTrcW9xqlmIb67vmjJcksCkYx3OO9b8isImsLyOytNSnkDMqXjgAdSTgAVci1G f7VFDeWUluZsiNgwdSfQ46GsqN0j03UvOt2nhN6yuF4Kg4+b8KW3uVi1G0h0/UZbyNm+eJ/m 2rjruxxQ4J3Y7nTe5qvZztcW4kkgeBskbH69f60RXUU880CFt8JAfK9M9OaLO7ivbcTQ7mQk j5hjkVhYZBrFzJa6fI0RxK5EUfHRjxmklhubSxih05YTsUgtKSMe/uc5qHxBlILSUjKRXKM3 sOma03HGT2BxzV6JIRn6A7S6RA0jFmO4kk5P3jVW5l1Bda09ZzEkDSMFWJid3B+9Vjw7/wAg 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: olwi90LjgDoKXHWm4zk5PNLgdqgoXsKOTnjjtSc4OOvrQDjgnnpQA cZ6jg+tKfoMij1pAgySBzQAuA3XrSkZPUg0m3GcDrR6AjIpXAXFAHA9aQ8jHNHOBnr3oAWjv RgHAPSjvSAO2etHHHtQ2Mc9KQcqfQ0wAn2PPanfzpoGTnmnUNgIBzRkMCBS0d6QCAd+KXn2o 6+2KRcHpQAtJjHSlJxkngUH0zzSAKBzRgZpO+KAHUnFID0zR0BpgAAI4HFLiijJoAQ8A+1Az 1x+FGeM0DjrQAdTTf4uvtil781U1O7NjYTXIUSGMAhScZ5px1dgLJIJy3XoKd2rFk1O/jtxd 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: gDj5m9s+n+R+VH/AAkp+fFt jqcFvb/P4VtiwtFOBbxDAGAFHY5H60q2NpnAt4/lx/D75H680uan2DUw28Sup5tsDn+L27/j +n5Uv/CSsRzan8G9s/z/AE/Ktr7FbAgCCLt/COxyP15oFlag4+zxe3yj1z/Pmjmp9g1MVfEx 4/0br1+bpx/n8PfigeJWOP8ARgemcN7f5/D34rb+xW2cfZ4sYwfkHrn+fNDWVtg5t4iP90dz n+fNHNT7BqYY8TM2B9mB6dG9vp/ke/FC+JnB2m0A6dG9q3TZWpyDbxHOc5Uc5OT+vNK1nbNn dbxHOc5Uc5OT+tLmp9g1MIeJmAG609MlW4564/p+PSkXxI3Ba2zkrwCc9Ocf0/HpW4bO3fO6 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: M/hn7QX/ei3chh1yMgGiilJL8QILlLi30MX6X92ZhEJMM4Kk/THSryXEr6zGhc+W1pv KDpu3daKKc0gKVp9ov7CW9kvbmOUbtqxsAowT2x7d60tHuZLzTIJ5seY684GAcGiipqpJAXy KTqRRRXOhnOeG2zf6rwBmUZx9WrTnmkXWLCEORHIspdfXAGKKK6Jr3n/AF0Ein4eu57u1u/P cs0cjBW74qFLm4nstIja4kU3TMJZFIDEDPftRRTsuZgTpJLZ3d5biaSaOKESp5p3EE54z6cV TZ7iPQl1UXlwbgqHKlhs69NuOlFFWkrsRcfzrjVfIFzNDGLdX2xEDJLH1BqrJdXNumqwCd5D 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:SendData: 4012[40e0400]: ReadNextLine [stream=406a888 nb=0 needmore=1] 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 804b000e 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:TellThreadToDie: close socket connection 4012[40e0400]: 4934c00:mail.m7info.com.br:S-INBOX.Sent:CreateNewLineFromSocket: (null) 0[1730140]: creating protocol instance to retry queued url:imap://mvaranda@sealtelecom.com.br@mail.m7info.com.br:143/appendmsgfromfile>.INBOX.Sent 0[1730140]: retrying url:imap://mvaranda@sealtelecom.com.br@mail.m7info.com.br:143/appendmsgfromfile>.INBOX.Sent 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL: entering 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL:imap://mvaranda%40sealtelecom%2Ecom%2Ebr@mail.m7info.com.br:143/appendmsgfromfile%3E.INBOX.Sent: = currentUrl 4012[40e0400]: ImapThreadMainLoop leaving [this=4934c00] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: 6 append "INBOX.Sent" (\Seen) {595687} 3344[40e02c0]: ReadNextLine [stream=406a608 nb=6 needmore=0] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:CreateNewLineFromSocket: + OK 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: Message-ID: <4A68E13C.3060907@sealtelecom.com.br> Date: Thu, 23 Jul 2009 19:16:28 -0300 From: Marco Varanda <mvaranda@sealtelecom.com.br> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: teste.m7@gmail.com Subject: teste 2 Content-Type: multipart/mixed; boundary="------------070902050501020103040108" 3344[40e02c0]: This is a multi-part message in MIME format. --------------070902050501020103040108 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------070902050501020103040108 Content-Type: application/pdf; name="090608 - 0029 - Telecom FernandoRJ-DSkit-AnaLucia.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; 3344[40e02c0]: filename*0="090608 - 0029 - Telecom FernandoRJ-DSkit-AnaLucia.pdf" JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURl Y29kZT4+CnN0cmVhbQp4nHXMUQqAIAyA4XdP4Qlsm07nexewK/Qc4f1fQisaxBiMiR9/9xCQ ATTACHMENT 2 [details] [diff] WAS SUPPRESED HERE TOO uMYwvp0/LNHNT7BqYreJmViDbHjIGW/n/X+tK/iUqGza9MgAt/P+v4VsrYWgK4t4htxgBemO 3344[40e02c0]: n5ZoFjbIo228eRj+H06flk0c1PsGpiN4oxkC14GQMt7d/wCtO/4Sc9rb16t7d/6+3rWyljaq BtgiGMY+Xpg5H8zSrY2qkFYIhjGPlHbkfrRzU+wamIfExAJFp 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:SendData: clearing IMAP_CONNECTION_IS_OPEN 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:TellThreadToDie: close socket connection 1280[1734b00]: 2e5ec00:mail.m7info.com.br:S-INBOX.Templates:SendData: 6 IDLE 1280[1734b00]: ImapThreadMainLoop leaving [this=2e5ec00] 3344[40e02c0]: 47a3000:mail.m7info.com.br:A:ProcessCurrentURL: aborting queued urls 3344[40e02c0]: ImapThreadMainLoop leaving [this=47a3000]
Whiteboard: [needs protocol log] → [has protocol log]
(In reply to comment #6) For paste of lo---ng log data by Marco Varanda... Marco Varanda, never paste such long data to bug. It makes reading/following of this bug very hard. Marco Varanda, open separate bug for your problem, with attaching log file to the separated bug, with clear problem description like comment #0, please. Note: As seen in Bug 413240 Comment #21, some peoples reported experience of endless "Copying to sent folder" with IMAP, but no one provided data such as IMAP log, conditions problem occurred, ... yet. You report is very valuable for problem analysis, because you provided IMAP log. Marco Varanda, open separate bug, please. To Mark Pappin(bug opener): Because of paste of long log data, this bug is almost useless because this bug is hard to read/follow. Can you open new bug with clear description like your comment #0, with attaching IMAP log, if you can still reproduce your problem. If you'll open new bug, close this bug as DUP of the new bug, please.
OK WADA Sorry, I´ll do what you suggest Thanks
FYI. Marco Varanda has opened Bug 510695 for problem of Comment #6, with attaching IMAP log.
I have the same problem with Thunderbird 3.04 on Windows 7 and OSX 6. The IMAP is running on a Windows Exchange 2003 server. I've tried reducing the maximum number of server connections to 1. I've tried direct IP address to the server when on the internal network, as well as remote URL for the server when outside of the network. I've tried changing the drafts folder to a local folder to reduce network traffic. Please fix this!
I have the same problem with Thunderbird 3.1.2 and Windows XP+SP3, or Windows 7 /X86. The problem seems to be worse with Windows 7. In my case, I have seven IMAP accounts in Thunderbird, with most of the servers running the qmail MTA. One of the IMAP accounts is with gmail, and another with Yahoo mail. The problem is very hard to reproduce consistently, but seems to be related to an IMAP timeout or temporary network congestion on DSL accounts. The only way to recover is to restart Thunderbird, and then the sent mail is lost. If there is anything I can provide or do to help to get this problem fixed, please let me know.
Logging enabled with environment variable NSPR_LOG_MODULES=imap:5 . Will post the log the next time it happens.
Please refer to bug 589973. While that is a different bug report, once logging was enabled for this bug and bug 589973, after three days of usage, TB did not hiccup even once. Before logging was enabled, the failure to store the sent message would occur within a few hours. I am running TB from a batch file for debugging purposes. Below are the entries in my batch file: set NSPR_LOG_MODULES=imap:5 set NSPR_LOG_FILE=%APPDATA%\imap.log C: cd "C:\Program Files\Mozilla Thunderbird" "C:\Program Files\Mozilla Thunderbird\thunderbird.exe" If anyone else is experiencing the same bug, it would probably move things along if you could confirm (or not) that running TB from a batch file with logging enabled gives you similar results - that is, the problem disappears.
(In reply to Wayne Mery (:wsmwk) from comment #14) > > and provide an imap protocol log please. > > but please post an update even if you don't see the problem any more. Wayne, My problem (and I presume Lee's) occurs only when debugging (as per the environment variables) is NOT enabled. Please refer to comment #11 through comment #13. Once you set the environment variables, and a log capture is started, the problem NEVER shows up. Accordingly, the log is useless, because everything in it is as expected. I think bug 589973 is related. I will be putting in an IMAP proxy to capture the protocol log independently of TB's, and I will try to capture the traffic when TB's debugging is off. I have enlisted an IMAP programmer from an email services company to help with the log interpretation, but I need someone who can read the TB C++ code if any anomalies are spotted. Can you help?
(In reply to Peter Walter from comment #15) > someone who can read the TB C++ code if any anomalies are spotted. Can you > help? We'll help, please post results in the bug :-) and ask questions too.
(In reply to Ludovic Hirlimann [:Usul] from comment #16) > (In reply to Peter Walter from comment #15) > > We'll help, please post results in the bug :-) and ask questions too. Thanks, Ludovic. I am pleased to "meet" a distinguished member of the awesome TB team. I note that you xref'd bug 413240. Would you consider also xref'ing bug 589973? I think that bug is related because the abnormal behavior in that bug also goes away once you turn debugging on. I note the status of this bug is now at NEW. Nevertheless, could someone try to replicate this bug as in Lee's comment #10 and my comment #13? Doing so would eliminate the tiny possibility that the problem is related to my software / hardware environment.
I've confirmed it. It seems to be one of those bugs triggered by poor internet connectivity. Its similar to Bug #544837
Removinf "[has protocol log]" in Whiteboard:, because Bug 510695 was opened(closed as INCOMPLETE though) for lo---ng IMAP log of comment #5, and because required IMAP log is still not provided by bug opener. To bug opener, do you still see your problem of comment #0?
Whiteboard: [has protocol log]
I don't know if Mark is still around, but I'm seeing this bug - its not consistent, and seems to be associated with poor internet connectivity, or possibly because something else is locking the folder (I have the setting where it copies the message back to the same folder as the Inbox).
poor internet connectivity is the most likely culprit, for the imap case.
Right - so the question is why the operation fails and if it fails then the retry ALWAYS fails, the Send works fine so its not a bandwidth issue, it sounds more likely that something in the Save is handling errors/delays different than the routine in the Send.
This worked for me: https://getsatisfaction.com/mozilla_messaging/topics/message_failed_to_copy_to_sent_folder (For the account settings, go to Server Settings > Advanced > Maximum number of connections to cache, enter 1 there.)
If other people are seeing this, then maybe that should default to 1 ? BUT ... more importantly it is clearly a bug that the repeats fail, i.e. that Send is somehow getting mucked up so the Retry won't work no matter if the internet connection is working better.
Maybe the problem looks like this: Open connection A for sending the message Open connection B for copying to Sent -> B refused by server Send message via A Save message via B -> fails Retry saving via B -> fails again Retry again with B -> still fails etc.
Hello I have the same problem. Setting "cached connections" to 1, switching STARTTLS or SSL, disabling Message Synchronizing doesn't change anything. I have excellent internet connection. The only solution for me is to place Send folder in Local folders. I've noticed that problem only occurs when sending more than ~100kB mail. Small text emails are sent properly. My TB version: 16.0a1, Linux i686 Some of my IMAP log -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:ProcessCurrentURL: entering -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:ProcessCurrentURL:imap://...%40o2%2Epl@poczta.o2.pl:143/appendmsgfromfile%3E/Sent: = currentUrl -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:SendData: 56 append "Sent" (\Seen) {92847} -1589650624[9af6f320]: ReadNextLine [stream=a4ee1988 nb=6 needmore=0] -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:CreateNewLineFromSocket: + OK -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:SendData: Message-ID: <4FEC36A0.30707@o2.pl> Date: Thu, 28 Jun 2012 12:49:04 +0200 From: =?UTF-8?B?TWljaGHFgiBQcnpla29wb3dza2k=?= <...@o2.pl> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/16.0 Thunderbird/16.0a1 MIME-Version: 1.0 To: =?UTF-8?B?TWljaGHFgiBQcnpla29wb3dza2k=?= <...@o2.pl> Subject: test_doc Content-Type: multipart/mixed; -1589650624[9af6f320]: boundary="------------060105020102020606000705" This is a multi-part message in MIME format. --------------060105020102020606000705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit -- pozdrawiam Michal --------------060105020102020606000705 Content-Type: application/msword; -1589650624[9af6f320]: name="KKL - informacja o leasingobiorcy - AZF-1.doc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="KKL - informacja o leasingobiorcy - AZF-1.doc" --------------060105020102020606000705-- -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:SendData: -1589650624[9af6f320]: ReadNextLine [stream=a4ee1988 nb=0 needmore=1] -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 804b000e -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:TellThreadToDie: close socket connection -1589650624[9af6f320]: 9af15000:poczta.o2.pl:S-Sent:CreateNewLineFromSocket: (null) -1220565248[b7117270]: creating protocol instance to retry queued url:imap://...@o2.pl@poczta.o2.pl:143/appendmsgfromfile>/Sent -1220565248[b7117270]: retrying url:imap://...@o2.pl@poczta.o2.pl:143/appendmsgfromfile>/Sent -1496319168[9c1c13a0]: ImapThreadMainLoop entering [this=9a3fe000] -1220565248[b7117270]: 9a3fe000:poczta.o2.pl:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN -1589650624[9af6f320]: ImapThreadMainLoop leaving [this=9af15000] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:ProcessCurrentURL: entering -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:ProcessCurrentURL:imap://...%40o2%2Epl@poczta.o2.pl:143/appendmsgfromfile%3E/Sent: = currentUrl -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=114 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 IDLE CHILDREN NAMESPACE UIDPLUS STARTTLS MOVE XAOL-MOVE XAOL-OPTION ID QUOTA] o2 imap -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:SendData: 1 STARTTLS -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=40 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:CreateNewLineFromSocket: 1 OK Begin TLS negotiation now. Or die -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:SendData: 2 capability -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=92 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:CreateNewLineFromSocket: * CAPABILITY IMAP4rev1 IDLE CHILDREN NAMESPACE UIDPLUS MOVE XAOL-MOVE XAOL-OPTION ID QUOTA -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=27 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:CreateNewLineFromSocket: 2 OK Capability completed -1496319168[9c1c13a0]: try to log in -1496319168[9c1c13a0]: IMAP auth: server caps 0x404CA625, pref 0x0, failed 0x1006, avail caps 0x0 -1496319168[9c1c13a0]: (GSSAPI = 0x1000000, CRAM = 0x0, NTLM = 0x20000, MSN = 0x0, PLAIN = 0x100000, LOGIN = 0x0, old-style IMAP login = 0x200000)auth external IMAP login = 0x0 -1496319168[9c1c13a0]: trying auth method 0x4 -1496319168[9c1c13a0]: got new password -1496319168[9c1c13a0]: IMAP: trying auth method 0x4 -1496319168[9c1c13a0]: old-style auth -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:SendData: Logging suppressed for this command (it probably contained authentication information) -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=24 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:NA:CreateNewLineFromSocket: 4 OK Login OK, welcome -1496319168[9c1c13a0]: login succeeded -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:SendData: 5 ID ("name" "Thunderbird-Trunk" "version" "16.0a1") -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=29 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:CreateNewLineFromSocket: 5 OK ID finished. Thank you -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:SendData: 6 append "Sent" (\Seen) {92847} -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=6 needmore=0] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:CreateNewLineFromSocket: + OK -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:SendData: Message-ID: <4FEC36A0.30707@o2.pl> Date: Thu, 28 Jun 2012 12:49:04 +0200 From: =?UTF-8?B?TWljaGHFgiBQcnpla29wb3dza2k=?= <...@o2.pl> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/16.0 Thunderbird/16.0a1 MIME-Version: 1.0 To: =?UTF-8?B?TWljaGHFgiBQcnpla29wb3dza2k=?= <...@o2.pl> Subject: test_doc Content-Type: multipart/mixed; -1496319168[9c1c13a0]: boundary="------------060105020102020606000705" This is a multi-part message in MIME format. --------------060105020102020606000705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit -- pozdrawiam Michal --------------060105020102020606000705 Content-Type: application/msword; -1496319168[9c1c13a0]: name="KKL - informacja o leasingobiorcy - AZF-1.doc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="KKL - informacja o leasingobiorcy - AZF-1.doc" --------------060105020102020606000705-- -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:SendData: -1496319168[9c1c13a0]: ReadNextLine [stream=9b6af488 nb=0 needmore=1] -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 804b000e -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:TellThreadToDie: close socket connection -1496319168[9c1c13a0]: 9a3fe000:poczta.o2.pl:A:CreateNewLineFromSocket: (null)
I have the exact same problem. Appears on x86 Win Vista, Win 7, 64 bit Win 7 etc. It appears across ALL my 4 accounts using different IMAP servers: MS Exchange, Google, freehostia etc. I am about to stop using thunderbird since this is a very big issue appearing EVERY DAY after a while. It seems to become worse with time. Once it starts appearing it often DOES NOT GO AWAY until I reboot the machine (sometimes it does, but rarely). This shows that there must be some network-stack related state that gets set somehow and then messes up everything. I have seen this bug posted since 2006 or so and I am very surprised to see no-one having fixed it yet. Of course I have tried all the custom settings for connections, timeouts, number of connections to cache etc etc. Been spending the past 2 weeks trying to fix it. I debugged it also and it is very difficult to tell what is going on. I am not going to post the debug log since it is clearly a systemic problem that thunderbird is having across the board. Please please fix this, since it is a big problem and drives people away in droves ... i know of 3 other people in our department that switched to MS Exchange because of this.
(In reply to David :Bienvenu from comment #22) > poor internet connectivity is the most likely culprit, for the imap case. 1Gb/local internet. What do you consider poor. When it does happen (which is rarely) it's almost always a large email. Problems 1) default message/read write length to a) IMAP (but not as bad as ... b) Sendmail (4-8k --- I've watched TB drive a large file to Sendmail... take easily 30-60 seconds (large measured in 10's up to 100MB -- but given bug, anything over about 20-30 is prohibitively slow). c) Writes to local HD's which may be networked -- 4-8k each -- All of it adds up... If I am on my server and do a "stat" on a file -- it will tell me the optimal I/O size for that file -- and for any file <768k, the size = the whole file. This is with a 1GB local internet connection -- it would be painfully worse if I used a normal ISP...
Had this in the past. Was fixed after a full reinstall of Thunderbird (distro change) and reoccured now with TB 17.0.4. I expect the reason was maybe a corrupt IMAP-folder-cache or so. But also deleting all local IMAP-cachefiles didn't help :-(
This is not fixed. It's December 2013 and this is still happening. I send a message. Sometimes it has to retry two or three times. Then it freezes while trying to copy a simple message to the Sent folder.
Clarification of above: It seems to actually save the message even though it doesn't think it has.
Switching from SSL to STARTTLS, or plain text just breaks for me. The problem is only happening on Thunderbird on Windows for me. It does not happen on Thunderbird for Linux, or on the BlackBerry mail client. It is not the network; it works fine on my mobile (BlackBerry OS10 default mail client), my laptop (Debian Wheezy with Thunderbird) on other networks and even on LTE, 3G, and HSPA+. Setting the number of cached connections has minimal effect on the problem. One email __MIGHT__ get through after I change it to 1 cached connection from the default of 5, but then I can't get any more through. I'm using Thunderbird 17.0.7 on Windows. Sometimes rebooting my modem seems to fix the problem, most times it doesn't (could just be coincidence). I can provide a Wireshark packet capture, if it would help. I've tried removing the account and recreating it, to no avail. This problem only happens on Gmail for me. It does not happen for any other IMAP accounts. All of my other IMAP accounts run on a Dovecot 2.1.7 server. Size of emails does not matter. It even happens on emails with a subject line of 'test' and a body of 'test'.
Just a further clarification. Opposite to meshepley@aol.com, it doesn't actually save the message for me.
New computer with Windows 8, the MS mail client included was junk. Downloaded Thunderbird and got the "message was sent but copying to sent folder failed" error. Here is what I did to resolve it for myself: - Deleted "Sent Items" folder. - Created a "SENT" folder under "Local Folders" - Go to Options/Account Settings/Copies & Folders/ - Under "When sending messages, automatically," check "Place a copy in:". Check "Other". Use Local Folders, then find the new "SENT" folder you created. Click OK. Now, your sent messages appear under Local Folders in SENT. Worked for me :)
On my system the bug can be averted by opening the IMAP Sent folder before sending mail. This will make Thunderbird login to the account and thus sent mail can be stored. Without this manual action, Thunderbird will not open the IMAP Sent folder before trying to copy messages.
Darn it. I have the same problem (TB 24.3.0 running on Windows 7 Home Premium). Server is a Courier ESMTP/IMAP install running on Debian Wheezy. I have been using Courier ESMTP/IMAP since 2001 and never experienced similar problems with any other IMAP client for the past 13+ years (including TB on Linux). Installed TB a couple of weeks ago on a Windows laptop that I use now and then. The problem showed already on the first day (tested with None, STARTTLS, SSL/TLS - makes no difference). As observed by others, I also only see the problem with emails bigger than 100KB(ish). Doesn't happen always, but often. Haven't found a pattern yet.
I am having a similar problem. I have TB24.3.0 running on Mac OS X 10.9.2. TB takes a long time to save to the Sent mail IMAP folder. It usually succeeds in about 1-5 minutes; it sometimes fails. I find that two things help temporarily: (i) If I repair the folder, I don't have problems for most of the day. But then it starts misbehaving the next morning. (ii) If I open the Sent folder just before sending the mail, it seems not to happen. I haven't tried (ii) enough number of times to be sure.
(In reply to Jon Murdock from comment #35) > Now, your sent messages appear under Local Folders in SENT. > > Worked for me :) ---- So your solution is to no longer use IMAP for your Sent messages. I see no indication that the FF developers ever fixed the most likely cause -- too small packet size for the network. This is an illustration of the problem using 'dd' to transfer packets of a given size (read and write). Speeds are MB/s R, then write for a given packet size. Same amount is transferred in each test... only variation is the packet size. Last I measured (which was some time ago,T-bird used a TCP packet size to talk over the net. I couldn't time that small of a packet, it would have taken too long in this test: These are speeds on a 10Gb dedicated line, but background processes on both systems were still running: size Read Write 128M 10.04s, 428 MB/s, 6.58s, 652 MB/s 64M 9.74s, 441 MB/s, 6.68s, 642 MB/s 32M 9.50s, 452 MB/s, 6.79s, 632 MB/s 16M 9.79s, 439 MB/s, 7.11s, 604 MB/s 8M 9.44s, 455 MB/s, 7.36s, 583 MB/s 4M 10.77s, 399 MB/s, 7.57s, 568 MB/s 2M 11.68s, 368 MB/s, 10.20s, 421 MB/s 1M 11.91s, 361 MB/s, 9.45s, 455 MB/s 128K 19.02s, 226 MB/s, 20.75s, 207 MB/s 64K 29.043, 148 MB/s, 33.01s, 130 MB/s 32K 56.46s, 76.1 MB/s, 60.91s, 70.5 MB/s 16K 109.92s, 39.1 MB/s, 110.15s, 39.0 MB/s 8K 198.86s, 21.6 MB/s, 234.77s, 18.3 MB/s --- 4K would have been maybe around 800 seconds or greater looking at the degradation. With 1Gb, my top speeds were 119MB/125MB, so the differences weren't as extreme, but my machine was slower then too... so it still fell off pretty bad @ 4k packet sizes. The above was over CIFS/SMB with a Samba server at the other end. iMAP is not nearly so optimized for speed. The overhead/packet is a major killer in network communications. Encryption makes it worse (BTW -- those samba speeds are unencrypted... as the line is direct link (no switches or routers). Encryption will usually add a significant penalty in this instance, as the speed becomes limited to about 170MB by the CPU power. -- i.e. the scarce resource here is CPU. With encryption using 100% cpu @ around 170MB, that leaves even less for per-packet overhead processing which is why a small TCP R/W sizes are a killer. FWIW, I am using 9k-ethernet frames (I'd use larger if I could, but can't w/my HW). @10Gb, interrupts start taking alot of cpu away from file transfer as packet size shrinks. The best single thing Tbird could do to improve speed would be to increase it's TCP read/write size to as large as possible up to ~8M. That would benefit. If you are on a modem @ 56k or have an unreliable network, then lower packet sizes can be beneficial, but on internal networks, not very much. Ideally, it would be controlled by a setting in about:config, with a max of maybe 64M? Memory is cheap these days...
I have been experiencing the same problem during the last few days as well. I use Thunderbird as my interface for my work email on several computers and it is vital that ALL emails are saved to my "sent" folder so that I have good records of my correspondence. This error occurs on all computers I use to access my email. Not OK.
Hi! I changed smtp to starttls and it worked fine! It fails only once in a week. Gmail allow it and it seems better than SSL.
Component: Message Compose Window → Networking: IMAP
Product: Thunderbird → MailNews Core
Whiteboard: [dupeme?]

Daan writes "No I am not using this setup anymore so I am not able to reproduce. It might still exist but I'm unable to verify."

I still this pretty regularly - its usually noticeable when my connection is poor quality - e.g. in a cafe or tethered to my phone - messages transmit, but the save fails. Sometimes hitting Retry works, sometimes it doesnt.

Even worse - unlike "Send Later" there is no way that I can find to make it try and save later, so you have to keep hitting Retry to make the dialog go away, or lose your local copy.

Hello,

I'm surprised to see that this bug is still open after more than 10 years...

It keeps happening for me, from time to time, on two different IMAP servers now. It's VERY annoying when it happens : the only way to male it work is to alternatively click "Retry" - or better hit Alt+R, and select the Sent folder with the mouse to open it. You need to do this quickly because as soon as you click "Retry" the error window reappears immediatly - you only have a few 1/10th of seconds to open the Sent folder and click on a mail inside (try and retry until you're able to select a mail in the Sent folder with the mouse).
Once you're able to do this, and once TB has made an IMAP connection to the Sent folder manually, the error message eventually vanishes, and you can see the sent message in the list.

It also happens on the "Draft" folder sometimes. Less probematic, because after clicking "Retry" you have a few seconds to access the Draft Folder manually and make it work again.

I would be happy to help if I can, as this is driving me nuts...

Thanks !

Severity: normal → S3

Hello,

Still appears on 102.10.0 (64 bit), Win11.
I will check with setting (Maximum number of connections to cache) and set 1 for 2 IMAP accounts.

If the problem appears again I will update.

BR,
Robert

Practically all of my users (in different offices in different companies) have always experienced this from time to time.
However, with v115 it got much worse: I'm receiving daily calls from people who can't save their sent mail because they got stuck in retry/abort loop. The more fortunate one get it saved in a local folder (and unless they move those messages to the IMAP account, they won't reach backups).
I understand this is most probably due to connection problems, but most of them are on the same LAN as the IMAP server.
Windows and Mac versions seem to be equally affected.
Unfortunately it's not easy to get a log because it doesn't deterministically happen and these computers are mostly remote for me.

Has anything changed radically in the IMAP code from 102 to 115?

Just wild guessing (and notice I don't know anything about TB's internals)...
I bet ThunderBird "lost" the IMAP connections to the server (either the server dropped it, somehow the client changed IP, the Internet line had a disconnection, a stateful firewall is in the middle... whatever reason):
_ does it try to keep them open with some keep-alive?
_ is so, if the user left it idle for a while, would then it detect such connections were dropped?
_ given there should be no problem in reopening them, it seems it does so when a user visits a folder, but not when it sends a mail.
Does the above make any sense?

Same problem here with 115.4.x! Here is some logging when trying to save a draft email:

...
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:SendData: iteu8LsV2yoTgEfMTnA7gDnisVszeW6QzQdbtRqlx4deAW
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:SendData: wjYyx/311nH6GGus
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:SendData: 
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 804b000e
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:TellThreadToDie: close socket connection
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:CreateNewLineFromSocket: (null)
[Parent 27910: IMAP]: D/IMAP URL failed with code 0x804b000e (imap://XXXXXX@imap.secureserver.net:993/appenddraftfromfile%3E/Drafts%3EUID%3E)
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:ProcessCurrentURL: aborting queued urls
[Parent 27910: IMAP]: I/IMAP 7fc65dd1e600:imap.secureserver.net:S-Drafts:ImapThreadMainLoop: idlePending set
[Parent 27910: IMAP]: I/IMAP 7fc67a505400:imap.secureserver.net:S-INBOX:SendData: DONE
[Parent 27910: IMAP]: I/IMAP 7fc67a505400:imap.secureserver.net:S-INBOX:SendData: 55 logout
[Parent 27910: IMAP]: I/IMAP 7fc678e17f00:imap.secureserver.net:A:SendData: 121 logout

Hopefully there will be some fix soon...

Hello,

This issue is blocking user activity randomly while sending email messages (let's say some of the messages are urgent).

Firstly reported on 4th Dec 2007 and this issue has not been resolved after so many years...

TB version 115.4.3 64bit.

Flags: needinfo?(vseerror)
See Also: → 1508649

Addendum to my comment above: I had complained to my mail provider (DomainFactory) that sending mails with large attachments very often failed. The Windows mail client seemed to work without any problems, but working with Thunderbird was a disaster. The mail provider escalated my complaint and after a few days I received a message that "a patch" had been applied to the mail server so that the problem should no longer occur with Thunderbird - which was indeed the case! Sending mail with Windows' own mail client still seems to be a bit faster, but working with my beloved Thunderbird is possible again. Thunderbird seems to be somehow more sensitive to certain mail server settings.

Andrea, is version 128 better?

Flags: needinfo?(vseerror) → needinfo?(ml)

(In reply to dxtr80 from comment #48)

This issue is blocking user activity randomly while sending email messages (let's say some of the messages are urgent).

Thanks for your reply over at Bug 1508649 where you referenced this bug report.
Can you be more specific as to what the problem you are having is?

Firstly reported on 4th Dec 2007 and this issue has not been resolved after so many years...
TB version 115.4.3 64bit.

Lots of work has been done to improve the "save to Sent" functionality since then. If it fails for some reason (e.g., server timeout while appending the message to imap mailbox as shown in comment 47 above), you should be able to retry the append or save the message to Local Folders. So a message composed and then sent should never be lost.

That still seems strange behavior .... if I am offline, I can "send Later" and it will resend when connected; and I can also append a message to a folder (such as Sent) and have the synchronization occur when I go back online.

Shouldn't failure to send be handled similarly, i.e. yes warn me, but it shouldn't explicitly saving to some specific Local Folder, the default should be to save locally to Sent and synchronize once connectivity is restore.

Generalizing this, I'm often working in low connectivity environments - cafe's, airplanes, developing countries, etc etc, TB does a fairly good job when online, or when offline, it has historically done a poor job of handling things when it thinks it is online but an operation fails (because in reality something in the internet is down)

Shouldn't failure to send be handled similarly, i.e. yes warn me, but it shouldn't explicitly saving to some specific Local Folder, the default should be to save locally to Sent and synchronize once connectivity is restore.

I think you mean "failure to save to Sent folder". That sounds like a good idea. I'll look to see if something like that is possible.

I meant both actually - failure to send should queue for later, and failure to save should append the the box and send later.

Failure to send results in an error dialog suggesting you make sure your network is good and your SMTP server info is configured correctly. When you click OK on this dialog (the only option) it returns you to the "compose" window. Here you can try to send again or optionally queue to "Send Later". So your suggestion for "failure to send" is already implemented.
But maybe you are suggesting that "failure to send" results in automatic "send later" queuing and that the message be auto-sent when access to SMTP becomes good. This would require periodic retry of the send to SMTP server using the message stored in Local Folders/Outbox.

... failure to save should append the the box and send later.

Just to be, hopefully, clear, there is no attempt to "save to Sent folder" unless the send to SMTP server actually successfully occurs. So there is no reason to "send later" when the save fails.
Maybe you are suggesting that when save to sent there are now 4 options (one new option):

  • Retry save to Sent Mail folder and Sent Mail imap mailbox
  • Save to Local Folder
  • Save only to Sent Mail folder (new)
  • Don't save at all

So if "Save only to Send Mail folder" is selected, the message would have to be stored to the mbox/maildir offline store file and then imap appended to the Sent Mail mailbox when the imap server becomes accessible. If the user doesn't use offline store, it would have to be kept in a temp file. In either case, the server would have to be "polled" to know when it has become accessible again so the message can be imap appended.

and I can also append a message to a folder (such as Sent) and have the synchronization occur when I go back online.

That doesn't currently always work (especially when offline store is not in use) when the message is to be imap appended which uses a different URL, "appendmessagefromfile" vs. "copyonline" URL when you just copy/move an existing messages within an account. So probably not easy to make what you suggest actually work, but it may be possible (and require more research).

Hi Gene - fair points.
A dialogue once makes sense for this kind of issue - however it comes up on every message sent - unless you tell TB its offline, in which case no messages get sent until you remember to manually tell it to go online again. Maybe a checkbox "don't ask again" would be good, as seen on many repetitive dialogues. It could also be don't ask again until its been online and sent all the messages waiting, or until a TB restart (which might not be as good, since I guess many people like me leave TB running all the time, especially given the multi-minute startup times on Macs).

Note that the point about automatic retrying i don't believe is valid, because I'm pretty sure it does this check anyway if there are "Send Later" messages, and then sends them all automatically.

I agree - if the message hasn't been sent it shouldn't be saved in Sent folder, only once a Send occurs.

For the case where sending is successful, but "Save to Sent" failed - which is surprisingly common, I am NOT suggesting two options: "Save to Local Folder" and "Save to Sent", I am suggesting that Save to the local Sent folder (and automatic synchronization) is what you always want. This means that this temporary failure is no different (in final result) from a normally successful "Save to Sent". In fact, I can't see why any of the other options exist, or why the user even needs to know, since this behavior is exactly what happens if I move messages around folders when in a poorly connected environment, i.e. the background synchronization of client and server happens automatically.

You could also go one step further - in a message send there are two potentially length dialogues - the Sending process itself which is reasonable, and the "Save to Sent" which I would suggest does not need to be a dialog, just save locally to the Sent folder and synchronize in background like for all other folders.

I'm not sure what you mean by "when offline store is not in use", I've only ever used TB with full local copies of remote folders, and AFAIK that synchronization process works for all other IMAP folders, or at least should do. Am I understanding you right, that
a: its not the folders that get synchronzied, its the set of imap commands to move messages, and
b: putting a message into the Sent folder - the first time (after a successful send) - is different from moving messages between folders (or deleting messages) which is what other interactions with the Folders do.

I'm not sure what you mean by "when offline store is not in use"

TB allows you to just let the server do the full messages body storage and TB just stores locally important headers, Subject, Data, Sender etc. The headers are encoded in TB's .msf files. Only if offline store is wanted for a folder is the full message stored in TB's mbox files (E.g., Sent). Of course, the default setup is what you are using where all the folder have offline store, but many users (for example, me) mostly just leave everything on the server and don't store many folders locally in "offline store" mbox (or optionally, maildir) files.

You can set individual folder to have or not have offline store using right-click/properties/synchronization or you can using Settings/Sync & Storage/Message Synchronization to set all folders to have storage or not and then Advanced button to select individual folders.

So it still would be necessary (or at least good) to provide an option to save to Local Folders when the user has no "Sent Mail" mbox file to save the sent message into.

I'm not exactly sure how this works but I think when you move or copy a message inside the same imap account and you have offline store for the destination folder, TB first copies the message to the destination mbox file and adds the header to the .msf file and tells the server to do an imap copy or imap move. If the imap command succeeds, we are done and the messages in the destination folder does not need to be fetched. (Or maybe the imap copy/move occurs first and the .msf and mbox are not updated unless the imap command succeeds.)

When a message is sent and then saved to Sent, it is just imap appended to the Sent folder using imap append command. It is not also written to mbox or .msf file until the Sent folder is accessed by the user where the header and message body are fetched and stored in .msf and mbox (provided the user has an mbox for Sent folder).

When messages are copied or moved between accounts, the message is obtained from offline store (if present) or fetched from the server. It is then imap appended to the mailbox/folder in the destination account. No imap header and message fetch at destination and write to destination .msf or mbox occurs until the destination folder in the destination account is accessed.

When you do these thing with TB offline (or with a server, imap or smtp, offline) is when it get really complicated and I'm not sure how it really works.

Fyi I experienced sent copy fails issues in TB 144.0b4 (64-bit) with both IMAP Sent folder and Local Folders > Sent (safety net). It could be linked to network issue as I had a bit of latency (100-125ms) and some intermittent packet loss 3-10% that was causing communication delay when issue started to occur.
Basically I sent email, that were delivered fine immediately and I first though copy to Sent folder succeeded as the sent email disappeared on screen. I did so with couple more emails, till I realised I could not find them in Sent in my IMAP account or TB Local Folders. Indeed, there were no longer appearing as an open window in the task bar TB icon... but if I minimised all the opened Windows from TB and other app, the message would appear as still trying to copy email to Sent folder on the IMAP server.
Cancelling this action would then prompt for saving email which if you click Save would store the email in Local Folders > Sent in TB on local computer. But that only worked for a couple of the emails... at some point other email just disappear from the screen without being saved. After which I found them again somewhere behind other windows, in the background, the prompt to save email even further behind! When clicking Save for each of the remaining emails that failed to copy, I was then prompted with a windows, after a while, saying: Copy fails... so they could not even be copied locally on the computer... with only the option to click Cancel.
If I click Cancel I would then return to the compose window of the email, as if it was not sent yet (but it was already with no copy saved locally or in IMAP). I could then re-send them and they would be saved correctly in the IMAP folder.
Obviously there is still something wrong with the way Thunderbird handle network related faults when sending emails and storing them to IMAP Sent folder.

Most recent console errors:

13:50:38.728 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-2.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:42.327 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-3.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:46.720 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-1.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:51.037 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
14:02:02.160
mail.activity: onDownloadCompleted: TypeError: can't access property "activity", this._syncInfoPerFolder.get(...) is undefined autosync.sys.mjs:386:16
    onDownloadCompleted resource:///modules/activity/autosync.sys.mjs:386
    openWindowPrompt resource:///actors/PromptParent.sys.mjs:75
    receiveMessage resource:///actors/PromptParent.sys.mjs:18
    openPrompt resource://gre/modules/Prompter.sys.mjs:1224
    openPromptSync resource://gre/modules/Prompter.sys.mjs:1067
    confirmEx resource://gre/modules/Prompter.sys.mjs:1518
    confirmEx resource://gre/modules/Prompter.sys.mjs:299
    confirmDownloadMessagesForOfflineUse chrome://messenger/content/mail-offline.js:187
    toggleOfflineStatus chrome://messenger/content/mail-offline.js:62
    oncommand chrome://messenger/content/messenger.xhtml:1
14:02:02.163
TypeError: can't access property "activity", this._syncInfoPerFolder.get(...) is undefined
autosync.sys.mjs:377:49
    onDownloadCompleted resource:///modules/activity/autosync.sys.mjs:377
    openWindowPrompt resource:///actors/PromptParent.sys.mjs:75
    receiveMessage resource:///actors/PromptParent.sys.mjs:18
    openPrompt resource://gre/modules/Prompter.sys.mjs:1224
    openPromptSync resource://gre/modules/Prompter.sys.mjs:1067
    confirmEx resource://gre/modules/Prompter.sys.mjs:1518
    confirmEx resource://gre/modules/Prompter.sys.mjs:299
    confirmDownloadMessagesForOfflineUse chrome://messenger/content/mail-offline.js:187
    toggleOfflineStatus chrome://messenger/content/mail-offline.js:62
    oncommand chrome://messenger/content/messenger.xhtml:1
14:05:34.327
TypeError: can't access property "ownerGlobal", navigatedWindow.windowRoot is null
2 FormHandlerChild.sys.mjs:413:31
    notifyProcessRootOfNavigation resource://gre/actors/FormHandlerChild.sys.mjs:413
    onLocationChange resource://gre/actors/FormHandlerChild.sys.mjs:361
    #pushOrReplaceState resource://pdf.js/web/viewer.mjs:5667
    #tryPushCurrentPosition resource://pdf.js/web/viewer.mjs:5686
    #pageHide resource://pdf.js/web/viewer.mjs:5839
    closeTab chrome://messenger/content/tabmail.js:1128
    removeTabByNode chrome://messenger/content/tabmail.js:1146
    connectedCallback chrome://messenger/content/tabmail-tab.js:99

(In reply to Richard Leger from comment #59)
I didn't try to simulate a network error but having a bad password stored in tb for the account holding the Sent folder may be similar. So I set my Sent folder to another account's Sent folder and modified that account's password in Password Mgr with one char missing.

When I send a message with this setup, the compose window stays active with the send progress window on top of it. Then a window pops up to enter the correct password. The password prompt covers up the send progress window completely, so it appear to be gone. But dragging the password prompt away reveals it again. While the password prompt and send progress are present, the compose window is still there and gray. I can retry the password and the pwd prompt comes back shortly. If I cancel the password prompt, I get another prompt to save to Local Folders and the save occurs if I select it. I can also retry and start the cycle over again and the compose window remains there and gray until the save to sent succeeds or is completely cancel. So don't see a problem with this test.

I also tried just setting the Sent account server URL wrong (correct: localhost, wrong: localhostt) and kept the password good. I see basically the same thing except no password prompt since since imap can't make network connection to "localhostt". The compose window remains in place and gray until the message is saved to Local Folders or until I cancel the save. Also, the prompt to save to Local Folders covers up the Sent progress.

Fyi I experienced sent copy fails issues in TB 144.0b4 (64-bit) with both IMAP Sent folder and Local Folders > Sent (safety net).

I assume you are configured to just save sent to Sent folder on the same imap account. You are not configured to save sent mail to Local Folders as a "safety net".

It could be linked to network issue as I had a bit of latency (100-125ms) and some intermittent packet loss 3-10% that was causing communication delay when issue started to occur.

In the past I have tested this with a intermittent network, weak wi-fi, wi-fi out of range, super-slow network and by blocking ports on firewall and thought I had this pretty bullet proof.

Basically I sent email, that were delivered fine immediately and I first though copy to Sent folder succeeded as the sent email disappeared on screen. I did so with couple more emails, till I realised I could not find them in Sent in my IMAP account or TB Local Folders.

So you compose a message in its own window and sent it and the compose window completely went away. Did you see any send "progress" window with bar graph indicating progress? The compose window should not vanish until the sent message is saved somewhere (unless you explicitly indicate in the prompt not to save it).

Indeed, there were no longer appearing as an open window in the task bar TB icon... but if I minimised all the opened Windows from TB and other app, the message would appear as still trying to copy email to Sent folder on the IMAP server.

Are you saying you found the send "progress" window under other windows? Did you also find the original compose window (should be gray) hidden there too?

Cancelling this action would then prompt for saving email which if you click Save would store the email in Local Folders > Sent in TB on local computer.

Ok, so you canceled the stuck send "progress" and you then saw the prompt to save to Local Folders and this worked. I assume it also closed the "gray" compose window which was actually still there.

But that only worked for a couple of the emails... at some point other email just disappear from the screen without being saved.

So for other emails, the save to Local Folders was prompted but it didn't work and the emails were lost. About how many emails were in this state. Maybe three or more? I tried it with two queued up (due to the bad password test) and they both saved.

After which I found them again somewhere behind other windows, in the background, the prompt to save email even further behind! When clicking Save for each of the remaining emails that failed to copy, I was then prompted with a windows, after a while, saying: Copy fails... so they could not even be copied locally on the computer... with only the option to click Cancel.

Not sure which prompt(s) you are referring to here. Just to be clear, you didn't do a retry on the Send, you only did attempts to save to Local Folders and several of these didn't work at all?

If I click Cancel I would then return to the compose window of the email, as if it was not sent yet (but it was already with no copy saved locally or in IMAP). I could then re-send them and they would be saved correctly in the IMAP folder.

Ok, you did retry the smtp send again and this time it saved to imap Sent folder OK. And it sounds like your compose window(s) must of still been there and never disappear actually.

Obviously there is still something wrong with the way Thunderbird handle network related faults when sending emails and storing them to IMAP Sent folder.

I'll test it again with more than 2 sent messages not saved. Maybe that's the primary problem here.
Also not understand why your compose window goes away (or maybe gets moved under other windows and hidden) before the sent message is saved somewhere.

Most recent console errors:

Not seeing anything here that I'm familiar with.

I'm not really seeing any problem with 4 emails composed and sent when saving to Local Folders with network problems connecting to imap Sent. The only somewhat confusing thing is when you click send on them all with an imap network problem present, you only see one "save to local folders" dialog popup on top of a single send progress dialog and this may take a while to appear when tb is waiting for network timeout. When you click "save" it only saves to local folders a single message and it might not be the one it is initially on top of (focus switches to the correct compose window when you click the "save to locals" dialog). The other 3 message remain present with their send progress dialog waiting. If they are all sent and waiting, the only option is to click "cancel" or close the dialog. Then you get a single "save to local folders" dialog which again just allows the save to Local Folders for one of the remaining waiting compose windows. So you have to click "cancel" or close any remaining progress dialogs to see the "save to local folders" dialog for the message. If you do this, they all get saved to Local Folders. Anyhow, I haven't seen a case where they didn't while testing this today.

So when sending an email the procedure should be to watch the compose window. Typically it should just go away and you may not notice or see the "progress" dialog popup since the send and save to Sent is so fast. If the message is sent OK via SMTP and send is slow or there is a problem saving to Sent folder, the progress dialog will stick around until tb gets a signal that save to sent has succeeded or failed. When it fails (which may be instant or take a while when waiting for a timeout) you should then see a single "save to local folders" dialog on top of the progress dialog. If you don't see the "save to local folders" dialog in a reasonable time, you can always click "cancel" on progress dialog or close the progress dialog which will force the "save to local folders" dialog to appear. Then when you see the "save to local folders" dialog, you can click "save" (which should do the save to LFs), or retry the normal save to Sent or just cancel the save completely. Except for "retry" this should cause the compose window, the progress dialog and the "save to local folders" dialog to go away.

(In reply to gene smith from comment #60)

(In reply to Richard Leger from comment #59)

Fyi I experienced sent copy fails issues in TB 144.0b4 (64-bit) with both IMAP Sent folder and Local Folders > Sent (safety net).
I assume you are configured to just save sent to Sent folder on the same imap account. You are not configured to save sent mail to Local Folders as a "safety net".

Yes. TB is configured to keep copy of sent items into my Sent folder on IMAP server and it works most of the time except yesterday in a very awkward way as described in my previous comment.

It could be linked to network issue as I had a bit of latency (100-125ms) and some intermittent packet loss 3-10% that was causing communication delay when issue started to occur.
In the past I have tested this with a intermittent network, weak wi-fi, wi-fi out of range, super-slow network and by blocking ports on firewall and thought I had this pretty bullet proof.

Could it be a problem of windows focus? I mean apparently Thunderbird was prompting for user action, but delay in doing so seems to have cause issues. I do tend to have more of those focus issue with recent version of Thunderbird, there are quite random though.

Basically I sent email, that were delivered fine immediately and I first though copy to Sent folder succeeded as the sent email disappeared on screen. I did so with couple more emails, till I realised I could not find them in Sent in my IMAP account or TB Local Folders.
So you compose a message in its own window and sent it and the compose window completely went away. Did you see any send "progress" window with bar graph indicating progress?

Well after clicking Send button, the message appeared to have been sent, it was very small in size so was almost instant... did not see a progress bar. The message compose windows simply disappeared so I thought the all process Send + Save worked as usual. Message were received by recipients.
But it did not successfully saved a copy of the message and the compose windows with progress and prompt disappeared from focus while the progress bar to copy item to sent folder on IMAP was opened. The windows was no longer available when mousing over the Thunderbird icon which appeared as one single icon in the taskbar which is the case when message is sent properly. I could not longer access the message windows. Thunderbird does not have a Windows menu entry allow to access all the opened windows in the application so I could not reach them that way either.

I only noticed it when trying to minimise multiple opened windows to discover that my message was there, still trying to be copied to sent... but the prompt to retry the saving was not visible either, till I minimised multiple other windows, including other messages that TB was also trying to still copy to send folder. I did not click Retry, I just clicked Save in the first prompt, then other prompt started to show up but not all in the front focus and not all properly saving email in Local Folders when clicking the Save button.

Indeed, there were no longer appearing as an open window in the task bar TB icon... but if I minimised all the opened Windows from TB and other app, the message would appear as still trying to copy email to Sent folder on the IMAP server.
Are you saying you found the send "progress" window under other windows? Did you also find the original compose window (should be gray) hidden there too?

After clicking Send, the compose windows disappeared and message appeared Send (and saved) but it just moved in the background (lost focus) with the save copy to sent folder progress opened over it... but the prompt windows (to Retry/Save) was hidden further down the ladder, not visible nor in focus... It could have been because I keep sending message that could not be copied to server creating additional windows on the top of each other. But none of those window were accessible from the task bar. I had to minimise a lot of other windows to find them by chance!

Cancelling this action would then prompt for saving email which if you click Save would store the email in Local Folders > Sent in TB on local computer.
Ok, so you canceled the stuck send "progress" and you then saw the prompt to save to Local Folders and this worked. I assume it also closed the "gray" compose window which was actually still there.

At first I pressed the Save button in the Retry/Save prompt windows but for some of the email it failed, showing a "progress" or "alert" windows "Copy to sent failed" or something like that.

I am wondering if that is because to much time past between the Send action and me discovering the issue and maybe the local cache copied of email had already been deleted after being sent, so they could not longer be copied locally?

The console did shows the following errors:

13:50:38.728 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-2.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:42.327 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-3.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:46.720 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail-1.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)
13:50:51.037 NotFoundError: Could not open `C:\Users\richard\AppData\Local\Temp\nsemail.eml': file does not exist (NS_ERROR_FILE_NOT_FOUND)

But that only worked for a couple of the emails... at some point other email just disappear from the screen without being saved.
So for other emails, the save to Local Folders was prompted but it didn't work

Yes save to Local Folders failed for about 4 or my 6 messages. That seem to correlate with the console errors above.

and the emails were lost.

No, because like or other email, they looked like they disappeared from screen and look lost, but indeed they went in the background, focus wise, so minimising windows again allowed me to access some of them, and see that the alert "Copy to sent fails" after which I could click Cancel and I was back in the compose windows of the message that copy failed able to edit it again and press Send again. Which successfully (re)Send and Save items in the Sent IMAP folder this time. About how many emails were in this state.

Maybe three or more? I tried it with two queued up (due to the bad password test) and they both saved.

In total I had about 6 emails sent in that state, which only two successfully saved to Local Folders (the two most recent one, last sent I think but I cannot know for sure).

For the other, "Copy to sent fails" and back to compose window. So in the end I did not lost the data, but I could have if I had exited Thunderbird or force quit it. Hopefully it may have shown the prompt in the background by then, preventing data loss, but because I hadn't tried, I could not know.

After which I found them again somewhere behind other windows, in the background, the prompt to save email even further behind! When clicking Save for each of the remaining emails that failed to copy, I was then prompted with a windows, after a while, saying: Copy fails... so they could not even be copied locally on the computer... with only the option to click Cancel.
Not sure which prompt(s) you are referring to here. Just to be clear, you didn't do a retry on the Send, you only did attempts to save to Local Folders and several of these didn't work at all?

When you send a message:

  • You have the sent progress bar
  • Then the copy message to Sent progress bar
  • If that fails you are prompted to Retry or Save
  • When I clicked Save message two message were saved in Local Folders > Sent
  • But as it fails for about 4 msg, for those another progress/alert prompt windows appear saying "Copy to sent fails" (or something like that) and you can only press Cancel
  • After which I was back in the compose windows of the message for which copy failed. Able to Edit it, Send it again... which I did and save worked that time directly into the Sent IMAP folder (I think I did changed network by that time which may explain why it worked). I am also using a VPN but that has not been an issue for TB for quite some time now. I think the issue was more linked to the focus of the windows and prompt asking end-user to retry save copy to the server first... as it was hidden, out of focus and not reachable from the task bar, it was missed causing more problem down the line.

If I click Cancel I would then return to the compose window of the email, as if it was not sent yet (but it was already with no copy saved locally or in IMAP). I could then re-send them and they would be saved correctly in the IMAP folder.
Ok, you did retry the smtp send again and this time it saved to imap Sent folder OK. And it sounds like your compose window(s) must of still been there and never disappear actually.

Yes. That worked as the compose windows was always there in the end, just not in focus and not accessible via the taskbar TB icon.

Obviously there is still something wrong with the way Thunderbird handle network related faults when sending emails and storing them to IMAP Sent folder.
I'll test it again with more than 2 sent messages not saved. Maybe that's the primary problem here.

And wait, maybe couple of hours after sending messages see what happens then... before pressing Save to save to Local Folders...

Also not understand why your compose window goes away (or maybe gets moved under other windows and hidden) before the sent message is saved somewhere.

I did notice focus issue with Thunderbird lately... but can't really pinpoint them.
Also wondering if it is not an issue with Windows 11 Pro itself following updates applied at some point?
I also have Firefox running, so could that interfere with the Thunderbird focus?

(In reply to gene smith from comment #61)

I'm not really seeing any problem with 4 emails composed and sent when saving to Local Folders with network problems connecting to imap Sent. The only somewhat confusing thing is when you click send on them all with an imap network problem present, you only see one "save to local folders" dialog popup on top of a single send progress dialog and this may take a while to appear when tb is waiting for network timeout.

In my recent case, I don't think the problem is with the save process itself, it is more that the progress and prompt upon failing were in the background out of focus and no longer visible/reachable from the taskbar after sending the message and were simply not seen, reachable by end-user to proceed action accordingly: Retry (Save to Sent on IMAP server) or Save (in Local Folders).

While I could see my recipients received the message (they replied to me), I discovered later on that messages were missing in my Sent folders (both IMAP and Local Folders) that is were I started to investigate, and by chance (minimising windows manually one after another) I discovered message compose windows were still trying to be copied to the sent folder.

None of the prompt or compose windows remain in focus during the process... is it because it took too long for Thunderbird to react after sending to the fact that it copy to sent was failing (timing out) and I was already back working in Thunderbird by then, so when Thunderbird tried to prompt me, the windows and prompt did not come on top front focus? And only one prompt appears at a time, blocking any other prompt to shows up till user action is taken on the previous prompt.

Apart of that the save process works. I think the failed copy to Local folders was due to too long delay between "send + copy fails + prompt" and user interaction (Retry/Save) during which the local cached copy of email sent were deleted and no longer available to copy locally in TB Local Folders.

In any case the lost of windows focus (disappearing/missing from taskbar after sent), the prompt for user interaction not on primary focus (on top of all Thunderbird windows) when appearing is the primary caused the over all issue here it seems.
The local cache copy of sent emails shall not be deleted prior a copy to sent folder has succeeded though, but that is a secondary issue.

Richard, Thanks for the details!

The console did shows the following errors:
....

I'll bet you're right. Those files probably contained the messages that never got saved to imap Sent or LF Sent. I've never looked into how these file come about since it always seemed to "just work". Maybe somehow after a time period they get deleted and in my test I need to wait longer (as you suggested).

A thing I'm not sure about is you said you (re-?)sent a couple emails much later and they saved to imap Sent OK. Do you know if these were actually sent successfully before and if the recipient received two copies?

But as it fails for about 4 msg, for those another progress/alert prompt windows appear saying "Copy to sent fails" (or something like that) and you can only press Cancel

I'll try to find what error is posted when copy to sent fails due to temp file missing. Maybe that's is happening because the temp file holding the messages has been deleted for some reason. I guess if the temp file is gone the only option is to go back to the still present "compose" window and let you copy/paste the content or just try to send it again, or just "Cancel" as you mention.

I'm looking at the problem with linux/kde and don't see the compose, progress or "save to LF" windows getting hidden under other windows. Also when I have 4 msgs still waiting to be saved to Sent, I can use ctrl-tab to see all the open windows (don't use task bar much). The still present compose windows are marked with a "pencil" icon and others, including pop-ups, with normal tb icon. (For ctrl-tab I'm setup to show just a compact list of window titles with small icons, I've tried to set ctrl-tab up in win10/11 with a compact list and don't think it is there by default anymore, just huge icons.)

The two key problems are still there.

1: even if your connection improves, "Try Again" never works (in my experience).
2: While TB is perfectly capable of putting something in a folder (e.g. a "Sent" folder) and synchronizing when a good connection is established, the send process doesn't use that mechanism, instead it gives you a warning.

IMHO - the save (whether to Imap folder or local) shouldn't use IMAP directly, it should append to the mirrored (or local) Send folder, and then synchronize when connection is good (which might be immediately). ie. it should work exactly as if I'd dragged a message into the Mirrored Send folder.

This bug is 18 years old so I don't expect it to get fixed ! But just in case ....

Richard,
Ok, I was able to see a problem similar to what you describe. I had the destination server for my sent message set with a bad password stored in password mgr so save to imap Sent will fail. Then I wrote and sent 6 simple emails that all sent OK but failed at save to Sent step. In /tmp I see 6 newly created files nsemail.eml, nsemail-1.eml, ... nsemail-5 containing the full message header/body. I left tb in this state for several hours and the files remained. Except for the first message sent, which automatically showed the "save to local folders" dialog, they showed just the "send progress" dialog with a cancel button. I selected these message randomly and, after canceling the "progress" dialog, clicked "save" on the "save to local folders" dialog. Each message saved to LFs as it should until I got to the last one. The last remaining one only showed the "compose" window and there were no other dialogs present. So this last one couldn't be saved to local folders and the only option was to close it or send the message again (but that message was already properly sent and received). This got rid of all the tmp/nsemail*.eml files but now there is instead a single nscopy-1.tmp file (newly created) containing what looks like the top 3 lines of an mbox file:

From - Fri, 17 Oct 2025 00:23:49 GMT
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000

It happened to me again just now... immediately after sending this time, I was prompted to Retry saving to Sent on IMAP server, I pressed Retry a couple of time, and it kept failing. I then press Save an I was back in the message compose window with "Copy failed." appearing in the bottom left corner of the status bar of the compose window.

In error console the following error appeared if that can be of help?

16:47:05.277 TypeError: can't access property "path", this._messageFile is nullMessageSend.sys.mjs:921:26

Also noted that unless you minimise windows you cannot access the message compose window which is in "Copy failed." status after Save.

I re-send the message as is after a few minutes and it worked fine Send + Save in Sent IMAP folder.

(In reply to gene smith from comment #64)

A thing I'm not sure about is you said you (re-?)sent a couple emails much later and they saved to imap Sent OK. Do you know if these were actually sent successfully before and if the recipient received two copies?

Yes the two copies were received by recipient. The original message sent that failed to copy (in either Sent on the IMAP server or Local Folders), and the second copy re-send as is after the original copy failed.

I'm looking at the problem with linux/kde and don't see the compose, progress or "save to LF" windows getting hidden under other windows. Also when I have 4 msgs still waiting to be saved to Sent, I can use ctrl-tab to see all the open windows (don't use task bar much).

On windows I could not use ALT+TAB to access the message in failed copy status. They were just no listed, like in the taskbar icon. Only accessible by minimising the opened windows. Same today when issue occurred.

Re. comment 67:

It happened to me again just now..

It appears this time you only had this single message in the "sending" state (not like before where you had several backed up and waiting to be sent).

Anyhow, I've tried to duplicate closer to what you see by now setting my local firewall to reject outgoing connection attempts to imaps port 993 so imap Sent folder can't be written to. But I don't see a problem. I can hit "retry" lots of times and then "save" and the save into Local Folders occurs fine.

It appears that somehow for you your this._messageFile is null when an attempt is made to create a new file to copy to Local Folders having the 3 special "mbox only" header lines (shown in comment 66) followed by the actual message that was sent in this._messageFile:
https://searchfox.org/comm-central/rev/11fe5b6d9c29b0e806fd82108466b4107ae1c581/mailnews/compose/src/MessageSend.sys.mjs#899
This is causing the error you posted in comment 67.

I haven't been able to produce a situation where _messageFile is null, even when I have 7 messages sent and waiting to save to Sent with the port 993 blocked. _messageFile has to be correct at some point during the send because it points to the actual message sent via SMTP (which occurs OK). Once it's set, the only place I see it getting set null is in _cleanup():
https://searchfox.org/comm-central/rev/11fe5b6d9c29b0e806fd82108466b4107ae1c581/mailnews/compose/src/MessageSend.sys.mjs#1121
which only occurs after the message is sent via SMTP and saved to Sent file so that the temp files are no longer needed.

FWIW, in my failure case in comment 66, it appears the _messageFile was not null but the file it points to was empty or maybe deleted somehow so the resulting temp file only contained the 3 lines. But I haven't been able to duplicate this either since that one time.

On windows I could not use ALT+TAB to access the message in failed copy status. They were just no listed, like in the taskbar icon. Only accessible by minimising the opened windows. Same today when issue occurred.

On linux, I'm not seeing any problem accessing waiting to save windows or dialogs when I have only sent one messages (everything is on top and alt-tab/task bar access not needed). But it does get more confusing when I have several (e.g., 7) messages waiting to be saved to Sent. At one point I think I had one window that seemed like I couldn't get to but I eventually did using alt-tab and/or task bar, but don't remember the details.

I do know of one situation where the temp files can get deleted. Say you send a message and there is a problem saving to Sent and you are waiting at the prompt as to what to do: save, retry or cancel. Then you start up on the same computer another TB instance on a different profile. The tb related temp files are ALL deleted on tb startup, so the original tb instance will have problems saving to Sent since its temp files are gone. However, this won't set _messageFile null like you see in comment 67 so I'm sure you didn't do this.

(In reply to Richard Leger from comment #68)

(In reply to gene smith from comment #64)

I'm looking at the problem with linux/kde and don't see the compose, progress or "save to LF" windows getting hidden under other windows. Also when I have 4 msgs still waiting to be saved to Sent, I can use ctrl-tab to see all the open windows (don't use task bar much).
On windows I could not use ALT+TAB to access the message in failed copy status. They were just no listed, like in the taskbar icon. Only accessible by minimising the opened windows. Same today when issue occurred.

I just noticed the following which may be linked to the compose window disappearance.
https://thunderbird.topicbox.com/groups/beta/T4f241a58fb5cfe5d/compose-window-entries-disappear-from-taskbar-on-draft-save
That particular issue may have been fixed in Bug 1994411. To be confirmed.

So that leave the copy fail issue to resolve :-)

So that leave the copy fail issue to resolve :-)

I haven't found a way to cause save to Sent problem to happen reliably. I saw something weird once (comment 66) but after many more attempts, it has worked with no glitches (on linux). Maybe it's a windows only problem or maybe (just hoping) that patch for Bug 1994411 fixes it for you.
FWIW, the mostly JS code that handles save to Sent problem looks OK to me and appears OS independent.

(In reply to gene smith from comment #72)

maybe (just hoping) that patch for Bug 1994411 fixes it for you.

I don't think that will fix the save to Sent issue which I believe is a separate issue.

I agree with you it is very random. I cannot reproduce it at will either at my end.

What puzzles me is that if you Retry after the copy fails and return to Compose Windows, it then just works fine.

In my last occurrence it also happened immediately after sending, so the cache version of my message was either deleted or corrupted just after sending that it could not longer be saved, copy fails neither in IMAP nor Local Folders... or just after trying to copy to the IMAP Sent folder which failed prompting for Retry and the message was deleted then?

Could it be linked to a some sort of time out on the IMAP connection? So error suggest that the cached version of the email on the local computer cannot be found (or is corrupted) some how.

Or could it be linked to Bug 1924291 or its fix, that may potentially affect Bug 1991497 and this one?

Fyi, I only keep local cache copy of email in my Inbox for 3 days only. "Select this folder for offline use" is disabled on my Sent IMAP folder. Though that should not affect the capacity of TB to save message in Local Folders. I just thought to mention it if that makes any difference.

You need to log in before you can comment on or make changes to this bug.