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
280 stars 60 forks source link

Message content disappears in replies #21

Closed EinarElen closed 4 years ago

EinarElen commented 4 years ago

When sending replies, the actual content of the reply (everything between the two separators) disappears.

As far as I can see it is not connected to mu4e in particular. mail-user-agent is set. Configuration same as the default one.

Example:

From: Einar Elén <einar.elen@gmail.com>
To: einar.elen@gmail.com
Subject: Re: 
Date: Wed, 27 Nov 2019 16:38:32 +0100
In-reply-to: <87lfs1s6wr.fsf@gmail.com>
Fcc: /home/einarelen/.Maildir/gmail/[Gmail]/Sent Mail/cur/1574869112.10c3f1c2a33b0667.elfriede:2,S
--text follows this line--
#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc:nil d:nil
#+STARTUP: hidestars indent inlineimages
:PROPERTIES:
:reply-to: ("/tmp/87lfs1s6wr.fsf@gmail.com")
:attachment: nil
:END:
t
--citation follows this line (read-only)--
Einar Elén writes:

f 

produces `

From: "Einar Elén
Subject:
To: nil
Cc:
Date: Wed, 27 Nov 2019 15:57:54 +0100

f

`

Using Emacs 27, mu 1.3.5, msmtp 1.8.6

jeremy-compostella commented 4 years ago

This is not clear to me. Do you mean that the 't' that we should expect above the separator is missing ?

EinarElen commented 4 years ago

Basically, anything that should be above the separator is missing. Should've included a more demonstrative example. I found the culprit however, this occurs when org-html-html5-fancy (from ox-html) is set to t.

jeremy-compostella commented 4 years ago

Hi Einar Elén,

Thanks for pointing out the culpirit. It seems that the issue has been introduced when Matt Price was trying to support this org-html-html5-fancy flag (see commit Allow fancy html5 ARTICLE tag during exportation). I have been able to reproduce the issue you reported and I made a fix, see Fix org-html-html5-fancy management. Let me know if it fixes the issue for you.

Regards,

-Jeremy
One Emacs to rule them all

EinarElen commented 4 years ago

This fixes the issue. Thanks, now I can start using org-msg full time :)