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