Re: Extracting Header and Content from an Article
Gijs Hillenius <[email protected]> Tue, 19 Nov 2024 10:08:43 +0100
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Organization | Using Emacs' Org Mode |
| Message-ID | <[email protected]> |
On 18 November 2024 21:53 Husain Alshehhi, wrote: > 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). > gnus-summary-show-raw-article ?