+2000-11-08 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * wl-folder.el (wl-folder-guess-mailing-list-by-folder-name): New
+ function.
+ * wl-summary.el (wl-summary-write-current-folder-functions):
+ Change default value. Use it.
+
2000-11-08 Yuuichi Teranishi <teranisi@gohome.org>
* Version number is increased to 2.4.0.
nil nil)
nil))))
+(defun wl-folder-guess-mailing-list-by-folder-name (folder)
+ "Return ML address guess by FOLDER name's last hierarchy.
+Use `wl-subscribed-mailing-list'. Don't care multi."
+ (setq folder (car (elmo-folder-get-primitive-folder-list folder)))
+ (when (memq (elmo-folder-get-type folder)
+ '(localdir imap4 maildir))
+ (let (key mladdress)
+ (when (string-match "[^\\./]+$" folder)
+ (setq key (concat "^" (substring folder (match-beginning 0)) "@"))
+ (setq mladdress
+ (elmo-string-matched-member
+ key wl-subscribed-mailing-list 'case-ignore))
+ (if (stringp mladdress)
+ (list mladdress nil nil)
+ nil)))))
+
(defun wl-folder-update-diff-line (diffs)
(let ((inhibit-read-only t)
(buffer-read-only nil)
(defvar wl-summary-write-current-folder-functions
'(wl-folder-get-newsgroups
-;;; wl-folder-guess-mailing-list-by-refile-rule
- )
+ wl-folder-guess-mailing-list-by-refile-rule
+ wl-folder-guess-mailing-list-by-folder-name)
"Newsgroups or Mailing List address guess functions list.
Call from `wl-summary-write-current-folder'")