GNOME Bugzilla – Bug 727679
Message marked "sent successfully, but could not be saved to Sent Mail"
Last modified: 2019-01-15 05:34:56 UTC
I have a message stuck in my Geary Mail Outbox marked "This message was sent successfully, but could not be saved to Sent Mail". I sent the same message again, just to be sure; and to get a copy into Sent Mail. Then I tried to delete the marked-up message in my Outbox. A pop-up appears reading "Do you want to permanently delete these messages?". Click on Delete, but nothing happens, and message is still to be found in Outbox on re-entry to Geary. I've only seen this happen once. I can't easily provide an example attachment, I'm afraid.
POP? IMAP? GMail?
IMAP. ZOHO.
I just had the same issue and it turns out to be a DNS resolution issue. I have two different domains hosted on the same server on Dreamhost, one was setup as mail.example1.com a long ago, the other, mail.example2.com just set up yesterday. The example2.com domain addresses will even reject the incoming email but the example1.com won't. Which leads me to think that you'll have to wait until DNS propagates properly. In my case not only do I get the "This message was sent successfuly..." but also cannot receive yet emails on that server, sending through works fine though. As said, both domains use the same mail server and software so I'm almost sure it is a DNS issue. I setup both accounts and on the one I just setup yesterday I can see only this 3 folders on the tree beneath the account name: * Inbox * Outbox * Labels And as for the older account I see: * Inbox * Drafts * Sent mail * Spam * Trash * Outbox * Labels So maybe the sent mail folder (and all others which geary tries to use) will be available later when DNS propagates.
Created attachment 289074 [details] Massage stuck in outbox screenshot
Hi, I have the same problem with one of my e-mail accounts. When I send massage with larger than 5MB attachment, the mail is sent correctly (I checked that with my friend), but it's not saved to my Sent email on the server. It's stuck in outbox with sign "Massage was sent succesfully but could not be saved to Sent mail" - see attached screenshot in previous post. I can reproduce this behaviour every time. This happens only with my active.cz domain mail address. When I try to send large files with my google account, there's no problem. This is not a problem of the active.cz mail account. When I use other e-mail clients like Evolution or Thunderbird, even large files are saved to Sent email withou any problems. I am alos attaching my active.cz domain setup. I am using Gear 0.8.1 Tom
Created attachment 289075 [details] Mail account with the problem This is the mail setup with the problem from previous post.
Tom, I'll need to see a Geary debug log to trace the problem. Please run Geary like this from a console: $ geary --debug --log-network > geary.log and reproduce the problem. Please send the log to geary@yorba.org.
Hi Jim, I sent a mail with reqired info.
I think that comment 3 (by Gustavo Rubio) may shed some light on this issue. I'm having this problem only with an account (dovecot server) where the email address domain is different from mail server domain. Recently it's happening much more frequently. In the past it used to happen when I had some attachment, now it happens also with emails without attachments. And the problem is that sometimes the message is not actually sent (just sent two failed messages to a list which always returns my own messages..). Jim, I'll see if I can reproduce it and send a trace to you
I take back the previous statement: the two messages were actually sent to the list, but Geary was not in sync with the server. I could see them on the inbox only after closing and restarting geary. Not easy to reproduce.. I should always run geary with debug enabled.
+1 Sending a large attachment (4 MB) from imap account (1and1.com), getting "message sent, but could not be saved to sent folder".
*** Bug 733541 has been marked as a duplicate of this bug. ***
*** Bug 741186 has been marked as a duplicate of this bug. ***
There may well be a number of reasons why this could happen. I used to get it a lot on flakey wifi connections and Geary was having trouble copying it to the Sent folder on my Cyrus server because of Bug 757166. A few of these issues have been fixed in Geary 0.11, so I'm wondering if people are still seeing this frequently when running 0.11? In any case, Geary needs to retry the copy automatically, or else let people do it manually. Something like Bug 741186 but less hacky.
Not frequently, but it happened to me few days ago. On a wired connection. Cannot remember the details of that email. I'll report back when it occurs again
Just had a message stuck in the Outbox with "This message was sent successfully, but could not be saved to Sent Mail." I quit and restarted and the message is now found in Sent Mail and cleared from the Outbox. I have one other message that is in the "This message was sent..." state but will not resolve after stop/start. Is there a way to resolve this issue via sqlite?
(In reply to Ken Berland from comment #16) > > Is there a way to resolve this issue via sqlite? The app relies on logic stored in the executable rather than in the database to keep its various tables in sync, so you'd need to manually reproduce that all to avoid potential bugs with it in the future. A terrible hack would be to copy and past the message into a new message, save it as a draft, then move that to your Sent folder - but unless the message is a reply to an existing message, there's no way to get that inserted into the conversation.
Created attachment 355523 [details] Proposed patches I think I know what caused the patches from bug 741186 to generate endless copies of emails: In those patches, if the message fails to be sent, it is requeued and reprocessed (including saving a copy to Sent) over and over again. The fix is to requeue but not save to Sent if the message failed to be sent. That way, the message is saved only once. There is an additional bug where the outbox postman fails to start when Geary starts with the error message "geary_imap_mailbox_specifier_construct_from_folder_path: assertion 'delim != NULL' failed". I added a patch to the beginning of the series that corrects this problem. I also added a patch to the end of the series that removes the nonfunctional Try Again button. After compiling Geary with the attached patches and running it once, all of my stuck emails were rescued :-D Michael, are these improved patches good enough for inclusion in Geary?
Hey Alex, nice catches! The patches look good, thanks for fixing that logic error I made. I've pushed this to master as commit 504b1fb, and will merge it to geary-0.12 once it's had a bit of testing there and close this then. Cheers!
Thank you!
(In reply to Alex Henrie from comment #18) > I also added a patch to the end of the series that > removes the nonfunctional Try Again button. Why do you want to remove the button instead of fixing its non-functionality?! I liked seeing it in the 0.12 version while trying Fedora 27 beta. I prefer to have a manual control over things if algorithms go south! It's better to have a fail fast approach though, to clarify with an error message whatever happened when trying to save the message to the sent mail folder.
(In reply to Anass Ahmed from comment #21) > Why do you want to remove the button instead of fixing its > non-functionality?! I liked seeing it in the 0.12 version while trying > Fedora 27 beta. This patch fixes a bug that prevents Geary from attempting to automatically resolve the problem in the same way as it does when it cannot send message in the first place. You will still be informed that the problem is occurring, but now Geary just won't simply give up after one attempt. > I prefer to have a manual control over things if algorithms go south! > > It's better to have a fail fast approach though, to clarify with an error > message whatever happened when trying to save the message to the sent mail > folder. This is being taken care of as part of Bug 713006, which will be landing in 0.13.
This has been merged to geary-0.12, so resolving as fixed.
I'm still experiencing this bug using latest master. This happens regularly since today. It might just be a temporary problem with my account server, I don't know... Here's what happen: I send the email, I hear immediately the sound which confirms it was sent but the message remains in Outbox. Then I close Geary and start it again: the message is moved correctly from Outbox to Sent folder.
Today sent mails are again saved correctly in the Sent folder. So a temporary problem.. no idea about the cause.
Okay, reopening this to track it down further. Federico, did you get a Problem Report infobar appear when the messages were remaining in the Outbox?
I don't think I got a problem report 3 days ago. Today it happened again and definitely no infobar appeared. After quitting and restarting Geary, it's always saved correctly.
Hey Federico, Two things: can you attach a "geary -d" log of when the problem occurs? Also, can you try building the wip/789924-network-transition-redux branch and see if that helps. Ta!
I cannot reproduce it today. Just tested on master~g8a88d17e Usually when problem occurs again, it's easy to reproduce. I'll come back here as soon as it happens.
Resolving this as incomplete for the moment, please open a new issue on Gitlab with logs if it can be reproduced.