Add description for elmo-msgdb-extra-fields.
[elisp/wanderlust.git] / samples / ja / dot.wl
index fbfa3cd..6e32134 100644 (file)
@@ -3,10 +3,10 @@
 ;; [[ \e$BF0:n$KI,MW$J@_Dj\e(B ]]
 
 ;; \e$B$^$:!"<!$N@_Dj$r\e(B ~/.emacs \e$B$J$I$K=q$$$F$/$@$5$$!#\e(B
-;; \e$B$3$3$+$i\e(B
+;; XEmacs \e$B$N\e(B package \e$B$H$7$F%$%s%9%H!<%k$5$l$F$$$k>l9g$OI,MW$"$j$^$;$s!#\e(B
 (autoload 'wl "wl" "Wanderlust" t)
+(autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
 (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
-;; \e$B$3$3$^$G\e(B
 
 ;; \e$B%"%$%3%s$rCV$/%G%#%l%/%H%j\e(B
 ;; XEmacs \e$B$N\e(B package \e$B$H$7$F%$%s%9%H!<%k$5$l$F$$$k>l9g$OI,MW$"$j$^$;$s!#\e(B
 ;; From: \e$B$N@_Dj\e(B
 ;(setq wl-from "Your Name <e-mail@example.com>")
 
+;; (system-name) \e$B$,\e(B FQDN \e$B$rJV$5$J$$>l9g!"\e(B
+;; `wl-local-domain' \e$B$K%[%9%HL>$r=|$$$?%I%a%$%sL>$r@_Dj$7$F$/$@$5$$!#\e(B
+;(setq wl-local-domain "example.com")
+
 ;; \e$B<+J,$N%a!<%k%"%I%l%9$N%j%9%H\e(B
 (setq wl-user-mail-address-list
       (list (wl-address-header-extract-address wl-from)
        ;; "ml@example.com" ...
        ))
 
-;; (system-name) \e$B$,\e(B FQDN \e$B$rJV$5$J$$>l9g!"\e(B
-;; `wl-local-domain' \e$B$K%[%9%HL>$r=|$$$?%I%a%$%sL>$r@_Dj$7$F$/$@$5$$!#\e(B
-;; (system-name)  "." wl-local-domain \e$B$,\e(B Message-ID \e$B$K;HMQ$5$l$^$9!#\e(B
-;(setq wl-local-domain "example.com")
-
-;; Message-ID \e$B$N%I%a%$%s%Q!<%H$r6/@)E*$K;XDj\e(B
-;(setq wl-message-id-domain "hostname.example.com")
-
-
 ;;; [[ \e$B%5!<%P$N@_Dj\e(B ]]
 
 ;; IMAP \e$B%5!<%P$N@_Dj\e(B
 ;(setq elmo-pop3-use-cache t)
 
 ;; \e$B%*%U%i%$%s\e(B(unplugged)\e$BA`:n$rM-8z$K$9$k\e(B(\e$B8=:_$O\e(BIMAP\e$B%U%)%k%@$N$_\e(B)
-;(setq elmo-enable-disconnected-operation t)
+(setq elmo-enable-disconnected-operation t)
 
 ;; unplugged \e$B>uBV$GAw?.$9$k$H!$%-%e!<\e(B(`wl-queue-folder')\e$B$K3JG<$9$k\e(B
 (setq wl-draft-enable-queuing t)
 
 ;; \e$B%5%^%jI=<(4X?t$rJQ99$9$k\e(B
 
-;; `elmo-msgdb-overview-entity-get-extra-field' \e$B$G;2>H$7$?$$%U%#!<%k%I!#\e(B
+;; `elmo-message-entity-field' \e$B$G;2>H$7$?$$%U%#!<%k%I!#\e(B
 ;; \e$B<+F0%j%U%!%$%k$G;2>H$7$?$$%U%#!<%k%I$b@_Dj$9$k!#\e(B
 (setq elmo-msgdb-extra-fields
-      '("newsgroups"
-       "list-id" "x-ml-name" "mailing-list"
-       "x-mail-count" "x-ml-count" "x-sequence"))
+      '(;; elsp-header \e$B$G;2>H$9$k%U%#!<%k%I\e(B
+       "x-spam-flag"
+       ;; `modb-entity-field-extractor-alist' \e$B$GDj5A$5$l$?2>A[%U%#!<%k%I\e(B
+       "ml-info"))
 
 ;; ML \e$B$N%a%C%;!<%8$G$"$l$P!$%5%^%j$N\e(B Subject \e$BI=<($K\e(B
 ;; ML\e$BL>\e(B \e$B$d\e(B ML\e$B$K$*$1$k%a%C%;!<%8HV9f$bI=<($9$k\e(B
-(setq wl-summary-subject-function 'my-wl-summary-subject-func-ml)
-(defun my-wl-summary-subject-func-ml (subject-string)
-  (let ((folder wl-summary-buffer-folder-name)
-       (subj subject-string) (sequence) (ml-name) (ml-count))
-    (setq sequence (elmo-msgdb-overview-entity-get-extra-field
-                   entity "x-sequence")
-         ml-name (or (elmo-msgdb-overview-entity-get-extra-field
-                      entity "x-ml-name")
-                     (and sequence
-                          (car (split-string sequence " "))))
-         ml-count (or (elmo-msgdb-overview-entity-get-extra-field
-                       entity "x-mail-count")
-                      (elmo-msgdb-overview-entity-get-extra-field
-                       entity "x-ml-count")
-                      (and sequence
-                           (cadr (split-string sequence " ")))))
-    (if (string-match
-        "^\\s(\\(\\S)+\\)[ :]\\([0-9]+\\)\\s)[ \t]*"
-        subject-string)
-       (progn
-         (setq subj (substring subject-string (match-end 0)))
-         (if (not ml-name) (setq ml-name (match-string 1 subject-string)))
-         (if (not ml-count) (setq ml-count (match-string 2 subject-string)))))
-    (if (and ml-name ml-count)
-       (if (string= folder wl-default-folder)
-           (format "(%s %05d) %s"
-                   (car (split-string ml-name " "))
-                   (string-to-int ml-count)
-                   subj)
-         (format "#%05d %s"
-                 (string-to-int ml-count) subj))
-      subj)))
+(setq wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %#%~%s")
+;; \e$B%U%)%k%@Kh$K%5%^%j$NI=<(7A<0$rJQ$($k@_Dj\e(B
+;(setq wl-folder-summary-line-format-alist
+;      '(("^%inbox\\.emacs\\.wl$" .
+;       "%-5l%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
+;      ("^%" . "%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
+;      ("^+" . "%n%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")))
 
 ;; imput \e$B$K$h$jHsF14|$GAw?.$9$k\e(B
 ;; (utils/im-wl.el \e$B$r%$%s%9%H!<%k$7$F$*$/I,MW$,$"$j$^$9!#\e(B
 
 ;; \e$BC;$$\e(B User-Agent: \e$B%U%#!<%k%I$r;H$&\e(B
 ;(setq wl-generate-mailer-string-function
-;      (function
-;       (lambda ()
-;       (concat "User-Agent: "
-;               (wl-generate-user-agent-string-1 nil)))))
+;      'wl-generate-user-agent-string-1)
+
+;; PGP \e$B$G0E9f2=$9$k;~$K<+J,$N8x3+80$b4^$a$k!#\e(B
+;; (\e$B$=$N%a%C%;!<%8$r<+J,$G$bFI$a$k$h$&$K\e(B)
+;(setq pgg-encrypt-for-me t)
 
 
 ;;; [[ \e$B%F%s%W%l!<%H\e(B ]]
 
 ;; \e$B%F%s%W%l!<%H$N@_Dj\e(B
-(setq wl-template-alist
-      '(("default"
-        ("From" . wl-from)
-        ("Organization" . "~/.wl sample")
-        (body . "  \e$B!{!{$G$9!#\e(B\n"))       ; \e$BK\J8\e(B
-       ("report"
-        ("To" . "boss@example.com")
-        ("Subject" . "\e$BJs9p\e(B")
-        (top . "\e$B:#=5$NJs9p$G$9!#\e(B\n")     ; \e$BK\J8@hF,$X$NA^F~\e(B
-;;      (bottom-file . "~/work/report.txt") ; \e$BK\J8KvHx$X%U%!%$%k$NA^F~\e(B
-        )
-       ))
+;(setq wl-template-alist
+;      '(("default"
+;       ("From" . wl-from)
+;       ("Organization" . "\e$B%G%U%)%k%H$NAH?%L>\e(B")
+;       (body . "  \e$B!{!{$G$9!#\e(B\n"))       ; \e$BK\J8\e(B
+;      ("report"
+;       ("To" . "boss@example.com")
+;       ("Subject" . "\e$BJs9p\e(B")
+;       (top . "\e$B:#=5$NJs9p$G$9!#\e(B\n")     ; \e$BK\J8@hF,$X$NA^F~\e(B
+;       (bottom-file . "~/work/report.txt") ; \e$BK\J8KvHx$X%U%!%$%k$NA^F~\e(B
+;       )
+;      ))
 
 ;; \e$B%I%i%U%H%P%C%U%!$NFbMF$K$h$j\e(B From \e$B$d\e(B Organization \e$B$J$I$N%X%C%@$r<+\e(B
 ;; \e$BF0E*$KJQ99$9$k\e(B
-(setq wl-draft-config-alist
-      '((reply                 ;; \e$BJV?.85$N%P%C%U%!$r8+$k\e(B
-        "^To: .*test-notsend-wl@lists\\.airs\\.net"
-        (template . "default"))        ; \e$B%F%s%W%l!<%H\e(B
-       ("^To: .*test-notsend-wl@lists\\.airs\\.net"
-        wl-ml-draft-config-function    ; \e$B4X?t\e(B
-        ("From" . wl-from)             ; \e$BJQ?t\e(B
-        ("Organization" . "~/.wl sample")) ; \e$BJ8;zNs\e(B
-       ("^Newsgroups: test.*"
-        ("Organization" . "\e$B%K%e!<%9Ej9F;~$NAH?%L>\e(B"))
-       ))
+;(setq wl-draft-config-alist
+;      '((reply                                ; \e$BJV?.85$N%P%C%U%!$r8+$k\e(B
+;       "^To: .*test-notsend-wl@lists\\.airs\\.net"
+;       (template . "default"))        ; \e$B%F%s%W%l!<%H\e(B
+;      ("^To: .*test-notsend-wl@lists\\.airs\\.net"
+;       ding                           ; \e$B4X?t\e(B
+;       ("From" . wl-from)             ; \e$BJQ?t\e(B
+;       ("Organization" . "\e$BAH?%L>\e(B"))     ; \e$BJ8;zNs\e(B
+;      ("^Newsgroups: test.*"
+;       ("Organization" . "\e$B%K%e!<%9Ej9F;~$NAH?%L>\e(B"))
+;      ))
 
 ;; \e$B%I%i%U%H:n@.;~\e(B(\e$BJV?.;~\e(B)\e$B$K!$<+F0E*$K%X%C%@$rJQ99$9$k\e(B
 ;(add-hook 'wl-mail-setup-hook
 ;; "a" (without-argument)\e$B$G$O\e(B Reply-To: \e$B$d\e(B From: \e$B$J$I$G;XDj$5$l$?M#0l?M\e(B
 ;; \e$B$^$?$OM#0l$D$NEj9F@h$KJV?.$9$k!#$^$?!$\e(BX-ML-Name: \e$B$H\e(B Reply-To: \e$B$,$D$$\e(B
 ;; \e$B$F$$$k$J$i\e(B Reply-To: \e$B08$K$9$k!#\e(B
-(setq wl-draft-reply-without-argument-list
-      '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
-       ("X-ML-Name" . (("To" "Cc") nil nil))
-       ("Followup-To" . (nil nil ("Followup-To")))
-       ("Newsgroups" . (nil nil ("Newsgroups")))
-       ("Reply-To" . (("Reply-To") nil nil))
-       ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
-       ("From" . (("From") nil nil))))
-
-;; "C-u a" (with-argument)\e$B$G$"$l$P4X78$9$kA4$F$N?M!&Ej9F@h$KJV?.$9$k!#\e(B
-(setq wl-draft-reply-with-argument-list
-      '(("Followup-To" . (("From") nil ("Followup-To")))
-       ("Newsgroups" . (("From") nil ("Newsgroups")))
-       ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
-       ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
+;(setq wl-draft-reply-without-argument-list
+;      '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
+;      ("X-ML-Name" . (("To" "Cc") nil nil))
+;      ("Followup-To" . (nil nil ("Followup-To")))
+;      ("Newsgroups" . (nil nil ("Newsgroups")))
+;      ("Reply-To" . (("Reply-To") nil nil))
+;      ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
+;      (wl-draft-self-reply-p . (("To") ("Cc") nil))
+;      ("From" . (("From") nil nil))))
+
+;; 2.11.0 \e$B0JA0$N%G%U%)%k%H@_Dj\e(B
+;(setq wl-draft-reply-without-argument-list
+;      '(((wl-draft-self-reply-p
+;        "Followup-To") . (("To") ("Cc") ("Followup-To")))
+;      ((wl-draft-self-reply-p
+;        "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
+;      ((wl-draft-self-reply-p
+;        "From") . (("To") ("Cc") nil))
+;      ("Followup-To" . (nil nil ("Followup-To")))
+;      ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
+;      ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
+;      ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
+;(setq wl-draft-reply-with-argument-list
+;      '(((wl-draft-self-reply-p
+;        "Followup-To") . (("To") ("Cc") ("Followup-To")))
+;      ((wl-draft-self-reply-p
+;        "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
+;      ((wl-draft-self-reply-p
+;        "From") . (("To") ("Cc") nil))
+;      ("Reply-To" . (("Reply-To") nil nil))
+;      ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
+;      ("From" . (("From") nil nil))))
 
 
 ;;; [[ \e$B%a%C%;!<%8I=<($N@_Dj\e(B ]]
 ;; \e$B$^$;$s!#\e(Bnil \e$B$G$9$Y$F$N%a%C%;!<%8$,BP>]$K$J$j$^$9!#\e(B
 ;(setq wl-summary-auto-refile-skip-marks nil)
 
+;;; [[ spam \e$BMQ$N@_Dj\e(B ]]
+
+;; \e$B%P%C%/%(%s%I$K\e(B bogofilter \e$B$r;H$&;v$r@_Dj\e(B
+;(setq elmo-spam-scheme 'bogofilter)
+
+;(require 'wl-spam)
+
+;; \e$B0\F0$7$?;~$K<+F0$G\e(B spam \e$B$+$I$&$+%A%'%C%/$9$k%U%)%k%@$r@_Dj\e(B
+;(setq wl-spam-auto-check-folder-regexp-list '("\\+inbox"))
+
+;; \e$B%5%^%j%P%C%U%!$G\e(B `o' (wl-summary-refile) \e$B$7$?;~\e(B, *\e$B:G=i\e(B*\e$B$K\e(B spam \e$B$+$I\e(B
+;; \e$B$&$+$rH=Dj$9$kMM$K$9$k\e(B
+;(unless (memq 'wl-refile-guess-by-spam wl-refile-guess-functions)
+;  (setq wl-refile-guess-functions
+;      (cons #'wl-refile-guess-by-spam
+;            wl-refile-guess-functions)))
+
+;; \e$B%5%^%j%P%C%U%!$G\e(B `C-o' (wl-summary-auto-refile) \e$B$7$?;~\e(B, *\e$B:G=i\e(B*\e$B$K\e(B
+;; spam \e$B$+$I$&$+$rH=Dj$9$kMM$K$9$k\e(B
+;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
+;  (setq wl-auto-refile-guess-functions
+;      (cons #'wl-refile-guess-by-spam
+;            wl-auto-refile-guess-functions)))
+
+;; refile-rule \e$B$rM%@h$7$?$$>l9g\e(B (spamfilter-wl.el \e$B$d\e(B bogofilter-wl.el
+;; \e$B$HF1$8@_Dj\e(B) \e$B$O\e(B, \e$B$3$C$A$N@_Dj$rM-8z$K$9$k\e(B
+;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
+;  (setq wl-auto-refile-guess-functions
+;      (append wl-auto-refile-guess-functions
+;              '(wl-refile-guess-by-spam))))
+
 ;;; dot.wl ends here