2 ;;; ~/.wl (setting file for Wanderlust)
5 ;;
\e$B$^$:!$<!$N@_Dj$r
\e(B ~/.emacs
\e$B$J$I$K=q$$$F$/$@$5$$!#
\e(B
8 (autoload 'wl "wl" "Wanderlust" t)
9 (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
12 ;;; [[
\e$B8D?M>pJs$N@_Dj
\e(B ]]
14 ;; From
\e$B$N@_Dj
\e(B
15 ;(setq wl-from "Your Name <e-mail@example.com>")
16 ;; Organization
\e$B$N@_Dj
\e(B
17 ;(setq wl-organization "")
19 ;;
\e$B<+J,$N%a!<%k%"%I%l%9$N%j%9%H
\e(B
20 (setq wl-user-mail-address-list
21 (list (wl-address-header-extract-address wl-from)
22 ;;"e-mail2@example.com" ...
25 ;;; [[
\e$B4pK\E*$J@_Dj
\e(B ]]
27 ;; MH (localdir)
\e$B$N%[!<%`
\e(B
28 (setq elmo-localdir-folder-path "~/Mail")
29 ;; IMAP4
\e$B%5!<%P$N@_Dj
\e(B
30 (setq elmo-default-imap4-server "localhost")
31 ;; POP
\e$B%5!<%P$N@_Dj
\e(B
32 (setq elmo-default-pop3-server "localhost")
33 ;;
\e$B%K%e!<%9%5!<%P$N@_Dj
\e(B
34 (setq elmo-default-nntp-server "localhost")
35 ;;
\e$BEj9F@h$N
\e(B
\e$B%K%e!<%9%5!<%P
\e(B
36 (setq wl-nntp-posting-server elmo-default-nntp-server)
37 ;;
\e$B%a!<%k$rAw?.$9$k@h$N
\e(B (SMTP)
\e$B%5!<%P
\e(B
38 (setq wl-smtp-posting-server "localhost")
40 ;;
\e$B%"%$%3%s$rCV$/%G%#%l%/%H%j
\e(B (XEmacs
\e$B$N$_
\e(B)
41 ;; (XEmacs
\e$B$N
\e(B package
\e$B$H$7$F%$%s%9%H!<%k$5$l$F$$$k>l9g!"I,MW$"$j$^$;$s
\e(B)
42 ;(setq wl-icon-dir "~/work/wl/etc")
44 ;; (system-name)
\e$B$,
\e(BFQDN
\e$B$rJV$5$J$$>l9g!"
\e(B
45 ;;
\e$B0J2<$r%[%9%HL>$r=|$$$?%I%a%$%sL>$r@_Dj$7$F$/$@$5$$!#
\e(B
46 ;; ((system-name) "." wl-local-domain
\e$B$,
\e(B Message-ID
\e$B$N:n@.!"
\e(B
47 ;; SMTP
\e$B$N
\e(B HELO
\e$B$K;HMQ
\e(B
\e$B$5$l$^$9!#
\e(B)
48 ;(setq wl-local-domain "localdomain")
49 ;; Message-ID
\e$B$N%I%a%$%s%Q!<%H$r6/@)E*$K;XDj
\e(B
50 ;(setq wl-message-id-domain "localhost.localdomain")
52 ;(setq wl-default-folder "+inbox") ;; wl-summary-goto-folder
\e$B$N;~$KA*Br$9$k
\e(B
53 ;;
\e$B%G%U%)%k%H$N%U%)%k%@
\e(B
54 ;(setq wl-default-spec "+") ;;
\e$B%U%)%k%@L>Jd40;~$K;HMQ$9$k
\e(B
55 ;;
\e$B%G%U%)%k%H$N%9%Z%C%/
\e(B
57 ;(setq wl-fcc "+outbox") ;; Folder Carbon Copy
59 (setq wl-interactive-exit t) ;;
\e$B=*N;;~$K3NG'$9$k
\e(B
60 (setq wl-interactive-send t) ;;
\e$B%a!<%kAw?.;~$K$O3NG'$9$k
\e(B
62 (setq wl-auto-select-first t) ;;
\e$B%5%^%j0\F08e$K@hF,%a%C%;!<%8$rI=<($9$k
\e(B
63 (setq wl-auto-select-next t) ;;
\e$B%5%^%jFb$N0\F0$GL$FI%a%C%;!<%8$,$J$$$H
\e(B
64 ;;
\e$B<!$N%U%)%k%@$K0\F0$9$k
\e(B
65 ;(setq wl-auto-select-next 'skip-no-unread)
66 ;;
\e$BL$FI$,$J$$%U%)%k%@$OHt$P$9
\e(B
67 ;; SPC
\e$B%-!<$@$1$GFI$_?J$a$k>l9g$OJXMx
\e(B
68 (setq wl-summary-move-order 'unread) ;;
\e$BL$FI%a%C%;!<%8$rM%@hE*$KFI$`
\e(B
69 (setq wl-thread-insert-opened t) ;; thread
\e$B:n@.;~$O>o$K
\e(Bopen
\e$B$K$9$k
\e(B
71 ;(setq wl-stay-folder-window t) ;;
\e$B%5%^%j$K0\F0$7$?$H$-$K%U%)%k%@%P%C%U%!
\e(B
72 ;;
\e$B$N1&$K%5%^%j$N%P%C%U%!$rI=<($9$k
\e(B
74 ;;
\e$B%U%)%k%@<oJL$4$H$N%-%c%C%7%e$N@_Dj
\e(B
75 ;; (localdir, localnews, maildir
\e$B$O%-%c%C%7%e$7$J$$
\e(B)
76 ;(setq elmo-archive-use-cache nil)
77 ;(setq elmo-nntp-use-cache t)
78 ;(setq elmo-imap4-use-cache t)
79 ;(setq elmo-pop3-use-cache t)
81 ;;
\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)
82 ;(setq elmo-enable-disconnected-operation t)
84 ;; unplugged
\e$B>uBV$GAw?.$9$k$H!$%-%e!<
\e(B(`wl-queue-folder')
\e$B$K3JG<$9$k
\e(B
85 (setq wl-draft-enable-queuing t)
86 ;; unplugged
\e$B$+$i
\e(B plugged
\e$B$KJQ$($k$H!$%-%e!<$K$"$k%a%C%;!<%8$rAw?.$9$k
\e(B
87 (setq wl-auto-flush-queue t)
89 ;;
\e$B5/F0;~$O%*%U%i%$%s>uBV$K$9$k
\e(B
90 ;(setq wl-plugged nil)
91 ;;
\e$B5/F0;~$K%]!<%H$4$H$N
\e(Bplug
\e$B>uBV$rJQ99$9$k
\e(B
92 ;(add-hook 'wl-make-plugged-hook
94 ; ;; server,port
\e$B$N
\e(Bplug
\e$B>uBV$r?75,DI2C$b$7$/$OJQ99$9$k
\e(B
95 ; (elmo-set-plugged plugged
\e$BCM
\e(B(t/nil) server port)
96 ; ;; port
\e$B$r>JN,$9$k$H
\e(Bserver
\e$B$NA4
\e(Bport
\e$B$,JQ99$5$l$k
\e(B
97 ; ;; (port
\e$B$r>JN,$7$F?75,$NDI2C$O$G$-$J$$
\e(B)
98 ; (elmo-set-plugged plugged
\e$BCM
\e(B(t/nil) server)
102 ;; highlight
\e$B$N@_Dj
\e(B (
\e$BL@$k$$GX7J?'$N>l9g$G$9
\e(B)
104 ;;
\e$B%0%k!<%W$rL$FI?t$K$h$j?'J,$1$7$J$$!#3+JD>uBV$K$h$j?'J,$1$9$k!#
\e(B
105 ;(setq wl-highlight-group-folder-by-numbers nil)
107 (setq wl-highlight-message-header-alist
108 '(("Subject[ \t]*:" . wl-highlight-message-subject-header-contents)
109 ("From[ \t]*:" . wl-highlight-message-from-header-contents)
110 ("\\(.*To\\|Cc\\|Newsgroups\\)[ \t]*:" . wl-highlight-message-important-header-contents)
111 ("\\(User-Agent\\|X-Mailer\\|X-Newsreader\\)[ \t]*:" .
112 wl-highlight-message-unimportant-header-contents)
114 ;;
\e$B0zMQ%l%Y%k$G?'J,$1$7$J$$
\e(B
115 ;(setq wl-highlight-citation-face-list
116 ; '(wl-highlight-message-cited-text-1))
118 (defun my-wl-set-face (face spec)
120 (cond ((fboundp 'face-spec-set)
121 (face-spec-set face spec))
123 (wl-declare-face face spec))))
125 ;;
\e$B%a%C%;!<%8%X%C%@
\e(B
126 (my-wl-set-face 'wl-highlight-message-subject-header-contents
127 '((t (:foreground "blue" :bold t))))
128 (my-wl-set-face 'wl-highlight-message-from-header-contents
129 '((t (:foreground "red" :bold t))))
130 (my-wl-set-face 'wl-highlight-message-important-header-contents
131 '((t (:foreground "purple" :bold t))))
132 (my-wl-set-face 'wl-highlight-message-unimportant-header-contents
133 '((t (:foreground "RoyalBlue" :bold t))))
134 (my-wl-set-face 'wl-highlight-message-headers
135 '((t (:foreground "magenta3" :bold t))))
136 (my-wl-set-face 'wl-highlight-message-header-contents
137 '((t (:foreground "brown" :bold nil))))
138 (my-wl-set-face 'wl-highlight-message-signature
139 '((t (:foreground "blue"))))
141 (my-wl-set-face 'wl-highlight-message-citation-header
142 '((t (:foreground "DarkGreen"))))
143 (my-wl-set-face 'wl-highlight-message-cited-text-1
144 '((t (:foreground "forest green"))))
145 (my-wl-set-face 'wl-highlight-message-cited-text-2
146 '((t (:foreground "SaddleBrown"))))
147 (my-wl-set-face 'wl-highlight-message-cited-text-3
148 '((t (:foreground "orchid3"))))
149 (my-wl-set-face 'wl-highlight-message-cited-text-4
150 '((t (:foreground "purple1"))))
151 (my-wl-set-face 'wl-highlight-message-cited-text-5
152 '((t (:foreground "MediumPurple1"))))
153 (my-wl-set-face 'wl-highlight-message-cited-text-6
154 '((t (:foreground "PaleVioletRed"))))
155 (my-wl-set-face 'wl-highlight-message-cited-text-7
156 '((t (:foreground "LightPink"))))
157 (my-wl-set-face 'wl-highlight-message-cited-text-8
158 '((t (:foreground "salmon"))))
159 (my-wl-set-face 'wl-highlight-message-cited-text-9
160 '((t (:foreground "SandyBrown"))))
161 (my-wl-set-face 'wl-highlight-message-cited-text-10
162 '((t (:foreground "wheat"))))
164 (my-wl-set-face 'wl-highlight-summary-important-face
165 '((t (:foreground "purple"))))
166 (my-wl-set-face 'wl-highlight-summary-new-face
167 '((t (:foreground "tomato"))))
168 (my-wl-set-face 'wl-highlight-summary-unread-face
169 '((t (:foreground "RoyalBlue"))))
170 (my-wl-set-face 'wl-highlight-summary-deleted-face
171 '((t (:foreground "gray"))))
172 (my-wl-set-face 'wl-highlight-summary-refiled-face
173 '((t (:foreground "blue"))))
174 (my-wl-set-face 'wl-highlight-summary-temp-face
175 '((t (:foreground "salmon"))))
176 (my-wl-set-face 'wl-highlight-summary-displaying-face
177 '((t (:bold t :underline t))))
178 ;; (
\e$B%9%l%C%I
\e(B)
179 (my-wl-set-face 'wl-highlight-summary-thread-top-face
180 '((t (:foreground "green4"))))
181 (my-wl-set-face 'wl-highlight-summary-normal-face
182 '((t (:foreground "SeaGreen"))))
184 (my-wl-set-face 'wl-highlight-folder-unknown-face
185 '((t (:foreground "RoyalBlue"))))
186 (my-wl-set-face 'wl-highlight-folder-killed-face
187 '((t (:foreground "gray50"))))
188 (my-wl-set-face 'wl-highlight-folder-unread-face
189 '((t (:foreground "brown"))))
190 (my-wl-set-face 'wl-highlight-folder-zero-face
191 '((t (:foreground "blue4"))))
192 (my-wl-set-face 'wl-highlight-folder-few-face
193 '((t (:foreground "tomato"))))
194 (my-wl-set-face 'wl-highlight-folder-many-face
195 '((t (:foreground "HotPink1"))))
197 (my-wl-set-face 'wl-highlight-folder-opened-face
198 '((t (:foreground "forest green"))))
199 (my-wl-set-face 'wl-highlight-folder-closed-face
200 '((t (:foreground "DarkOliveGreen4"))))
201 ;;
\e$B%9%?!<%H%"%C%W%G%b
\e(B
202 (my-wl-set-face 'wl-highlight-demo-face
203 '((t (:foreground "blue2"))))
206 ;;; [[
\e$BFC<l$J@_Dj
\e(B ]]
208 ;;
\e$B<+J,$N;22C$7$F$$$k%a!<%j%s%0%j%9%H$N%j%9%H
\e(B
209 (setq wl-subscribed-mailing-list
210 '("wl@lists.airs.net"
212 ;;"ml@example.com" ...
215 ;; jka-compr
\e$B$rMxMQ$7$F
\e(B ~/elmo/SPEC/
\e$B0J2<$N%G!<%?%Y!<%9$r05=L$9$k
\e(B
216 ;(setq elmo-msgdb-overview-filename "overview.gz")
217 ;(setq elmo-msgdb-number-filename "number.gz")
218 ;(setq wl-summary-cache-file ".wl-summary-cache.gz")
219 ;(setq wl-thread-top-file ".wl-thread-top.gz")
222 ;;
\e$B%0%k!<%W$r
\e(Bcheck
\e$B$7$?8e$KL$FI$,$"$k%U%)%k%@$N%0%k!<%W$r<+F0E*$K3+$/
\e(B
223 (add-hook 'wl-folder-check-entity-hook
225 (wl-folder-open-unread-folder entity)
228 ;;
\e$B%5%^%jI=<(4X?t$rJQ99$9$k
\e(B
230 ;;
\e$B%5%^%jI=<($K$*$$$F;HMQ$9$k>pJs$r;}$D%U%#!<%k%I$r
\e(Boverview
\e$B>pJs$K
\e(B
231 ;;
\e$BF~$l$k@_Dj
\e(B(
\e$B$?$@$7!$
\e(Blocal
\e$B%U%)%k%@$N$_
\e(B)
232 ;;
\e$B<+F0%j%U%!%$%k$KI,MW$J%U%#!<%k%I$b@_Dj
\e(B
233 (setq elmo-msgdb-extra-fields '("newsgroups"
235 "x-mail-count" "x-ml-count"
239 ;;; ML
\e$B$N%a%C%;!<%8$G$"$l$P!$%5%^%j$N
\e(B Subject
\e$BI=<($K
\e(B
240 ;;; ML
\e$BL>
\e(B
\e$B$d
\e(B ML
\e$B$K$*$1$k%a%C%;!<%8HV9f$bI=<($9$k
\e(B
241 (setq wl-summary-subject-func 'my-wl-summary-subject-func-ml)
242 (defun my-wl-summary-subject-func-ml (subject-string)
243 (let ((folder wl-summary-buffer-folder-name)
244 (subj subject-string) (sequence) (ml-name) (ml-count))
245 (setq sequence (elmo-msgdb-overview-entity-get-extra-field
247 ml-name (or (elmo-msgdb-overview-entity-get-extra-field
250 (car (split-string sequence " "))))
251 ml-count (or (elmo-msgdb-overview-entity-get-extra-field
252 entity "x-mail-count")
253 (elmo-msgdb-overview-entity-get-extra-field
256 (cadr (split-string sequence " ")))))
258 "^\\s(\\(.+\\)[ :]\\([0-9]+\\)\\s)[ \t]*"
261 (setq subj (substring subject-string (match-end 0)))
262 (if (not ml-name) (setq ml-name (match-string 1 subject-string)))
263 (if (not ml-count) (setq ml-count (match-string 2 subject-string)))))
264 (if (and ml-name ml-count)
265 (if (string= folder wl-default-folder)
266 (format "(%s %05d) %s"
267 (car (split-string ml-name " "))
268 (string-to-int ml-count)
271 (string-to-int ml-count) subj))
274 ;; imput
\e$B$K$h$jHsF14|$GAw?.$9$k
\e(B
275 ;; (utils/im-wl.el
\e$B$r%$%s%9%H!<%k$7$F$*$/I,MW$,$"$j$^$9!#
\e(B
276 ;;
\e$B$^$?!$
\e(B~/.im/Config
\e$B$N@_Dj
\e(B(Smtpservers)
\e$B$rK:$l$J$$$3$H$H!$
\e(B
277 ;; wl-draft-enable-queuing
\e$B$N5!G=$,F/$+$J$/$J$k$3$H$KCm0U!#
\e(B)
278 ;(autoload 'wl-draft-send-with-imput-async "im-wl")
279 ;(setq wl-draft-send-func 'wl-draft-send-with-imput-async)
281 ;;
\e$B%F%s%W%l!<%H$N@_Dj
\e(B
282 (setq wl-template-alist
285 ("Organization" . "~/.wl sample")
286 (body . "
\e$B!{!{$G$9!#
\e(B\n")) ;;
\e$BK\J8
\e(B
288 ("To" . "boss@example.com")
289 ("Subject" . "
\e$BJs9p
\e(B")
290 (top . "
\e$B:#=5$NJs9p$G$9!#
\e(B\n") ;;
\e$BK\J8@hF,$X$NA^F~
\e(B
291 ;; (bottom-file . "~/work/report.txt") ;;
\e$BK\J8KvHx$X%U%!%$%k$NA^F~
\e(B
295 ;;
\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
296 ;;
\e$BF0E*$KJQ99$9$k
\e(B
297 (setq wl-draft-config-alist
298 '((reply ;;
\e$BJV?.85$N%P%C%U%!$r8+$k
\e(B
299 "^To: .*\\(test-notsend-wl@lists.airs.net\\)"
300 (template . "default")) ;;
\e$B%F%s%W%l!<%H
\e(B
301 ("^To: .*\\(test-notsend-wl@lists.airs.net\\)"
302 wl-ml-draft-config-func ;;
\e$B4X?t
\e(B
303 ("From" . wl-from) ;;
\e$BJQ?t
\e(B
304 ("Organization" . "~/.wl sample")) ;;
\e$BJ8;zNs
\e(B
305 ("^Newsgroups: test.*"
306 ("Organization" . "
\e$B%K%e!<%9Ej9F;~$NAH?%L>
\e(B"))
308 ;;
\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
309 ; (add-hook 'wl-mail-setup-hook
311 ; (unless wl-draft-reedit ;;
\e$B:FJT=8;~$OE,MQ$7$J$$
\e(B
312 ; (wl-draft-config-exec wl-draft-config-alist))))
314 ;;
\e$B%a!<%k$NJV?.;~$K08@h$rIU$1$kJ}?K$N@_Dj
\e(B
316 ;;
\e$B2<5-JQ?t$N
\e(B alist
\e$B$NMWAG
\e(B
317 ;; ('
\e$BJV?.85$KB8:_$9$k%U%#!<%k%I
\e(B' .
318 ;; ('To
\e$B%U%#!<%k%I
\e(B' 'Cc
\e$B%U%#!<%k%I
\e(B' 'Newsgroups
\e$B%U%#!<%k%I
\e(B'))
320 ;; "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
321 ;;
\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
322 ;;
\e$B$F$$$k$J$i
\e(B Reply-To
\e$B08$K$9$k!#
\e(B
323 ; (setq wl-draft-reply-without-argument-list
324 ; '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
325 ; ("X-ML-Name" . (("To" "Cc") nil nil))
326 ; ("Followup-To" . (nil nil ("Followup-To")))
327 ; ("Newsgroups" . (nil nil ("Newsgroups")))
328 ; ("Reply-To" . (("Reply-To") nil nil))
329 ; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
330 ; ("From" . (("From") nil nil))))
332 ;; "C-u a" (with-argument)
\e$B$G$"$l$P4X78$9$kA4$F$N?M!&Ej9F@h$KJV?.$9$k!#
\e(B
333 ; (setq wl-draft-reply-with-argument-list
334 ; '(("Followup-To" . (("From") nil ("Followup-To")))
335 ; ("Newsgroups" . (("From") nil ("Newsgroups")))
336 ; ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
337 ; ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
340 ;; X-Face
\e$B$rI=<($9$k
\e(B (
\e$BMW
\e(B x-face (and x-face-mule))
342 (when (and window-system
343 (module-installed-p 'x-face))
344 (cond (wl-on-xemacs ;; for XEmacs
345 (autoload 'x-face-xmas-wl-display-x-face "x-face" nil t)
346 (setq wl-highlight-x-face-func
347 'x-face-xmas-wl-display-x-face))
348 ((module-installed-p 'x-face-mule) ;; for Mule (GNU Emacs)
349 ;; x-face-mule 0.20
\e$B0J8e
\e(B
350 (setq wl-highlight-x-face-func
352 (lambda (&optional beg end) ; for compatibility
353 (x-face-decode-message-header))))
354 (setq x-face-mule-highlight-x-face-style 'xmas)
355 (require 'x-face-mule)
358 ;;
\e$B<+F0%j%U%!%$%k$N%k!<%k@_Dj
\e(B
359 ;(setq wl-refile-rule-alist
362 ; ("^Wanderlust" . "+wl")
363 ; ("^Elisp" . "+elisp"))
365 ; ("teranisi@isl.ntt.co.jp" . "+teranisi"))))
367 ;;
\e$B<+F0%j%U%!%$%k$7$J$$1JB3%^!<%/$r@_Dj
\e(B
368 ;;
\e$BI8=`$G$O
\e(B "N" "U" "!"
\e$B$K$J$C$F$*$j!"L$FI%a%C%;!<%8$r<+F0%j%U%!%$%k$7
\e(B
369 ;;
\e$B$^$;$s!#
\e(Bnil
\e$B$G$9$Y$F$N%a%C%;!<%8$,BP>]$K$J$j$^$9!#
\e(B
370 ;(setq wl-summary-auto-refile-skip-marks nil)
372 ;;
\e$B%9%3%"5!G=$N@_Dj
\e(B
373 ;; wl-score-folder-alist
\e$B$N@_Dj$K4X$o$i$:I,$:
\e(B "all.SCORE"
\e$B$O;HMQ$5$l$k!#
\e(B
374 ; (setq wl-score-folder-alist
380 ;;
\e$B%9%3%"%U%!%$%k$rCV$/%G%#%l%/%H%j
\e(B
381 ; (setq wl-score-files-directory "~/.elmo/")