Closed Bug 1606047 Opened 4 years ago Closed 2 years ago

"Your draft message was not copied to your drafts folder (Draft)" and ""Your message was sent but a copy was not placed in your sent folder (Sent)" "due to network or file access errors."

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
102 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: stmchasr, Assigned: rnons)

References

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

Steps to reproduce:

Created new email and tried to save it (using icon in menu bar and Ctrl+S). Also occurs when sending an email.

Actual results:

The following message appears in a dialog box after trying to save or send (just replace the word "draft" below with the word "saved":

Your draft message was not copied to your drafts folder (Draft) due to network or file access errors.
You can retry or save the draft locally to Local Folders/Draft-(location).

Expected results:

message should save to draft folder when saving or sent folder if sending message.

I forgot to mention that this is only occurring with verizon.net email which now goes through AOL. My other emails set up in thunderbird do not have this issue. I did not change any of the IMAP settings but did update to Thunderbird version 68 on Dec 18.

Now I haven't received any new mail since 730 last evening. But I see it on the parent mail system. When I click on the inbox there is a circle going around clockwise in the tab at the top of the TB application and in the lower left it says "connected to imap.aol.com". Is my whole mailbox corrupted?

Will rolling back to the previous version of TB solve this problem? If so, will I lose all my folders and everything will need to be redownloaded from the parent application or will everything remain the same like when an update is done?

Well I downloaded the previous version of TB I was running (60.9.0) into a different directory and I am receiving mail again and not getting the error messages when saving or sending. There must be a bug with version 68.

I would guess the bug is in your anti virus software, not Thunderbird.

Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''.
This loads only the very basics needed to start your computer while enabling an Internet connection.

As you did not specify an operating system pickyour for instructions on how to get to safe mode with networking.

Windows 10 https://support.microsoft.com/en-us/help/12376/windows-10-start-your-pc-in-safe-mode
Windows 8 http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-safe-mode
Windows 7 http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7

I've been getting this same error for a while now. I don't run Windows. TB client is running on my Ubuntu 20.04 desktop at home. My mail server is an OpenStack instance in the cloud running Ubuntu 16.04 and I access everything with IMAP. Problem started a few months ago. I run NO anti virus software.

I am also getting this error. I run Thunderbird 68.8.0 (64-bit) on KDE neon 5.19 with the x86_64 Linux 5.3.0-53-generic kernel. I access a hosted MS Exchange 2013 account via EWS through the Owl for Exchange addon by Beonex. I am trying to save drafts to the "Drafts" folder on that same account. This worked previously on older versions or I at least never noticed if it did not as I never received any errors about it. Happy to try and help get this resolved by testing out any suggestions.

Anything? I'm sure it's not my internet connection because everything else is connecting to the internet without any issues. And I know it isn't some antivirus thing as I don't run any. I suspect it's a problem in the imapd process running on the server. I'm seeing the following in /var/log/mail.err:

file /home/andrew/mail/.imap/INBOX/dovecot.index.log seq 2: indexid changed 1597417523 -> 1597419736 (sync_offset=0)

So this is probably just a dovecot/imap bug. More info at https://dovecot.org/pipermail/dovecot/2017-July/108717.html. Reading through that I may be that I access my IMAP email from multiple places at the same time (desktop, laptop, phone, etc). Funny, I've been doing this for years and never had problems like this before.

I first ran across another user experiencing this issue on the MozillaZine forum:

http://forums.mozillazine.org/viewtopic.php?f=39&t=3066843

So, I conducted a test and tried running Thunderbird from the command line (I'm running version 78.5.0 on Ubuntu 20.10) and saw this output generated:

---------- START -------------

tom@deathstar:~$ thunderbird
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[calBackendLoader] Using Thunderbird's libical backend
console.debug: "Successfully loaded OpenPGP library librnp.so from /usr/lib/thunderbird/librnp.so"
Extension error: Error while loading 'jar:file:///usr/lib/thunderbird/extensions/messagingmenu@mozilla.com.xpi!/manifest.json' (NS_ERROR_FILE_NOT_FOUND) resource://gre/modules/Extension.jsm:570 :: readJSON/</<@resource://gre/modules/Extension.jsm:570:20
onStopRequest@resource://gre/modules/NetUtil.jsm:128:18

Extension error: Error while loading 'jar:file:///usr/lib/thunderbird/omni.ja!/chrome/messenger/search-extensions/twitter/manifest.json' (NS_ERROR_FILE_NOT_FOUND) resource://gre/modules/Extension.jsm:570 :: readJSON/</<@resource://gre/modules/Extension.jsm:570:20
onStopRequest@resource://gre/modules/NetUtil.jsm:128:18

console.debug: "public keys: 12, secret keys: 0"
console.debug: "Successfully loaded optional OpenPGP library libgpgme.so.11 from system's standard library locations"
console.debug: "gpgme version: 1.14.0-unknown"
1609006213956 tbsortfolders.folderPane DEBUG Init
1609006213957 tbsortfolders.folderPane DEBUG Add observer
console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 75))
JavaScript error: chrome://enigmail/content/modules/subprocess.jsm, line 344: uncaught exception: Object
JavaScript error: chrome://enigmail/content/modules/subprocess.jsm, line 344: uncaught exception: Object
JavaScript error: chrome://enigmail/content/modules/subprocess.jsm, line 344: uncaught exception: Object

------------ END ---------------

after the window opened and I tried to save a draft message, I received this output:

-------------- START -------------

console.debug: "in getEncryptionFlags, gSendEncrypted=false, gSendSigned=false"
console.debug: "getCryptParams parameters: from=0x568063D73A938205, to=, bcc=, hash=SHA256, flags=4802, ascii=0, errorObj=%o, logObj=%o" ({value:""}) ({})
console.debug: "getCryptParams, got: to=, bcc="
console.debug: "getCryptParams returning:"
console.debug: ({sender:"0x568063D73A938205", sign:false, signatureHash:"", sigTypeClear:false, sigTypeDetached:false, encrypt:true, encryptToSender:true, armor:true, senderKeyIsExternal:false, to:[], bcc:[]})
console.log: "CryptoAPI.sync() failed result: %o" (new Error("configured sender key 0x568063D73A938205 isn't accepted as a personal key", "chrome://openpgp/content/modules/RNP.jsm", 2226))
console.debug: "sendFlags=000012c2"
console.debug: (new Error("failure in finishCryptoEncapsulation", "chrome://openpgp/content/modules/mimeEncrypt.jsm", 588))
JavaScript error: chrome://openpgp/content/modules/mimeEncrypt.jsm, line 588: Error: failure in finishCryptoEncapsulation
tom@deathstar:~$

-------------- END ---------------

I did have Enigmail installed when I upgraded from Ubuntu 20.04 to 20.10 and to Thunderbird 78, but I currently don't have message encryption or signing enabled. When I attempt to save a draft message in another profile, the message is saved successfully.

The main "problem" account uses POP3 to access Comcast.net email. I think I might have experienced this with an IMAP account as well, but I'm not 100% sure. Lastly, in the past, I have enabled message encryption, in Enigmail, but have since disabled it due to not having time to get my private/public keys setup the way I need so I can use encrypted email the way I wanted to.

I'm not really concerned about not being able to save draft messages, but I wanted to report the mimeEncrypt error being generated.

Please let me know if any more information is needed. Thanks in advance!

I got same error after last updating to 78.1.1 in addition to other many other annoying issues .
Please fix it quickly and also the mostly important the automatic updating of version without loosing email , folders , add ons an other important setting of previous version
Thanks

Can confirm this happens with 1:78.6.1-1 as well. A gmail account is having this issue. I tried the following but none of it got rid of the issue:

  • close TB, cd to the ImapMail directory and rm the corresponding Draft* files, and open it again so those can be downloaded afresh;
  • open Drafts, Sent and Inbox folder properties and click "Rapair folder" on each of them;
  • Remove the account completely in the account manager, then "Add Mail account" again;
  • select a different option for the "Copies and Folders" setting for the account for Sent and Drafts, such as select "Others" and click into the email account drop-down menu, and select the "Draft" insdie "[Gmail]" folder.
  • same issue happens with gmx.com email and a self-hosted email.
  • whether disabling the apparmor profiles has no affect on this.

How is this still UNCONFIRMED? Please at least mark it as CONFIRMED.

I can find the same error message being discussed at a few other places recently by various users, such as:

http://forums.mozillazine.org/viewtopic.php?f=39&t=3052226
http://forums.mozillazine.org/viewtopic.php?f=39&t=39892
http://forums.mozillazine.org/viewtopic.php?f=39&t=3047447

None of the methods provided there resolved the issue for me. Please mark this as CONFIRMED, so someone might consider working on this.

For the sake of completeness, here is another:
https://support.mozilla.org/en-US/questions/1168853

hyilitz,

I can not reproduce any problem saving a message as a draft using Thunderbird 78.7.0 on Fedora 33 Linux.

The 3 IMAP accounts I tested with are one AOL and 2 GMail.

I separately created a new message for each account.
Clicked the close "x" in the message window.
Clicked "Save" in the Save Message dialog.
Each message was saved in that accounts Draft folder.

Clicked "Edit" in each message to open them.
Typed some text.
Used File > Save As > Draft.
Each message was saved in that accounts draft folder.

Clicked "Edit" in each message to open them again.
Typed some text.
Left the composition windows open to let the save every 2 minutes preference setting to trigger.
Each message was saved in that accounts draft folder.

Have you tested in a test profile with no extensions?

This appears to be a support issue.
The reporter has not responded since asked to do some steps in comment#5 so maybe the original issue with Verizon IMAP email was fixed for them.

Flags: needinfo?(hyiltiz)

I can confirm I have this same issue for a week or two now.

Error message is "Your message was sent but a copy was not placed in your sent folder (Sent) due to network or file access errors. You can retry or save the message locally to Local Folders/Sent" or "Your draft message was not copied to your folder due to network or access errors".

As suggested in some posts, I have reduced the setting of security.tls.version.min in Config Editor from 3 to 1, but this hasn't affected things.

If I try to repeat I can reliably get the same error message again and again. It feels like the problem is replicable, but I'm not sure it is, because what I have noticed is that if I just wait some minutes (enough for a coffee) and try again, the problem has simply ceased and all seems to be working well. Literally nothing else changed (by me) except waiting.

My internet connection may not be the best, but all other apps accessing the internet work ok and seem to accommodate it. It 'feels' like it is just the upload function of TB (for Sent or Drafts folder) that might be struggling if there is any kind of poor connection. Maybe just gives up and throws the error, I don't know. I'm hoping this info helps you smarter guys out there who know about such things.

TB version 78.7.0 (32 bit)

I can also confirm that I have this same issue for a week or two now. I tried repairing the folder, deleting and adding the account again, etc, but nothing works.

78.10.2 32-b, Windows 10 20H2
Just now I'm having this same perennial problem, "can't save Draft", SMTP, @jeffnet.org/mail.userservices.net
This is a real problem, and Thunderbird has it!

Still can't reproduce using Thunderbird 78.10.2 on Windows 10 (21H1) or Fedora 34 Workstation here.

I have an AOL, and 2 Google IMAP accounts, one POP3 Comcast and Verizon accounts.

Clearing the NI since they appear to be gone.

Flags: needinfo?(hyiltiz)

I've been having this issue for the past year or so. Currently experiencing with 78.14.0 (32-bit) running on Win10enterprise.

The issue is doubly-annoying since the pop-up occurs at random intervals and interferes with typing (i.e. the pop-up grabs focus and keystrokes are lost to the ether).

I can currently reproduce this in my beta profile (about 4 out of 5 times). I'll try to dig into what exactly is happening and hopefully even find a fix for it.

Assignee: nobody → martin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Component: Untriaged → General
Summary: Your draft message was not copied to your drafts folder (Draft) due to network or file access errors. → "Your draft message was not copied to your drafts folder (Draft)" and ""Your message was sent but a copy was not placed in your sent folder (Sent)" "due to network or file access errors."

I gave some details here: https://support.mozilla.org/en-US/questions/1356031#answer-1458348

The meat of it being ""The current operation on 'Drafts' did not succeed. The mail server for account x@y.z responded: Expected literal, but saw UTF8 (...)"

This isn't the Oauth issue.

the same problem with upgraded Ubuntu 19.10 to 20.04.
Thunderbird version is 91.5.0

guys, maybe it is time to search and fix something?? ticket opened 2 years ago!
any ideas?

(In reply to longman from comment #22)

the same problem with upgraded Ubuntu 19.10 to 20.04.
Thunderbird version is 91.5.0

guys, maybe it is time to search and fix something?? ticket opened 2 years ago!
any ideas?

What account?

IMAP or POP3?

Does it happen in safe mode using Help > Troubleshooting Mode?

Tried a test profile?

I'll try and reproduce with my one Comcast POP3 account, 2 Gmail IMAP accounts, my AOL IMAP account and Verizon IMAP account again, using the Fedora supplied 91.5.0, the 91.6.0, 98.0b1 and 99.0a1 from Thunderbird on Fedora 35 Workstation and Windows 10.

Flags: needinfo?(lon9man)

(In reply to WaltS48 [:walts48] from comment #23)

tested different Gmail accounts. it seems i understood what is the reason.

please follow:

  • i have 2 Gmail accounts
  • 1st have folders with names on Russian language
  • 2nd have folders with names on English language
  • both accounts have in Settings -> Copies & Folders -> Drafts & Templates
    "Drafts" Folder on: XYZ@gmail.com

BUT as you can see above 1st account doesn't have "Drafts"-folder, because it named using russian language like "Черновики".

so i changed settings from default "Drafts"-folder to Other-option with explicit folder, which i need.
after that saving to Drafts-folder works as expected

WaltS48, thanks for your time!

Flags: needinfo?(lon9man)

I can pretty reliably reproduce this fault using a new profile on Thunderbird 101.0 betas and all recent versions.
It appears to be to do with the order of execution when the SMTP socket is closed.
Setting the logging to "All" in preferences, I have saved 2 sets of log output.
1 for a successful message, 1 for a failed one (sent immediately after the successful one).
The message is sent, and is saved to the Sent folder. It just says it's not.
Basically, the code reports that the SMTP socket has closed before it's tried to read the server's response to the QUIT command. At that point it thinks the QUIT has failed, it only reads the SMTP server response a bit later inSmtpClient.jsm, after notifyListenerOnStopSending has thrown the error.
/Users/jkf/Dropbox/Mac (5)/Desktop/success.log
/Users/jkf/Dropbox/Mac (5)/Desktop/failure.log

This is a log from Thunderbird 101.0b1 showing a successful SMTP send to an Office 365 account.
Note the QUIT command at the end is successfully processed before it realises the SMTP socket has closed.
Compare this with failure.log

This is the log output from Thunderbird 101.0b1 of a SMTP message send to an Office 365 account, where Thunderbird incorrectly reports that there were "network or file access errors".
It appears to happen because notifyListenerOnStopCopy is triggered before SmtpClient has tried to (successfully) read the server's response to the SMTP QUIT command.
Compare this with the log output in success.log.

Julian, your logs are very helpful. Because this bug was reported before SmtpClient.jsm was introduced, what you see is likely a different bug. There are two parts in your failure.log

  1. mailnews.smtp: C: QUIT SmtpClient.jsm:579:19
    mailnews.smtp: error { target: TCPSocket, isTrusted: true, name: "NetworkError", message: "Network", errorCode: 2152398868, srcElement: TCPSocket, currentTarget: TCPSocket, eventPhase: 2, bubbles: false, cancelable: false, … } SmtpClient.jsm:434:17
  2. mailnews.send: notifyListenerOnStopCopy; status=2147500036 MessageSend.jsm:394:25

In part1, your SMTP server closed the socket or your network is lost
In part2, MessageSend.jsm failed to copy the sent mail to your IMAP server, maybe due to network problem as well.

I will fix part1 to ignore socket error once quit is called. For part2 and the original bug, it's related to IMAP, please see bug 1745130 or file new bugs, thanks.

See Also: → 1745130

Well, the patch doesn't fix the original bug but I'm going to close it anyway. As I said in comment 28

The original bug is related to IMAP, please see bug 1745130 or file new bugs, thanks.

Assignee: martin → remotenonsense
Target Milestone: --- → 102 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/d1ab5e95dbfa
Ignore socket errors if already destroyed in SmtpClient.jsm. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: