1 ;;; elmo-null.el --- /dev/null Folder Interface for ELMO.
3 ;; Copyright (C) 2005 Yuuichi Teranishi <teranisi@gohome.org>
5 ;; Author: Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
6 ;; Keywords: mail, net news
8 ;; This file is part of ELMO (Elisp Library for Message Orchestration).
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
34 (luna-define-class elmo-null-folder
(elmo-folder)))
36 (luna-define-method elmo-folder-initialize
((folder elmo-null-folder
) name
)
39 (luna-define-method elmo-folder-expand-msgdb-path
((folder elmo-null-folder
))
40 (expand-file-name "null" (expand-file-name "internal" elmo-msgdb-directory
)))
42 (luna-define-method elmo-folder-open
((folder elmo-null-folder
)
43 &optional load-msgdb
))
45 (luna-define-method elmo-folder-commit
((folder elmo-null-folder
)))
47 (luna-define-method elmo-folder-diff
((folder elmo-null-folder
))
50 (luna-define-method elmo-folder-list-messages
((folder elmo-null-folder
)
51 &optional visible-only in-msgdb
)
54 (luna-define-method elmo-folder-list-flagged
((folder elmo-null-folder
)
55 flag
&optional in-msgdb
)
58 (luna-define-method elmo-folder-count-flags
((folder elmo-null-folder
))
61 (luna-define-method elmo-folder-have-subfolder-p
((folder elmo-null-folder
))
64 (luna-define-method elmo-folder-exists-p
((folder elmo-null-folder
))
67 (luna-define-method elmo-folder-writable-p
((folder elmo-null-folder
))
70 (defun elmo-folder-append-messages-*-null
(dst-folder
74 (elmo-progress-notify 'elmo-folder-move-messages
(length numbers
))
77 (luna-define-method elmo-folder-synchronize
((folder elmo-null-folder
)
86 (product-provide (provide 'elmo-null
) (require 'elmo-version
))
88 ;;; elmo-null.el.el ends here