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
275 stars 58 forks source link

Switching between text/html email #70

Closed TimQuelch closed 3 years ago

TimQuelch commented 3 years ago

I often want to switch between whether I send plain text email or text+html depending on who I am sending email to. Right now I manually switch between org-msg and notmuch-message modes depending which I want to send, but this is becoming unwieldy.

I'm thinking of submitting a PR which will easily allow switching between text modes. The way I was thinking was by adding more properties which control what is sent:

:PROPERTIES:
:reply-to: nil
:attachment: nil
:html: t
:text: t
:END:

The default values when creating a new email would be determined by a customise option.

I've had a look at the existing code in org-msg-prepare-to-sendand I have a few questions:

TimQuelch commented 3 years ago

I've opened a PR #71

As far as I could tell mml-expand-all-html-into-multipart-related is relatively new and will recursively process all text/html blocks, whereas the old behabiour would not trigger recursively. This means we are required to modify the mml structure directly after parsing.

jeremy-compostella commented 3 years ago

We can close this issue right ?