+2001-12-05 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-nmz.el (elmo-nmz-default-index-path): Allow path list.
+ (elmo-nmz-index-alias-alist): Ditto.
+ (elmo-map-folder-list-message-locations): Follow the change above.
+
2001-12-02 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-filter.el (elmo-folder-list-subfolders): Defined.
(require 'mime-edit)
(defcustom elmo-nmz-default-index-path "~/Mail"
- "*Default index path for namazu."
+ "*Default index path for namazu.
+If the value is a list, all elements are used as index paths for namazu."
:type 'directory
:group 'elmo)
(defcustom elmo-nmz-index-alias-alist nil
"*Alist of ALIAS and INDEX-PATH."
:type '(repeat (cons (string :tag "Alias Name")
- (directory :tag "Index Path")))
+ (choice (directory :tag "Index Path")
+ (repeat (directory :tag "Index Path")))))
:group 'elmo)
;;; "namazu search"
(list
(encode-mime-charset-string
(elmo-nmz-folder-pattern-internal folder)
- elmo-nmz-charset)
- (expand-file-name
- (elmo-nmz-folder-index-path-internal folder)))))
+ elmo-nmz-charset))
+ (if (listp (elmo-nmz-folder-index-path-internal folder))
+ (mapcar
+ 'expand-file-name
+ (elmo-nmz-folder-index-path-internal folder))
+ (list
+ (expand-file-name
+ (elmo-nmz-folder-index-path-internal folder))))))
(goto-char (point-min))
(while (not (eobp))
(beginning-of-line)