Re: getting body from message-entity programatically (was: get subject and from on wl-biff-notify-hook function)
Kazuhiro Ito <[email protected]> Fri, 09 Aug 2019 20:57:09 +0900
| Newsgroups | gmane.mail.wanderlust.general |
|---|---|
| Message-ID | <86k1bmblgq.wl--xmue__29383.6682614469$1565351900$gmane$org@d1.dion.ne.jp> |
> elmo-message-fetch-string is giving me:
(snip)
> Which is a kind of raw text. Is it possible to get just the
> body?. Should I grep It and get everything after the line with X-TUID?
The blank-line is a separator between header and body.
(let ((message-text "From: fff\n\nbody of text.")
index)
(setq index (string-match "^$" message-text))
(when index
(substring message-text (1+ index))))
--
Kazuhiro Ito