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