nnweb.el 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. ;;; nnweb.el --- retrieving articles via web search engines
  2. ;; Copyright (C) 1996-2015 Free Software Foundation, Inc.
  3. ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
  4. ;; Keywords: news
  5. ;; This file is part of GNU Emacs.
  6. ;; GNU Emacs is free software: you can redistribute it and/or modify
  7. ;; it under the terms of the GNU General Public License as published by
  8. ;; the Free Software Foundation, either version 3 of the License, or
  9. ;; (at your option) any later version.
  10. ;; GNU Emacs is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ;; GNU General Public License for more details.
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  16. ;;; Commentary:
  17. ;;; Code:
  18. (eval-when-compile (require 'cl))
  19. (require 'nnoo)
  20. (require 'message)
  21. (require 'gnus-util)
  22. (require 'gnus)
  23. (require 'nnmail)
  24. (require 'mm-util)
  25. (require 'mm-url)
  26. (eval-and-compile
  27. (ignore-errors
  28. (require 'url)))
  29. (nnoo-declare nnweb)
  30. (defvoo nnweb-directory (nnheader-concat gnus-directory "nnweb/")
  31. "Where nnweb will save its files.")
  32. (defvoo nnweb-type 'google
  33. "What search engine type is being used.
  34. Valid types include `google', `dejanews', and `gmane'.")
  35. (defvar nnweb-type-definition
  36. '((google
  37. (id . "http://www.google.com/groups?as_umsgid=%s&hl=en&dmode=source")
  38. (result . "http://groups.google.com/group/%s/msg/%s?dmode=source")
  39. (article . nnweb-google-wash-article)
  40. (reference . identity)
  41. (map . nnweb-google-create-mapping)
  42. (search . nnweb-google-search)
  43. (address . "http://groups.google.com/groups")
  44. (base . "http://groups.google.com")
  45. (identifier . nnweb-google-identity))
  46. (dejanews ;; alias of google
  47. (id . "http://www.google.com/groups?as_umsgid=%s&hl=en&dmode=source")
  48. (result . "http://groups.google.com/group/%s/msg/%s?dmode=source")
  49. (article . nnweb-google-wash-article)
  50. (reference . identity)
  51. (map . nnweb-google-create-mapping)
  52. (search . nnweb-google-search)
  53. (address . "http://groups.google.com/groups")
  54. (base . "http://groups.google.com")
  55. (identifier . nnweb-google-identity))
  56. (gmane
  57. (article . nnweb-gmane-wash-article)
  58. (id . "http://gmane.org/view.php?group=%s")
  59. (reference . identity)
  60. (map . nnweb-gmane-create-mapping)
  61. (search . nnweb-gmane-search)
  62. (address . "http://search.gmane.org/nov.php")
  63. (identifier . nnweb-gmane-identity)))
  64. "Type-definition alist.")
  65. (defvoo nnweb-search nil
  66. "Search string to feed to Google.")
  67. (defvoo nnweb-max-hits 999
  68. "Maximum number of hits to display.")
  69. (defvoo nnweb-ephemeral-p nil
  70. "Whether this nnweb server is ephemeral.")
  71. ;;; Internal variables
  72. (defvoo nnweb-articles nil)
  73. (defvoo nnweb-buffer nil)
  74. (defvoo nnweb-group-alist nil)
  75. (defvoo nnweb-group nil)
  76. (defvoo nnweb-hashtb nil)
  77. ;;; Interface functions
  78. (nnoo-define-basics nnweb)
  79. (deffoo nnweb-retrieve-headers (articles &optional group server fetch-old)
  80. (nnweb-possibly-change-server group server)
  81. (with-current-buffer nntp-server-buffer
  82. (erase-buffer)
  83. (let (article header)
  84. (mm-with-unibyte-current-buffer
  85. (while (setq article (pop articles))
  86. (when (setq header (cadr (assq article nnweb-articles)))
  87. (nnheader-insert-nov header))))
  88. 'nov)))
  89. (deffoo nnweb-request-scan (&optional group server)
  90. (nnweb-possibly-change-server group server)
  91. (if nnweb-ephemeral-p
  92. (setq nnweb-hashtb (gnus-make-hashtable 4095))
  93. (unless nnweb-articles
  94. (nnweb-read-overview group)))
  95. (funcall (nnweb-definition 'map))
  96. (unless nnweb-ephemeral-p
  97. (nnweb-write-active)
  98. (nnweb-write-overview group)))
  99. (deffoo nnweb-request-group (group &optional server dont-check info)
  100. (nnweb-possibly-change-server group server)
  101. (unless (or nnweb-ephemeral-p
  102. dont-check
  103. nnweb-articles)
  104. (nnweb-read-overview group))
  105. (cond
  106. ((not nnweb-articles)
  107. (nnheader-report 'nnweb "No matching articles"))
  108. (t
  109. (let ((active (if nnweb-ephemeral-p
  110. (cons (caar nnweb-articles)
  111. (caar (last nnweb-articles)))
  112. (cadr (assoc group nnweb-group-alist)))))
  113. (nnheader-report 'nnweb "Opened group %s" group)
  114. (nnheader-insert
  115. "211 %d %d %d %s\n" (length nnweb-articles)
  116. (car active) (cdr active) group)))))
  117. (deffoo nnweb-close-group (group &optional server)
  118. (nnweb-possibly-change-server group server)
  119. (when (gnus-buffer-live-p nnweb-buffer)
  120. (with-current-buffer nnweb-buffer
  121. (set-buffer-modified-p nil)
  122. (kill-buffer nnweb-buffer)))
  123. t)
  124. (deffoo nnweb-request-article (article &optional group server buffer)
  125. (nnweb-possibly-change-server group server)
  126. (with-current-buffer (or buffer nntp-server-buffer)
  127. (let* ((header (cadr (assq article nnweb-articles)))
  128. (url (and header (mail-header-xref header))))
  129. (when (or (and url
  130. (mm-with-unibyte-current-buffer
  131. (mm-url-insert url)))
  132. (and (stringp article)
  133. (nnweb-definition 'id t)
  134. (let ((fetch (nnweb-definition 'id))
  135. art active)
  136. (when (string-match "^<\\(.*\\)>$" article)
  137. (setq art (match-string 1 article)))
  138. (when (and fetch art)
  139. (setq url (format fetch
  140. (mm-url-form-encode-xwfu art)))
  141. (mm-with-unibyte-current-buffer
  142. (mm-url-insert url))
  143. (if (nnweb-definition 'reference t)
  144. (setq article
  145. (funcall (nnweb-definition
  146. 'reference) article)))))))
  147. (unless nnheader-callback-function
  148. (funcall (nnweb-definition 'article)))
  149. (nnheader-report 'nnweb "Fetched article %s" article)
  150. (cons group (and (numberp article) article))))))
  151. (deffoo nnweb-close-server (&optional server)
  152. (when (and (nnweb-server-opened server)
  153. (gnus-buffer-live-p nnweb-buffer))
  154. (with-current-buffer nnweb-buffer
  155. (set-buffer-modified-p nil)
  156. (kill-buffer nnweb-buffer)))
  157. (nnoo-close-server 'nnweb server))
  158. (deffoo nnweb-request-list (&optional server)
  159. (nnweb-possibly-change-server nil server)
  160. (with-current-buffer nntp-server-buffer
  161. (nnmail-generate-active (list (assoc server nnweb-group-alist)))
  162. t))
  163. (deffoo nnweb-request-update-info (group info &optional server))
  164. (deffoo nnweb-asynchronous-p ()
  165. nil)
  166. (deffoo nnweb-request-create-group (group &optional server args)
  167. (nnweb-possibly-change-server nil server)
  168. (nnweb-request-delete-group group)
  169. (push `(,group ,(cons 1 0)) nnweb-group-alist)
  170. (nnweb-write-active)
  171. t)
  172. (deffoo nnweb-request-delete-group (group &optional force server)
  173. (nnweb-possibly-change-server group server)
  174. (gnus-alist-pull group nnweb-group-alist t)
  175. (nnweb-write-active)
  176. (gnus-delete-file (nnweb-overview-file group))
  177. t)
  178. (nnoo-define-skeleton nnweb)
  179. ;;; Internal functions
  180. (defun nnweb-read-overview (group)
  181. "Read the overview of GROUP and build the map."
  182. (when (file-exists-p (nnweb-overview-file group))
  183. (mm-with-unibyte-buffer
  184. (nnheader-insert-file-contents (nnweb-overview-file group))
  185. (goto-char (point-min))
  186. (let (header)
  187. (while (not (eobp))
  188. (setq header (nnheader-parse-nov))
  189. (forward-line 1)
  190. (push (list (mail-header-number header)
  191. header (mail-header-xref header))
  192. nnweb-articles)
  193. (nnweb-set-hashtb header (car nnweb-articles)))))))
  194. (defun nnweb-write-overview (group)
  195. "Write the overview file for GROUP."
  196. (with-temp-file (nnweb-overview-file group)
  197. (let ((articles nnweb-articles))
  198. (while articles
  199. (nnheader-insert-nov (cadr (pop articles)))))))
  200. (defun nnweb-set-hashtb (header data)
  201. (gnus-sethash (nnweb-identifier (mail-header-xref header))
  202. data nnweb-hashtb))
  203. (defun nnweb-get-hashtb (url)
  204. (gnus-gethash (nnweb-identifier url) nnweb-hashtb))
  205. (defun nnweb-identifier (ident)
  206. (funcall (nnweb-definition 'identifier) ident))
  207. (defun nnweb-overview-file (group)
  208. "Return the name of the overview file of GROUP."
  209. (nnheader-concat nnweb-directory group ".overview"))
  210. (defun nnweb-write-active ()
  211. "Save the active file."
  212. (gnus-make-directory nnweb-directory)
  213. (with-temp-file (nnheader-concat nnweb-directory "active")
  214. (prin1 `(setq nnweb-group-alist ',nnweb-group-alist) (current-buffer))))
  215. (defun nnweb-read-active ()
  216. "Read the active file."
  217. (load (nnheader-concat nnweb-directory "active") t t t))
  218. (defun nnweb-definition (type &optional noerror)
  219. "Return the definition of TYPE."
  220. (let ((def (cdr (assq type (assq nnweb-type nnweb-type-definition)))))
  221. (when (and (not def)
  222. (not noerror))
  223. (error "Undefined definition %s" type))
  224. def))
  225. (defun nnweb-possibly-change-server (&optional group server)
  226. (when server
  227. (unless (nnweb-server-opened server)
  228. (nnweb-open-server server))
  229. (nnweb-init server))
  230. (unless nnweb-group-alist
  231. (nnweb-read-active))
  232. (unless nnweb-hashtb
  233. (setq nnweb-hashtb (gnus-make-hashtable 4095)))
  234. (when group
  235. (setq nnweb-group group)))
  236. (defun nnweb-init (server)
  237. "Initialize buffers and such."
  238. (unless (gnus-buffer-live-p nnweb-buffer)
  239. (setq nnweb-buffer
  240. (save-current-buffer
  241. (nnheader-set-temp-buffer
  242. (format " *nnweb %s %s %s*"
  243. nnweb-type nnweb-search server))
  244. (mm-disable-multibyte)
  245. (current-buffer)))))
  246. ;;;
  247. ;;; groups.google.com
  248. ;;;
  249. (defun nnweb-google-wash-article ()
  250. ;; We have Google's masked e-mail addresses here. :-/
  251. (let ((case-fold-search t)
  252. (start-re "<pre>[\r\n ]*")
  253. (end-re "[\r\n ]*</pre>"))
  254. (goto-char (point-min))
  255. (if (save-excursion
  256. (or (re-search-forward "The requested message.*could not be found."
  257. nil t)
  258. (not (and (re-search-forward start-re nil t)
  259. (re-search-forward end-re nil t)))))
  260. ;; FIXME: Don't know how to indicate "not found".
  261. ;; Should this function throw an error? --rsteib
  262. (progn
  263. (gnus-message 3 "Requested article not found")
  264. (erase-buffer))
  265. (delete-region (point-min)
  266. (re-search-forward start-re))
  267. (goto-char (point-min))
  268. (delete-region (progn
  269. (re-search-forward end-re)
  270. (match-beginning 0))
  271. (point-max))
  272. (mm-url-decode-entities))))
  273. (defun nnweb-google-parse-1 (&optional Message-ID)
  274. "Parse search result in current buffer."
  275. (let ((i 0)
  276. (case-fold-search t)
  277. (active (cadr (assoc nnweb-group nnweb-group-alist)))
  278. Subject Score Date Newsgroups From
  279. map url mid)
  280. (unless active
  281. (push (list nnweb-group (setq active (cons 1 0)))
  282. nnweb-group-alist))
  283. ;; Go through all the article hits on this page.
  284. (goto-char (point-min))
  285. (while
  286. (re-search-forward
  287. "a +href=\"/group/\\([^>\"]+\\)/browse_thread/[^>]+#\\([0-9a-f]+\\)"
  288. nil t)
  289. (setq Newsgroups (match-string-no-properties 1)
  290. ;; Note: Starting with Google Groups 2, `mid' is a Google-internal
  291. ;; ID, not a proper Message-ID.
  292. mid (match-string-no-properties 2)
  293. url (format
  294. (nnweb-definition 'result) Newsgroups mid))
  295. (narrow-to-region (search-forward ">" nil t)
  296. (search-forward "</a>" nil t))
  297. (mm-url-remove-markup)
  298. (mm-url-decode-entities)
  299. (setq Subject (buffer-string))
  300. (goto-char (point-max))
  301. (widen)
  302. (narrow-to-region (point)
  303. (search-forward "</table" nil t))
  304. (mm-url-remove-markup)
  305. (mm-url-decode-entities)
  306. (goto-char (point-max))
  307. (when
  308. (re-search-backward
  309. "^\\(?:\\(\\w+\\) \\([0-9]+\\)\\|\\S-+\\)\\(?: \\([0-9]\\{4\\}\\)\\)? by ?\\(.*\\)"
  310. nil t)
  311. (setq Date (if (match-string 1)
  312. (format "%s %s 00:00:00 %s"
  313. (match-string 1)
  314. (match-string 2)
  315. (or (match-string 3)
  316. (format-time-string "%Y")))
  317. (current-time-string)))
  318. (setq From (match-string 4)))
  319. (widen)
  320. (incf i)
  321. (unless (nnweb-get-hashtb url)
  322. (push
  323. (list
  324. (incf (cdr active))
  325. (make-full-mail-header
  326. (cdr active) (if Newsgroups
  327. (concat "(" Newsgroups ") " Subject)
  328. Subject)
  329. From Date (or Message-ID mid)
  330. nil 0 0 url))
  331. map)
  332. (nnweb-set-hashtb (cadar map) (car map))))
  333. map))
  334. (defun nnweb-google-reference (id)
  335. (let ((map (nnweb-google-parse-1 id)) header)
  336. (setq nnweb-articles
  337. (nconc nnweb-articles map))
  338. (when (setq header (cadar map))
  339. (mm-with-unibyte-current-buffer
  340. (mm-url-insert (mail-header-xref header)))
  341. (caar map))))
  342. (defun nnweb-google-create-mapping ()
  343. "Perform the search and create a number-to-url alist."
  344. (with-current-buffer nnweb-buffer
  345. (erase-buffer)
  346. (nnheader-message 7 "Searching google...")
  347. (when (funcall (nnweb-definition 'search) nnweb-search)
  348. (let ((more t)
  349. (i 0))
  350. (while more
  351. (setq nnweb-articles
  352. (nconc nnweb-articles (nnweb-google-parse-1)))
  353. ;; Check if there are more articles to fetch
  354. (goto-char (point-min))
  355. (incf i 100)
  356. (if (or (not (re-search-forward
  357. "<a [^>]+href=\"\n?\\([^>\" \n\t]+\\)[^<]*<img[^>]+src=[^>]+next"
  358. nil t))
  359. (>= i nnweb-max-hits))
  360. (setq more nil)
  361. ;; Yup, there are more articles
  362. (setq more (concat (nnweb-definition 'base) (match-string 1)))
  363. (when more
  364. (erase-buffer)
  365. (nnheader-message 7 "Searching google...(%d)" i)
  366. (mm-url-insert more))))
  367. ;; Return the articles in the right order.
  368. (nnheader-message 7 "Searching google...done")
  369. (setq nnweb-articles
  370. (sort nnweb-articles 'car-less-than-car))))))
  371. (defun nnweb-google-search (search)
  372. (mm-url-insert
  373. (concat
  374. (nnweb-definition 'address)
  375. "?"
  376. (mm-url-encode-www-form-urlencoded
  377. `(("q" . ,search)
  378. ("num" . ,(number-to-string
  379. (min 100 nnweb-max-hits)))
  380. ("hq" . "")
  381. ("hl" . "en")
  382. ("lr" . "")
  383. ("safe" . "off")
  384. ("sites" . "groups")
  385. ("filter" . "0")))))
  386. t)
  387. (defun nnweb-google-identity (url)
  388. "Return a unique identifier based on URL."
  389. (if (string-match "selm=\\([^ &>]+\\)" url)
  390. (match-string 1 url)
  391. url))
  392. ;;;
  393. ;;; gmane.org
  394. ;;;
  395. (defun nnweb-gmane-create-mapping ()
  396. "Perform the search and create a number-to-url alist."
  397. (with-current-buffer nnweb-buffer
  398. (let ((case-fold-search t)
  399. (active (or (cadr (assoc nnweb-group nnweb-group-alist))
  400. (cons 1 0)))
  401. map)
  402. (erase-buffer)
  403. (nnheader-message 7 "Searching Gmane..." )
  404. (when (funcall (nnweb-definition 'search) nnweb-search)
  405. (goto-char (point-min))
  406. ;; Skip the status line
  407. (forward-line 1)
  408. ;; Thanks to Olly Betts we now have NOV lines in our buffer!
  409. (while (not (eobp))
  410. (unless (or (eolp) (looking-at "\x0d"))
  411. (let ((header (nnheader-parse-nov)))
  412. (let ((xref (mail-header-xref header))
  413. (from (mail-header-from header))
  414. (subject (mail-header-subject header))
  415. (rfc2047-encoding-type 'mime))
  416. (when (string-match " \\([^:]+\\)[:/]\\([0-9]+\\)" xref)
  417. (mail-header-set-xref
  418. header
  419. (format "http://article.gmane.org/%s/%s/raw"
  420. (match-string 1 xref)
  421. (match-string 2 xref))))
  422. ;; Add host part to gmane-encrypted addresses
  423. (when (string-match "@$" from)
  424. (mail-header-set-from header
  425. (concat from "public.gmane.org")))
  426. (mail-header-set-subject header
  427. (rfc2047-encode-string subject))
  428. (unless (nnweb-get-hashtb (mail-header-xref header))
  429. (mail-header-set-number header (incf (cdr active)))
  430. (push (list (mail-header-number header) header) map)
  431. (nnweb-set-hashtb (cadar map) (car map))))))
  432. (forward-line 1)))
  433. (nnheader-message 7 "Searching Gmane...done")
  434. (setq nnweb-articles
  435. (sort (nconc nnweb-articles map) 'car-less-than-car)))))
  436. (defun nnweb-gmane-wash-article ()
  437. (let ((case-fold-search t))
  438. (goto-char (point-min))
  439. (when (search-forward "<!--X-Head-of-Message-->" nil t)
  440. (delete-region (point-min) (point))
  441. (goto-char (point-min))
  442. (while (looking-at "^<li><em>\\([^ ]+\\)</em>.*</li>")
  443. (replace-match "\\1\\2" t)
  444. (forward-line 1))
  445. (mm-url-remove-markup))))
  446. (defun nnweb-gmane-search (search)
  447. (mm-url-insert
  448. (concat
  449. (nnweb-definition 'address)
  450. "?"
  451. (mm-url-encode-www-form-urlencoded
  452. `(("query" . ,search)
  453. ("HITSPERPAGE" . ,(number-to-string nnweb-max-hits))
  454. ;;("TOPDOC" . "1000")
  455. ))))
  456. (setq buffer-file-name nil)
  457. (unless (featurep 'xemacs) (set-buffer-multibyte t))
  458. (mm-decode-coding-region (point-min) (point-max) 'utf-8)
  459. t)
  460. (defun nnweb-gmane-identity (url)
  461. "Return a unique identifier based on URL."
  462. (if (string-match "group=\\(.+\\)" url)
  463. (match-string 1 url)
  464. url))
  465. ;;;
  466. ;;; General web interface utility functions
  467. ;;;
  468. (defun nnweb-insert-html (parse)
  469. "Insert HTML based on a w3 parse tree."
  470. (if (stringp parse)
  471. ;; We used to call nnheader-string-as-multibyte here, but it cannot
  472. ;; be right, so I removed it. If a bug shows up because of this change,
  473. ;; please do not blindly revert the change, but help me find the real
  474. ;; cause of the bug instead. --Stef
  475. (insert parse)
  476. (insert "<" (symbol-name (car parse)) " ")
  477. (insert (mapconcat
  478. (lambda (param)
  479. (concat (symbol-name (car param)) "="
  480. (prin1-to-string
  481. (if (consp (cdr param))
  482. (cadr param)
  483. (cdr param)))))
  484. (nth 1 parse)
  485. " "))
  486. (insert ">\n")
  487. (mapc 'nnweb-insert-html (nth 2 parse))
  488. (insert "</" (symbol-name (car parse)) ">\n")))
  489. (defun nnweb-parse-find (type parse &optional maxdepth)
  490. "Find the element of TYPE in PARSE."
  491. (catch 'found
  492. (nnweb-parse-find-1 type parse maxdepth)))
  493. (defun nnweb-parse-find-1 (type contents maxdepth)
  494. (when (or (null maxdepth)
  495. (not (zerop maxdepth)))
  496. (when (consp contents)
  497. (when (eq (car contents) type)
  498. (throw 'found contents))
  499. (when (listp (cdr contents))
  500. (dolist (element contents)
  501. (when (consp element)
  502. (nnweb-parse-find-1 type element
  503. (and maxdepth (1- maxdepth)))))))))
  504. (defun nnweb-parse-find-all (type parse)
  505. "Find all elements of TYPE in PARSE."
  506. (catch 'found
  507. (nnweb-parse-find-all-1 type parse)))
  508. (defun nnweb-parse-find-all-1 (type contents)
  509. (let (result)
  510. (when (consp contents)
  511. (if (eq (car contents) type)
  512. (push contents result)
  513. (when (listp (cdr contents))
  514. (dolist (element contents)
  515. (when (consp element)
  516. (setq result
  517. (nconc result (nnweb-parse-find-all-1 type element))))))))
  518. result))
  519. (defvar nnweb-text)
  520. (defun nnweb-text (parse)
  521. "Return a list of text contents in PARSE."
  522. (let ((nnweb-text nil))
  523. (nnweb-text-1 parse)
  524. (nreverse nnweb-text)))
  525. (defun nnweb-text-1 (contents)
  526. (dolist (element contents)
  527. (if (stringp element)
  528. (push element nnweb-text)
  529. (when (and (consp element)
  530. (listp (cdr element)))
  531. (nnweb-text-1 element)))))
  532. (provide 'nnweb)
  533. ;;; nnweb.el ends here