(gnus-get-unread-articles): Fix last commit.
[gnus] / lisp / nnspool.el
1 ;;; nnspool.el --- spool access for GNU Emacs
2
3 ;; Copyright (C) 1988, 1989, 1990, 1993, 1994, 1995, 1996, 1997, 1998,
4 ;;               2000, 2002, 2003
5 ;;               Free Software Foundation, Inc.
6
7 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
8 ;;      Lars Magne Ingebrigtsen <larsi@gnus.org>
9 ;; Keywords: news
10
11 ;; This file is part of GNU Emacs.
12
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)
16 ;; any later version.
17
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.
22
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.
27
28 ;;; Commentary:
29
30 ;;; Code:
31
32 (require 'nnheader)
33 (require 'nntp)
34 (require 'nnoo)
35 (eval-when-compile (require 'cl))
36
37 (nnoo-declare nnspool)
38
39 (defvoo nnspool-inews-program news-inews-program
40   "Program to post news.
41 This is most commonly `inews' or `injnews'.")
42
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.")
46
47 (defvoo nnspool-spool-directory (file-name-as-directory news-path)
48   "Local news spool directory.")
49
50 (defvoo nnspool-nov-directory (concat nnspool-spool-directory "over.view/")
51   "Local news nov directory.")
52
53 (defvoo nnspool-lib-dir
54     (if (file-exists-p "/usr/lib/news/active")
55         "/usr/lib/news/"
56       "/var/lib/news/")
57   "Where the local news library files are stored.")
58
59 (defvoo nnspool-active-file (concat nnspool-lib-dir "active")
60   "Local news active file.")
61
62 (defvoo nnspool-newsgroups-file (concat nnspool-lib-dir "newsgroups")
63   "Local news newsgroups file.")
64
65 (defvoo nnspool-distributions-file (concat nnspool-lib-dir "distribs.pat")
66   "Local news distributions file.")
67
68 (defvoo nnspool-history-file (concat nnspool-lib-dir "history")
69   "Local news history file.")
70
71 (defvoo nnspool-active-times-file (concat nnspool-lib-dir "active.times")
72   "Local news active date file.")
73
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.")
78
79 (defvoo nnspool-nov-is-evil nil
80   "Non-nil means that nnspool will never return NOV lines instead of headers.")
81
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
85 there.")
86
87 (defvoo nnspool-rejected-article-hook nil
88   "*A hook that will be run when an article has been rejected by the server.")
89
90 (defvoo nnspool-file-coding-system nnheader-file-coding-system
91   "Coding system for nnspool.")
92