Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Mail getting stuck in drafts folder after working offline

#1461

I don't work offline that often, but on both occasions where I have recently, some messages in drafts have got stuck and do not get sent until I restart MailMate.

Sequence:

  • Write a bunch of mails offline. (wifi off)
  • Go back online: local wifi first, then bring up corporate VPN (the lag here may be a factor, since mail my servers are not reachable until the VPN is up).
  • Some of the mails can get sent, but not all. In the most recent case, 3 of 6 mails went automatically. 3 did not and showed "Pending submission"/"not available" in drafts.
  • Clicking send on the message menu does not help -- you get an error sound but nothing else.
  • Synch doesn't help.
  • Waiting doesn't help.
  • Activity viewer shows no activity.

The only way I've found to get the messages to go is to restart MailMate (nothing else changed). They go immediately.

My system: MailMate/5234 MacBookPro11,2/x86_64/8/10.11.4

Reported by Alan · April 10th, 2016 @ 01:48 PM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. Alan
    Alan

    Quick update: I've confirmed that this does have some connection with immediate reachability to mail servers. If I queue up mails offline and connect to my corporate network (giving immediate reachability), mail messages get sent within seconds. So my guess is that something odd is happening if the SMTP server either can't be reached or the DNS lookup fails initially.

    April 27th, 2016 @ 12:01 PM

  2. benny
    benny
    • State changed from new to cantreproduce

    It sounds like the SMTP accounts get into some kind of deadlock in which MailMate no longer tries to send the messages. I assume you can also not send new messages using the same server (until after relaunching)?

    Does this happen regularly? If it does then try the following. First enable connection logging like this (in a Terminal window):

    defaults write com.freron.MailMate LoggingEnabled -bool YES
    

    Wait until you experience the deadlock and then do “Help ▸ Send Server Logs”. You might not be able to send it until relaunching, but that's fine.

    Thanks in advance! I'd really like to fix this.

    (I'll take a look at the code to see if I can spot any obvious issues.)

    April 28th, 2016 @ 10:20 AM

  3. Alan
    Alan

    I'll do some tests and try to repro with logs. As far as I can recall, sending new messages was ok, it was just that a set of messages got stuck in my drafts somehow, but I'm not sure as it was a while back (this only hits me when I'm travelling).

    April 28th, 2016 @ 11:28 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.