Description
When sending, the undo counter (15s in this case) finishes, there is the usual UI indication of the sending in progress and then an error message is shown, with a text like “Failed to send e-mail”. This happened about three times over the course of a few weeks.
The original message is not sent (I’ve checked the GMail sent folder online) and it cannot be recovered - for instance from Drafts. There is a message in Drafts with the respective subject and a summary line that looks like the sent message however it cannot be opened correctly - an empty message editor is shown. The GMail Drafts folder does not contain the message at all.
As a warning sign, I noticed in two of the cases that the editor behaved strangely when writing the email. Some formatting was used in these cases (monspaced font in one and bullets in the other), and there were some editing glitches: for instance a word was deleted completely out of the blue, or a few items on the bullet list just vanished. Subsequently sending these e-mails failed as described.
Setup
- OS and Version: Ubuntu 18.04
- Mailspring Version: 1.4.2-f587b7b7
Additional Context
It just happened again, without any formatting problems. The exact error message is “Sorry, Mailspring was unable to deliver this message: undefined”
I’ve opened the developer tools and the log contains a bunch of SyncbackDraftTask objects followed by a SendDraftTask.
The SyncbackDraftTask objects contain the correct details of the message (except there’s no body field), but the SendDraftTask seems to be mixed up: it has a different account id, the sender is the default account (not the one I used in the draft), the subject is empty and the body is just <br>
In other messages that are sent correctly, SendDraftTask contains the correct information for the sent message.
Here is an error fragment from the log at the time of sending:
3198 [2018-10-18 15:44:26.866] [foreground] [info] [local-80dcf29b-ec5f] Running SendDraftTask performRemote:
3198 [2018-10-18 15:44:26.867] [foreground] [info] - Sending draft [1539866429.local-364f71d3-03f2-v1.4.2-f587b7b7@getmailspring.com](mailto:1539866429.local-364f71d3-03f2-v1.4.2-f587b7b7@getmailspring.com)
3198 [2018-10-18 15:44:26.868] [foreground] [info] -- Identified `sent` folder: [Gmail]/Sent Mail
3198 [2018-10-18 15:44:26.868] [foreground] [info] -- Sending a single message body to all recipients:
3198 [2018-10-18 15:44:26.869] [foreground] [info] -X An SMTP error occurred: ErrorNoRecipient LibEtPan code: 0
3198 [2018-10-18 15:44:26.914] [foreground] [error] [local-80dcf29b-ec5f] -- Failed ({"debuginfo":"ErrorNoRecipient","key":"send-failed","retryable":false,"what":"std::exception"}). Changing status to `complete`
3198 [2018-10-18 15:44:26.952] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: modseq 46702 to 46702, uidnext 305 to 305
I can send all the logs if needed, not sure if it’s good to attach them here.
(Originally posted by radu-b on GitHub.)