jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 57 forks source link

Edge case: Attachments are lost if sending fails first time around (due to auth-info decryption failed) #124

Open rjhwelsh opened 3 years ago

rjhwelsh commented 3 years ago

Hi,

I am using mu(4e) v1.4.15 with org-msg 3.9 (7cedeee) via doom-emacs (Emacs 27.2).

Issue: Attachments disappear when authentication via auth-info.gpg fails.

Steps 3-4 are the critical step, when the sending process fails due to a bad authentication, and I suspect when the attachments are lost.

Steps to reproduce:

  1. Use org-msg-attach to attach a file to the email.
  2. Ensure your smart-card (for ~/.authinfo.gpg) is not plugged in and gpg-agent, etc. are not already active.
  3. Attempt to send email, and ensure that decryption fails.
  4. I am then returned to the composition buffer, except my org-msg raw text is replaced with the xml / html equivalent.
  5. Plug in smart card. Attempt to re-send.
  6. This time, after some prompts (for pin-codes, etc) the email is sent successfully.
  7. Check receiving address.
  8. The email is received with the text, but attachments are missing.
jeremy-compostella commented 2 years ago

You need to run the undo function between step 4 and step 5.