Accessing the body a message programatically

Subject: Accessing the body a message programatically

Date: Mon, 16 Dec 2019 20:34:11 +0100

To: notmuch@notmuchmail.org

Cc:

From: Alan Schmitt


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
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: