Re: Extracting Header and Content from an Article
"Husain Alshehhi" <[email protected]> Mon, 18 Nov 2024 21:53:23 -0600
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Message-ID | <[email protected]> |
Tim Landscheidt <[email protected]> writes: > I do not know if it is the right way, but I use patterns of > the type: > > | (gnus-with-article-buffer > | (gnus-fetch-original-field "User-Agent")) > > Similarly, I use gnus-with-article-buffer and > save-mark-and-excursion to "enter" the article buffer, then > article-goto-body to go to the article body's top, and then > search-forward-regexp to capture text. Thank you. Extracting the field worked well. For the body, however, I noticed that I need a little more: what I want to search in is the the whole email, not just the article buffer. In particular, I want to be able to search the text/plain as well as the text/html parts. gnus-with-article-buffer and article-goto-body, on the other hand, only allow me to search within the buffer, which has only the visible part of the email (text/html in my case).