husain wrote:
> I would like to be able to read the article content in elisp
> and execute processes based on that. For example, if the
> message has TO:[email protected], or CC:[email protected], then
> I would like to open the person's profile page.
You can use `message-fetch-field' to get headers, as in:
(defun message-yank-subject ()
(interactive)
(save-excursion
(let ((subj (message-fetch-field "Subject")))
(when subj
(message-goto-body)
(insert (format "%s\n" subj)) ))))
More examples:
https://dataswamp.org/~incal/emacs-init/gnus/message-header.el
--
underground experts united
https://dataswamp.org/~incal