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

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

Re: open an article in google groups


From: Sébastien Vauban
Subject: Re: open an article in google groups
Date: Fri, 05 Jun 2009 15:13:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

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


reply via email to

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