Ubuntu 18.04
1.4.2-f587b7b7
--
Bug?
It's possible, but there is an UI side as well.
Only tried Gmail.
Seems to happen randomly.
--
This happened about three times over the course of a few weeks. 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".
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.
I have the same issue.
What operating system are you using?
macOS High Sierra 10.13.6 (17G65)
What version of Mailspring are you using?
1.4.2-f587b7b7
Using Google Apps accounts, some emails go through, others don't, I haven't noticed a pattern. The undo send countdown goes all the way down then I get an alert with something along the lines of "Failed to send message: undefined". If it happens again I'll update with the full error message.
I haven't noticed the message behaving strangely while writing the message but I'll keep an eye out for it.
Like above, the unsent message will appear in drafts with the message preview, subject, recipients, etc. but once opened it's a blank message, no recipients, message, subject, and also it will be set to the default account rather than the account the message was sent from.
The issue happened with a Google Apps account for me too - did not realize it before.
Same here on Ubuntu with Google account
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.[email protected]
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.
Happened yesterday and again today, the message in the error alert popup was "Sorry, Mailspring was unable to deliver the message: undefined."
Here is a snippet from the logs:
59616 [2018-10-23 11:37:35.575] [main] [info] [local-62709687-1c09] Running SendDraftTask performLocal:
59616 [2018-10-23 11:37:35.576] [main] [info] [local-62709687-1c09] -- Succeeded. Changing status to `remote`
59616 [2018-10-23 11:37:35.946] [foreground] [info] Idle exited with code 0
59616 [2018-10-23 11:37:36.032] [foreground] [info] [local-62709687-1c09] Running SendDraftTask performRemote:
59616 [2018-10-23 11:37:36.034] [foreground] [info] - Sending draft [email protected]
59616 [2018-10-23 11:37:36.034] [foreground] [info] -- Identified `sent` folder: [Gmail]/Sent Mail
59616 [2018-10-23 11:37:36.042] [foreground] [info] -- Sending a single message body to all recipients:
59616 [2018-10-23 11:37:36.044] [foreground] [info] -X An SMTP error occurred: ErrorNoRecipient LibEtPan code: 0
59616 [2018-10-23 11:37:36.563] [foreground] [error] [local-62709687-1c09] -- Failed ({"debuginfo":"ErrorNoRecipient","key":"send-failed","retryable":false,"what":"std::exception"}). Changing status to `complete`
59616 [2018-10-23 11:37:36.631] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: modseq 11340466 to 11340466, uidnext 129791 to 129791
@barbrick Do you use the default undo timeout, or a larger one like me (15s)?
@radu-b Good catch, I also use the 15 second timeout. I wonder if that's related? I'll set it back to 5s for the time being, unfortunately, the issue has been sporadic so it will be hard to tell if that makes a difference.
I've got 5sec delay, not sure if it's default or not. Arch Linux. Non-gmail address (custom domain).

Not being able to send is a problem, but losing the email is critical.
This happens to me as well. What I've found is that the email actually gets sent, but Mailspring just glitches a lot, so the email is moved around between the "Deleted folder" and the "Sent folder".
I'd like to echo everything in this thread -- I get the same type of logs, same error message, same deal with the timer expiring before getting the error, also with gmail, etc. I'd like to add that for whatever reason I don't get this problem when replying to emails. It only happens when clicking the "compose" button and sending an email from the compose window. Maybe someone can confirm this?
yeah it's definitely in compose, as in writing an email from scratch.
On Nov 27 2018, at 6:25 pm, gitsper notifications@github.com wrote:
>
I'd like to echo everything in this thread -- I get the same type of logs, same error message, same deal with the timer expiring before getting the error, also with gmail, etc. I'd like to add that for whatever reason I don't get this problem when replying to emails. It only happens when clicking the "compose" button and sending an email from the compose window. Maybe someone can confirm this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (https://github.com/Foundry376/Mailspring/issues/1107#issuecomment-442122296), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACn4nmtTsq_sSG4_erCWFnEjt-wDVHDhks5uzWeCgaJpZM4XCcio).
Hey folks—thanks for reporting this. I'm looking in to this and I'll see if I can reproduce it reliably. When you're composing emails and this happens, do you remember if you choose a "From:" address in the composer? It sounds like Mailspring might be waiting the 15 seconds, going to send the draft, and discovering that it's sending through Account A with the "From" address of Account B.
I change the "From" often, so could be that.
k
On Dec 6 2018, at 9:48 am, Ben Gotow notifications@github.com wrote:
>
Hey folks—thanks for reporting this. I'm looking in to this and I'll see if I can reproduce it reliably. When you're composing emails and this happens, do you remember if you choose a "From:" address in the composer? It sounds like Mailspring might be waiting the 15 seconds, going to send the draft, and discovering that it's sending through Account A with the "From" address of Account B.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (https://github.com/Foundry376/Mailspring/issues/1107#issuecomment-444779160), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACn4nifNgva2CpOybTwVvZvOfN-sPypVks5u2Mu_gaJpZM4XCcio).
I'm sure it happens when changing the From address, I need to check if it happens without changing it.
Hey folks—thanks for reporting this. I'm looking in to this and I'll see if I can reproduce it reliably. When you're composing emails and this happens, do you remember if you choose a "From:" address in the composer? It sounds like Mailspring might be waiting the 15 seconds, going to send the draft, and discovering that it's sending through Account A with the "From" address of Account B.
Same here
Hey folks—thanks for reporting this. I'm looking in to this and I'll see if I can reproduce it reliably. When you're composing emails and this happens, do you remember if you choose a "From:" address in the composer? It sounds like Mailspring might be waiting the 15 seconds, going to send the draft, and discovering that it's sending through Account A with the "From" address of Account B.
Since reading this comment, I have been composing new mail by first selecting the inbox of the account I want to send from. Then when I click the send button, the "from" address in the composer window is populated with the address that I want. I have not had any errors sending mail in this way, so it seems your assessment is spot on!
I'm sure it happens when changing the From address, I need to check if it happens without changing it.
Hey folks—thanks for reporting this. I'm looking in to this and I'll see if I can reproduce it reliably. When you're composing emails and this happens, do you remember if you choose a "From:" address in the composer? It sounds like Mailspring might be waiting the 15 seconds, going to send the draft, and discovering that it's sending through Account A with the "From" address of Account B.
It happened to me without changing the from field but having set 15 secs to undo send in the timer settings option.
Oh my god, after a long message is the second time this happens to me. I can see the message on the Drafts in front of the Subject until the first paragraph. When open the message there is nothing there.
So annoying! 1 year and still not fixed.
I am also having this error with an Office365 account.
Same here with an IMAP account, if i have configured 2 sending accounts, not just lost the email but also when changing the sender the new email disappears.
One account has a predefined BCC.
Just a shame, it's an email client ! the only thing that needs to works allways isnt not working
Using Ubuntu 20.04 some emails are being lost my being moved to trash, why?