sup icon indicating copy to clipboard operation
sup copied to clipboard

Save as draft discards any attachments

Open johslarsen opened this issue 10 years ago • 2 comments

When you save a message as a draft any attachments are discarded silently. This is problem is especially annoying if you forward a message containing attachments (e.g. HTML only mail) and try saving it as a draft.

Steps to reproduce:

  1. Create a message
  2. Attach a file (a)
  3. Save as draft (P)
  4. Open draft

Workaround: Switch to other buffers (;) and just keep the edit-message-mode buffers in the background. However data in these buffers are lost if the application crashes.

johslarsen avatar Jan 05 '15 06:01 johslarsen

The problem here is that drafts are saved on disk as well. A possible solution would be to create a directory next to the email (named, say, /tmp/sup.replymode20150113-12345-abcdefg.eml.attachments to refer to the associated email), remove this dir along with the draft when it is sent/discarded, and re-load it automatically when editing the draft.

rakoo avatar Jan 13 '15 20:01 rakoo

Another option is to have magic headers like mutt supports (http://www.mutt.org/doc/devel/manual.html#edit-header) or to save the full encoded message with attachments.

gauteh avatar Jan 15 '15 09:01 gauteh