Re: save email in org format

James Thomas <[email protected]> Tue, 24 Dec 2024 07:31:05 +0530
Newsgroups gmane.emacs.gnus.general
Message-ID <[email protected]>
Uwe Brauer wrote:

> Hi
>
> Vanilla gnus offers to save single messages in the following format 
>
> * gnus-summary-save-in-rmail (Rmail format)
> * gnus-summary-save-in-mail (Unix mail format)
> * gnus-summary-save-in-folder (MH folder)
> * gnus-summary-save-in-file (article format)
> * gnus-summary-save-body-in-file (article body)
> * gnus-summary-save-in-vm (use VM’s folder format)
> * gnus-summary-write-to-file (article format -- overwrite)
> * gnus-summary-write-body-to-file (article body -- overwrite)
> * gnus-summary-save-in-pipe (article format)
>
>
> Does somebody knows about a package that allows to save in org format,
> where the org header is the from field, say

Since an email body has no hierarchy, you only mean to convert headers
into org headers, am I right? If so I guess you could pipe ('|') it to a
sed command that does only that.

If you mean for a whole thread (with 'M-&'), you could insert as many
asterisks as gnus-summary-thread-level in advance.

--