Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: Does nnweb with Google work any more?
Date: Sat, 25 Feb 2012 17:44:19 +0100	[thread overview]
Message-ID: <87fwdy3lss.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m3fwdzrcv7.fsf@stories.gnus.org>

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

On Sat, Feb 25 2012, Lars Magne Ingebrigtsen wrote:

> Has the Google Groups thing where you could request stuff from
>
> http://www.google.com/groups?as_umsgid=%s&hl=en&dmode=source
>
> totally gone away now?  I can't get it to work, at least...

I have a modified version of nnweb.el which supports MID searching via
http://howardk.freenix.org/ (which now redirects to
http://al.howardknight.net/).

The code was last modified and tested in 2010, so you might need to
adjust it.  And I am not sure if all hunks in the diff are relevant,
because I didn't have enough spare time to bring my diffs from the old
cvs to git.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: rs-nnweb-howardknight.patch --]
[-- Type: text/x-diff, Size: 1917 bytes --]

--- nnweb.el	2012-01-07 19:25:08.000000000 +0100
+++ nnweb.el	2010-01-16 13:31:22.000000000 +0100
@@ -70,6 +71,11 @@
      (address . "http://groups.google.com/groups")
      (base    . "http://groups.google.com")
      (identifier . nnweb-google-identity))
+    (howardk
+     (id . "http://howardk.freenix.org/msgid.cgi?STYPE=msgid&MSGI=<%s>&GOOGLE=on")
+     (article . nnweb-howardk-wash-article)
+     (reference . identity)
+     (identifier . nnweb-howardk-identity))
     (gmane
      (article . nnweb-gmane-wash-article)
      (id . "http://gmane.org/view.php?group=%s")
@@ -296,7 +308,27 @@
 ;;; groups.google.com
 ;;;
 
+;; Updated for Google's changed interface 2008-11
 (defun nnweb-google-wash-article ()
+  (let ((case-fold-search t) url)
+    (goto-char (point-min))
+    (if (or (re-search-forward "The requested message.*could not be found."
+			       nil t)
+	    (re-search-forward
+	     (concat "href=\"\\(/group/[^/]+/msg/[[:alnum:]]+"
+		     "\\?dmode=source\\)\">Show original</a>") nil t))
+	(setq url (format "%s%s&output=gplain"
+			  (nnweb-definition 'base) (match-string 1)))
+      (gnus-message 3 "Requested article not found"))
+    (gnus-message 9 "URL: %s" url)
+    (erase-buffer)
+    (mm-with-unibyte-current-buffer
+      (mm-url-insert-file-contents url))
+    (unless (re-search-forward "^Message-ID:")
+      (gnus-message 3 "Requested article not found")
+      (erase-buffer))))
+
+(defun nnweb-howardk-wash-article ()
   ;; We have Google's masked e-mail addresses here.  :-/
   (let ((case-fold-search t)
 	(start-re "<pre>[\r\n ]*")
@@ -305,6 +337,7 @@
     (if (save-excursion
 	  (or (re-search-forward "The requested message.*could not be found."
 				 nil t)
+	      (re-search-forward "Couldn't find article" nil t)
 	      (not (and (re-search-forward start-re nil t)
 			(re-search-forward end-re nil t)))))
 	;; FIXME: Don't know how to indicate "not found".

[-- Attachment #3: Type: text/plain, Size: 114 bytes --]


Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2012-02-25 16:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-25  0:11 Lars Magne Ingebrigtsen
2012-02-25 16:44 ` Reiner Steib [this message]
2012-03-10  0:55   ` Lars Magne Ingebrigtsen
2012-03-10 11:24     ` David Engster
2012-03-10 12:11       ` Lars Magne Ingebrigtsen
2012-03-10 13:23         ` David Engster
2012-03-10 16:07           ` Andreas Schwab
2012-03-10 17:04             ` David Engster
2012-03-14 15:09             ` Lars Magne Ingebrigtsen
2012-03-14 15:24               ` David Engster
2012-03-14 15:28                 ` Lars Magne Ingebrigtsen
2012-03-14 17:06                   ` David Engster
2012-03-22 20:40                     ` Lars Magne Ingebrigtsen
2012-03-14 15:33               ` James Cloos
2012-03-14 16:40               ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwdy3lss.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).