1 ;;; dot.wl -- sample setting file for Wanderlust -*- emacs-lisp -*-
3 ;; [[ Requirement Setting ]]
5 ;; Following must be included in ~/.emacs
6 ;; (No need if installed as XEmacs package.)
7 (autoload 'wl "wl" "Wanderlust" t)
8 (autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
9 (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
12 ;; (No need if installed as XEmacs package.)
13 ;(setq wl-icon-directory "/usr/local/lib/emacs/etc")
18 ;; Disable inline display of HTML part.
19 ;; Put before load `mime-setup'
20 (setq mime-setup-enable-inline-html nil)
22 ;; Don't split large message.
23 (setq mime-edit-split-message nil)
25 ;; If lines of message are larger than this value, treat it as `large'.
26 ;(setq mime-edit-message-default-max-lines 1000)
29 ;;; [[ Private Setting ]]
32 ;(setq wl-from "Your Name <e-mail@example.com>")
34 ;; If (system-name) does not return FQDN,
35 ;; set following as a local domain name without hostname.
36 ;(setq wl-local-domain "example.com")
38 ;; User's mail addresses.
39 (setq wl-user-mail-address-list
40 (list (wl-address-header-extract-address wl-from)
41 ;; "e-mail2@example.com"
42 ;; "e-mail3@example.net" ...
45 ;; Subscribed mailing list.
46 (setq wl-subscribed-mailing-list
49 "emacs-mime-ja@m17n.org"
50 ;; "ml@example.com" ...
53 ;;; [[ Server Setting ]]
55 ;; Default IMAP4 server
56 (setq elmo-imap4-default-server "localhost")
58 (setq elmo-pop3-default-server "localhost")
60 (setq wl-smtp-posting-server "localhost")
61 ;; Default NNTP server
62 (setq elmo-nntp-default-server "localhost")
63 ;; NNTP server name for posting
64 (setq wl-nntp-posting-server elmo-nntp-default-server)
66 ;; IMAP authenticate type setting
67 (setq elmo-imap4-default-authenticate-type 'clear) ; raw
68 ;(setq elmo-imap4-default-authenticate-type 'cram-md5) ; CRAM-MD5
71 ;(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)
74 ;;; [[ Basic Setting ]]
76 ;; Default folder for `wl-summary-goto-folder'.
77 ;(setq wl-default-folder "+inbox")
79 ;; Default string for folder name completion.
80 ;(setq wl-default-spec "+")
83 ;(setq wl-fcc "+outbox")
85 ;; Confirm before exitting Wanderlust.
86 (setq wl-interactive-exit t)
88 ;; Confirm before sending message.
89 (setq wl-interactive-send t)
91 ;; Create opened thread.
92 ;(setq wl-thread-insert-opened t)
94 ;; Keep folder window beside summary. (3 pane)
95 ;(setq wl-stay-folder-window t)
97 ;; Truncate long lines.
98 ;(setq wl-message-truncate-lines t)
99 ;(setq wl-draft-truncate-lines t)
100 ;; Following line is needed for XEmacs older than 21.4.6.
101 ;(setq truncate-partial-width-windows nil)
103 ;; Open new frame for draft buffer.
104 ;(setq wl-draft-use-frame t)
106 ;; Don't limit indent for thread view
107 ;(setq wl-summary-indent-length-limit nil)
108 ;(setq wl-summary-width nil)
110 ;; Divide thread by change of subject.
111 ;(setq wl-summary-divide-thread-when-subject-changed t)
113 ;; Change format of thread view
114 ;(setq wl-thread-indent-level 2)
115 ;(setq wl-thread-have-younger-brother-str "+"
116 ; wl-thread-youngest-child-str "+"
117 ; wl-thread-vertical-str "|"
118 ; wl-thread-horizontal-str "-"
119 ; wl-thread-space-str " ")
121 ;; display first message automatically.
122 ;(setq wl-auto-select-first t)
124 ;; goto next folder when exit from summary.
125 ;(setq wl-auto-select-next t)
127 ;; skip folder if there is no unread message.
128 ;(setq wl-auto-select-next 'skip-no-unread)
130 ;; jump to unread message in 'N' or 'P'.
131 ;(setq wl-summary-move-order 'unread)
133 ;; notify mail arrival
134 ;(setq wl-biff-check-folder-list '("%inbox"))
135 ;(setq wl-biff-notify-hook '(ding))
141 ;; (messages in localdir, localnews, maildir are not cached.)
142 ;(setq elmo-archive-use-cache nil)
143 ;(setq elmo-nntp-use-cache t)
144 ;(setq elmo-imap4-use-cache t)
145 ;(setq elmo-pop3-use-cache t)
147 ;; Enable disconnected operation in IMAP folder.
148 (setq elmo-enable-disconnected-operation t)
150 ;; Store draft message in queue folder if message is sent in unplugged status.
151 (setq wl-draft-enable-queuing t)
152 ;; when plug status is changed from unplugged to plugged,
153 ;; queued message is flushed automatically.
154 (setq wl-auto-flush-queue t)
156 ;; offline at startup.
157 ;(setq wl-plugged nil)
158 ;; change plug status by server or port at startup.
159 ;(add-hook 'wl-make-plugged-hook
161 ; ;; Add or Change plug status for SERVER and PORT.
162 ; (elmo-set-plugged plugged(t/nil) server port)
163 ; ;; When omit port, SEVERS all port was changes.
164 ; ;; (Can't add plug status without PORT)
165 ; (elmo-set-plugged plugged(t/nil) server)
169 ;;; [[ Special Setting ]]
171 ;; open unread group folder after checking.
172 ;(add-hook 'wl-folder-check-entity-hook
174 ; (wl-folder-open-unread-folder entity)
177 ;; Change summary display function.
179 ;; Set extra field use with `elmo-message-entity-field'.
180 ;; And use with auto-refile.
181 (setq elmo-msgdb-extra-fields '("ml-info"))
183 ;; ML message displays ML name and ML sequence number in subject.
184 (setq wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %#%~%s")
185 ;; Set summary line format according to folder name.
186 ;(setq wl-folder-summary-line-format-alist
187 ; '(("^%inbox\\.emacs\\.wl$" .
188 ; "%-5l%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
189 ; ("^%" . "%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
190 ; ("^+" . "%n%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")))
192 ;; imput asynchronously.
193 ;; (utils/im-wl.el is needed to be installed.
194 ;; Don't forget setting ~/.im/Config (Smtpservers).
195 ;; note that wl-draft-enable-queuing is not valid.)
196 ;(autoload 'wl-draft-send-with-imput-async "im-wl")
197 ;(setq wl-draft-send-function 'wl-draft-send-with-imput-async)
200 ;; non-verbose User-Agent: field
201 ;(setq wl-generate-mailer-string-function
202 ; 'wl-generate-user-agent-string-1)
205 ;; When you encrypt message by PGP, include your public key.
206 ;; (to make the message visible from yourself)
207 ;(setq pgg-encrypt-for-me t)
213 ;(setq wl-template-alist
216 ; ("Organization" . "organization for default")
217 ; (body . "Hello, this is XXX \n")) ; body
219 ; ("To" . "boss@example.com")
220 ; ("Subject" . "Report")
221 ; (top . "Sir, here is my report\n") ; insert in top.
222 ; (bottom-file . "~/work/report.txt") ; insert file in bottom
226 ;; Change headers in draft sending time.
227 ;(setq wl-draft-config-alist
228 ; '((reply ; see reply buffer
229 ; "^To: .*test-notsend-wl@lists\\.airs\\.net"
230 ; (template . "default")) ; template
231 ; ("^To: .*test-notsend-wl@lists\\.airs\\.net"
233 ; ("From" . wl-from) ; variable
234 ; ("Organization" . "organization")) ; string
235 ; ("^Newsgroups: test.*"
236 ; ("Organization" . "organization for nntp."))
239 ;; Change headers in draft preparation time.
240 ;(add-hook 'wl-mail-setup-hook
242 ; (unless wl-draft-reedit; ; don't apply when reedit.
243 ; (wl-draft-config-exec wl-draft-config-alist))))
247 ;; header value setting for mail reply.
249 ;; Wide window for draft buffer.
250 ;(setq wl-draft-reply-buffer-style 'full)
252 ;; Remove fullname in reply message header.
253 ;(setq wl-draft-reply-use-address-with-full-name nil)
255 ;; "a" (without-argument) reply to author (Reply-To or From).
256 ;; if 'X-ML-Name' and 'Reply-To' exists, reply to 'Reply-To'.
257 ;(setq wl-draft-reply-without-argument-list
258 ; '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
259 ; ("X-ML-Name" . (("To" "Cc") nil nil))
260 ; ("Followup-To" . (nil nil ("Followup-To")))
261 ; ("Newsgroups" . (nil nil ("Newsgroups")))
262 ; ("Reply-To" . (("Reply-To") nil nil))
263 ; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
264 ; (wl-draft-self-reply-p . (("To") ("Cc") nil))
265 ; ("From" . (("From") nil nil))))
267 ;; old defaults < 2.11.0
268 ;(setq wl-draft-reply-without-argument-list
269 ; '(((wl-draft-self-reply-p
270 ; "Followup-To") . (("To") ("Cc") ("Followup-To")))
271 ; ((wl-draft-self-reply-p
272 ; "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
273 ; ((wl-draft-self-reply-p
274 ; "From") . (("To") ("Cc") nil))
275 ; ("Followup-To" . (nil nil ("Followup-To")))
276 ; ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
277 ; ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
278 ; ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
279 ;(setq wl-draft-reply-with-argument-list
280 ; '(((wl-draft-self-reply-p
281 ; "Followup-To") . (("To") ("Cc") ("Followup-To")))
282 ; ((wl-draft-self-reply-p
283 ; "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
284 ; ((wl-draft-self-reply-p
285 ; "From") . (("To") ("Cc") nil))
286 ; ("Reply-To" . (("Reply-To") nil nil))
287 ; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
288 ; ("From" . (("From") nil nil))))
291 ;;; [[ Message Display Settings ]]
293 ;; Hidden header field in message buffer.
294 (setq wl-message-ignored-field-list
295 '(".*Received:" ".*Path:" ".*Id:" "^References:"
296 "^Replied:" "^Errors-To:"
297 "^Lines:" "^Sender:" ".*Host:" "^Xref:"
298 "^Content-Type:" "^Precedence:"
299 "^Status:" "^X-VM-.*:"))
301 ;; Displayed header field in message buffer.
302 ;; This value precedes `wl-message-ignored-field-list'
303 (setq wl-message-visible-field-list '("^Message-Id:"))
307 (cond ((and (featurep 'xemacs) ; for XEmacs
308 (module-installed-p 'x-face))
309 (autoload 'x-face-xmas-wl-display-x-face "x-face")
310 (setq wl-highlight-x-face-function 'x-face-xmas-wl-display-x-face))
313 ((and (not (featurep 'xemacs))
314 (= emacs-major-version 21)
315 (module-installed-p 'x-face-e21))
316 (autoload 'x-face-decode-message-header "x-face-e21")
317 (setq wl-highlight-x-face-function 'x-face-decode-message-header))
319 ;; for Emacs 19.34, Emacs 20.x
320 ((module-installed-p 'x-face-mule)
321 ;; x-face-mule distributed with bitmap-mule 8.0 or later
322 (autoload 'x-face-decode-message-header "x-face-mule")
323 (setq wl-highlight-x-face-function 'x-face-decode-message-header))
327 ;; "all.SCORE" file is used regardless of wl-score-folder-alist.
328 ;(setq wl-score-folder-alist
335 ;; rule for auto refile.
336 ;(setq wl-refile-rule-alist
339 ; ("^Wanderlust" . "+wl")
340 ; ("^Elisp" . "+elisp"))
342 ; ("foo@example\\.com" . "+foo"))))
344 ;; Marks to skip auto-refile (default is "N" "U" "!").
345 ;; nil means all message is auto-refiled.
346 ;(setq wl-summary-auto-refile-skip-marks nil)
348 ;;; [[ Spam Filter Settings ]]
350 ;; Use bogofilter as a back end.
351 ;(setq elmo-spam-scheme 'bogofilter)
355 ;; In moving to summary, judge whether a message is a spam.
356 ;(setq wl-spam-auto-check-folder-regexp-list '("\\+inbox"))
358 ;; Judge *first* whether a message is a spam
359 ;; when `o' (wl-summary-refile) is performed in a summary buffer.
360 ;(unless (memq 'wl-refile-guess-by-spam wl-refile-guess-functions)
361 ; (setq wl-refile-guess-functions
362 ; (cons #'wl-refile-guess-by-spam
363 ; wl-refile-guess-functions)))
365 ;; Judge *first* whether a message is a spam
366 ;; when `C-o' (wl-summary-auto-refile) is performed in a summary buffer.
367 ;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
368 ; (setq wl-auto-refile-guess-functions
369 ; (cons #'wl-refile-guess-by-spam
370 ; wl-auto-refile-guess-functions)))
372 ;; When you want to give priority to refile-rule (same as spamfilter-wl.el
373 ;; or bogofilter-wl.el), please confirm the setup here.
374 ;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
375 ; (setq wl-auto-refile-guess-functions
376 ; (append wl-auto-refile-guess-functions
377 ; '(wl-refile-guess-by-spam))))