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

Duplicates properties in gnus drafts #137

Closed Hugo-Heagren closed 2 years ago

Hugo-Heagren commented 2 years ago

Say I begin writing an email with org-msg in gnus, then save it as a draft. When I come back to edit the draft again later, the #+OPTIONS, STARTUP, and :PROPERTIES: blocks show up twice. If I save and resume again, there are three, and so on each time I do it. I think this is because org-msg doesn't check for internal org-msg file structure like these before it inserts them. Obviously the desired behaviour is to just have one set of blocks, which are used every time I edit the draft.