Index: lisp/nnweb.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnweb.el,v
retrieving revision 7.10
diff -c -r7.10 nnweb.el
*** lisp/nnweb.el 7 Sep 2005 13:50:08 -0000 7.10
--- lisp/nnweb.el 31 Dec 2005 10:47:14 -0000
***************
*** 27,37 ****
;; Note: You need to have `w3' installed for some functions to work.
! ;; FIXME: Due to changes in the HTML output of Google Groups and Gmane, stuff
! ;; related to web groups (gnus-group-make-web-group) doesn't work anymore.
!
! ;; Fetching an article by MID (cf. gnus-refer-article-method) over Google
! ;; Groups should work.
;;; Code:
--- 27,34 ----
;; Note: You need to have `w3' installed for some functions to work.
! ;; FIXME: Due to changes in the HTML output of Gmane, stuff related to
! ;; web groups doesn't work anymore.
;;; Code:
***************
*** 61,66 ****
--- 58,64 ----
(defvar nnweb-type-definition
'((google
(id . "http://www.google.com/groups?as_umsgid=%s&hl=en&dmode=source")
+ (result . "http://groups.google.com/group/%s/msg/%s?dmode=source")
(article . nnweb-google-wash-article)
(reference . identity)
(map . nnweb-google-create-mapping)
***************
*** 337,342 ****
--- 335,341 ----
(mm-url-decode-entities))))
(defun nnweb-google-parse-1 (&optional Message-ID)
+ "Parse search result in current buffer."
(let ((i 0)
(case-fold-search t)
(active (cadr (assoc nnweb-group nnweb-group-alist)))
***************
*** 349,358 ****
;; Go through all the article hits on this page.
(goto-char (point-min))
(while (re-search-forward
! "a href=/groups\\(\\?[^ \">]*selm=\\([^ &\">]+\\)\\)" nil t)
! (setq mid (match-string 2)
url (format
! (nnweb-definition 'id) mid))
(narrow-to-region (search-forward ">" nil t)
(search-forward "" nil t))
(mm-url-remove-markup)
--- 348,360 ----
;; Go through all the article hits on this page.
(goto-char (point-min))
(while (re-search-forward
! "a +href=\"/group/\\([^>\"]+\\)/browse_thread/[^>]+#\\([0-9a-f]+\\)" nil t)
! (setq Newsgroups (match-string-no-properties 1)
! ;; Note: with groups-ng, mid is no longer a common
! ;; Message-ID, but some internal id.
! mid (match-string-no-properties 2)
url (format
! (nnweb-definition 'result) Newsgroups mid))
(narrow-to-region (search-forward ">" nil t)
(search-forward "" nil t))
(mm-url-remove-markup)
***************
*** 360,384 ****
(setq Subject (buffer-string))
(goto-char (point-max))
(widen)
! (forward-line 2)
! (when (looking-at "
]+>")
! (goto-char (match-end 0)))
! (if (not (looking-at "]+>"))
! (skip-chars-forward " \t")
! (narrow-to-region (point)
! (search-forward "" nil t))
! (mm-url-remove-markup)
! (mm-url-decode-entities)
! (setq Newsgroups (buffer-string))
! (goto-char (point-max))
! (widen)
! (skip-chars-forward "- \t"))
(when (looking-at
! "\\([0-9]+\\)[/ ]\\([A-Za-z]+\\)[/ ]\\([0-9]+\\)[ \t]*by[ \t]*\\([^<]*\\) - ]+\\).*Next" nil t))
(>= i nnweb-max-hits))
(setq more nil)
;; Yup, there are more articles
--- 418,424 ----
(goto-char (point-min))
(incf i 100)
(if (or (not (re-search-forward
! "