info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting summary buffer color by header/body content


From: Bastien
Subject: Re: setting summary buffer color by header/body content
Date: Mon, 28 Apr 2008 18:19:31 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

marklar <markprice@gmail.com> writes:

> From here, the question seems to be "how do I look at the header/
> body?"

Maybe this can help:

(defun bzg-gnus-goto-google ()
  (interactive)
  (when (memq major-mode '(gnus-summary-mode gnus-article-mode))
    (when (eq major-mode 'gnus-article-mode)
      (gnus-article-show-summary))
    (let* ((article (gnus-summary-article-number))
           (header (gnus-summary-article-header article))
           (id (substring (mail-header-id header) 1 -1)))
      (browse-url
       (format "http://groups.google.com/groups?selm=%s"; id)))))

This function will examin the message, pick up its message-id from the
header, then search the message on Google groups.

Make sure you check the docstring of these functions:

gnus-article-show-summary
gnus-summary-article-number
gnus-summary-article-header

HTH,

-- 
Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]