1 ;;; nnwarchive.el --- interfacing with web archives
2 ;; Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4 ;; Author: Shenghuo Zhu <zsh@cs.rochester.edu>
5 ;; Keywords: news egroups mail-archive
7 ;; This file is part of GNU Emacs.
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published
11 ;; by the Free Software Foundation; either version 2, or (at your
12 ;; option) any later version.
14 ;; GNU Emacs is distributed in the hope that it will be useful, but
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 ;; Boston, MA 02111-1307, USA.
26 ;; Note: You need to have `url' (w3 0.46) or greater version
27 ;; installed for this backend to work.
30 ;; 1. To support more web archives.
31 ;; 2. Generalize webmail to other MHonArc archive.
35 (eval-when-compile (require 'cl))
44 (require 'mail-source)
51 ;; Report failure to find w3 at load time if appropriate.
58 (nnoo-declare nnwarchive)
60 (defvar nnwarchive-type-definition
62 (address . "www.egroups.com")
64 "http://www.egroups.com/login.cgi?&login_email=%s&login_password=%s"
65 nnwarchive-login nnwarchive-passwd)
67 "http://www.egroups.com/mygroups")
68 (list-dissect . nnwarchive-egroups-list)
69 (list-groups . nnwarchive-egroups-list-groups)
71 "http://www.egroups.com/messages/%s/%d" group aux)
73 "http://www.egroups.com/messages/%s/" group)
74 (xover-page-size . 13)
75 (xover-dissect . nnwarchive-egroups-xover)
77 "http://www.egroups.com/message/%s/%d?source=1" group article)
78 (article-dissect . nnwarchive-egroups-article)
81 (xover-files . nnwarchive-egroups-xover-files))
83 (address . "www.mail-archive.com")
86 "http://www.mail-archive.com/lists.html")
87 (list-dissect . nnwarchive-mail-archive-list)
88 (list-groups . nnwarchive-mail-archive-list-groups)
90 "http://www.mail-archive.com/%s/mail%d.html" group aux)
92 "http://www.mail-archive.com/%s/maillist.html" group)
94 (xover-dissect . nnwarchive-mail-archive-xover)
96 "http://www.mail-archive.com/%s/msg%05d.html" group article1)
97 (article-dissect . nnwarchive-mail-archive-article)
98 (xover-files . nnwarchive-mail-archive-xover-files)
100 (article-offset . 1))))
102 (defvar nnwarchive-default-type 'egroups)
104 (defvoo nnwarchive-directory (nnheader-concat gnus-directory "warchive/")
105 "Where nnwarchive will save its files.")
107 (defvoo nnwarchive-type nil
108 "The type of nnwarchive.")
110 (defvoo nnwarchive-address ""
111 "The address of nnwarchive.")
113 (defvoo nnwarchive-login nil
114 "Your login name for the group.")
116 (defvoo nnwarchive-passwd nil
117 "Your password for the group.")
119 (defvoo nnwarchive-groups nil)
121 (defvoo nnwarchive-headers-cache nil)
123 (defvoo nnwarchive-authentication nil)
125 (defvoo nnwarchive-nov-is-evil nil)