New feature: toggle visibility of mime buttons.
[more-wl.git] / wl / wl-vars.el
blob9e5e5727c137c053a0b5d9ccbdeff90449dd36fe
1 ;;; wl-vars.el --- Variable definitions for Wanderlust.
3 ;; Copyright (C) 1998,1999,2000,2001 Yuuichi Teranishi <teranisi@gohome.org>
4 ;; Copyright (C) 1998,1999,2000,2001 Masahiro MURATA <muse@ba2.so-net.ne.jp>
6 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
7 ;; Masahiro MURATA <muse@ba2.so-net.ne.jp>
8 ;; Keywords: mail, net news
10 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; any later version.
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
28 ;;; Commentary:
31 ;;; Code:
34 (require 'elmo-vars)
35 (require 'elmo-util)
36 (require 'elmo-msgdb)
37 (require 'custom)
39 ;;; Customizable Variables
41 (defgroup wl nil
42 "Wanderlust, a news and mail reading software."
43 :tag "Wanderlust"
44 :link `(custom-manual
45 ,(if (and (boundp 'current-language-environment)
46 (string-equal "Japanese"
47 (symbol-value 'current-language-environment)))
48 "(wl-ja)Top"
49 "(wl)Top"))
50 :group 'news
51 :group 'mail)
53 (defgroup wl-pref nil
54 "Wanderlust, Preferences."
55 :prefix "wl-"
56 :group 'wl)
58 (defgroup wl-folder nil
59 "Wanderlust, folder buffer."
60 :prefix "wl-"
61 :group 'wl)
63 (defgroup wl-summary nil
64 "Wanderlust, summary buffer."
65 :prefix "wl-"
66 :group 'wl)
68 (defgroup wl-summary-marks nil
69 "Wanderlust, marks used in summary buffers."
70 :prefix "wl-summary-"
71 :group 'wl-summary)
73 (defgroup wl-expire nil
74 "Wanderlust, Expiring and archiving."
75 :prefix "wl-"
76 :group 'wl)
78 (defgroup wl-score nil
79 "Wanderlust, Score file handling."
80 :prefix "wl-"
81 :group 'wl)
83 (defgroup wl-highlight nil
84 "Wanderlust, Highlights."
85 :prefix "wl-"
86 :group 'wl)
88 (defgroup wl-draft nil
89 "Wanderlust, draft mode."
90 :prefix "wl-"
91 :group 'wl)
93 (defgroup wl-setting nil
94 "Wanderlust common settings."
95 :prefix "wl-"
96 :group 'wl)
98 ;;; Emacsen
99 (defconst wl-on-xemacs (featurep 'xemacs))
101 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
102 (>= emacs-major-version 21)))
104 (defconst wl-on-mule (featurep 'mule))
106 (defconst wl-on-mule3
107 (and wl-on-mule (or wl-on-xemacs
108 (> emacs-major-version 19))))
110 (defconst wl-on-nemacs nil) ; backward compatibility.
112 (eval-when-compile
113 (defun-maybe locate-data-directory (a)))
115 (defvar wl-cs-noconv
116 (cond (wl-on-mule3 'binary)
117 (wl-on-mule '*noconv*)
118 (t nil)))
120 (defvar wl-cs-autoconv
121 (cond (wl-on-mule3 'undecided)
122 (wl-on-mule '*autoconv*)
123 (t nil)))
125 (defvar wl-cs-local
126 (cond (wl-on-mule3 'junet)
127 (wl-on-mule '*junet*)
128 (t nil)))
130 (defvar wl-cs-cache wl-cs-local)
132 (defcustom wl-from (and user-mail-address
133 (concat (and (user-full-name)
134 (concat (elmo-address-quote-specials
135 (user-full-name))
136 " "))
137 "<" user-mail-address ">"))
138 "*From string used in draft."
139 :type 'string
140 :group 'wl
141 :group 'wl-setting)
143 (defcustom wl-user-mail-address-list nil
144 "*A list of user's mail addresses.
145 This list is used to judge whether an address is user's or not.
146 You should set this variable if you use multiple e-mail addresses.
147 If you don't have multiple e-mail addresses, you don't have to set this.
148 NOTE: Non-nil value of `wl-user-mail-address-regexp' supersede this."
149 :type '(repeat string)
150 :group 'wl
151 :group 'wl-setting)
153 (defcustom wl-user-mail-address-regexp nil
154 "*A regexp for user's mail addresses.
155 Supersede `wl-user-mail-address-list'."
156 :type '(choice (const :tag "Use wl-user-mail-address-list" nil)
157 string)
158 :group 'wl
159 :group 'wl-setting)
161 (defcustom wl-organization (getenv "ORGANIZATION")
162 "Organization name."
163 :type '(choice (const :tag "none" nil)
164 string)
165 :group 'wl
166 :group 'wl-setting)
168 (defcustom wl-temporary-file-directory "~/tmp/"
169 "*Default temporary directory to save message, part."
170 :type 'directory
171 :group 'wl)
173 (defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
174 (locate-data-directory "wl")
175 (let ((icons (expand-file-name "wl/icons/"
176 data-directory)))
177 (if (file-directory-p icons)
178 icons)))
179 "*Directory to load the icon files from, or nil if none."
180 :type '(choice (const :tag "none" nil)
181 string)
182 :group 'wl)
184 (defcustom wl-summary-default-view 'thread
185 "Default status of summary view, thread or sequential view."
186 :type '(choice (const :tag "Thread" thread)
187 (const :tag "Sequential" sequence))
188 :group 'wl-summary)
190 (defcustom wl-summary-default-view-alist nil
191 "An alist of regexp for folder name and summary default view.
192 If no match, `wl-summary-default-view' is used."
193 :type '(repeat (cons (regexp :tag "Folder Regexp")
194 (choice (const :tag "Thread" thread)
195 (const :tag "Sequential" sequence))))
196 :group 'wl-summary)
198 (defvar wl-summary-mode-line-format-spec-alist
199 '((?f (if (memq 'modeline wl-use-folder-petname)
200 (wl-folder-get-petname (elmo-folder-name-internal
201 wl-summary-buffer-elmo-folder))
202 (elmo-folder-name-internal wl-summary-buffer-elmo-folder)))
203 (?t (if (eq wl-summary-buffer-view 'thread) "T" "S"))
204 (?m (upcase (symbol-name wl-summary-buffer-display-mime-mode)))
205 (?n wl-summary-buffer-new-count)
206 (?u wl-summary-buffer-unread-count)
207 (?a (length wl-summary-buffer-number-list)))
208 "An alist of format specifications that can appear in summary mode-lines.
209 Each element is a list of following:
210 \(SPEC STRING-EXP)
211 SPEC is a character for format specification.
212 STRING-EXP is an expression to get string to insert.")
214 (defcustom wl-summary-mode-line-format "Wanderlust: %f {%t}(%n/%u/%a)"
215 "*A format string for summary mode-line of Wanderlust.
216 It may include any of the following format specifications
217 which are replaced by the given information:
219 %f The folder name.
220 %t The thread status of the summary ('T' for thread, 'S' for sequential).
221 %m The mime analysis status of the summary ('MIME' for MIME ON)
222 %n The number of new messages.
223 %u The number of unread messages (includes new messages).
224 %a The number of all messages."
225 :group 'wl-summary
226 :type 'string)
228 (defvar wl-summary-line-format-spec-alist
229 '((?Y (wl-summary-line-year))
230 (?M (wl-summary-line-month))
231 (?D (wl-summary-line-day))
232 (?W (wl-summary-line-day-of-week))
233 (?h (wl-summary-line-hour))
234 (?m (wl-summary-line-minute))
235 (?\[ (if wl-thr-linked "<" "["))
236 (?\] (if wl-thr-linked ">" "]"))
237 (?t (or wl-thr-indent-string ""))
238 (?s (wl-summary-line-subject))
239 (?S (wl-summary-line-size))
240 (?C (if wl-thr-children-number
241 (concat "[+" (number-to-string wl-thr-children-number) "] ")
242 (if wl-parent-message-entity
243 (if wl-thr-linked ">>" ">")
244 "")))
245 (?~ (if (zerop (length wl-line-string)) "" " "))
246 (?c (if wl-thr-children-number
247 (concat "+" (number-to-string wl-thr-children-number) ":")
248 ""))
249 (?f (wl-summary-line-from))
250 (?# (wl-summary-line-list-info))
251 (?l (wl-summary-line-list-count))
252 (?T (or wl-temp-mark " "))
253 (?P (or wl-persistent-mark " "))
254 (?n (wl-summary-line-number))
255 (?@ (wl-summary-line-attached)))
256 "An alist of format specifications that can appear in summary lines.
257 Each element is a list of following:
258 \(SPEC STRING-EXP)
259 SPEC is a character for format specification.
260 STRING-EXP is an expression to get string to insert.")
262 (defcustom wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s"
263 "*A default format string for summary line of Wanderlust.
264 It may include any of the following format specifications
265 which are replaced by the given information:
267 %n The number of the message.
268 The width is decided using `wl-summary-default-number-column' and
269 `wl-summary-number-column-alist'.
270 %T The temporal mark (*, D, o, O).
271 %P The persistent mark (status of the message).
272 %Y The year of the date field of the message (zero padded).
273 %M The month of the date field of the message (zero padded).
274 %D The day of the date field of the message (zero padded).
275 %W The weekday name of the date field of the message (zero padded).
276 %h The hour of the date field of the message (zero padded).
277 %m The minute of the date field of the message (zero padded).
278 %[ An open bracket. If the message thread is linked,
279 it is replaced with '<'.
280 %] A close bracket. If the message thread is linked,
281 it is replaced with '>'.
282 %c The children number of the closed message thread.
283 Children number is printed like '+??:'.
284 %C The children number of the closed message thread.
285 Children number is printed like '[+??] '.
286 If the message is opened, '>' or '>>' (linked) is displayed.
287 %f The from: field string of the message.
288 %s The subject: field string of the message.
289 %S The size of the message (if available).
290 %~ If the previous spec is not zero-length, replaced with ' '.
292 If the format string contains the specifiers %( and %), the text between
293 them will have the specified number of columns.
295 See also variable `wl-summary-width'."
296 :group 'wl-summary
297 :type 'string)
299 (defcustom wl-folder-summary-line-format-alist nil
300 "An alist of folder name and a summary line format.
301 If no match, `wl-summary-line-format' is used.
302 e.x.
303 '((\"^%\" . \"%n%T%P%M/%D(%W)%h:%m %t%[%14(%c %f%) %](%S) %s\")
304 (\"^@2ch\" . \"%n%T%P%M%/%D/%h:%m %t[%9(%c %f%) ]%s\")))"
305 :type '(repeat (cons (regexp :tag "Folder Regexp")
306 (string :tag "line format")))
307 :group 'wl-summary)
309 (defcustom wl-summary-check-line-format t
310 "*Check summary line format change if non-nil.
311 When summary line format is changed, current summary cache is discarded.
312 It is highly recommended to set this value to t."
313 :type 'boolean
314 :group 'wl-summary)
316 (defcustom wl-summary-line-format-file ".wl-summary-line-format"
317 "*Cache file for summary line format."
318 :type 'file
319 :group 'wl-summary)
321 (defcustom wl-summary-from-function 'wl-summary-default-from
322 "*A function for displaying sender (From: field) information."
323 :type 'function
324 :group 'wl-summary)
326 (defcustom wl-summary-subject-function 'wl-summary-default-subject
327 "*A function for displaying subject."
328 :type 'function
329 :group 'wl-summary)
331 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
332 "*A filter function for comparing subjects."
333 :type 'function
334 :group 'wl-summary)
336 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
337 "*If message does not have in-reply-to field nor references field and
338 subject matches this regexp, search parent message by subject matching.
339 If nil, never search search parent by subject."
340 :type '(choice string
341 (const :tag "Don't search parent" nil))
342 :group 'wl-summary)
344 ;;; Mark & Action
345 (defcustom wl-summary-mark-action-list
346 '(("*"
347 target-mark
349 wl-summary-register-target-mark
351 wl-highlight-summary-temp-face
352 "Put target mark.")
353 ("d"
354 dispose
356 wl-summary-register-temp-mark
357 wl-summary-exec-action-dispose
358 wl-highlight-summary-disposed-face
359 "Dispose messages according to `wl-dispose-folder-alist'.")
360 ("D"
361 delete
363 wl-summary-register-temp-mark
364 wl-summary-exec-action-delete
365 wl-highlight-summary-deleted-face
366 "Delete messages immediately.")
367 ("o"
368 refile
369 wl-summary-get-refile-destination
370 wl-summary-set-action-refile
371 wl-summary-exec-action-refile
372 wl-highlight-summary-refiled-face
373 "Refile messages to the other folder.")
374 ("O"
375 copy
376 wl-summary-get-copy-destination
377 wl-summary-register-temp-mark
378 wl-summary-exec-action-copy
379 wl-highlight-summary-copied-face
380 "Copy messages to the other folder.")
381 ("i"
382 prefetch
384 wl-summary-register-temp-mark
385 wl-summary-exec-action-prefetch
386 wl-highlight-summary-prefetch-face
387 "Prefetch messages.")
388 ("~"
389 resend
390 wl-summary-get-resend-address
391 wl-summary-register-temp-mark
392 wl-summary-exec-action-resend
393 wl-highlight-summary-resend-face
394 "Resend messages."))
395 "A variable to define Mark & Action.
396 Each element of the list should be a list of
397 \(MARK
398 SYMBOL
399 ARGUMENT-FUNCTION
400 SET-MARK-FUNCTION
401 EXEC-FUNCTION
402 FACE
403 DOC-STRING)
405 MARK is a temporal mark string to define.
406 SYMBOL is an action name to define.
407 ARGUMENT-FUNCTION is a function called to set the argument data for
408 SET-MARK-FUNCTION.
409 Its argument is (ACTION NUMBER).
410 ACTION is same as the SYMBOL.
411 NUMBER is the message number to determine the argument data.
412 SET-MARK-FUNCTION is a function called to set the mark.
413 Its argument is (NUMBER MARK DATA).
414 NUMBER is the target message number.
415 MARK is the temporary mark string.
416 DATA is given by ARGUMENT-FUNCTION.
417 EXEC-FUNCTION is a function called to execute the action.
418 Its argument is a list of MARK-INFO.
419 MARK-INFO is a list of (NUMBER MARK DATA).
420 FACE is a face for highlighting."
421 :type '(repeat (list
422 (string :tag "Temporary mark")
423 (symbol :tag "Action name")
424 (symbol :tag "Argument function")
425 (symbol :tag "Set mark function")
426 (symbol :tag "Exec function")
427 (symbol :tag "Face symbol")
428 (string :tag "Document string")))
429 :group 'wl-summary)
431 ;; Important folders
432 (defcustom wl-default-folder "%inbox"
433 "*Default folder used in `wl-summary-goto-folder'."
434 :type 'string
435 :group 'wl)
436 (defcustom wl-draft-folder "+draft"
437 "*Draft folder"
438 :type 'string
439 :group 'wl)
440 (defcustom wl-trash-folder "+trash"
441 "*Trash folder"
442 :type 'string
443 :group 'wl
444 :group 'wl-setting)
445 (defcustom wl-queue-folder "+queue"
446 "*Queue folder"
447 :type 'string
448 :group 'wl)
450 (defcustom wl-default-spec "%"
451 "*Default prefix for folder name initially added in minibuffer"
452 :type 'string
453 :group 'wl)
455 (defcustom wl-insert-mail-followup-to nil
456 "*Insert Mail-Followup-To: field if non-nil."
457 :type 'boolean
458 :group 'wl-draft)
460 (defcustom wl-insert-mail-reply-to nil
461 "*Insert Mail-Reply-To: field if non-nil."
462 :type 'boolean
463 :group 'wl-draft)
465 (defcustom wl-insert-message-id t
466 "*Insert Message-ID: field if non-nil."
467 :type 'boolean
468 :group 'wl-draft)
470 (defcustom wl-auto-insert-x-face t
471 "*Insert X-Face: field automatically."
472 :type 'boolean
473 :group 'wl-draft)
475 (defcustom wl-x-face-file "~/.xface"
476 "*X-Face field is inserted using its contents.
477 If file exists and `wl-auto-insert-x-face' is non-nil."
478 :type 'file
479 :group 'wl-draft)
481 (defcustom wl-draft-write-file-function 'wl-draft-save
482 "Save function for draft message."
483 :type 'function
484 :group 'wl-draft)
486 (defcustom wl-subscribed-mailing-list nil
487 "*Subscribed mailing list.
488 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
489 :type '(repeat string)
490 :group 'wl-pref
491 :group 'wl-setting)
493 (defcustom wl-demo t
494 "*Display demo at start time."
495 :type 'boolean
496 :group 'wl-pref)
498 (defcustom wl-demo-icon-name-alist
499 '(((string-match "^... Dec \\([ 01][0-9]\\|2[0-5]\\)" (current-time-string))
501 (concat "wl-" (wl-version-status) "-xmas-logo"))
504 (concat "wl-" (wl-version-status) "-logo")))
505 "An alist to determine the basename of the logo file."
506 :type '(repeat (cons (symbol :tag "condition")
507 (symbol :tag "file name")))
508 :group 'wl-pref)
510 (defcustom wl-demo-image-filter-alist nil
511 "An alist of image type and filter function."
512 :type '(repeat (cons symbol function))
513 :group 'wl-pref)
515 (defcustom wl-envelope-from nil
516 "*Envelope From used in SMTP.
517 If nil, `wl-from' is used."
518 :type '(choice (const :tag "Same as 'From' field." nil)
519 string)
520 :group 'wl
521 :group 'wl-setting)
523 (defcustom wl-draft-additional-header-alist nil
524 "*Additional headers in the draft."
525 :type '(repeat (cons (symbol :tag "Field Name")
526 (choice (string :tag "String")
527 (function :tag "Function"))))
528 :group 'wl-draft)
530 (defcustom wl-draft-add-in-reply-to t
531 "*If non-nil, message-id of the cited message is inserted to the
532 in-reply-to field of the current draft.
533 Note: default value follows RFC2822."
534 :type 'boolean
535 :group 'wl-draft)
537 (defcustom wl-draft-add-references nil
538 "*If non-nil, message-id of the cited message is inserted to the
539 references field of the current draft.
540 Note: default value follows RFC2822."
541 :type 'boolean
542 :group 'wl-draft)
544 (defcustom wl-draft-cite-function 'wl-default-draft-cite
545 "*A function for citation."
546 :type 'function
547 :group 'wl-draft)
549 (defcustom wl-default-draft-cite-decorate-author t
550 "*If non-nil, the author of cited message is arranged by
551 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
552 :type 'boolean
553 :group 'wl-draft)
555 (defcustom wl-smtp-connection-type nil
556 "*SMTP connection type.
557 If nil, default smtp connection type is used."
558 :type '(choice (const :tag "default" nil)
559 (const :tag "Use STARTTLS" starttls)
560 (const :tag "SMTP over SSL" ssl)
561 symbol)
562 :group 'wl)
564 (defcustom wl-smtp-posting-user nil
565 "*SMTP authentication user."
566 :type '(choice (const :tag "none" nil)
567 string)
568 :group 'wl
569 :group 'wl-setting)
571 (defcustom wl-smtp-posting-server nil
572 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
573 :type '(choice (const :tag "none" nil)
574 string)
575 :group 'wl
576 :group 'wl-setting)
578 (defcustom wl-smtp-posting-port nil
579 "*SMTP port number in `wl-smtp-posting-server'.
580 If nil, default SMTP port number(25) is used."
581 :type '(choice (const :tag "Default (25)" nil)
582 integer)
583 :group 'wl
584 :group 'wl-setting)
586 (defcustom wl-smtp-authenticate-type nil
587 "*SMTP Authentication type.
588 If nil, don't authenticate."
589 :type '(choice (const :tag "none" nil)
590 (const :tag "PLAIN" "plain")
591 (const :tag "CRAM-MD5" "cram-md5")
592 (const :tag "DIGEST-MD5" "digest-md5")
593 (const :tag "LOGIN" "login")
594 (string :tag "Other"))
595 :group 'wl
596 :group 'wl-setting)
598 (defcustom wl-smtp-authenticate-realm nil
599 "*SMTP Authentication realm.
600 If you don't need to specify realm, set as nil."
601 :type '(choice (const :tag "none" nil)
602 string)
603 :group 'wl
604 :group 'wl-setting)
606 (defcustom wl-pop-before-smtp-user nil
607 "*POP3 user name to send mail using POP-before-SMTP.
608 If nil, `elmo-pop3-default-user' is used.
609 To use POP-before-SMTP,
610 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
611 :type '(choice (const :tag "none" nil)
612 string)
613 :group 'wl
614 :group 'wl-setting)
616 (defcustom wl-pop-before-smtp-server nil
617 "*POP3 server for POP-before-SMTP.
618 If nil, `elmo-pop3-default-server' is used."
619 :type '(choice (const :tag "none" nil)
620 string)
621 :group 'wl
622 :group 'wl-setting)
624 (defcustom wl-pop-before-smtp-port nil
625 "*POP3 port for POP-before-SMTP.
626 If nil, `elmo-pop3-default-port' is used."
627 :type '(choice (const :tag "none" nil)
628 integer string)
629 :group 'wl
630 :group 'wl-setting)
632 (defcustom wl-pop-before-smtp-stream-type nil
633 "*Stream type for POP-before-SMTP.
634 If nil, `elmo-pop3-default-stream-type' is used."
635 :type '(choice (const :tag "Use `elmo-pop3-default-stream-type'" nil)
636 symbol)
637 :group 'wl)
639 (defcustom wl-pop-before-smtp-authenticate-type nil
640 "*Default Authentication type for POP-before-SMTP.
641 If nil, `elmo-pop3-default-authenticate-type' is used."
642 :type '(choice (const :tag "none" nil)
643 (const :tag "APOP" 'apop)
644 (const :tag "POP3" 'user))
645 :group 'wl
646 :group 'wl-setting)
648 (defcustom wl-nntp-posting-server nil
649 "*NNTP server name to post news.
650 If nil, `elmo-nntp-default-server' is used."
651 :type '(choice (const :tag "none" nil)
652 string)
653 :group 'wl
654 :group 'wl-setting)
655 (defcustom wl-nntp-posting-user nil
656 "*NNTP user name to post news for authinfo.
657 If nil, `elmo-nntp-default-user' is used.
658 If nil, don't authenticate."
659 :type '(choice (const :tag "none" nil)
660 string)
661 :group 'wl
662 :group 'wl-setting)
663 (defcustom wl-nntp-posting-port nil
664 "*NNTP port to post news.
665 If nil, `elmo-nntp-default-port' is used."
666 :type '(choice (const :tag "none" nil)
667 integer string)
668 :group 'wl
669 :group 'wl-setting)
670 (defcustom wl-nntp-posting-stream-type nil
671 "*Stream type for posting Netnews.
672 If nil, `elmo-nntp-default-stream-type' is used."
673 :type '(choice (const :tag "Use `elmo-nntp-default-stream-type'" nil)
674 symbol)
675 :group 'wl)
676 (defcustom wl-nntp-posting-function 'elmo-nntp-post
677 "A function to post news.
678 Prepared candidate is 'elmo-nntp-post."
679 :type '(radio (function-item elmo-nntp-post)
680 (function :tag "Other"))
681 :group 'wl-draft)
682 (defcustom wl-nntp-posting-config-alist nil
683 "*Alist of configuration on nntp posting.
685 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
686 (\",?ku\\.\" .
687 ((server . \"news.media.kyoto-u.ac.jp\")
688 (user . \"newsmaster\")
689 (port . 119)
690 (function . elmo-nntp-post))
691 (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
692 :type '(repeat (cons (sexp :tag "Match")
693 (choice (string :tag "Server")
694 (repeat :inlie t
695 (cons (choice (const server)
696 (const user)
697 (const port)
698 (const stream-type)
699 (const function))
700 (sexp :tag "Value"))))))
701 :group 'wl-draft
702 :group 'wl-setting)
704 (defcustom wl-prefetch-confirm t
705 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
706 :type 'boolean
707 :group 'wl-pref)
709 (defcustom wl-prefetch-threshold 30000
710 "*Maximum size of message prefetched without confirmation.
711 If nil, all messages prefetched regardless of its size.
712 If message size is larger than this value, confirm prefetching
713 when `wl-prefetch-confirm' is non-nil."
714 :type '(choice (integer :tag "Threshold (bytes)")
715 (const :tag "No limitation" nil))
716 :group 'wl-pref
717 :group 'wl-setting)
719 (defcustom wl-thread-insert-opened nil
720 "*Non-nil forces to insert thread as opened in updating."
721 :type 'boolean
722 :group 'wl-summary
723 :group 'wl-setting)
725 (defcustom wl-thread-open-reading-thread t
726 "*Non-nil forces to open reading thread."
727 :type 'boolean
728 :group 'wl-summary)
730 (defcustom wl-additional-search-condition-fields nil
731 "*A list of field name which is used for candidates of search condition."
732 :type '(repeat (string :tag "Field name"))
733 :group 'wl-pref
734 :group 'wl-setting)
736 ;;;; Hooks
737 (defvar wl-folder-mode-hook nil
738 "A hook called when wanderlust folder mode is started.
739 This hook may contain the functions `wl-folder-init-icons' and
740 `wl-setup-folder' for reasons of system internal to accord facilities
741 for the Emacs variants.")
742 (defvar wl-summary-toggle-disp-on-hook nil
743 "A hook called when message is toggled.")
744 (defvar wl-summary-toggle-disp-off-hook nil
745 "A hook called when message is disappeared.")
746 (defvar wl-summary-toggle-disp-folder-on-hook nil
747 "A hook called when folder is toggled.")
748 (defvar wl-summary-toggle-disp-folder-off-hook nil
749 "A hook called when folder is disappeared.")
750 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
751 "A hook called when message window is resumed when folder is toggled.")
752 (defvar wl-summary-mode-hook nil
753 "A hook called when summary mode is started.
754 This hook may contain the function `wl-setup-summary' for reasons of
755 system internal to accord facilities for the Emacs variants.")
757 (defvar wl-summary-prepared-pre-hook nil
758 "A hook called before the summary buffer has been generated.")
759 (defvar wl-summary-prepared-hook nil
760 "A hook called after the summary buffer has been generated.")
761 (defvar wl-summary-sync-updated-hook nil
762 "A hook called when update summary buffer.")
763 (defvar wl-summary-unread-message-hook nil
764 "A hook called when unread message is displayed.")
765 (defvar wl-summary-edit-addresses-hook nil
766 "A hook called when address book is edited.")
767 (defvar wl-summary-buffer-message-saved-hook nil
768 "A hook called when msgdb is saved.")
769 (defvar wl-summary-buffer-mark-saved-hook nil
770 "A hook called when mark is saved.")
771 (defvar wl-summary-divide-thread-when-subject-changed nil
772 "Divide thread when subject is changed.")
773 (defvar wl-init-hook nil
774 "A hook called when initialization is finished. This hook may contain
775 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
776 reasons of system internal to accord facilities for the Emacs variants.")
777 (defvar wl-hook nil
778 "A hook called when Wanderlust is invoked.")
780 (defvar wl-draft-reply-hook
781 '((lambda () (wl-draft-setup-parent-flag 'answered)))
782 "A hook called when replied.
783 This hook runs on the draft buffer.")
785 (defvar wl-draft-forward-hook
786 '((lambda () (wl-draft-setup-parent-flag 'forwarded)))
787 "A hook called when forwarded.
788 This hook runs on the draft buffer.")
790 (defvar wl-draft-kill-pre-hook nil
791 "A hook called just before the draft buffer is killed.")
793 (defvar wl-summary-reply-hook nil
794 "A hook called when `wl-summary-reply' is called.
795 This hook runs on the summary buffer.")
797 (defvar wl-summary-forward-hook nil
798 "A hook called when `wl-summary-forward' is called.
799 This hook runs on the summary buffer.")
801 (defvar wl-summary-resend-hook nil
802 "A hook runs on the resent message buffer before sending process starts.")
804 (defvar wl-mail-setup-hook nil
805 "A hook called when Draft is prepared.")
806 (defvar wl-draft-reedit-hook '(wl-draft-remove-text-plain-tag)
807 "A hook called when Draft is re-edited.
808 The cursor point is located at top of the body.")
809 (defvar wl-draft-send-hook '(wl-draft-config-exec)
810 "A hook called on the draft editing buffer before sending process starts.")
811 (defvar wl-mail-send-pre-hook nil
812 "A hook called just before the mail sending process starts.")
813 (defvar wl-news-send-pre-hook nil
814 "A hook called just before the news sending process starts.")
815 (defvar wl-message-buffer-created-hook nil
816 "A hook called when Message buffer is prepared.")
817 (defvar wl-message-redisplay-hook nil
818 "A hook called when Message is displayed.")
819 (defvar wl-message-exit-hook nil
820 "A hook called when quit message.")
821 (defvar wl-summary-exit-pre-hook nil
822 "A hook called before exit summary mode.")
823 (defvar wl-summary-exit-hook nil
824 "A hook called when exit summary mode.")
825 (defvar wl-highlight-headers-hook nil
826 "A hook called when header is highlighted.")
827 (defvar wl-highlight-message-hook nil
828 "A hook called when message is highlighted.")
829 (defvar wl-save-hook nil
830 "A hook called when save summary and folder status.")
831 (defvar wl-exit-hook nil
832 "A hook called when exit wanderlust.")
833 (defvar wl-folder-suspend-hook nil
834 "A hook called when suspend wanderlust.")
835 (defvar wl-biff-notify-hook '(ding)
836 "A hook called when a biff-notification is invoked.")
837 (defvar wl-biff-unnotify-hook nil
838 "A hook called when a biff-notification is removed.")
839 (defvar wl-auto-check-folder-pre-hook nil
840 "A hook called before auto check folders.")
841 (defvar wl-auto-check-folder-hook nil
842 "A hook called when auto check folders.")
843 (defvar wl-folder-check-entity-pre-hook nil
844 "A hook called before check entity.")
845 (defvar wl-folder-check-entity-hook nil
846 "A hook called when check entity.")
847 (defvar wl-draft-config-exec-hook nil
848 "A hook called when execute header-config on draft.")
849 (defvar wl-summary-expire-pre-hook nil
850 "A hook called before expire.")
851 (defvar wl-summary-expire-hook nil
852 "A hook called when expired.")
853 (defvar wl-summary-archive-pre-hook nil
854 "A hook called before archive.")
855 (defvar wl-summary-archive-hook nil
856 "A hook called when archived.")
857 (defvar wl-summary-line-inserted-hook nil
858 "A hook called when summary line is inserted.")
859 (defvar wl-summary-insert-headers-hook nil
860 "A hook called when insert header for search header.")
861 (defvar wl-message-display-internal-hook nil
862 "A hook called when message buffer is created and message is displayed.
863 This hook may contain the functions `wl-setup-message' for
864 reasons of system internal to accord facilities for the Emacs variants.")
865 (defvar wl-thread-update-children-number-hook nil
866 "A hook called when children number is updated.")
867 (defvar wl-folder-update-access-group-hook nil
868 "A hook called when update access group folder.")
869 (defvar wl-draft-cited-hook nil
870 "A hook called after a message is cited.")
871 (defvar wl-draft-insert-x-face-field-hook nil
872 "A hook called after a x-face field is inserted.")
873 (defvar wl-template-mode-hook nil
874 "A hook called when template mode is started.")
875 (defvar wl-score-mode-hook nil
876 "A hook called when score mode is started.")
877 (defvar wl-make-plugged-hook nil
878 "A hook called when make plugged alist.")
880 (defvar wl-plugged-exit-hook nil
881 "A hook called when exit plugged mode.")
883 ;;;; functions for draft
884 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
885 "A function to send message."
886 :type 'function
887 :group 'wl-draft)
889 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
890 "A function to send news."
891 :type 'function
892 :group 'wl-draft)
894 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
895 "A function to send mail.
896 Prepared candidates are 'wl-draft-send-mail-with-smtp,
897 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
898 :type '(radio (function-item wl-draft-send-mail-with-smtp)
899 (function-item wl-draft-send-mail-with-qmail)
900 (function-item wl-draft-send-mail-with-pop-before-smtp)
901 (function :tag "Other"))
902 :group 'wl-draft)
904 (defcustom wl-draft-send-confirm-type 'y-or-n-p
905 "*Confirmation type or function to use when send a message."
906 :type '(choice
907 (const :tag "y or n with scroll (j/k)" scroll-by-j/k)
908 (const :tag "y or n with scroll (SPC/BS)" scroll-by-SPC/BS)
909 (function-item y-or-n-p)
910 (function-item yes-or-no-p)
911 (function :tag "Other function"))
912 :group 'wl-draft)
914 (defcustom wl-draft-reply-with-argument-list
915 '(("From" . (("Reply-To" "Mail-Reply-To" "From")
916 ("Mail-Followup-To" "To" "Cc")
917 ("Followup-To" "Newsgroups"))))
918 "Alist of cons cell of
919 \('condition' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
920 'condition' is a header name string (non-nil if the header exists in original
921 message), a function (evaluated in original message buffer) or a list of those
922 \(means 'AND' condition).
923 'fields for ***' is a list of strings.
924 If car of each cons cell returns non-nil value,
925 cdr of each cons cell is used for preparing headers of draft message.
926 Default is for 'reply-to-all'."
927 :type '(repeat (cons (choice (string :tag "Field Name")
928 (symbol :tag "Function")
929 (const :tag "Replying to self" wl-draft-self-reply-p)
930 (repeat :tag "AND"
931 (choice (string :tag "Field Name")
932 (symbol :tag "Function")
933 (const :tag "Replying to self" wl-draft-self-reply-p))))
934 (list (repeat :tag "Fields For To" string)
935 (repeat :tag "Fields For Cc" string)
936 (repeat :tag "Fields For Newsgroups" string))))
937 :group 'wl-draft)
939 (defcustom wl-draft-reply-without-argument-list
940 '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
941 ("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
942 ("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
943 ("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
944 ("Reply-To" . (("Reply-To") ("To" "Cc") nil))
945 (wl-draft-self-reply-p . (("To") ("Cc") nil))
946 ("From" . (("From") ("To" "Cc") nil)))
947 "Alist of cons cell of
948 \('condition' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
949 'condition' is a header name string (non-nil if the header exists in original
950 message), a function (evaluated in original message buffer) or a list of those
951 \(means 'AND' condition).
952 'fields for ***' is a list of strings.
953 If car of each cons cell returns non-nil value,
954 cdr of each cons cell is used for preparing headers of draft message."
955 :type '(repeat (cons (choice (string :tag "Field Name")
956 (symbol :tag "Function")
957 (const :tag "Replying to self" wl-draft-self-reply-p)
958 (repeat :tag "AND"
959 (choice (string :tag "Field Name")
960 (symbol :tag "Function")
961 (const :tag "Replying to self" wl-draft-self-reply-p))))
962 (list (repeat :tag "Fields For To" string)
963 (repeat :tag "Fields For Cc" string)
964 (repeat :tag "Fields For Newsgroups" string))))
965 :group 'wl-draft)
967 (defcustom wl-draft-always-delete-myself nil
968 "*Always delete myself from recipient if non-nil."
969 :type 'boolean
970 :group 'wl-draft)
972 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
973 "*Do not insert bcc or fcc if To and Cc fields is a member of
974 `wl-subscribed-mailing-list'"
975 :type 'boolean
976 :group 'wl-draft)
978 (defcustom wl-draft-resume-folder-window t
979 "*Resume folder window in `wl-draft-hide'."
980 :type 'boolean
981 :group 'wl-draft)
983 (defcustom wl-draft-use-frame nil
984 "*Raise new frame when composing draft."
985 :type 'boolean
986 :group 'wl-draft)
988 (defcustom wl-draft-qmail-send-plugged nil
989 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
990 :type 'boolean
991 :group 'wl-draft)
993 (defcustom wl-draft-remove-group-list-contents t
994 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
995 :type 'boolean
996 :group 'wl-draft)
998 ;;;;
999 (defcustom wl-init-file "~/.wl"
1000 "*User customization setting file."
1001 :type 'file
1002 :group 'wl)
1004 (defcustom wl-folders-file "~/.folders"
1005 "*Folders file."
1006 :type 'file
1007 :group 'wl)
1009 (defcustom wl-address-file "~/.addresses"
1010 "*Addresses file."
1011 :type 'file
1012 :group 'wl)
1014 (defcustom wl-alias-file "~/.im/Aliases"
1015 "*Alias file for completion."
1016 :type 'file
1017 :group 'wl)
1019 (defcustom wl-ldap-server nil
1020 "*LDAP server."
1021 :type '(choice (const :tag "Default server(localhost)" nil)
1022 (string :tag "Server"))
1023 :group 'wl
1024 :group 'wl-setting)
1026 (defcustom wl-ldap-port nil
1027 "*LDAP port."
1028 :type '(choice (const :tag "Default port" nil)
1029 integer)
1030 :group 'wl
1031 :group 'wl-setting)
1033 (defcustom wl-ldap-base nil
1034 "*LDAP base."
1035 :type '(choice (const :tag "Default base" nil)
1036 (string :tag "Base"))
1037 :group 'wl
1038 :group 'wl-setting)
1040 (defcustom wl-use-ldap nil
1041 "*If non-nil, use LDAP for address completion."
1042 :type 'boolean
1043 :group 'wl
1044 :group 'wl-setting)
1046 (defcustom wl-use-acap nil
1047 "*If non-nil, use ACAP for configuration."
1048 :type 'boolean
1049 :group 'wl)
1051 (defcustom wl-folder-info-save t
1052 "If non-nil, save elmo-folder-info-alist."
1053 :type 'boolean
1054 :group 'wl-folder)
1056 (defcustom wl-summary-persistent-mark-priority-list '(killed
1057 flag
1059 answered
1060 forwarded
1061 unread)
1062 "List of preserved flag symbols to define the priority to map \
1063 to the persistent mark.
1064 Special symbol `flag' means the user defined flag."
1065 :type '(repeat (symbol :tag "preserved flag"))
1066 :group 'wl-summary)
1068 (defcustom wl-summary-flag-alist
1069 '((important "orange"))
1070 "An alist to define the global flags for the summary mode.
1071 Each element is a form like:
1072 \(SYMBOL-OF-FLAG COLOR [MARK]\)
1073 Example:
1074 \((important \"orange\"\)
1075 \(todo \"red\" \"T\"\)
1076 \(business \"green\" \"B\"\)
1077 \(private \"blue\"\)\)"
1078 :type '(repeat (list (symbol :tag "flag")
1079 (string :tag "color")
1080 (choice (string :tag "mark")
1081 (const :tag "Default mark" nil))))
1082 :group 'wl-summary)
1084 (defcustom wl-summary-killed-mark "X"
1085 "Mark for killed message."
1086 :type '(string :tag "Mark")
1087 :group 'wl-summary-marks)
1089 (defcustom wl-summary-uncached-mark "!"
1090 "Mark for uncached message with no flag."
1091 :type '(string :tag "Mark")
1092 :group 'wl-summary-marks)
1094 (defcustom wl-summary-new-uncached-mark "N"
1095 "Mark for new and uncached message."
1096 :type '(string :tag "Mark")
1097 :group 'wl-summary-marks)
1099 (defcustom wl-summary-new-cached-mark "n"
1100 "Mark for new but already cached message."
1101 :type '(string :tag "Mark")
1102 :group 'wl-summary-marks)
1104 (defcustom wl-summary-unread-uncached-mark "U"
1105 "Mark for unread and uncached message."
1106 :type '(string :tag "Mark")
1107 :group 'wl-summary-marks)
1109 (defcustom wl-summary-unread-cached-mark "u"
1110 "Mark for unread but already cached message."
1111 :type '(string :tag "Mark")
1112 :group 'wl-summary-marks)
1114 (defcustom wl-summary-answered-cached-mark "a"
1115 "Mark for answered and cached message."
1116 :type '(string :tag "Mark")
1117 :group 'wl-summary-marks)
1119 (defcustom wl-summary-answered-uncached-mark "A"
1120 "Mark for answered but uncached message."
1121 :type '(string :tag "Mark")
1122 :group 'wl-summary-marks)
1124 (defcustom wl-summary-flag-mark "$"
1125 "Mark for the messages which have tags."
1126 :type '(string :tag "Mark")
1127 :group 'wl-summary-marks)
1129 (defcustom wl-summary-score-over-mark "+"
1130 "Score mark used for messages with high scores."
1131 :type '(string :tag "Mark")
1132 :group 'wl-summary-marks)
1134 (defcustom wl-summary-score-below-mark "-"
1135 "Score mark used for messages with low scores."
1136 :type '(string :tag "Mark")
1137 :group 'wl-summary-marks)
1139 (defcustom wl-summary-no-mime-folder-list nil
1140 "*All folders that match this list don't analyze mime."
1141 :type '(repeat string)
1142 :group 'wl-summary)
1144 (defcustom wl-summary-display-mime-mode-list '(mime as-is)
1145 "*Display mime mode list toggled by `wl-summary-toggle-mime'.
1146 Candidates are following:
1147 `mime' ... header and body are decoded
1148 `header-only' ... only header is decoded
1149 `as-is' ... header and body are not decoded"
1150 :type '(repeat (choice (const :tag "MIME" mime)
1151 (const :tag "HEADER-ONLY" header-only)
1152 (const :tag "AS-IS" as-is)))
1153 :group 'wl-summary)
1155 (defcustom wl-summary-fix-timezone nil
1156 "*Time zone of the date string in summary mode.
1157 If nil, it is adjust to the default time zone information
1158 \(system's default time zone or environment variable TZ)."
1159 :type '(choice (const :tag "Default time zone" nil)
1160 string)
1161 :group 'wl-summary)
1163 (defcustom wl-summary-message-ring-max 16
1164 "*Maximum size of message ring on summary buffer.
1165 Start discarding off end if gets this big."
1166 :type 'integer
1167 :group 'wl-summary)
1169 (defcustom wl-summary-default-score 0
1170 "*Default message score level.
1171 All scores generated by the score files will be added to this score.
1172 If this variable is nil, scoring will be disabled."
1173 :type '(choice (const :tag "disable" nil)
1174 integer)
1175 :group 'wl-score)
1177 (defcustom wl-summary-important-above nil
1178 "*Mark all messages with a score above this variable as important.
1179 This variable is local to the summary buffers."
1180 :type '(choice (const :tag "off" nil)
1181 integer)
1182 :group 'wl-score)
1184 (defcustom wl-summary-target-above nil
1185 "*Mark all messages with a score above this variable as target.
1186 This variable is local to the summary buffers."
1187 :type '(choice (const :tag "off" nil)
1188 integer)
1189 :group 'wl-score)
1191 (defcustom wl-summary-mark-below 0
1192 "*Mark all messages with a score below this variable as read.
1193 This variable is local to each summary buffer and usually set by the
1194 score file."
1195 :type 'integer
1196 :group 'wl-score)
1198 (defcustom wl-summary-expunge-below nil
1199 "All messages that have a score less than this variable will be expunged.
1200 This variable is local to the summary buffers."
1201 :type '(choice (const :tag "off" nil)
1202 integer)
1203 :group 'wl-score)
1205 (defcustom wl-summary-score-marks
1206 (list wl-summary-new-uncached-mark wl-summary-new-cached-mark)
1207 "Persistent marks to scoring."
1208 :type '(repeat (string :tag "Mark"))
1209 :group 'wl-score)
1211 (defcustom wl-use-scoring t
1212 "*If non-nil, enable scoring."
1213 :type 'boolean
1214 :group 'wl-pref)
1216 (defcustom wl-summary-rescore-partial-threshold 200
1217 "*Summary is not scored entirely if there are messages more than this value.
1218 In sync-all or rescan."
1219 :type 'integer
1220 :group 'wl-score)
1222 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
1223 "*Name of the directory where score files will be stored.
1224 \(default \"~/.elmo\")."
1225 :type 'directory
1226 :group 'wl)
1228 (defcustom wl-score-interactive-default-score 1000
1229 "*Scoring commands will raise/lower the score with this number as the default."
1230 :type 'integer
1231 :group 'wl-score)
1233 (defcustom wl-score-expiry-days 7
1234 "*Number of days before unused score file entries are expired.
1235 If this variable is nil, no score file entries will be expired."
1236 :type '(choice (const :tag "never" nil)
1237 number)
1238 :group 'wl-score)
1240 (defcustom wl-score-update-entry-dates t
1241 "*In non-nil, update matching score entry dates.
1242 If this variable is nil, then score entries that provide matches
1243 will be expired along with non-matching score entries."
1244 :type 'boolean
1245 :group 'wl-score)
1247 (defcustom wl-score-folder-alist nil
1248 "*Alist of folder regexp and score file."
1249 :type '(repeat (list (regexp :tag "Folder Regexp")
1250 (repeat :inline t
1251 (choice file
1252 (symbol :tag "Variable")))))
1253 :group 'wl-score)
1255 (defcustom wl-score-folder-alist-matchone t
1256 "*If non-nil, getting only one element of `wl-score-folder-alist'."
1257 :type 'boolean
1258 :group 'wl-score)
1260 (defcustom wl-score-default-file "all.SCORE"
1261 "*Default score file name."
1262 :type 'file
1263 :group 'wl-score)
1265 (defcustom wl-score-simplify-fuzzy-regexp
1266 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1267 "*Strings to be removed when doing fuzzy matches.
1268 This can either be a regular expression or list of regular expressions."
1269 :type '(repeat regexp)
1270 :group 'wl-score)
1272 (defcustom wl-score-header-default-entry
1273 '(("number" -1000 perm =)
1274 ("subject" -1000 nil nil)
1275 ("from" -1000 perm s)
1276 ("message-id" -1000 temp e)
1277 ("references" -1000 perm e)
1278 ("to" -1000 perm s)
1279 ("cc" -1000 perm s)
1280 ("date" -1000 temp nil)
1281 ("xref" -1000 perm s)
1282 ("extra" -1000 perm s)
1283 ("chars" -1000 perm >)
1284 ("lines" -1000 perm >)
1285 ("followup" -1000 perm s)
1286 ("thread" -1000 temp s))
1287 "*Default entry when insert score entry."
1288 :type '(repeat (list (string :tag "Header")
1289 (choice (integer :tag "Score")
1290 (const :tag "Ask" nil))
1291 (choice (const :tag "Permanent" perm)
1292 (const :tag "Temporary" temp)
1293 (const :tag "Ask" nil))
1294 (choice (const :tag "Regexp string" r)
1295 (const :tag "Substring" s)
1296 (const :tag "fuzzy string" f)
1297 (const :tag "Exact string" e)
1298 (const :tag "REGEXP STRING" R)
1299 (const :tag "SUBSTRING" S)
1300 (const :tag "FUZZY STRING" F)
1301 (const :tag "EXACT STRING" E)
1302 (const :tag "less than" <)
1303 (const :tag "less equal" <=)
1304 (const :tag "greater than" >)
1305 (const :tag "greater equal" >=)
1306 (const :tag "equal" =)
1307 (const :tag "Ask" nil))))
1308 :group 'wl-score)
1310 (defcustom wl-score-mode-mime-charset 'x-ctext
1311 "*MIME Charset for score file."
1312 :type 'symbol
1313 :group 'wl-score)
1315 (defcustom wl-draft-fields
1316 '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1317 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1318 "Fields used in draft mode."
1319 :type '(repeat (string :tag "Field"))
1320 :group 'wl-draft)
1322 ;; MIME Bcc.
1323 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1324 "Field name for MIME-encapsulated Bcc."
1325 :type '(string :tag "Field Name")
1326 :group 'wl-draft)
1328 (defcustom wl-draft-mime-bcc-body nil
1329 "Body string for MIME-encapsulated Bcc.
1330 If nil, a string `This is a blind carbon copy.' is used."
1331 :type '(choice (const :tag "default" nil)
1332 (string :tag "Body"))
1333 :group 'wl-draft)
1335 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1336 "Disable Bcc while MIME-encapsulated Bcc."
1337 :type 'boolean
1338 :group 'wl-draft)
1340 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1341 "Disable Fcc while MIME-encapsulated Bcc."
1342 :type 'boolean
1343 :group 'wl-draft)
1345 (defcustom wl-draft-config-alist nil
1346 "Alist of condition and actions for dynamical draft modification.
1347 First element of each list is some condition for the draft buffer (regular
1348 expression for header or elisp expression) and remaining elements indicate
1349 actions.
1350 If the first element is `reply' keyword, the next element be the condition
1351 for the message being replied, and remaining elements are actions.
1353 The configuration is applied when `wl-draft-config-exec' is called, or
1354 applied automatically before sending message.
1357 '((\"^To: .*wl@lists.airs.net\"
1358 (\"From\" . my-from-address-for-wl-list)
1359 (\"Organization\" . my-organization-for-wl-list))
1360 (reply
1361 \"^To: .*hogehoge@aaa.ne.jp\"
1362 (\"From\" . \"Alternative Address <hogehoge@aaa.ne.jp>\")
1363 my-draft-config-function-hogehoge))
1365 See also variable `wl-draft-parent-folder'."
1366 :type '(repeat (list (sexp :tag "Match")
1367 (repeat
1368 :inline t
1369 (choice (cons (sexp :tag "Field(Variable)")
1370 (sexp :tag "Value"))
1371 (sexp :tag "Function")))))
1372 :group 'wl-draft
1373 :group 'wl-setting)
1375 (defcustom wl-draft-config-matchone nil
1376 "*If non-nil, applied only one element of `wl-draft-config-alist'."
1377 :type 'boolean
1378 :group 'wl-draft
1379 :group 'wl-setting)
1381 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1382 "*The string which is inserted for elided text."
1383 :type 'string
1384 :group 'wl-draft)
1386 (defcustom wl-template-alist nil
1387 "Alist of template.
1388 First element of each list is a string specifies the name of the template.
1389 Remaining elements indicate actions. The format of actions is same as that
1390 of `wl-draft-config-alist'."
1391 :type '(repeat (list (string :tag "Name")
1392 (repeat
1393 :inline t
1394 (choice (cons (sexp :tag "Field(Variable)")
1395 (sexp :tag "Value"))
1396 (sexp :tag "Function")))))
1397 :group 'wl-draft
1398 :group 'wl-setting)
1400 (defcustom wl-template-visible-select t
1401 "*If non-nil, select template with visible."
1402 :type 'boolean
1403 :group 'wl-draft)
1405 (defcustom wl-template-confirm nil
1406 "*If non-nil, require your confirmation when selected template."
1407 :type 'boolean
1408 :group 'wl-draft)
1410 (defcustom wl-template-buffer-lines 7
1411 "*Lines of template buffer."
1412 :type 'integer
1413 :group 'wl-draft)
1415 ;; queued sending.
1416 (defcustom wl-draft-enable-queuing t
1417 "*Non-nil enables queued sending."
1418 :type 'boolean
1419 :group 'wl-draft
1420 :group 'wl-pref)
1422 (defcustom wl-draft-force-queuing nil
1423 "*Non-nil forces queued sending for mail and news."
1424 :type 'boolean
1425 :group 'wl-draft
1426 :group 'wl-pref)
1428 (defcustom wl-draft-force-queuing-mail nil
1429 "*Non-nil forces queued sending for mail."
1430 :type 'boolean
1431 :group 'wl-draft
1432 :group 'wl-pref)
1434 (defcustom wl-draft-force-queuing-news nil
1435 "*Non-nil forces queued sending for news."
1436 :type 'boolean
1437 :group 'wl-draft
1438 :group 'wl-pref)
1440 (defcustom wl-draft-use-cache nil
1441 "*If non-nil, sending message is cached."
1442 :type 'boolean
1443 :group 'wl-draft
1444 :group 'wl-pref)
1446 (defcustom wl-auto-flush-queue t
1447 "*If non-nil, sending queue is flushed when network status is toggled."
1448 :type 'boolean
1449 :group 'wl-draft
1450 :group 'wl-pref)
1452 (defcustom wl-draft-buffer-style 'full
1453 "Style of draft buffer except for `wl-summary-reply' and `wl-summary-forward'
1454 'keep is to use current window, 'full is to use full frame window and
1455 'split is to split current window.
1456 If it is a function, it is called with the draft buffer as an argument."
1457 :type '(choice (const :tag "Keep window" keep)
1458 (const :tag "Split window" split)
1459 (const :tag "Full window" full)
1460 (sexp :tag "Use Function"))
1461 :group 'wl-draft)
1463 (defcustom wl-draft-reply-buffer-style 'split
1464 "Style of draft buffer for `wl-summary-reply' and `wl-summary-forward'
1465 'keep is to use message buffer window, 'full is to use full frame window and
1466 'split is to split message buffer window.
1467 If it is a function, it is called with the draft buffer as an argument."
1468 :type '(choice (const :tag "Keep window" keep)
1469 (const :tag "Split window" split)
1470 (const :tag "Full window" full)
1471 (sexp :tag "Use Function"))
1472 :group 'wl-draft)
1474 (defcustom wl-draft-reply-default-position 'body
1475 "Begining position of reply buffer.
1476 'body means the top of body.
1477 'bottom means the bottom of body.
1478 'top means the top of header.
1479 \"To\", \"Newsgroups\", \"Subject\" means the position of the header field.
1480 You can also set it to a list of setting.
1482 :type '(choice (repeat
1483 (choice
1484 (const :tag "Top of body" body)
1485 (const :tag "Bottom of body" bottom)
1486 (const :tag "Top of header" top)
1487 (const "To")
1488 (const "Newsgroups")
1489 (const "Subject")
1490 (string :tag "Header Name")))
1491 (const :tag "Top of body" body)
1492 (const :tag "Bottom of body" bottom)
1493 (const :tag "Top of header" top)
1494 (const "To")
1495 (const "Newsgroups")
1496 (const "Subject")
1497 (string :tag "Header Name"))
1498 :group 'wl-draft)
1500 (defcustom wl-draft-queue-save-variables
1501 '(wl-envelope-from wl-from
1502 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1503 wl-smtp-authenticate-type wl-smtp-connection-type
1504 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1505 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1506 wl-nntp-posting-server wl-nntp-posting-server
1507 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1508 "*Saving variables in queue info."
1509 :type '(repeat (sexp :tag "Variable"))
1510 :group 'wl-draft)
1512 (defcustom wl-draft-sendlog t
1513 "*Keep send state in log if non-nil."
1514 :type 'boolean
1515 :group 'wl-draft)
1517 (defcustom wl-draft-sendlog-max-size 20000
1518 "*Max file size of sendlog."
1519 :type '(choice (const :tag "Unlimited" nil)
1520 integer)
1521 :group 'wl-draft)
1523 (defcustom wl-summary-default-number-column 5
1524 "Number of columns in summary buffer."
1525 :type 'integer
1526 :group 'wl-summary)
1528 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1529 "Alist of folder and its number column.
1530 If no matches, 'wl-summary-default-number-column' is used.
1532 '((\"^%inbox@qmail-maildir\" . 9)
1533 (\"^-.*@news-server\" . 6))"
1534 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1535 :group 'wl-summary)
1537 (defcustom wl-summary-highlight t
1538 "Non-nil forces Summary buffer to be highlighted."
1539 :type 'boolean
1540 :group 'wl-summary
1541 :group 'wl-highlight)
1543 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1544 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1545 :type 'boolean
1546 :group 'wl-summary
1547 :group 'wl-highlight)
1549 (defcustom wl-summary-highlight-partial-threshold 1000
1550 "Summary is not highlighted entirely if there are lines more than this value.
1551 Available if only `wl-summary-lazy-highlight' is nil."
1552 :type 'integer
1553 :group 'wl-summary
1554 :group 'wl-highlight)
1556 (defcustom wl-summary-partial-highlight-above-lines 30
1557 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1558 Summary lines are highlighted partialy above current position.
1559 Available if only `wl-summary-lazy-highlight' is nil."
1560 :type 'integer
1561 :group 'wl-summary
1562 :group 'wl-highlight)
1564 (defcustom wl-summary-lazy-update-mark (boundp 'window-scroll-functions)
1565 "Non-nil forces lazy update mark using `window-scroll-functions'."
1566 :type 'boolean
1567 :group 'wl-summary)
1569 (defcustom wl-summary-cache-use t
1570 "Non-nil forces wl-summary to use cache file."
1571 :type 'boolean
1572 :group 'wl-summary)
1574 (defcustom wl-summary-auto-sync-marks t
1575 "Non-nil forces to synchronize unread/important marks."
1576 :type 'boolean
1577 :group 'wl-summary)
1579 (defcustom wl-summary-cache-file ".wl-summary-cache"
1580 "*Cache file for summary mode contents."
1581 :type 'file
1582 :group 'wl-summary)
1583 (defcustom wl-summary-view-file ".wl-summary-view"
1584 "*Current summary view."
1585 :type 'file
1586 :group 'wl-summary)
1587 (defcustom wl-thread-top-file ".wl-thread-top"
1588 "*Current thread top entity... obsolete."
1589 :type 'file
1590 :group 'wl-summary)
1591 (defcustom wl-thread-entity-file ".wl-thread-entity"
1592 "*Thread entities."
1593 :type 'file
1594 :group 'wl-summary)
1595 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1596 "*Thread top entity list."
1597 :type 'file
1598 :group 'wl-summary)
1600 (defcustom wl-print-buffer-function 'lpr-buffer
1601 "A function to print current buffer."
1602 :type 'function
1603 :group 'wl-pref)
1605 (defcustom wl-ps-print-buffer-function
1606 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1607 "A function to print current buffer with ps-print."
1608 :type 'function
1609 :group 'wl-pref)
1611 ;;;; Preferences
1612 (defcustom wl-use-petname t
1613 "*Display petname in summary and default citation title."
1614 :type 'boolean
1615 :group 'wl-pref)
1617 (defcustom wl-use-folder-petname
1618 '(modeline)
1619 "*List of situation using folder petname.
1620 Allowed situations are:
1621 modeline : displayed on modeline.
1622 ask-folder : displayed on minibuffer when ask folder.
1623 read-folder : can used for completion at `wl-summary-read-folder'."
1624 :type '(set (const modeline)
1625 (const ask-folder)
1626 (const read-folder))
1627 :group 'wl-summary
1628 :group 'wl-pref)
1630 (defcustom wl-folder-petname-alist nil
1631 "A list of (realname . petname)."
1632 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1633 :group 'wl-folder)
1635 (defcustom wl-summary-weekday-name-lang
1636 (if (and (boundp 'current-language-environment)
1637 (string-equal "Japanese"
1638 (symbol-value 'current-language-environment)))
1639 "ja" "en")
1640 "*Language to display week day."
1641 :type '(choice (const "ja")
1642 (const "en")
1643 (const "fr")
1644 (const "de")
1645 (string :tag "Other"))
1646 :group 'wl-summary
1647 :group 'wl-pref)
1649 (defcustom wl-message-id-use-wl-from t
1650 "*Use `wl-from' for domain part of Message-ID if non-nil."
1651 :type 'boolean
1652 :group 'wl-pref)
1654 (defcustom wl-local-domain nil
1655 "*Domain part of this client (without hostname).
1656 Set this if (system-name) does not return FQDN."
1657 :type '(choice (const :tag "Use System Name" nil)
1658 string)
1659 :group 'wl-pref)
1661 (defcustom wl-message-id-domain nil
1662 "*Specific domain part of Message-ID."
1663 :type '(choice (const :tag "Use System Name" nil)
1664 string)
1665 :group 'wl-pref)
1667 (defcustom wl-unique-id-suffix ".wl"
1668 "*Specific string in generated Message-ID
1669 which appear just before @."
1670 :type 'string
1671 :group 'wl-pref)
1673 (defcustom wl-break-pages t
1674 "*Break Pages at ^L."
1675 :type 'boolean
1676 :group 'wl-pref)
1678 (defcustom wl-message-auto-reassemble-message/partial nil
1679 "*Reassemble message/partial messages automatically on show when non-nil."
1680 :type 'boolean
1681 :group 'wl-pref)
1683 (defcustom wl-message-use-header-narrowing t
1684 "Use header narrowing when non-nil."
1685 :type 'boolean
1686 :group 'wl-pref)
1688 (defcustom wl-message-header-narrowing-fields '("to" "cc")
1689 "A list of field name to enable header narrowing."
1690 :type '(repeat string)
1691 :group 'wl-pref)
1693 (defcustom wl-message-header-narrowing-lines 4
1694 "Line number to enable the header narrowing."
1695 :type 'integer
1696 :group 'wl-pref)
1698 (defcustom wl-message-header-narrowing-string "..."
1699 "A string used for header narrowing truncation."
1700 :type 'string
1701 :group 'wl-pref)
1703 (defvar wl-message-mode-line-format-spec-alist
1704 '((?f (if (memq 'modeline wl-use-folder-petname)
1705 (wl-folder-get-petname wl-message-buffer-cur-folder)
1706 wl-message-buffer-cur-folder))
1707 (?m (upcase (symbol-name
1708 (wl-message-display-type-property
1709 wl-message-buffer-cur-display-type
1710 :mime))))
1711 (?F wl-message-buffer-flag-indicator)
1712 (?n wl-message-buffer-cur-number))
1713 "An alist of format specifications for message buffer's mode-lines.
1714 Each element is a list of following:
1715 \(SPEC STRING-EXP)
1716 SPEC is a character for format specification.
1717 STRING-EXP is an expression to get string to insert.")
1719 (defcustom wl-message-mode-line-format "Wanderlust: << %f / %n %F>> [%m]"
1720 "*A format string for message buffer's mode-line of Wanderlust.
1721 It may include any of the following format specifications
1722 which are replaced by the given information:
1724 %f The folder name.
1725 %n The number of the message.
1726 %m The MIME analysis status.
1727 %F The global flag indicator."
1728 :group 'wl-pref
1729 :type 'string)
1731 (defcustom wl-message-truncate-lines default-truncate-lines
1732 "*Truncate lines in Message Buffer."
1733 :type 'boolean
1734 :group 'wl-pref)
1736 (defcustom wl-draft-truncate-lines default-truncate-lines
1737 "*Truncate lines in Draft Buffer."
1738 :type 'boolean
1739 :group 'wl-draft
1740 :group 'wl-pref)
1742 (defcustom wl-message-scroll-amount nil
1743 "*Scroll amount by SPC key."
1744 :type '(choice (const :tag "scrolling by screenfuls" nil)
1745 integer)
1746 :group 'wl-pref)
1748 (defcustom wl-message-window-size '(1 . 4)
1749 "*Size of summary and message window. cons cell of (Summary : Message)."
1750 :type '(cons integer integer)
1751 :group 'wl-pref)
1753 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1754 "Newsgroups" "Subject" "^From")
1755 "*Sort order of header fields. Each elements are regexp of field name."
1756 :type '(repeat (string :tag "Field Regexp"))
1757 :group 'wl-pref
1758 :group 'wl-setting)
1760 (defcustom wl-message-ignored-field-list nil
1761 "All fields that match this list will be hidden in message buffer.
1762 Each elements are regexp of field-name.
1763 You can specify exceptions by `wl-message-visible-field-list'."
1764 :type '(repeat (string :tag "Field Regexp"))
1765 :group 'wl-pref
1766 :group 'wl-setting)
1768 (defcustom wl-message-visible-field-list nil
1769 "All fields that match this list will be displayed in message buffer.
1770 Each elements are regexp of field-name.
1771 This variable overwhelm `wl-message-ignored-field-list' settings."
1772 :type '(repeat (string :tag "Field Regexp"))
1773 :group 'wl-pref
1774 :group 'wl-setting)
1776 (defcustom wl-message-header-button-alist
1777 '(("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1778 "<[^>\n ]+>"
1779 0 wl-message-button-refer-article 0)
1780 ("^[^:]+:"
1781 "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1782 1 wl-message-button-refer-article 3))
1783 "Alist of headers and regexps to match buttons in message headers."
1784 :type '(repeat
1785 (list (regexp :tag "Header")
1786 regexp
1787 (integer :tag "Button")
1788 (function :tag "Callback")
1789 (repeat :tag "Data"
1790 :inline t
1791 (integer :tag "Regexp group"))))
1792 :group 'wl-pref)
1794 (defcustom wl-message-body-button-alist
1795 '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1796 ("<[^>\n ]+@[^>\n ]+>" 0 wl-message-button-refer-article 0 1024))
1797 "Alist of regexps to match buttons in message body."
1798 :type '(repeat
1799 (list regexp
1800 (integer :tag "Button")
1801 (function :tag "Callback")
1802 (repeat :tag "Data"
1803 :inline t
1804 (integer :tag "Regexp group"))
1805 (integer :tag "Max Length")))
1806 :group 'wl-pref)
1808 (defcustom wl-folder-window-width 20
1809 "*Width of folder window."
1810 :type 'integer
1811 :group 'wl-folder
1812 :group 'wl-pref)
1814 (defcustom wl-summary-recenter t
1815 "*Recenter on redisplay."
1816 :type 'boolean
1817 :group 'wl-summary
1818 :group 'wl-pref)
1820 (defcustom wl-folder-use-frame nil
1821 "*Use dedicated frame for folder mode if non-nil."
1822 :type 'boolean
1823 :group 'wl-pref)
1825 (defcustom wl-summary-use-frame nil
1826 "*Use dedicated frame for each folder summary if non-nil."
1827 :type 'boolean
1828 :group 'wl-pref)
1830 (defcustom wl-stay-folder-window nil
1831 "*Stay folder window when folder is selected if non-nil."
1832 :type 'boolean
1833 :group 'wl-pref)
1835 (defcustom wl-reply-subject-prefix "Re: "
1836 "*Prefix of the subject of the replied message.
1837 The value is string or string valued function to be evalueted in the target
1838 message buffer."
1839 :type '(choice string function)
1840 :group 'wl-draft
1841 :group 'wl-pref)
1843 (defcustom wl-forward-subject-prefix "Forward: "
1844 "*Prefix of the subject of the forwarded message.
1845 The value is string or string valued function to be evalueted in the target
1846 message buffer."
1847 :type '(choice string function)
1848 :group 'wl-draft
1849 :group 'wl-pref)
1851 (defcustom wl-draft-reply-use-address-with-full-name t
1852 "*Use address with full-name in the draft of replied message."
1853 :type 'boolean
1854 :group 'wl-pref
1855 :group 'wl-draft)
1857 (defcustom wl-subject-re-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1858 "*Regexp matching \"Re: \" in the subject line."
1859 :type 'regexp
1860 :group 'wl-draft
1861 :group 'wl-pref)
1863 (defcustom wl-subject-forward-prefix-regexp "^[ \t]*\\(\\([Ff][Oo][Rr][Ww][Aa][Rr][Dd]\\|[Ff][Ww][Dd]\\|[Ff][Ww]\\)[:>][ \t]*\\)*[ \t]*"
1864 "*Regexp matching \"Forward: \", \"Fwd: \", or \"Fw: \" in the subject line."
1865 :type 'regexp
1866 :group 'wl-draft
1867 :group 'wl-pref)
1869 (defcustom wl-folder-many-unsync-threshold 70
1870 "*Folders which contains messages more than this number are highlighted
1871 with wl-highlight-folder-many-face."
1872 :type 'integer
1873 :group 'wl-folder
1874 :group 'wl-pref)
1876 (defcustom wl-fcc nil
1877 "*Folder Carbon Copy target initially added at creating draft buffer."
1878 :type '(choice (const :tag "disable" nil)
1879 string function)
1880 :group 'wl-draft
1881 :group 'wl-pref)
1883 (defcustom wl-fcc-force-as-read nil
1884 "*If non-nil, mark copied message as read."
1885 :type 'boolean
1886 :group 'wl-draft
1887 :group 'wl-pref)
1889 (defcustom wl-bcc nil
1890 "*Blind Carbon Copy target initially added at creating draft buffer."
1891 :type '(choice (const :tag "disable" nil)
1892 string)
1893 :group 'wl-draft
1894 :group 'wl-pref)
1896 (defcustom wl-folder-desktop-name "Desktop"
1897 "*An implicit name of the folder top entity."
1898 :type 'string
1899 :group 'wl-folder
1900 :group 'wl-pref)
1902 (defcustom wl-summary-indent-length-limit 46
1903 "*Limit of indent length for thread. Nil means unlimited"
1904 :type '(choice (const :tag "Unlimited" nil)
1905 integer)
1906 :group 'wl-summary
1907 :group 'wl-pref)
1909 (defcustom wl-summary-max-thread-depth 30
1910 "*If thread depth of the message is larger than this value, divide it."
1911 :type '(choice (const :tag "Unlimited" nil)
1912 integer)
1913 :group 'wl-summary
1914 :group 'wl-pref)
1916 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1917 "*A string displayed in summary when no from field exists."
1918 :type 'string
1919 :group 'wl-summary)
1921 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1922 "*A string displayed in summary when no subject field exists."
1923 :type 'string
1924 :group 'wl-summary)
1926 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1927 "*The body content of a cancel message."
1928 :type 'string
1929 :group 'wl-summary)
1931 (defcustom wl-summary-width 80
1932 "*Set summary line width if non nil."
1933 :type '(choice (const :tag "Don't truncate" nil)
1934 integer)
1935 :group 'wl-summary
1936 :group 'wl-pref)
1938 (defcustom wl-summary-print-argument-within-window nil
1939 "*If non-nil, always print argument right side of window."
1940 :type 'boolean
1941 :group 'wl-summary
1942 :group 'wl-pref)
1944 (defcustom wl-summary-pick-field-default "Body"
1945 "*Default field for pick."
1946 :type '(radio (const "From")
1947 (const "Subject")
1948 (const "To")
1949 (const "Cc")
1950 (const "Body")
1951 (const "Since")
1952 (const "Before")
1953 (const "Last")
1954 (const "First")
1955 (string :tag "Other"))
1956 :group 'wl-summary)
1958 (defcustom wl-mime-charset (if wl-on-mule 'x-ctext 'iso-8859-1)
1959 "*MIME Charset for summary and message."
1960 :type 'symbol
1961 :group 'wl-summary
1962 :group 'wl-pref)
1964 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1965 "A function for creating User-Agent field string."
1966 :type 'function
1967 :group 'wl-draft)
1969 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1970 (or hilit-background-mode 'dark)
1971 'dark)
1972 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1973 :type '(radio (const dark)
1974 (const light))
1975 :group 'wl-highlight)
1977 (defcustom wl-highlight-x-face-function nil
1978 "A function to display X-Face."
1979 :type 'function
1980 :group 'wl-highlight)
1982 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1983 "Location of the qmail-inject program."
1984 :type '(string :tag "Program")
1985 :group 'wl-draft)
1987 (defcustom wl-qmail-inject-args nil
1988 "Arguments passed to qmail-inject programs.
1989 This should be a list of strings, one string for each argument.
1991 For e.g., if you wish to set the envelope sender address so that bounces
1992 go to the right place or to deal with listserv's usage of that address, you
1993 might set this variable to '(\"-f\" \"you@some.where\")."
1994 :type '(repeat (string :tag "Argument"))
1995 :group 'wl-draft)
1997 (defcustom wl-rejected-letter-start
1998 "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1999 "Regexp specifying the beginning of the wrapper around a returned letter.
2000 This wrapper is generated by the mail system when rejecting a letter."
2001 :type 'regexp
2002 :group 'wl-draft)
2004 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
2005 "*All headers that match this regexp will be deleted when forwarding a message."
2006 :type 'regexp
2007 :group 'wl-draft)
2009 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
2010 "*All headers that match this regexp will be deleted when resending a message."
2011 :type 'regexp
2012 :group 'wl-draft)
2014 (defcustom wl-auto-save-drafts-interval 1
2015 "Idle interval in seconds to save draft buffers automatically.
2016 If you don't want to use this feature, set this to nil."
2017 :type '(choice (const :tag "Don't use this feature" nil)
2018 (number :tag "Secs"))
2019 :group 'wl-draft)
2021 (defcustom wl-draft-preview-attributes t
2022 "Non-nil forces to preview the attributes in the `wl-draft-preview-message'.
2023 Attributes specified in the `wl-draft-preview-attributes-list' are displayed."
2024 :type 'boolean
2025 :group 'wl-draft)
2027 (defcustom wl-draft-preview-attributes-list '((mail recipients
2028 envelope-from
2029 smtp-posting-server
2030 smtp-posting-port)
2031 (news newsgroups
2032 nntp-posting-server
2033 nntp-posting-port))
2034 "*Attribute symbols to display in the draft preview.
2035 Candidates are following:
2036 `recipients'
2037 `envelope-from'
2038 `smtp-posting-server'
2039 `smtp-posting-port'
2040 `newsgroups'
2041 `nntp-posting-server'
2042 `nntp-posting-port'
2043 Also variables which begin with `wl-' can be specified
2044 \(`wl-' have to be removed\)"
2045 :type '(choice (repeat (cons (choice (const :tag "Mail" mail)
2046 (const :tag "News" news))
2047 (repeat symbol)))
2048 (repeat symbol))
2049 :group 'wl-draft)
2051 (defcustom wl-draft-preview-attributes-buffer-lines 5
2052 "*Buffer height for the draft attribute preview."
2053 :type 'integer
2054 :group 'wl-draft)
2056 (defcustom wl-draft-preview-attributes-buffer-name "*Preview Attributes*"
2057 "*Buffer name for the draft attribute preview."
2058 :type 'string
2059 :group 'wl-draft)
2061 (defcustom wl-refile-default-from-folder "+from"
2062 "*Folder name to refile by `wl-refile-guess-by-from'."
2063 :type '(string :tag "Folder")
2064 :group 'wl-pref)
2066 (defcustom wl-summary-auto-refile-skip-marks
2067 (list wl-summary-new-uncached-mark
2068 wl-summary-new-cached-mark
2069 wl-summary-unread-uncached-mark
2070 wl-summary-unread-cached-mark)
2071 "Persistent marks to skip auto-refiling."
2072 :type '(repeat (string :tag "Mark"))
2073 :group 'wl-summary)
2075 (defcustom wl-summary-reserve-mark-list
2076 (list "o" "O" "D" "d" "i")
2077 "If a message is already marked as temporal marks in this list,
2078 the message is not marked by any mark command."
2079 :type '(repeat (string :tag "Temp-Mark"))
2080 :group 'wl-summary)
2082 (defcustom wl-summary-skip-mark-list
2083 (list "D" "d")
2084 "If a message is already marked as temporal marks in this list,
2085 the message is skipped at cursor move."
2086 :type '(repeat (string :tag "Temp-Mark"))
2087 :group 'wl-summary)
2089 (defcustom wl-summary-incorporate-marks
2090 (list wl-summary-new-uncached-mark
2091 wl-summary-unread-uncached-mark)
2092 "Persistent marks to prefetch at `wl-summary-incorporate'."
2093 :type '(repeat (string :tag "Mark"))
2094 :group 'wl-summary)
2096 (defcustom wl-refile-rule-alist nil
2097 "Refile rule alist.
2098 e.x.
2099 '((\"From\"
2100 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
2101 (\"x-ml-name\"
2102 (\"^Wanderlust\" . \"+wl\")
2103 (\"^Elips\" . \"+elips\")))"
2104 :type '(repeat (list (string :tag "Field")
2105 (repeat :inline t
2106 (cons (regexp :tag "Value")
2107 (string :tag "Folder")))))
2108 :group 'wl-pref)
2110 (defcustom wl-strict-diff-folders nil
2111 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
2112 :type '(choice (const :tag "Off" nil)
2113 (repeat (regexp :tag "Folder Regexp")))
2114 :group 'wl-folder)
2116 (defcustom wl-folder-use-server-diff t
2117 "Checked unread message number on IMAP4 server.
2118 Only IMAP4 folders have an effect."
2119 :type 'boolean
2120 :group 'wl-folder)
2122 (defcustom wl-force-fetch-folders nil
2123 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
2124 :type '(choice (const :tag "off" nil)
2125 (const :menu-tag "on" t)
2126 (repeat (regexp :tag "Folder Regexp")))
2127 :group 'wl-folder)
2129 (defcustom wl-auto-check-folder-name nil
2130 "*A folder, a group or a list of folders and groups specified which
2131 will be automatically checked at the startup time."
2132 :type '(choice (string :tag "Folder")
2133 (repeat (string :tag "Folder"))
2134 (const none))
2135 :group 'wl-folder)
2137 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
2138 "All folders that match this list won't be checked at the startup
2139 time even if they are embedded in some groups specified by
2140 wl-auto-check-folder-name.
2141 Those folders are also skipped when you check on the Desktop.
2142 This value is preceded by wl-auto-check-folder-list.
2143 Each elements are regexp of folder name."
2144 :type '(repeat (regexp :tag "Folder Regexp"))
2145 :group 'wl-folder)
2147 (defcustom wl-auto-check-folder-list nil
2148 "A list of patterns for exceptional folders against
2149 wl-auto-uncheck-folder-list.
2150 Each elements are regexp of folder name."
2151 :type '(repeat (regexp :tag "Folder Regexp"))
2152 :group 'wl-folder)
2154 (defcustom wl-show-plug-status-on-modeline t
2155 "If it is non-nil, show plugged status in modeline."
2156 :type 'boolean
2157 :group 'wl-setting)
2159 (defcustom wl-plug-state-indicator-on " [ON] "
2160 "String used to show plugged status ON."
2161 :type 'string
2162 :group 'wl-setting)
2164 (defcustom wl-plug-state-indicator-off " [--] "
2165 "String used to show plugged status OFF."
2166 :type 'string
2167 :group 'wl-setting)
2169 (defcustom wl-biff-check-folder-list nil
2170 "All folders that include this list are automatically checked
2171 every intervals specified by `wl-biff-check-interval'."
2172 :type '(repeat (string :tag "Folder"))
2173 :group 'wl-setting)
2175 (defcustom wl-biff-check-interval 40
2176 "Number of seconds between updates of new mails in the mode line."
2177 :type 'integer
2178 :group 'wl-setting)
2180 (defcustom wl-biff-use-idle-timer nil
2181 "Non-nil to use idle timer instead of strict timer for wl-biff"
2182 :type 'boolean
2183 :group 'wl-setting)
2185 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
2186 (not (featurep 'mule)))
2187 "[Mail]"
2188 (decode-coding-string
2189 ;; Youbin mark
2190 (read "\"[\e$B\\\")\e(B]\"")
2191 (if (boundp 'MULE)
2192 '*iso-2022-jp*
2193 'iso-2022-jp)))
2194 "String used to show biff status ON."
2195 :type 'string
2196 :group 'wl-setting)
2198 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
2199 (not (featurep 'mule)))
2200 "[--]"
2201 ;; Japanese short hyphen
2202 "[\e$B!>\e(B]")
2203 "String used to show biff status OFF."
2204 :type 'string
2205 :group 'wl-setting)
2207 (defcustom wl-mode-line-display-priority-list '(biff plug title)
2208 "Displaying order of items to be shown in modeline. The first item will
2209 be placed in the leftmost. The significant items are `biff' and `plug';
2210 otherwise, e.g. `title', corresponds to the things except for the biff
2211 staus nor the plugged status. The default order is '(biff plug title)
2212 even if the value of this option is set to nil. Here are some samples:
2214 ;; Plugged status first:
2215 \(setq wl-mode-line-display-priority-list '(plug))
2217 ;; Biff status, Title of Wanderlust, Plugged status:
2218 \(setq wl-mode-line-display-priority-list '(biff title plug))
2221 :type '(repeat (radio (const :format "%v " biff)
2222 (const :format "%v " plug)
2223 (sexp :tag "Other" :value title)))
2224 :group 'wl-setting)
2226 (defcustom wl-interactive-send t
2227 "*If non-nil, require your confirmation when sending draft message."
2228 :type 'boolean
2229 :group 'wl-pref
2230 :group 'wl-setting)
2232 (defcustom wl-interactive-exit t
2233 "*If non-nil, require your confirmation when exiting WL."
2234 :type 'boolean
2235 :group 'wl-pref)
2237 (defcustom wl-summary-move-order 'unread
2238 "*The order of priority when move in summary mode.
2239 If this variable is `unread', precede \"U\", \"u\", \"N\", \"n\" mark.
2240 If this variable is `new', precede \"N\", \"n\" mark."
2241 :type '(radio (const new)
2242 (const unread))
2243 :group 'wl-summary
2244 :group 'wl-setting)
2246 (defvar wl-summary-move-direction-downward t)
2248 (defcustom wl-summary-move-direction-toggle t
2249 "*If non-nil, search direction for the next message will be determined
2250 depends on previous search direction.
2251 It uses wl-summary-move-direction-downward as a direction flag."
2252 :type 'boolean
2253 :group 'wl-summary)
2255 (defcustom wl-auto-select-first nil
2256 "*If non-nil, display selected first message when enter summary."
2257 :type 'boolean
2258 :group 'wl-pref
2259 :group 'wl-setting)
2261 (defcustom wl-auto-prefetch-first nil
2262 "*If non-nil, prefetch selected first message when enter summary."
2263 :type 'boolean
2264 :group 'wl-pref
2265 :group 'wl-setting)
2267 (defcustom wl-auto-select-next nil
2268 "*If non-nil, offer to go to the next folder from the end of the previous.
2269 If the value is the symbol `unread', go to the next folder
2270 that no unread message exists. If the value is the symbol `skip-no-unread',
2271 skip the folder that no unread message exists.
2273 See also variable `wl-summary-next-no-unread-command'."
2274 :type '(radio (const :tag "off" nil)
2275 (const :tag "on" t)
2276 (const unread)
2277 (const skip-no-unread))
2278 :group 'wl-pref
2279 :group 'wl-setting)
2281 (defcustom wl-message-popup-buffers '(mime-echo-buffer-name epa-info-buffer)
2282 "*List of buffer or name which is popped up with message buffer."
2283 :type '(repeat (choice (symbol :tag "Variable")
2284 (string :tag "Buffer name")))
2285 :group 'wl-setting)
2287 (defcustom wl-message-buffer-name " *WL:Message*"
2288 "*Buffer name for message buffers."
2289 :group 'wl-pref
2290 :group 'wl-setting)
2292 (defcustom wl-message-buffer-prefetch-folder-type-list '(imap4 nntp)
2293 "*All folder types that match this list prefetch next message,
2294 and reserved buffer cache."
2295 :type `(choice (const :tag "all" t)
2296 (const :tag "never" nil)
2297 (set (const localdir)
2298 (const localnews)
2299 (const maildir)
2300 (const imap4)
2301 (const nntp)
2302 (const pop3)
2303 (const shimbun)
2304 (const search)
2305 (const archive)
2306 (const mark)
2307 (const cache)))
2308 :group 'wl-pref)
2310 (defcustom wl-message-buffer-prefetch-folder-list nil
2311 "*All folders that match this list prefetch next message,
2312 and reserved buffer cache.
2313 e.x.
2314 '(\"^[-%]\")"
2315 :type '(repeat (regexp :tag "Folder Regexp"))
2316 :group 'wl-pref)
2318 (defcustom wl-message-buffer-prefetch-depth 1
2319 "*Depth of buffer prefetch in summary mode."
2320 :type 'integer
2321 :group 'wl-pref)
2323 (defcustom wl-message-buffer-prefetch-idle-time 1
2324 "*Idle time of buffer prefetch."
2325 :type 'number
2326 :group 'wl-pref)
2328 (defcustom wl-message-buffer-prefetch-threshold 30000
2329 "*Quit forward cache prefetching if message size is larger than this value."
2330 :type 'integer
2331 :group 'wl-pref)
2333 (defcustom wl-summary-always-sticky-folder-list nil
2334 "All folders that match this list has sticky summary.
2335 Each elements are regexp of folder name."
2336 :type '(radio (const :tag "none" nil)
2337 (const :tag "all" t)
2338 (repeat (regexp :tag "Folder Regexp")))
2339 :group 'wl-pref)
2341 (defcustom wl-summary-force-prefetch-folder-list nil
2342 "All folders that match this list are prefetched.
2343 Each elements are regexp of folder name."
2344 :type '(radio (const :tag "none" nil)
2345 (const :tag "all" t)
2346 (repeat (regexp :tag "Folder Regexp")))
2347 :group 'wl-pref)
2349 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
2350 "All folders that match this list won't save its msgdb.
2351 Each elements are regexp of folder name."
2352 :type '(repeat (regexp :tag "Folder Regexp"))
2353 :group 'wl-pref)
2355 (defcustom wl-save-folder-list nil
2356 "All folders that match this list save its msgdb.
2357 Each elements are regexp of folder name."
2358 :type '(repeat (regexp :tag "Folder Regexp"))
2359 :group 'wl-pref)
2361 (defcustom wl-folder-mime-charset-alist
2362 '(("^-alt\\.chinese" . big5)
2363 ("^-relcom\\." . koi8-r)
2364 ("^-tw\\." . big5)
2365 ("^-han\\." . euc-kr)
2366 ("@sponichi" . shift_jis)
2367 ("@2ch" . shift_jis))
2368 "Charset alist. If no match, `wl-mime-charset' is used."
2369 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
2370 :group 'wl-summary
2371 :group 'wl-pref)
2373 (defcustom wl-folder-weekday-name-lang-alist
2374 '(("^-alt\\.chinese" . "en")
2375 ("^-relcom\\." . "en")
2376 ("^-tw\\." . "en")
2377 ("^-han\\." . "en"))
2378 "Weekday name lang alist.
2379 If no match, `wl-summary-weekday-name-lang' is used.
2380 e.x.
2381 '((\"xemacs-beta$\" . \"en\")
2382 (\"^-fj\" . \"ja\"))"
2383 :type '(repeat (cons (regexp :tag "Folder Regexp")
2384 (choice (const "ja")
2385 (const "en")
2386 (const "fr")
2387 (const "de")
2388 (string :tag "Other"))))
2389 :group 'wl-pref)
2391 (defcustom wl-folder-thread-indent-set-alist
2392 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
2393 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
2394 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
2395 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
2396 "Thread indent set alist.
2397 If no match, following indent set is used.
2398 \(wl-thread-indent-level
2399 wl-thread-have-younger-brother-str
2400 wl-thread-youngest-child-str
2401 wl-thread-vertical-str
2402 wl-thread-horizontal-str
2403 wl-thread-space-str)
2404 e.x.
2405 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
2406 :type '(repeat (cons (regexp :tag "Folder Regexp")
2407 (group (integer :tag "Indent")
2408 (string :tag "Yonger Brother")
2409 (string :tag "Yonger Child")
2410 (string :tag "Vertical")
2411 (string :tag "Horizontal")
2412 (string :tag "Space"))))
2413 :group 'wl-pref)
2415 (defcustom wl-folder-sync-range-alist
2416 (list (cons 'wl-require-update-all-folder-p "all"))
2417 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
2418 :type '(repeat (cons (choice (regexp :tag "Folder Regexp")
2419 (symbol :tag "A function"))
2420 (choice (const "update")
2421 (const "all")
2422 (const "rescan")
2423 (const "no-sync")
2424 (const :tag "none" nil))))
2425 :group 'wl-pref)
2427 (defcustom wl-default-sync-range "update"
2428 "*Default sync range."
2429 :type '(choice (const "update")
2430 (const "all")
2431 (const "rescan")
2432 (const "no-sync")
2433 (const :tag "none" nil))
2434 :group 'wl-pref)
2436 (defcustom wl-ask-range t
2437 "*If non-nil, ask for a range for summary synchronization.
2438 If nil, always use default."
2439 :type 'boolean
2440 :group 'wl-pref)
2442 (defcustom wl-folder-process-duplicates-alist nil
2443 "Specify process type of duplicated messages.
2444 It should be a list of cons cell like: (REGEXP . TYPE)
2445 REGEXP is a regular expression string of folder name.
2446 TYPE is one of the symbols `hide' or `read'.
2447 `hide' means hide duplicated messages.
2448 `read' means mark as read duplicated messages.
2449 If TYPE is nil, do nothing for duplicated messages."
2450 :type '(repeat (cons (regexp :tag "Folder regexp")
2451 (choice (const :tag "Hide" hide)
2452 (const :tag "Mark as read" read))))
2453 :group 'wl-folder)
2455 (defcustom wl-folder-move-cur-folder nil
2456 "*Non-nil, move cursor to current folder on folder buffer when goto folder."
2457 :type 'boolean
2458 :group 'wl-folder)
2460 (defcustom wl-folder-check-async t
2461 "*Check the folder asynchronous."
2462 :type 'boolean
2463 :group 'wl-folder)
2465 (defcustom wl-folder-notify-deleted nil
2466 "*Non-nil, display negative number on folder-mode when message is deleted
2467 in folder. If the value is 'sync, msgdb would be synchronized."
2468 :type '(choice (const :tag "off" nil)
2469 (const :tag "on" t)
2470 (const sync))
2471 :group 'wl-folder)
2473 (defcustom wl-summary-exit-next-move t
2474 "*Non-nil, move to next-unsync or next-entity when exit summary."
2475 :type 'boolean
2476 :group 'wl-summary)
2478 (defcustom wl-summary-next-no-unread-command
2479 '(wl-summary-read wl-summary-down wl-summary-up)
2480 "*Command list available when the value of `wl-auto-select-next' is 'unread
2481 or 'skip-no-unread."
2482 :type '(repeat function)
2483 :group 'wl-summary)
2485 (defcustom wl-summary-search-via-nntp 'confirm
2486 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'.
2487 If the value is 'confirm, confirm before search, 'force to search via nntp
2488 regardless of current folder type."
2489 :type '(choice (const :tag "confirm" confirm)
2490 (const :tag "always" force)
2491 (const :tag "in nntp folder" t)
2492 (const :tag "never" nil))
2493 :group 'wl-summary)
2495 (defcustom wl-summary-keep-cursor-command
2496 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2497 "*Command list to keep cursor position when folder is changed to
2498 already existing summary."
2499 :type '(repeat function)
2500 :group 'wl-summary)
2502 (defcustom wl-summary-showto-folder-regexp nil
2503 "Regexp specifying the folder that shows the To (or Newsgroups) field as
2504 Sender information in summary mode. It is effective when the value of
2505 `wl-summary-from-function' is `wl-summary-default-from'"
2506 :type '(choice (const :tag "none" nil)
2507 regexp)
2508 :group 'wl-summary)
2510 (defcustom wl-summary-save-file-suffix ".eml"
2511 "Suffix for the saved file name."
2512 :type 'string
2513 :group 'wl-summary)
2515 (defcustom wl-summary-resend-use-cache nil
2516 "*Non-nil to enable offline resending by using file cache.
2517 Note that strict message identity is not guaranteed when cache is used."
2518 :type 'boolean
2519 :group 'wl-summary)
2521 (defcustom wl-folder-removed-mark "#<removed>"
2522 "Mark for removed folder."
2523 :type 'string
2524 :group 'wl-folder)
2526 (defcustom wl-folder-unsubscribe-mark "#"
2527 "Mark for unsubscribe folder."
2528 :type 'string
2529 :group 'wl-folder)
2531 (defcustom wl-dispose-folder-alist '(("^-" . remove)
2532 ("^@" . remove))
2533 "*Alist of folder and dispose policy.
2534 Each element is (folder-regexp . policy).
2536 The policy is one of the followings:
2537 'remove or
2538 'null : remove message.
2539 string : refile to the specified folder.
2540 'trash or
2541 otherwise : refile to the `wl-trash-folder'.
2543 '((\"^%\" . \"%#mh/trash\")
2544 (\"^-\" . remove)
2545 (\"^\\\\+\" . trash))"
2546 :type '(repeat (cons (regexp :tag "Folder Regexp")
2547 (choice :tag "Policy"
2548 (const remove)
2549 (const :tag "remove(null)" null)
2550 (const trash)
2551 (const :tag "trash(other)" trash)
2552 (string :tag "Folder"))))
2553 :group 'wl-folder)
2555 (defcustom wl-folder-hierarchy-access-folders '("^-[^.]*\\(:\\|@\\|$\\)"
2556 "^@$" "^'$")
2557 "*Access group REGEXPs to make hierarchy structure."
2558 :type '(repeat (string :tag "Regexp"))
2559 :group 'wl-folder)
2561 (defcustom wl-folder-init-load-access-folders nil
2562 "*Access group folders to load folder list on `wl-folder-init'.
2563 If this variable is non-nil,
2564 `wl-folder-init-no-load-access-folders' will be ignored."
2565 :type '(repeat (regexp :tag "Folder Regexp"))
2566 :group 'wl-folder)
2568 (defcustom wl-folder-init-no-load-access-folders nil
2569 "*Access group folders to not load folder list on `wl-folder-init'.
2570 If `wl-folder-init-load-access-folders' is non-nil,
2571 this variable will be ignored."
2572 :type '(repeat (regexp :tag "Folder Regexp"))
2573 :group 'wl-folder)
2575 (defcustom wl-folder-access-subscribe-alist nil
2576 "*Subscribe folders to fetching folder entries.
2577 Each element is (group-regexp (subscribe folder-regexp ...)).
2578 If subscribe is non-nil, subscribe when match folder-regexp.
2579 If subscribe is nil, unsubscribe when match folder-regexp.
2582 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2583 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2584 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
2585 :type '(repeat (cons (regexp :tag "Folder Regexp")
2586 (list (boolean :tag "Subscribed")
2587 (repeat :inline t
2588 (regexp :tag "Folder Regexp")))))
2589 :group 'wl-folder)
2591 ;;; For Folder Manager
2593 (defcustom wl-interactive-save-folders t
2594 "*Non-nil require your confirmation when save folders."
2595 :type 'boolean
2596 :group 'wl-folder
2597 :group 'wl-setting)
2599 (defcustom wl-fldmgr-make-backup t
2600 "*Non-nil make backup file when save folders."
2601 :type 'boolean
2602 :group 'wl-folder)
2604 (defcustom wl-fldmgr-folders-indent "\t"
2605 "*Indent string for folders file."
2606 :type 'string
2607 :group 'wl-folder)
2609 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2610 "*A function to sort folder."
2611 :type 'function
2612 :group 'wl-folder)
2614 (defcustom wl-fldmgr-sort-group-first t
2615 "*Non-nil Group folder is first when sort."
2616 :type 'function
2617 :group 'wl-folder)
2619 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2620 "*If non-nil, completion for adding folder refers current folder list."
2621 :type 'boolean
2622 :group 'wl-folder)
2624 (defcustom wl-fldmgr-make-filter-default "Body"
2625 "*Default filter key while making filter on Folder."
2626 :type '(radio (const "From")
2627 (const "Subject")
2628 (const "To")
2629 (const "Cc")
2630 (const "Body")
2631 (const "Since")
2632 (const "Before")
2633 (const "Last")
2634 (const "First")
2635 (string :tag "Other"))
2636 :group 'wl-folder)
2638 (defcustom wl-fldmgr-allow-rename-access-group nil
2639 "*If non-nil, allow to rename folder in access group."
2640 :type 'boolean
2641 :group 'wl-folder)
2643 ;;; For Expire and Archive
2645 (defcustom wl-expire-alist nil
2646 "Alist to decide a policy for expire.
2647 Each element is (folder-regexp (number or date) policy).
2649 The policy is one of the followings:
2650 'remove : remove messsage.
2651 'trash : refile `wl-trash-folder'.
2652 string : refile string folder.
2653 function : call function.
2656 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
2657 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
2658 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
2659 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
2660 (\"^\\\\+misc$\" (date 14) trash))"
2661 :type '(repeat (choice (list :tag "No-match"
2662 (regexp :tag "Folder Regexp")
2663 (const nil))
2664 (list :tag "Match"
2665 (regexp :tag "Folder Regexp")
2666 (list (radio :value number
2667 (const number)
2668 (const date))
2669 (list :inline t
2670 integer
2671 (repeat :inline t integer)))
2672 (choice :tag "Policy"
2673 :value remove
2674 (const remove)
2675 (const trash)
2676 (string :tag "folder")
2677 function)
2678 (repeat :inline t
2679 :tag "Arg for function"
2680 sexp))))
2681 :group 'wl-expire)
2683 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2684 "Alist to decide a policy for archive.
2685 Each element is (folder-regexp policy(function)).
2688 '((\"\\\\+work$\" wl-archive-date)
2689 (\"\\\\+ml/\" wl-archive-number1)
2690 (\".*\" wl-archive-number2))"
2691 :type '(repeat (list (regexp :tag "Folder Regexp")
2692 function
2693 (repeat :inline t
2694 (sexp :tag "Argument"))))
2695 :group 'wl-expire)
2697 (defcustom wl-summary-expire-reserve-marks
2698 (list wl-summary-flag-mark
2699 wl-summary-new-uncached-mark
2700 wl-summary-new-cached-mark
2701 wl-summary-unread-uncached-mark
2702 wl-summary-unread-cached-mark)
2703 "Permanent marks of reserved message when expire.
2704 Don't reserve temporary mark message.
2707 'all : reserved all permanent marks.
2708 'none : not reserve permanent marks.
2709 list : reserved specified permanent marks."
2710 :type '(repeat (string :tag "Mark"))
2711 :group 'wl-expire)
2713 (defcustom wl-expire-number-with-reserve-marks nil
2714 "If non-nil, include reserve message when expire by number."
2715 :type 'boolean
2716 :group 'wl-expire)
2718 (defcustom wl-expire-add-seen-list t
2719 "*If non-nil, add seen message list when refile message at expire."
2720 :type 'boolean
2721 :group 'wl-expire)
2723 (defcustom wl-expire-use-log nil
2724 "*If non-nil, write a log when expired."
2725 :type 'boolean
2726 :group 'wl-expire)
2728 (defcustom wl-expire-folder-update-msgdb t
2729 "*Non-nil update summary msgdb when expire on folder mode."
2730 :type 'boolean
2731 :group 'wl-expire)
2733 ;; for wl-expire-archive-{number1|number2}
2734 (defcustom wl-expire-archive-files 100
2735 "*The number of one archive folder."
2736 :type 'integer
2737 :group 'wl-expire)
2739 ;; for wl-expire-archive-{number1|number2|date}
2740 (defcustom wl-expire-archive-get-folder-function
2741 'wl-expire-archive-get-folder
2742 "*A function to get archive folder name."
2743 :type 'function
2744 :group 'wl-expire)
2746 (defcustom wl-expire-delete-oldmsg-confirm t
2747 "*If non-nil, require your confirmation when delete old message."
2748 :type 'boolean
2749 :group 'wl-expire)
2751 ;; for wl-expire-archive-get-folder
2752 (defcustom wl-expire-archive-folder-type 'zip
2753 "*Archiver type of archive folder."
2754 :type '(radio (const zip)
2755 (const lha)
2756 (const zoo)
2757 (const rar)
2758 (const tar)
2759 (const tgz)
2760 (symbol :tag "Other"))
2761 :group 'wl-expire)
2763 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2764 "*A format string for archive folder name."
2765 :type 'string
2766 :group 'wl-expire)
2768 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2769 "*A regexp string for archive folder name."
2770 :type 'string
2771 :group 'wl-expire)
2773 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2774 ;; $folder-199812;zip
2775 "*A format string for archive date folder name."
2776 :type 'string
2777 :group 'wl-expire)
2779 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2780 "*A regexp string for archive date folder name."
2781 :type 'string
2782 :group 'wl-expire)
2784 (defcustom wl-expire-archive-folder-prefix nil
2785 "*Prefix for archive folder."
2786 :type '(radio (const :tag "nothing" nil)
2787 (const :tag "full" t)
2788 (const short))
2789 :group 'wl-expire)
2791 ;;;; Highlights.
2793 ;; highilght about summary
2794 (defcustom wl-highlight-max-summary-lines 10000
2795 "*If the summary is larger than this lines, don't highlight it."
2796 :type 'integer
2797 :group 'wl-highlight)
2799 ;; highilght about draft and message
2800 (defcustom wl-highlight-body-too t
2801 "*In addition to header, highlight the body too. if non nil."
2802 :type 'boolean
2803 :group 'wl-highlight)
2805 (defcustom wl-highlight-message-header-alist
2806 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2807 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2808 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2810 :type '(repeat (cons regexp face))
2811 :group 'wl-highlight)
2813 (defcustom wl-highlight-citation-prefix-regexp
2814 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2815 "All lines that match this regexp will be highlighted with
2816 `wl-highlight-message-cited-text-*' face."
2817 :type 'regexp
2818 :group 'wl-highlight)
2820 (defcustom wl-highlight-highlight-citation-too nil
2821 "*Whether the whole citation line should go in the
2822 `wl-highlight-citation-face' face.
2823 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2824 default face, and the remainder of the line is in the
2825 wl-highlight-message-cited-text face."
2826 :type 'boolean
2827 :group 'wl-highlight)
2829 (defcustom wl-highlight-force-citation-header-regexp
2830 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2831 "*The pattern to match the prolog of a cited block.
2832 Text in the body of a message which matches this will be displayed in
2833 the `wl-highlight-message-headers' face."
2834 :type 'regexp
2835 :group 'wl-highlight)
2837 (defcustom wl-highlight-citation-header-regexp
2838 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2839 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2840 "^.*\\(writes\\|wrote\\|said\\):\n")
2841 "*The pattern to match the prolog of a cited block.
2842 Text in the body of a message which matches this will be displayed in
2843 the `wl-highlight-message-headers' face."
2844 :type 'regexp
2845 :group 'wl-highlight)
2847 (defcustom wl-highlight-max-header-size nil
2848 "*If the message header is larger than this many chars, don't highlight it.
2849 If this is nil, all headers will be highlighted."
2850 :type 'integer
2851 :group 'wl-highlight)
2853 (defcustom wl-highlight-max-message-size 10000
2854 "*If the message body is larger than this many chars, don't highlight it.
2855 This is to prevent us from wasting time trying to fontify things like
2856 uuencoded files and large digests. If this is nil, all messages will
2857 be highlighted."
2858 :type 'integer
2859 :group 'wl-highlight)
2861 ;; highilght about signature (of draft and message)
2862 (defcustom wl-highlight-signature-separator
2863 '("\n--+\n" "\n\n--+.*\n*\\'")
2864 "List of regexps matching signature separator.
2865 It will be verified from head to tail looking for a separator.
2866 Verification will be done from the end of the buffer.
2867 No need to specify \"^-- $\" in this list,
2868 because it is verified by default.
2869 This variable can also be a regex."
2870 :type '(repeat regexp)
2871 :group 'wl-highlight)
2873 (defcustom wl-max-signature-size 400
2874 "*If the signature is larger than this chars, don't treat it as a signature."
2875 :type 'integer
2876 :group 'wl-highlight)
2878 ;; highilght about mouse
2879 (defcustom wl-use-highlight-mouse-line (and window-system
2880 (>= emacs-major-version 19))
2881 "*Highlight mouse line, if non-nil."
2882 :type 'boolean
2883 :group 'wl-highlight)
2885 (defcustom wl-highlight-summary-line-help-echo-alist
2886 '((flag wl-highlight-flag-folder-help-echo)
2887 (search elmo-message-file-name))
2888 "*Alist to display help-echo in summary buffer.
2889 Each element is (folder-type handler(function)).
2890 Handler take two arguments elmo-folder and message number and return string."
2891 :type 'boolean
2892 :group 'wl-highlight)
2894 ;; highilght about folder
2895 (defcustom wl-highlight-folder-with-icon
2896 (or (and (featurep 'xemacs)
2897 (featurep 'xpm))
2898 wl-on-emacs21)
2899 "*Highlight folder with icon(XEmacs or Emacs 21)."
2900 :type 'boolean
2901 :group 'wl-highlight)
2903 (defcustom wl-highlight-folder-by-numbers t
2904 "Highlight folder lines by numbers.
2905 If it is a number, only numbers will be highlighted."
2906 :type '(choice (const :tag "whole line" t)
2907 (const :tag "only numbers" 1)
2908 (const :tag "don't highlight" nil))
2909 :group 'wl-highlight)
2911 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2912 "Function to search signature area in the message body."
2913 :type 'function
2914 :group 'wl-highlight)
2916 (defcustom wl-use-dnd (and wl-on-xemacs
2917 (featurep 'dragdrop))
2918 "If Non-nil, support dragdrop feature in XEmacs."
2919 :type 'boolean
2920 :group 'wl-pref)
2922 (defcustom wl-reset-plugged-alist t
2923 "*If non-nil, reset `elmo-plugged-alist' when startup."
2924 :type 'boolean
2925 :group 'wl-pref)
2927 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2928 (module-installed-p 'image)
2929 (module-installed-p 'bitmap))
2931 "If it is T, show graphic logo in the startup screen. You can set it to
2932 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2933 :type '(radio (const :tag "Off" nil)
2934 (const :tag "On (any format)" t)
2935 (const xpm)
2936 (const xbm)
2937 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2938 :group 'wl-pref)
2940 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2941 "*A string displayed when invalid character exists."
2942 :type 'string
2943 :group 'wl-pref)
2945 (defcustom wl-use-pgp-module
2946 (condition-case nil
2947 (progn
2948 (require 'epg-config)
2949 (epg-check-configuration (epg-configuration))
2950 'epg)
2951 (error 'pgg))
2952 "*Which PGG library to be used."
2953 :type '(choice (const :tag "EasyPG Library" epg)
2954 (const :tag "PGG Library" pgg)
2955 (const :tag "Don't use PGP" nil))
2956 :group 'wl-pref)
2958 (defcustom wl-display-progress-threshold
2959 '((wl-folder-insert-entity . 100)
2960 (elmo-retrieve-message . 3000)
2961 (t . 20))
2962 "*Displaying progress message if number of total are more than this value."
2963 :type '(choice (const :tag "No display" nil)
2964 (const :tag "No limitation" 0)
2965 (integer :tag "For all")
2966 (repeat :tag "Each label"
2967 (cons (choice (const :tag "Default" t)
2968 (symbol :tag "Label"))
2969 (choice (const :tag "No display" nil)
2970 (const :tag "No limitation" 0)
2971 (integer :tag "Threshold")))))
2972 :group 'wl-pref)
2974 (defcustom wl-display-progress-function #'wl-simple-display-progress
2975 "*A function to display progress message"
2976 :type '(choice (const :tag "No display" nil)
2977 (function :tag "Function"))
2978 :group 'wl-pref)
2980 ;;; Internal variables
2981 (defvar wl-init nil)
2983 ;; For disconnected operations.
2984 (defvar wl-plugged-hook nil)
2985 (defvar wl-unplugged-hook nil)
2986 (defcustom wl-plugged t
2987 "*Plugged state at the startup. Nil means off-line."
2988 :type 'boolean
2989 :group 'wl
2990 :group 'wl-setting)
2992 ;; Internal variables used to modeline identifiers.
2993 (defvar wl-modeline-plug-status nil)
2994 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2995 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2996 (defvar wl-modeline-biff-status nil)
2997 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2998 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
3000 ;; Advanced thread view.
3001 (defvar wl-thread-indent-level (if wl-on-mule 1 2)
3002 "*Indent level for thread.")
3003 (defvar wl-thread-have-younger-brother-str (if wl-on-mule "\e$B(2\e(B" "+")
3004 "*A string for thread branch line. It should contain one character.")
3005 (defvar wl-thread-youngest-child-str (if wl-on-mule "\e$B(1\e(B" "+")
3006 "*A string for thread branch line. It should contain one character.")
3007 (defvar wl-thread-vertical-str (if wl-on-mule "\e$B(-\e(B" "|")
3008 "*A string for thread branch line. It should contain one character.")
3009 (defvar wl-thread-horizontal-str (if wl-on-mule "\e$B(,\e(B" "-")
3010 "*A string for thread branch line. It should contain one character.")
3011 (defvar wl-thread-space-str (if wl-on-mule "\e$B!!\e(B" " ")
3012 "*A string for thread branch line. It should contain one character.")
3014 ;; folder icons. filename relative to wl-icon-directory
3015 (defvar wl-opened-group-folder-icon "opened.xpm"
3016 "*Icon file for opened group folder.")
3017 (defvar wl-closed-group-folder-icon "closed.xpm"
3018 "*Icon file for closed group folder.")
3019 (defvar wl-nntp-folder-icon "news.xpm"
3020 "*Icon file for nntp folder.")
3021 (defvar wl-imap-folder-icon "imap.xpm"
3022 "*Icon file for imap folder.")
3023 (defvar wl-pop-folder-icon "pop.xpm"
3024 "*Icon file for pop folder.")
3025 (defvar wl-localdir-folder-icon "local.xpm"
3026 "*Icon file for localdir folder.")
3027 (defvar wl-localnews-folder-icon "localnews.xpm"
3028 "*Icon file for localnews folder.")
3029 (defvar wl-internal-folder-icon "internal.xpm"
3030 "*Icon file for internal folder.")
3031 (defvar wl-multi-folder-icon "multi.xpm"
3032 "*Icon file for multi folder.")
3033 (defvar wl-filter-folder-icon "filter.xpm"
3034 "*Icon file for filter folder.")
3035 (defvar wl-archive-folder-icon "archive.xpm"
3036 "*Icon file for archive folder.")
3037 (defvar wl-pipe-folder-icon "pipe.xpm"
3038 "*Icon file for pipe folder.")
3039 (defvar wl-search-folder-icon "nmz.xpm"
3040 "*Icon file for search folder.")
3041 (defvar wl-shimbun-folder-icon "shimbun.xpm"
3042 "*Icon file for shimbun folder.")
3043 (defvar wl-file-folder-icon "file.xpm"
3044 "*Icon file for file folder.")
3045 (defvar wl-maildir-folder-icon "maildir.xpm"
3046 "*Icon file for maildir folder.")
3047 (defvar wl-access-folder-icon "access.xpm"
3048 "*Icon file for access folder.")
3049 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
3050 "*Icon file for emptied trash folder.")
3051 (defvar wl-trash-folder-icon "trash.xpm"
3052 "*Icon file for trash folder.")
3053 (defvar wl-draft-folder-icon "draft.xpm"
3054 "*Icon file for draft folder.")
3055 (defvar wl-queue-folder-icon "queue.xpm"
3056 "*Icon file for queue folder.")
3057 (defvar wl-plugged-icon "plugged.xpm"
3058 "*Icon file for plugged state.")
3059 (defvar wl-unplugged-icon "unplugged.xpm"
3060 "*Icon file for unplugged state.")
3061 (defvar wl-biff-mail-icon "letter.xpm"
3062 "*Icon file for mail existed state.")
3063 (defvar wl-biff-nomail-icon "no-letter.xpm"
3064 "*Icon file for no mail existed state.")
3065 (defvar wl-prog-uudecode "uudecode"
3066 "*uudecode program name.")
3067 (defvar wl-prog-uudecode-arg nil
3068 "*Arguments for uudecode program.")
3069 (defvar wl-prog-uudecode-no-stdout-option t
3070 "*If non-nil, uudecode program don't have option for output to stdout.")
3072 ;; plug
3073 (defvar wl-plugged-plug-on "ON")
3074 (defvar wl-plugged-plug-off "--")
3075 (defvar wl-plugged-auto-off "**")
3076 (defvar wl-plugged-server-indent 2)
3077 (defvar wl-plugged-port-indent 4)
3078 (defvar wl-plugged-queue-status-column 25)
3080 ;; mime
3081 (defcustom wl-default-mime-button-invisible nil
3082 "Hide mime buttons by default.")
3084 ;;;; Obsolete variables.
3086 ;; 2005-01-23
3087 (elmo-define-obsolete-variable 'wl-nmz-folder-icon
3088 'wl-search-folder-icon)
3090 ;; 2003-11-05
3091 (elmo-define-obsolete-variable 'wl-summary-new-mark
3092 'wl-summary-new-uncached-mark)
3094 ;; 2003-07-15 delete -> dispose
3095 (elmo-define-obsolete-variable 'wl-delete-folder-alist
3096 'wl-dispose-folder-alist)
3098 ;; 2002-12-25
3099 (elmo-define-obsolete-variable 'wl-draft-reply-myself-with-argument-list
3100 'wl-draft-reply-with-argument-list)
3101 (elmo-define-obsolete-variable 'wl-draft-reply-myself-without-argument-list
3102 'wl-draft-reply-without-argument-list)
3104 ;; 2001-12-11: *-dir -> *-directory
3105 (elmo-define-obsolete-variable 'wl-icon-dir
3106 'wl-icon-directory)
3107 (elmo-define-obsolete-variable 'wl-mime-save-dir
3108 'wl-mime-save-directory)
3109 (elmo-define-obsolete-variable 'wl-score-files-dir
3110 'wl-score-files-directory)
3111 (elmo-define-obsolete-variable 'wl-tmp-dir
3112 'wl-temporary-file-directory)
3114 ;; 2001-12-10
3115 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
3116 'elmo-folder-update-threshold)
3117 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
3118 'elmo-message-fetch-threshold)
3120 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
3121 'wl-message-buffer-prefetch-folder-type-list)
3122 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
3123 'wl-message-buffer-prefetch-folder-list)
3125 ;; 2001-02-27: *-func -> *-function
3126 (elmo-define-obsolete-variable 'wl-summary-from-func
3127 'wl-summary-from-function)
3128 (elmo-define-obsolete-variable 'wl-summary-subject-func
3129 'wl-summary-subject-function)
3130 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
3131 'wl-summary-subject-filter-function)
3132 (elmo-define-obsolete-variable 'wl-draft-send-func
3133 'wl-draft-send-function)
3134 (elmo-define-obsolete-variable 'wl-draft-send-news-func
3135 'wl-draft-send-news-function)
3136 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
3137 'wl-draft-send-mail-function)
3138 (elmo-define-obsolete-variable 'wl-print-buffer-func
3139 'wl-print-buffer-function)
3140 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
3141 'wl-ps-print-buffer-function)
3142 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
3143 'wl-generate-mailer-string-function)
3144 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
3145 'wl-highlight-x-face-function)
3146 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
3147 'wl-fldmgr-sort-function)
3148 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
3149 'wl-expire-archive-get-folder-function)
3150 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
3151 'wl-highlight-signature-search-function)
3153 ;; 2000-01-25: temp mark -> target mark
3154 (elmo-define-obsolete-variable 'wl-summary-temp-above
3155 'wl-summary-target-above)
3157 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
3158 (defvar wl-draft-prepared-config-alist nil)
3159 (make-obsolete-variable 'wl-draft-prepared-config-alist
3160 'wl-draft-config-alist)
3162 ;; 1999-10-10
3163 (elmo-define-obsolete-variable 'wl-address-filename
3164 'wl-address-file)
3165 (elmo-define-obsolete-variable 'wl-score-default-file-name
3166 'wl-score-default-file)
3169 (require 'product)
3170 (product-provide (provide 'wl-vars) (require 'wl-version))
3172 ;;; wl-vars.el ends here