Hi Reiner,

Reiner Steib wrote:
> Leo wrote:
>
>> I wonder if it is possible to construct a url based on the article in Gnus
>> and view the article in the google groups in the browser. So it is the
>> reverse of nnweb.
>
> The following opens the article in the browser when clicking (or using RET)
> on a MID in References and Message-ID headers:
>
>   (add-to-list
>    'gnus-header-button-alist
>    '("^\\(References\\|Message-I[Dd]\\):" "<\\([^<>]+\\)>"
>      1 (>= gnus-button-message-level 0) rs-gnus-button-browse-mid 1)
>    t) ;; append!

I've added the following code to my `.gnus':

--8<---------------cut here---------------start------------->8---
;; auxiliary article mode commands for Gnus
(require 'rs-gnus-article)

;; initialization
(rs-gnus-buttons)

;; TODO Could be limited to news headers only
(eval-after-load "gnus-art"
  '(setq gnus-visible-headers
         (concat (format
                  "^\\(%s\\):"
                  (regexp-opt
                   '("Message-ID" "X-Spam-Level" "X-Report-Spam")))
                 "\\|" gnus-visible-headers)))

;; open the article in the browser when clicking (or using `RET') on a MID
;; in `References' and `Message-ID' headers
(eval-after-load "gnus-art"
  '(add-to-list
    'gnus-header-button-alist
    '("^\\(References\\|Message-I[Dd]\\):" "<\\([^<>]+\\)>"
      1 (>= gnus-button-message-level 0) rs-gnus-button-browse-mid 1)
    t)) ;; append!
--8<---------------cut here---------------end--------------->8---

And I see the button on the Message-ID, which opens well Firefox... but
doesn't find the article in Google Groups. Not even for your article I'm
replying to!

Am I missing something?

Best regards,
  Seb

-- 
Sébastien Vauban
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to