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 ;; User's mail addresses.
35 (setq wl-user-mail-address-list
36 (list (wl-address-header-extract-address wl-from)
37 ;; "e-mail2@example.com"
38 ;; "e-mail3@example.net" ...
41 ;; Subscribed mailing list.
42 (setq wl-subscribed-mailing-list
45 "emacs-mime-ja@m17n.org"
46 ;; "ml@example.com" ...
49 ;; If (system-name) does not return FQDN,
50 ;; set following as a local domain name without hostname.
51 ;; ((system-name) "." wl-local-domain is used as domain part of Message-ID
52 ;; and an argument of HELO in SMTP.
53 ;(setq wl-local-domain "example.com")
55 ;; Specific domain part for message-id.
56 ;(setq wl-message-id-domain "hostname.example.com")
58 ;; Use wl-from for generating message-id.
59 ;; wl-message-id-use-wl-from precedes wl-local-domain and wl-message-id-domain.
60 ;(setq wl-message-id-use-wl-from t)
62 ;;; [[ Server Setting ]]
64 ;; Default IMAP4 server
65 (setq elmo-imap4-default-server "localhost")
67 (setq elmo-pop3-default-server "localhost")
69 (setq wl-smtp-posting-server "localhost")
70 ;; Default NNTP server
71 (setq elmo-nntp-default-server "localhost")
72 ;; NNTP server name for posting
73 (setq wl-nntp-posting-server elmo-nntp-default-server)
75 ;; IMAP authenticate type setting
76 (setq elmo-imap4-default-authenticate-type 'clear) ; raw
77 ;(setq elmo-imap4-default-authenticate-type 'cram-md5) ; CRAM-MD5
80 ;(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)
83 ;;; [[ Basic Setting ]]
85 ;; Language for day of the week in summary
86 (setq wl-summary-weekday-name-lang "en")
88 ;; Default folder for `wl-summary-goto-folder'.
89 ;(setq wl-default-folder "+inbox")
91 ;; Default string for folder name completion.
92 ;(setq wl-default-spec "+")
95 ;(setq wl-fcc "+outbox")
97 ;; Confirm before exitting Wanderlust.
98 (setq wl-interactive-exit t)
100 ;; Confirm before sending message.
101 (setq wl-interactive-send t)
103 ;; Create opened thread.
104 ;(setq wl-thread-insert-opened t)
106 ;; Keep folder window beside summary. (3 pane)
107 ;(setq wl-stay-folder-window t)
109 ;; Truncate long lines.
110 ;(setq wl-message-truncate-lines t)
111 ;(setq wl-draft-truncate-lines t)
112 ;; Following line is needed for XEmacs older than 21.4.6.
113 ;(setq truncate-partial-width-windows nil)
115 ;; Open new frame for draft buffer.
116 ;(setq wl-draft-use-frame t)
118 ;; Don't limit indent for thread view
119 ;(setq wl-summary-indent-length-limit nil)
120 ;(setq wl-summary-width nil)
122 ;; Divide thread by change of subject.
123 ;(setq wl-summary-divide-thread-when-subject-changed t)
125 ;; Change format of thread view
126 ;(setq wl-thread-indent-level 2)
127 ;(setq wl-thread-have-younger-brother-str "+"
128 ; wl-thread-youngest-child-str "+"
129 ; wl-thread-vertical-str "|"
130 ; wl-thread-horizontal-str "-"
131 ; wl-thread-space-str " ")
133 ;; display first message automatically.
134 ;(setq wl-auto-select-first t)
136 ;; goto next folder when exit from summary.
137 ;(setq wl-auto-select-next t)
139 ;; skip folder if there is no unread message.
140 ;(setq wl-auto-select-next 'skip-no-unread)
142 ;; jump to unread message in 'N' or 'P'.
143 ;(setq wl-summary-move-order 'unread)
145 ;; notify mail arrival
146 ;(setq wl-biff-check-folder-list '("%inbox"))
147 ;(setq wl-biff-notify-hook '(ding))
153 ;; (messages in localdir, localnews, maildir are not cached.)
154 ;(setq elmo-archive-use-cache nil)
155 ;(setq elmo-nntp-use-cache t)
156 ;(setq elmo-imap4-use-cache t)
157 ;(setq elmo-pop3-use-cache t)
159 ;; Enable disconnected operation in IMAP folder.
160 (setq elmo-enable-disconnected-operation t)
162 ;; Store draft message in queue folder if message is sent in unplugged status.
163 (setq wl-draft-enable-queuing t)
164 ;; when plug status is changed from unplugged to plugged,
165 ;; queued message is flushed automatically.
166 (setq wl-auto-flush-queue t)
168 ;; offline at startup.
169 ;(setq wl-plugged nil)
170 ;; change plug status by server or port at startup.
171 ;(add-hook 'wl-make-plugged-hook
173 ; ;; Add or Change plug status for SERVER and PORT.
174 ; (elmo-set-plugged plugged(t/nil) server port)
175 ; ;; When omit port, SEVERS all port was changes.
176 ; ;; (Can't add plug status without PORT)
177 ; (elmo-set-plugged plugged(t/nil) server)
181 ;;; [[ Special Setting ]]
183 ;; bind "b" in Summary to resend-message (ala mutt's "b"ounce)
184 ;(add-hook 'wl-summary-mode-hook
186 ; (define-key wl-summary-mode-map "b" 'wl-summary-resend-message)
189 ;; open unread group folder after checking.
190 ;(add-hook 'wl-folder-check-entity-hook
192 ; (wl-folder-open-unread-folder entity)
195 ;; Change summary display function.
197 ;; Set extra field use with `elmo-msgdb-overview-entity-get-extra-field'.
198 ;; And use with auto-refile.
199 (setq elmo-msgdb-extra-fields
201 "list-id" "x-ml-name" "mailing-list"
202 "x-mail-count" "x-ml-count" "x-sequence"))
204 ;; ML message displays ML name and ML sequence number in subject.
205 (setq wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %#%~%s")
206 ;; Set summary line format according to folder name.
207 ;(setq wl-folder-summary-line-format-alist
208 ; '(("^%inbox\\.emacs\\.wl$" .
209 ; "%-5l%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
210 ; ("^%" . "%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
211 ; ("^+" . "%n%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")))
213 ;; imput asynchronously.
214 ;; (utils/im-wl.el is needed to be installed.
215 ;; Don't forget setting ~/.im/Config (Smtpservers).
216 ;; note that wl-draft-enable-queuing is not valid.)
217 ;(autoload 'wl-draft-send-with-imput-async "im-wl")
218 ;(setq wl-draft-send-function 'wl-draft-send-with-imput-async)
221 ;; non-verbose User-Agent: field
222 ;(setq wl-generate-mailer-string-function
223 ; 'wl-generate-user-agent-string-1)
226 ;; Automatically save modified draft buffers in every 20 seconds.
227 ;(defun my-wl-auto-save-draft-buffers ()
228 ; (let ((buffers (wl-collect-draft)))
231 ; (set-buffer (car buffers))
232 ; (if (buffer-modified-p) (wl-draft-save))
233 ; (setq buffers (cdr buffers))))))
234 ;(run-with-idle-timer 20 t 'my-wl-auto-save-draft-buffers)
240 ;(setq wl-template-alist
243 ; ("Organization" . "organization for default")
244 ; (body . "Hello, this is XXX \n")) ; body
246 ; ("To" . "boss@example.com")
247 ; ("Subject" . "Report")
248 ; (top . "Sir, here is my report\n") ; insert in top.
249 ; (bottom-file . "~/work/report.txt") ; insert file in bottom
253 ;; Change headers in draft sending time.
254 ;(setq wl-draft-config-alist
255 ; '((reply ; see reply buffer
256 ; "^To: .*test-notsend-wl@lists\\.airs\\.net"
257 ; (template . "default")) ; template
258 ; ("^To: .*test-notsend-wl@lists\\.airs\\.net"
260 ; ("From" . wl-from) ; variable
261 ; ("Organization" . "organization")) ; string
262 ; ("^Newsgroups: test.*"
263 ; ("Organization" . "organization for nntp."))
266 ;; Change headers in draft preparation time.
267 ;(add-hook 'wl-mail-setup-hook
269 ; (unless wl-draft-reedit; ; don't apply when reedit.
270 ; (wl-draft-config-exec wl-draft-config-alist))))
274 ;; header value setting for mail reply.
276 ;; Wide window for draft buffer.
277 ;(setq wl-draft-reply-buffer-style 'full)
279 ;; Remove fullname in reply message header.
280 ;(setq wl-draft-reply-use-address-with-full-name nil)
282 ;; "a" (without-argument) reply to author (Reply-To or From).
283 ;; if 'X-ML-Name' and 'Reply-To' exists, reply to 'Reply-To'.
284 ;(setq wl-draft-reply-without-argument-list
285 ; '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
286 ; ("X-ML-Name" . (("To" "Cc") nil nil))
287 ; ("Followup-To" . (nil nil ("Followup-To")))
288 ; ("Newsgroups" . (nil nil ("Newsgroups")))
289 ; ("Reply-To" . (("Reply-To") nil nil))
290 ; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
291 ; ("From" . (("From") nil nil))))
293 ;; "C-u a" (with-argument) reply to all.
294 ;(setq wl-draft-reply-with-argument-list
295 ; '(("Followup-To" . (("From") nil ("Followup-To")))
296 ; ("Newsgroups" . (("From") nil ("Newsgroups")))
297 ; ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
298 ; ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
300 ;; old defaults < 2.11.0
301 ;(setq wl-draft-reply-with-argument-list
302 ; '(("Reply-To" . (("Reply-To") nil nil))
303 ; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
304 ; ("From" . (("From") nil nil))))
305 ;(setq wl-draft-reply-without-argument-list
306 ; '(("Followup-To" . (nil nil ("Followup-To")))
307 ; ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
308 ; ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
309 ; ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
311 ;;; [[ Message Display Settings ]]
313 ;; Hidden header field in message buffer.
314 (setq wl-message-ignored-field-list
315 '(".*Received:" ".*Path:" ".*Id:" "^References:"
316 "^Replied:" "^Errors-To:"
317 "^Lines:" "^Sender:" ".*Host:" "^Xref:"
318 "^Content-Type:" "^Precedence:"
319 "^Status:" "^X-VM-.*:"))
321 ;; Displayed header field in message buffer.
322 ;; This value precedes `wl-message-ignored-field-list'
323 (setq wl-message-visible-field-list '("^Message-Id:"))
327 (cond ((and (featurep 'xemacs) ; for XEmacs
328 (module-installed-p 'x-face))
329 (autoload 'x-face-xmas-wl-display-x-face "x-face")
330 (setq wl-highlight-x-face-function 'x-face-xmas-wl-display-x-face))
333 ((and (not (featurep 'xemacs))
334 (= emacs-major-version 21)
335 (module-installed-p 'x-face-e21))
336 (autoload 'x-face-decode-message-header "x-face-e21")
337 (setq wl-highlight-x-face-function 'x-face-decode-message-header))
339 ;; for Emacs 19.34, Emacs 20.x
340 ((module-installed-p 'x-face-mule)
341 ;; x-face-mule distributed with bitmap-mule 8.0 or later
342 (autoload 'x-face-decode-message-header "x-face-mule")
343 (setq wl-highlight-x-face-function 'x-face-decode-message-header))
347 ;; "all.SCORE" file is used regardless of wl-score-folder-alist.
348 ;(setq wl-score-folder-alist
355 ;; rule for auto refile.
356 ;(setq wl-refile-rule-alist
359 ; ("^Wanderlust" . "+wl")
360 ; ("^Elisp" . "+elisp"))
362 ; ("foo@example\\.com" . "+foo"))))
364 ;; Marks to skip auto-refile (default is "N" "U" "!").
365 ;; nil means all message is auto-refiled.
366 ;(setq wl-summary-auto-refile-skip-marks nil)