1 ;;; elmo-localnews.el --- Local News Spool Interface for ELMO.
3 ;; Copyright (C) 1998,1999,2000 OKUNISHI Fujikazu <fuji0924@mbox.kyoto-inet.or.jp>
4 ;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
6 ;; Author: OKUNISHI Fujikazu <fuji0924@mbox.kyoto-inet.or.jp>
7 ;; Yuuichi Teranishi <teranisi@gohome.org>
8 ;; Keywords: mail, net news
10 ;; This file is part of ELMO (Elisp Library for Message Orchestration).
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
33 (require 'elmo-localdir)
35 (defcustom elmo-localnews-folder-path "~/News"
36 "*Local news folder path."
41 (luna-define-class elmo-localnews-folder (elmo-localdir-folder) (group))
42 (luna-define-internal-accessors 'elmo-localnews-folder))
44 (luna-define-method elmo-folder-initialize :before ((folder
45 elmo-localnews-folder)
47 (elmo-localnews-folder-set-group-internal folder
48 (elmo-replace-in-string
51 (luna-define-method elmo-localdir-folder-path ((folder elmo-localnews-folder))
52 elmo-localnews-folder-path)
54 (luna-define-method elmo-localdir-folder-name ((folder elmo-localnews-folder)
56 (elmo-replace-in-string name "\\." "/"))
58 (luna-define-method elmo-folder-expand-msgdb-path ((folder
59 elmo-localnews-folder))
61 (elmo-localnews-folder-group-internal folder)
63 (symbol-name (elmo-folder-type-internal folder))
64 elmo-msgdb-directory)))
66 (luna-define-method elmo-folder-newsgroups ((folder elmo-localnews-folder))
67 (list (elmo-localnews-folder-group-internal folder)))
70 (product-provide (provide 'elmo-localnews) (require 'elmo-version))
72 ;;; elmo-localnews.el ends here