unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Accessing the body a message programatically
@ 2019-12-16 19:34 Alan Schmitt
  2019-12-17  0:34 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2019-12-16 19:34 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

Hello,

I need to extract some information from a message that is shown in
notmuch-mode, and I was able to easily get the from and subject of the
message. I now need to use the body, but I cannot find how to get it. I
assume I should use notmuch-get-bodypart-text, but I don't know how to
obtain the msg or part argument.

In addition, can I get access to the List-Archive header? I could do it
by spawning an external process to get the raw message, but it seems a
bit heavy handed.

Thanks,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-17  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 19:34 Accessing the body a message programatically Alan Schmitt
2019-12-17  0:34 ` David Bremner
2019-12-17  8:33   ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).