1 ;;; elmo-internal.el --- Internal Interface for ELMO.
3 ;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
5 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
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.
33 ;;; ELMO internal folder
34 (luna-define-class elmo-internal-folder (elmo-folder) ())
36 (luna-define-method elmo-folder-initialize ((folder
39 (elmo-internal-folder-initialize folder name))
41 (defvar elmo-internal-folder-list '(mark cache sendlog))
43 (defun elmo-internal-folder-initialize (folder name)
44 (let ((fsyms elmo-internal-folder-list)
46 (if (progn (while fsyms
47 (setq fname (symbol-name (car fsyms)))
48 (when (string-match (concat "^" fname) name)
49 (require (intern (concat "elmo-" fname)))
50 (setq class (intern (concat "elmo-" fname "-folder"))
53 (setq fsyms (cdr fsyms)))
55 (elmo-folder-initialize
59 :prefix (elmo-folder-prefix-internal folder)
60 :name (elmo-folder-name-internal folder)
61 :persistent (elmo-folder-persistent-internal folder))
65 (luna-define-method elmo-folder-list-subfolders ((folder elmo-internal-folder)
69 (if (elmo-folder-have-subfolder-p
71 (concat (elmo-folder-prefix-internal folder)
73 (list (concat (elmo-folder-prefix-internal folder)
75 (concat (elmo-folder-prefix-internal folder)
77 elmo-internal-folder-list))
80 (product-provide (provide 'elmo-internal) (require 'elmo-version))
82 ;;; elmo-internal.el ends here