1 ;;; nnspool.el --- spool access for GNU Emacs
3 ;; Copyright (C) 1988, 1989, 1990, 1993, 1994, 1995, 1996, 1997, 1998,
5 ;; Free Software Foundation, Inc.
7 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
8 ;; Lars Magne Ingebrigtsen <larsi@gnus.org>
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software; you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation; either version 2, or (at your option)
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs; see the file COPYING. If not, write to the
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26 ;; Boston, MA 02111-1307, USA.
35 (eval-when-compile (require 'cl))
37 (nnoo-declare nnspool)
39 (defvoo nnspool-inews-program news-inews-program
40 "Program to post news.
41 This is most commonly `inews' or `injnews'.")
43 (defvoo nnspool-inews-switches '("-h" "-S")
44 "Switches for nnspool-request-post to pass to `inews' for posting news.
45 If you are using Cnews, you probably should set this variable to nil.")
47 (defvoo nnspool-spool-directory (file-name-as-directory news-path)
48 "Local news spool directory.")
50 (defvoo nnspool-nov-directory (concat nnspool-spool-directory "over.view/")
51 "Local news nov directory.")
53 (defvoo nnspool-lib-dir
54 (if (file-exists-p "/usr/lib/news/active")
57 "Where the local news library files are stored.")
59 (defvoo nnspool-active-file (concat nnspool-lib-dir "active")
60 "Local news active file.")
62 (defvoo nnspool-newsgroups-file (concat nnspool-lib-dir "newsgroups")
63 "Local news newsgroups file.")
65 (defvoo nnspool-distributions-file (concat nnspool-lib-dir "distribs.pat")
66 "Local news distributions file.")
68 (defvoo nnspool-history-file (concat nnspool-lib-dir "history")
69 "Local news history file.")
71 (defvoo nnspool-active-times-file (concat nnspool-lib-dir "active.times")
72 "Local news active date file.")
74 (defvoo nnspool-large-newsgroup 50
75 "The number of articles which indicates a large newsgroup.
76 If the number of articles is greater than the value, verbose
77 messages will be shown to indicate the current status.")
79 (defvoo nnspool-nov-is-evil nil
80 "Non-nil means that nnspool will never return NOV lines instead of headers.")
82 (defconst nnspool-sift-nov-with-sed nil
83 "If non-nil, use sed to get the relevant portion from the overview file.
84 If nil, nnspool will load the entire file into a buffer and process it
87 (defvoo nnspool-rejected-article-hook nil
88 "*A hook that will be run when an article has been rejected by the server.")
90 (defvoo nnspool-file-coding-system nnheader-file-coding-system
91 "Coding system for nnspool.")