;;; elmo-null.el --- /dev/null Folder Interface for ELMO. ;; Copyright (C) 2005 Yuuichi Teranishi ;; Author: Hiroya Murata ;; Keywords: mail, net news ;; This file is part of ELMO (Elisp Library for Message Orchestration). ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;; ;;; Commentary: ;; ;;; Code: ;; (require 'elmo) (eval-and-compile (luna-define-class elmo-null-folder (elmo-folder))) (luna-define-method elmo-folder-initialize ((folder elmo-null-folder) name) folder) (luna-define-method elmo-folder-expand-msgdb-path ((folder elmo-null-folder)) (expand-file-name "null" (expand-file-name "internal" elmo-msgdb-directory))) (luna-define-method elmo-folder-open ((folder elmo-null-folder) &optional load-msgdb)) (luna-define-method elmo-folder-commit ((folder elmo-null-folder))) (luna-define-method elmo-folder-diff ((folder elmo-null-folder)) '(0 . 0)) (luna-define-method elmo-folder-list-messages ((folder elmo-null-folder) &optional visible-only in-msgdb) nil) (luna-define-method elmo-folder-list-flagged ((folder elmo-null-folder) flag &optional in-msgdb) nil) (luna-define-method elmo-folder-count-flags ((folder elmo-null-folder)) nil) (luna-define-method elmo-folder-have-subfolder-p ((folder elmo-null-folder)) nil) (luna-define-method elmo-folder-exists-p ((folder elmo-null-folder)) t) (luna-define-method elmo-folder-writable-p ((folder elmo-null-folder)) t) (defun elmo-folder-append-messages-*-null (dst-folder src-folder numbers same-number) (elmo-progress-notify 'elmo-folder-move-messages (length numbers)) numbers) (luna-define-method elmo-folder-synchronize ((folder elmo-null-folder) &optional disable-killed ignore-msgdb no-check mask) nil) (require 'product) (product-provide (provide 'elmo-null) (require 'elmo-version)) ;;; elmo-null.el.el ends here