Synch up with main trunk, and prepare the release 2.12.0.
[elisp/wanderlust.git] / wl / wl-vars.el
1 ;;; wl-vars.el --- Variable definitions for Wanderlust.
2
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>
5
6 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
7 ;;      Masahiro MURATA <muse@ba2.so-net.ne.jp>
8 ;; Keywords: mail, net news
9
10 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
11
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.
16 ;;
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.
21 ;;
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.
26 ;;
27
28 ;;; Commentary:
29 ;;
30
31 ;;; Code:
32 ;;
33
34 (require 'elmo-vars)
35 (require 'elmo-util)
36 (require 'elmo-msgdb)
37 (require 'custom)
38
39 ;;; Customizable Variables
40
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)
52
53 (defgroup wl-pref nil
54   "Wanderlust, Preferences."
55   :prefix "wl-"
56   :group 'wl)
57
58 (defgroup wl-folder nil
59   "Wanderlust, folder buffer."
60   :prefix "wl-"
61   :group 'wl)
62
63 (defgroup wl-summary nil
64   "Wanderlust, summary buffer."
65   :prefix "wl-"
66   :group 'wl)
67
68 (defgroup wl-summary-marks nil
69   "Wanderlust, marks used in summary buffers."
70   :prefix "wl-summary-"
71   :group 'wl-summary)
72
73 (defgroup wl-expire nil
74   "Wanderlust, Expiring and archiving."
75   :prefix "wl-"
76   :group 'wl)
77
78 (defgroup wl-score nil
79   "Wanderlust, Score file handling."
80   :prefix "wl-"
81   :group 'wl)
82
83 (defgroup wl-highlight nil
84   "Wanderlust, Highlights."
85   :prefix "wl-"
86   :group 'wl)
87
88 (defgroup wl-draft nil
89   "Wanderlust, draft mode."
90   :prefix "wl-"
91   :group 'wl)
92
93 (defgroup wl-setting nil
94   "Wanderlust common settings."
95   :prefix "wl-"
96   :group 'wl)
97
98 ;;; Emacsen
99 (defconst wl-on-xemacs (featurep 'xemacs))
100
101 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
102                              (>= emacs-major-version 21)))
103
104 (defconst wl-on-mule (featurep 'mule))
105
106 (defconst wl-on-mule3
107   (and wl-on-mule (or wl-on-xemacs
108                       (> emacs-major-version 19))))
109
110 (defconst wl-on-nemacs nil) ; backward compatibility.
111
112 (eval-when-compile
113   (defun-maybe locate-data-directory (a)))
114
115 (defvar wl-cs-noconv
116   (cond (wl-on-mule3 'binary)
117         (wl-on-mule  '*noconv*)
118         (t           nil)))
119
120 (defvar wl-cs-autoconv
121   (cond (wl-on-mule3 'undecided)
122         (wl-on-mule  '*autoconv*)
123         (t           nil)))
124
125 (defvar wl-cs-local
126   (cond (wl-on-mule3  'junet)
127         (wl-on-mule   '*junet*)
128         (t           nil)))
129
130 (defvar wl-cs-cache wl-cs-local)
131
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)
142
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)
152
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)
160
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)
167
168 (defcustom wl-temporary-file-directory "~/tmp/"
169   "*Default temporary directory to save message, part."
170   :type 'directory
171   :group 'wl)
172
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)
183
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)
189
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)
197
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.")
213
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:
218
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)
227
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.")
261
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:
266
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 ' '.
291
292 If the format string contains the specifiers %( and %), the text between
293 them will have the specified number of columns.
294
295 See also variable `wl-summary-width'."
296   :group 'wl-summary
297   :type 'string)
298
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)
308
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)
315
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)
320
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)
325
326 (defcustom wl-summary-subject-function 'wl-summary-default-subject
327   "*A function for displaying subject."
328   :type 'function
329   :group 'wl-summary)
330
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)
335
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)
343
344 ;;; Mark & Action
345 (defcustom wl-summary-mark-action-list
346   '(("*"
347      target-mark
348      nil
349      wl-summary-register-target-mark
350      nil
351      wl-highlight-summary-temp-face
352      "Put target mark.")
353     ("d"
354      dispose
355      nil
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
362      nil
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
383      nil
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)
404
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)
430
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)
449
450 (defcustom wl-default-spec "%"
451   "*Default prefix for folder name initially added in minibuffer"
452   :type 'string
453   :group 'wl)
454
455 (defcustom wl-insert-mail-followup-to nil
456   "*Insert Mail-Followup-To: field if non-nil."
457   :type 'boolean
458   :group 'wl-draft)
459
460 (defcustom wl-insert-mail-reply-to nil
461   "*Insert Mail-Reply-To: field if non-nil."
462   :type 'boolean
463   :group 'wl-draft)
464
465 (defcustom wl-insert-message-id t
466   "*Insert Message-ID: field if non-nil."
467   :type 'boolean
468   :group 'wl-draft)
469
470 (defcustom wl-auto-insert-x-face t
471   "*Insert X-Face: field automatically."
472   :type 'boolean
473   :group 'wl-draft)
474
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)
480
481 (defcustom wl-draft-write-file-function 'wl-draft-save
482   "Save function for draft message."
483   :type 'function
484   :group 'wl-draft)
485
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)
492
493 (defcustom wl-demo t
494   "*Display demo at start time."
495   :type 'boolean
496   :group 'wl-pref)
497
498 (defcustom wl-demo-icon-name-alist
499   '(((string-match "^... Dec \\([ 01][0-9]\\|2[0-5]\\)" (current-time-string))
500      .
501      (concat "wl-" (wl-version-status) "-xmas-logo"))
502     (t
503      .
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)
509
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)
514
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)
522
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
529 (defcustom wl-draft-add-in-reply-to t
530   "*If non-nil, message-id of the cited message is inserted to the
531 in-reply-to field of the current draft.
532 Note: default value follows RFC2822."
533   :type 'boolean
534   :group 'wl)
535
536 (defcustom wl-draft-add-references nil
537   "*If non-nil, message-id of the cited message is inserted to the
538 references field of the current draft.
539 Note: default value follows RFC2822."
540   :type 'boolean
541   :group 'wl)
542
543 (defcustom wl-draft-cite-function 'wl-default-draft-cite
544   "*A function for citation."
545   :type 'function
546   :group 'wl-draft)
547
548 (defcustom wl-default-draft-cite-decorate-author t
549   "*If non-nil, the author of cited message is arranged by
550 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
551   :type 'boolean
552   :group 'wl-draft)
553
554 (defcustom wl-smtp-connection-type nil
555   "*SMTP connection type.
556 If nil, default smtp connection type is used."
557   :type '(choice (const :tag "default" nil)
558                  (const :tag "Use STARTTLS" starttls)
559                  (const :tag "SMTP over SSL" ssl)
560                  symbol)
561   :group 'wl)
562
563 (defcustom wl-smtp-posting-user nil
564   "*SMTP authentication user."
565   :type '(choice (const :tag "none" nil)
566                  string)
567   :group 'wl
568   :group 'wl-setting)
569
570 (defcustom wl-smtp-posting-server nil
571   "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
572   :type '(choice (const :tag "none" nil)
573                  string)
574   :group 'wl
575   :group 'wl-setting)
576
577 (defcustom wl-smtp-posting-port nil
578   "*SMTP port number in `wl-smtp-posting-server'.
579 If nil, default SMTP port number(25) is used."
580   :type '(choice (const :tag "Default (25)" nil)
581                  integer)
582   :group 'wl
583   :group 'wl-setting)
584
585 (defcustom wl-smtp-authenticate-type nil
586   "*SMTP Authentication type.
587 If nil, don't authenticate."
588   :type '(choice (const :tag "none" nil)
589                  (const :tag "PLAIN" "plain")
590                  (const :tag "CRAM-MD5" "cram-md5")
591                  (const :tag "DIGEST-MD5" "digest-md5")
592                  (const :tag "LOGIN" "login")
593                  (string :tag "Other"))
594   :group 'wl
595   :group 'wl-setting)
596
597 (defcustom wl-smtp-authenticate-realm nil
598   "*SMTP Authentication realm.
599 If you don't need to specify realm, set as nil."
600   :type '(choice (const :tag "none" nil)
601                  string)
602   :group 'wl
603   :group 'wl-setting)
604
605 (defcustom wl-pop-before-smtp-user nil
606   "*POP3 user name to send mail using POP-before-SMTP.
607 If nil, `elmo-pop3-default-user' is used.
608 To use POP-before-SMTP,
609 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
610   :type '(choice (const :tag "none" nil)
611                  string)
612   :group 'wl
613   :group 'wl-setting)
614
615 (defcustom wl-pop-before-smtp-server nil
616   "*POP3 server for POP-before-SMTP.
617 If nil, `elmo-pop3-default-server' is used."
618   :type '(choice (const :tag "none" nil)
619                  string)
620   :group 'wl
621   :group 'wl-setting)
622
623 (defcustom wl-pop-before-smtp-port nil
624   "*POP3 port for POP-before-SMTP.
625 If nil, `elmo-pop3-default-port' is used."
626   :type '(choice (const :tag "none" nil)
627                  integer string)
628   :group 'wl
629   :group 'wl-setting)
630
631 (defcustom wl-pop-before-smtp-stream-type nil
632   "*Stream type for POP-before-SMTP.
633 If nil, `elmo-pop3-default-stream-type' is used."
634   :type 'boolean
635   :group 'wl)
636
637 (defcustom wl-pop-before-smtp-authenticate-type nil
638   "*Default Authentication type for POP-before-SMTP.
639 If nil, `elmo-pop3-default-authenticate-type' is used."
640   :type '(choice (const :tag "none" nil)
641                  (const :tag "APOP" 'apop)
642                  (const :tag "POP3" 'user))
643   :group 'wl
644   :group 'wl-setting)
645
646 (defcustom wl-nntp-posting-server nil
647   "*NNTP server name to post news.
648 If nil, `elmo-nntp-default-server' is used."
649   :type '(choice (const :tag "none" nil)
650                  string)
651   :group 'wl
652   :group 'wl-setting)
653 (defcustom wl-nntp-posting-user nil
654   "*NNTP user name to post news for authinfo.
655 If nil, `elmo-nntp-default-user' is used.
656 If nil, don't authenticate."
657   :type '(choice (const :tag "none" nil)
658                  string)
659   :group 'wl
660   :group 'wl-setting)
661 (defcustom wl-nntp-posting-port nil
662   "*NNTP port to post news.
663 If nil, `elmo-nntp-default-port' is used."
664   :type '(choice (const :tag "none" nil)
665                  integer string)
666   :group 'wl
667   :group 'wl-setting)
668 (defcustom wl-nntp-posting-stream-type nil
669   "*Stream type for posting Netnews.
670 If nil, `elmo-nntp-default-stream-type' is used."
671   :type 'boolean
672   :group 'wl)
673 (defcustom wl-nntp-posting-function 'elmo-nntp-post
674   "A function to post news.
675 Prepared candidate is 'elmo-nntp-post."
676   :type '(radio (function-item elmo-nntp-post)
677                 (function :tag "Other"))
678   :group 'wl-draft)
679 (defcustom wl-nntp-posting-config-alist nil
680   "*Alist of configuration on nntp posting.
681 ex.
682 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
683   (\",?ku\\.\" .
684    ((server . \"news.media.kyoto-u.ac.jp\")
685     (user . \"newsmaster\")
686     (port . 119)
687     (function . elmo-nntp-post))
688   (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
689   :type '(repeat (cons (sexp :tag "Match")
690                        (choice (string :tag "Server")
691                                (repeat :inlie t
692                                        (cons (choice (const server)
693                                                      (const user)
694                                                      (const port)
695                                                      (const stream-type)
696                                                      (const function))
697                                              (sexp :tag "Value"))))))
698   :group 'wl-draft
699   :group 'wl-setting)
700
701 (defcustom wl-prefetch-confirm t
702   "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
703   :type 'boolean
704   :group 'wl-pref)
705
706 (defcustom wl-prefetch-threshold 30000
707   "*Maximum size of message prefetched without confirmation.
708 If nil, all messages prefetched regardless of its size.
709 If message size is larger than this value, confirm prefetching
710 when `wl-prefetch-confirm' is non-nil."
711   :type '(choice (integer :tag "Threshold (bytes)")
712                  (const :tag "No limitation" nil))
713   :group 'wl-pref
714   :group 'wl-setting)
715
716 (defcustom wl-thread-insert-opened nil
717   "*Non-nil forces to insert thread as opened in updating."
718   :type 'boolean
719   :group 'wl-summary
720   :group 'wl-setting)
721
722 (defcustom wl-thread-open-reading-thread t
723   "*Non-nil forces to open reading thread."
724   :type 'boolean
725   :group 'wl-summary)
726
727 ;;;; Hooks
728 (defvar wl-folder-mode-hook nil
729   "A hook called when wanderlust folder mode is started.
730 This hook may contain the functions `wl-folder-init-icons' and
731 `wl-setup-folder' for reasons of system internal to accord facilities
732 for the Emacs variants.")
733 (defvar wl-summary-toggle-disp-on-hook nil
734   "A hook called when message is toggled.")
735 (defvar wl-summary-toggle-disp-off-hook nil
736   "A hook called when message is disappeared.")
737 (defvar wl-summary-toggle-disp-folder-on-hook nil
738   "A hook called when folder is toggled.")
739 (defvar wl-summary-toggle-disp-folder-off-hook nil
740   "A hook called when folder is disappeared.")
741 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
742   "A hook called when message window is resumed when folder is toggled.")
743 (defvar wl-summary-mode-hook nil
744   "A hook called when summary mode is started.
745 This hook may contain the function `wl-setup-summary' for reasons of
746 system internal to accord facilities for the Emacs variants.")
747
748 (defvar wl-summary-prepared-pre-hook nil
749   "A hook called before the summary buffer has been generated.")
750 (defvar wl-summary-prepared-hook nil
751   "A hook called after the summary buffer has been generated.")
752 (defvar wl-summary-sync-updated-hook nil
753   "A hook called when update summary buffer.")
754 (defvar wl-summary-unread-message-hook nil
755   "A hook called when unread message is displayed.")
756 (defvar wl-summary-edit-addresses-hook nil
757   "A hook called when address book is edited.")
758 (defvar wl-summary-buffer-message-saved-hook nil
759   "A hook called when msgdb is saved.")
760 (defvar wl-summary-buffer-mark-saved-hook nil
761   "A hook called when mark is saved.")
762 (defvar wl-summary-divide-thread-when-subject-changed nil
763   "Divide thread when subject is changed.")
764 (defvar wl-init-hook nil
765   "A hook called when initialization is finished.  This hook may contain
766 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
767 reasons of system internal to accord facilities for the Emacs variants.")
768 (defvar wl-hook nil
769   "A hook called when Wanderlust is invoked.")
770
771 (defvar wl-draft-reply-hook
772   '((lambda () (wl-draft-setup-parent-flag 'answered)))
773   "A hook called when replied.
774 This hook runs on the draft buffer.")
775
776 (defvar wl-draft-forward-hook
777   '((lambda () (wl-draft-setup-parent-flag 'forwarded)))
778   "A hook called when forwarded.
779 This hook runs on the draft buffer.")
780
781 (defvar wl-draft-kill-pre-hook nil
782   "A hook called just before the draft buffer is killed.")
783
784 (defvar wl-summary-reply-hook nil
785   "A hook called when `wl-summary-reply' is called.
786 This hook runs on the summary buffer.")
787
788 (defvar wl-summary-forward-hook nil
789   "A hook called when `wl-summary-forward' is called.
790 This hook runs on the summary buffer.")
791
792 (defvar wl-summary-resend-hook nil
793   "A hook runs on the resent message buffer before sending process starts.")
794
795 (defvar wl-mail-setup-hook nil
796   "A hook called when Draft is prepared.")
797 (defvar wl-draft-reedit-hook '(wl-draft-remove-text-plain-tag)
798   "A hook called when Draft is re-edited.
799 The cursor point is located at top of the body.")
800 (defvar wl-draft-send-hook '(wl-draft-config-exec)
801   "A hook called on the draft editing buffer before sending process starts.")
802 (defvar wl-mail-send-pre-hook nil
803   "A hook called just before the mail sending process starts.")
804 (defvar wl-news-send-pre-hook nil
805   "A hook called just before the news sending process starts.")
806 (defvar wl-message-buffer-created-hook nil
807   "A hook called when Message buffer is prepared.")
808 (defvar wl-message-redisplay-hook nil
809   "A hook called when Message is displayed.")
810 (defvar wl-message-exit-hook nil
811   "A hook called when quit message.")
812 (defvar wl-summary-exit-pre-hook nil
813   "A hook called before exit summary mode.")
814 (defvar wl-summary-exit-hook nil
815   "A hook called when exit summary mode.")
816 (defvar wl-highlight-headers-hook nil
817   "A hook called when header is highlighted.")
818 (defvar wl-highlight-message-hook nil
819   "A hook called when message is highlighted.")
820 (defvar wl-save-hook nil
821   "A hook called when save summary and folder status.")
822 (defvar wl-exit-hook nil
823   "A hook called when exit wanderlust.")
824 (defvar wl-folder-suspend-hook nil
825   "A hook called when suspend wanderlust.")
826 (defvar wl-biff-notify-hook '(ding)
827   "A hook called when a biff-notification is invoked.")
828 (defvar wl-biff-unnotify-hook nil
829   "A hook called when a biff-notification is removed.")
830 (defvar wl-auto-check-folder-pre-hook nil
831   "A hook called before auto check folders.")
832 (defvar wl-auto-check-folder-hook nil
833   "A hook called when auto check folders.")
834 (defvar wl-folder-check-entity-pre-hook nil
835   "A hook called before check entity.")
836 (defvar wl-folder-check-entity-hook nil
837   "A hook called when check entity.")
838 (defvar wl-draft-config-exec-hook nil
839   "A hook called when execute header-config on draft.")
840 (defvar wl-summary-expire-pre-hook nil
841   "A hook called before expire.")
842 (defvar wl-summary-expire-hook nil
843   "A hook called when expired.")
844 (defvar wl-summary-archive-pre-hook nil
845   "A hook called before archive.")
846 (defvar wl-summary-archive-hook nil
847   "A hook called when archived.")
848 (defvar wl-summary-line-inserted-hook nil
849   "A hook called when summary line is inserted.")
850 (defvar wl-summary-insert-headers-hook nil
851   "A hook called when insert header for search header.")
852 (defvar wl-message-display-internal-hook nil
853   "A hook called when message buffer is created and message is displayed.
854 This hook may contain the functions `wl-setup-message' for
855 reasons of system internal to accord facilities for the Emacs variants.")
856 (defvar wl-thread-update-children-number-hook nil
857   "A hook called when children number is updated.")
858 (defvar wl-folder-update-access-group-hook nil
859   "A hook called when update access group folder.")
860 (defvar wl-draft-cited-hook nil
861   "A hook called after a message is cited.")
862 (defvar wl-draft-insert-x-face-field-hook nil
863   "A hook called after a x-face field is inserted.")
864 (defvar wl-template-mode-hook nil
865   "A hook called when template mode is started.")
866 (defvar wl-score-mode-hook nil
867   "A hook called when score mode is started.")
868 (defvar wl-make-plugged-hook nil
869   "A hook called when make plugged alist.")
870
871 (defvar wl-plugged-exit-hook nil
872   "A hook called when exit plugged mode.")
873
874 ;;;; functions for draft
875 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
876   "A function to send message."
877   :type 'function
878   :group 'wl-draft)
879
880 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
881   "A function to send news."
882   :type 'function
883   :group 'wl-draft)
884
885 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
886   "A function to send mail.
887 Prepared candidates are 'wl-draft-send-mail-with-smtp,
888 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
889   :type '(radio (function-item wl-draft-send-mail-with-smtp)
890                 (function-item wl-draft-send-mail-with-qmail)
891                 (function-item wl-draft-send-mail-with-pop-before-smtp)
892                 (function :tag "Other"))
893   :group 'wl-draft)
894
895 (defcustom wl-draft-reply-with-argument-list
896   '(("From" . (("Reply-To" "Mail-Reply-To" "From")
897                ("Mail-Followup-To" "To" "Cc")
898                ("Followup-To" "Newsgroups"))))
899   "Alist of cons cell of
900 \('condition' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
901 'condition' is a header name string (non-nil if the header exists in original
902 message), a function (evaluated in original message buffer) or a list of those
903 \(means 'AND' condition).
904 'fields for ***' is a list of strings.
905 If car of each cons cell returns non-nil value,
906 cdr of each cons cell is used for preparing headers of draft message.
907 Default is for 'reply-to-all'."
908   :type '(repeat (cons (choice (string :tag "Field Name")
909                                (symbol :tag "Function")
910                                (const :tag "Replying to self" wl-draft-self-reply-p)
911                                (repeat :tag "AND"
912                                        (choice (string :tag "Field Name")
913                                                (symbol :tag "Function")
914                                                (const :tag "Replying to self" wl-draft-self-reply-p))))
915                        (list (repeat :tag "Fields For To" string)
916                              (repeat :tag "Fields For Cc" string)
917                              (repeat :tag "Fields For Newsgroups" string))))
918   :group 'wl-draft)
919
920 (defcustom wl-draft-reply-without-argument-list
921   '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
922     ("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
923     ("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
924     ("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
925     ("Reply-To" . (("Reply-To") ("To" "Cc") nil))
926     (wl-draft-self-reply-p . (("To") ("Cc") nil))
927     ("From" . (("From") ("To" "Cc") nil)))
928   "Alist of cons cell of
929 \('condition' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
930 'condition' is a header name string (non-nil if the header exists in original
931 message), a function (evaluated in original message buffer) or a list of those
932 \(means 'AND' condition).
933 'fields for ***' is a list of strings.
934 If car of each cons cell returns non-nil value,
935 cdr of each cons cell is used for preparing headers of draft message."
936   :type '(repeat (cons (choice (string :tag "Field Name")
937                                (symbol :tag "Function")
938                                (const :tag "Replying to self" wl-draft-self-reply-p)
939                                (repeat :tag "AND"
940                                        (choice (string :tag "Field Name")
941                                                (symbol :tag "Function")
942                                                (const :tag "Replying to self" wl-draft-self-reply-p))))
943                        (list (repeat :tag "Fields For To" string)
944                              (repeat :tag "Fields For Cc" string)
945                              (repeat :tag "Fields For Newsgroups" string))))
946   :group 'wl-draft)
947
948 (defcustom wl-draft-always-delete-myself nil
949   "*Always delete myself from recipient if non-nil."
950   :type 'boolean
951   :group 'wl-draft)
952
953 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
954   "*Do not insert bcc or fcc if To and Cc fields is a member of
955 `wl-subscribed-mailing-list'"
956   :type 'boolean
957   :group 'wl-draft)
958
959 (defcustom wl-draft-resume-folder-window t
960   "*Resume folder window in `wl-draft-hide'."
961   :type 'boolean
962   :group 'wl-draft)
963
964 (defcustom wl-draft-use-frame nil
965   "*Raise new frame when composing draft."
966   :type 'boolean
967   :group 'wl-draft)
968
969 (defcustom wl-draft-qmail-send-plugged nil
970   "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
971   :type 'boolean
972   :group 'wl-draft)
973
974 (defcustom wl-draft-remove-group-list-contents t
975   "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
976   :type 'boolean
977   :group 'wl-draft)
978
979 ;;;;
980 (defcustom wl-init-file "~/.wl"
981   "*User customization setting file."
982   :type 'file
983   :group 'wl)
984
985 (defcustom wl-folders-file "~/.folders"
986   "*Folders file."
987   :type 'file
988   :group 'wl)
989
990 (defcustom wl-address-file "~/.addresses"
991   "*Addresses file."
992   :type 'file
993   :group 'wl)
994
995 (defcustom wl-alias-file "~/.im/Aliases"
996   "*Alias file for completion."
997   :type 'file
998   :group 'wl)
999
1000 (defcustom wl-ldap-server nil
1001   "*LDAP server."
1002   :type '(choice (const :tag "Default server(localhost)" nil)
1003                  (string :tag "Server"))
1004   :group 'wl
1005   :group 'wl-setting)
1006
1007 (defcustom wl-ldap-port nil
1008   "*LDAP port."
1009   :type '(choice (const :tag "Default port" nil)
1010                  integer)
1011   :group 'wl
1012   :group 'wl-setting)
1013
1014 (defcustom wl-ldap-base nil
1015   "*LDAP base."
1016   :type '(choice (const :tag "Default base" nil)
1017                  (string :tag "Base"))
1018   :group 'wl
1019   :group 'wl-setting)
1020
1021 (defcustom wl-use-ldap nil
1022   "*If non-nil, use LDAP for address completion."
1023   :type 'boolean
1024   :group 'wl
1025   :group 'wl-setting)
1026
1027 (defcustom wl-use-acap nil
1028   "*If non-nil, use ACAP for configuration."
1029   :type 'boolean
1030   :group 'wl)
1031
1032 (defcustom wl-folder-info-save t
1033   "If non-nil, save elmo-folder-info-alist."
1034   :type 'boolean
1035   :group 'wl-folder)
1036
1037 (defcustom wl-summary-persistent-mark-priority-list '(flag
1038                                                       new
1039                                                       answered
1040                                                       forwarded
1041                                                       unread)
1042   "List of preserved flag symbols to define the priority to map \
1043 to the persistent mark.
1044 Special symbol `flag' means the user defined flag."
1045   :type '(repeat (symbol :tag "preserved flag"))
1046   :group 'wl-summary)
1047
1048 (defcustom wl-summary-flag-alist
1049   '((important "orange"))
1050   "An alist to define the global flags for the summary mode.
1051 Each element is a form like:
1052 \(SYMBOL-OF-FLAG COLOR [MARK]\)
1053 Example:
1054 \((important \"orange\"\)
1055  \(todo \"red\" \"T\"\)
1056  \(business \"green\" \"B\"\)
1057  \(private \"blue\"\)\)"
1058   :type '(repeat (list (symbol :tag "flag")
1059                        (string :tag "color")
1060                        (choice (string :tag "mark")
1061                                (const :tag "Default mark" nil))))
1062   :group 'wl-summary)
1063
1064 (defcustom wl-summary-uncached-mark "!"
1065   "Mark for uncached message with no flag."
1066   :type '(string :tag "Mark")
1067   :group 'wl-summary-marks)
1068
1069 (defcustom wl-summary-new-uncached-mark "N"
1070   "Mark for new and uncached message."
1071   :type '(string :tag "Mark")
1072   :group 'wl-summary-marks)
1073
1074 (defcustom wl-summary-new-cached-mark "n"
1075   "Mark for new but already cached message."
1076   :type '(string :tag "Mark")
1077   :group 'wl-summary-marks)
1078
1079 (defcustom wl-summary-unread-uncached-mark "U"
1080   "Mark for unread and uncached message."
1081   :type '(string :tag "Mark")
1082   :group 'wl-summary-marks)
1083
1084 (defcustom wl-summary-unread-cached-mark "u"
1085   "Mark for unread but already cached message."
1086   :type '(string :tag "Mark")
1087   :group 'wl-summary-marks)
1088
1089 (defcustom wl-summary-answered-cached-mark "a"
1090   "Mark for answered and cached message."
1091   :type '(string :tag "Mark")
1092   :group 'wl-summary-marks)
1093
1094 (defcustom wl-summary-answered-uncached-mark "A"
1095   "Mark for answered but uncached message."
1096   :type '(string :tag "Mark")
1097   :group 'wl-summary-marks)
1098
1099 (defcustom wl-summary-flag-mark "$"
1100   "Mark for the messages which have tags."
1101   :type '(string :tag "Mark")
1102   :group 'wl-summary-marks)
1103
1104 (defcustom wl-summary-score-over-mark "+"
1105   "Score mark used for messages with high scores."
1106   :type '(string :tag "Mark")
1107   :group 'wl-summary-marks)
1108
1109 (defcustom wl-summary-score-below-mark "-"
1110   "Score mark used for messages with low scores."
1111   :type '(string :tag "Mark")
1112   :group 'wl-summary-marks)
1113
1114 (defcustom wl-summary-no-mime-folder-list nil
1115   "*All folders that match this list don't analyze mime."
1116   :type '(repeat string)
1117   :group 'wl-summary)
1118
1119 (defcustom wl-summary-display-mime-mode-list '(mime as-is)
1120   "*Display mime mode list toggled by `wl-summary-toggle-mime'.
1121 Candidates are following:
1122 `mime'        ... header and body are decoded
1123 `header-only' ... only header is decoded
1124 `as-is'       ... header and body are not decoded"
1125   :type '(repeat (choice (const :tag "MIME"        mime)
1126                          (const :tag "HEADER-ONLY" header-only)
1127                          (const :tag "AS-IS"       as-is)))
1128   :group 'wl-summary)
1129
1130 (defcustom wl-summary-fix-timezone nil
1131   "*Time zone of the date string in summary mode.
1132 If nil, it is adjust to the default time zone information
1133 \(system's default time zone or environment variable TZ)."
1134   :type '(choice (const :tag "Default time zone" nil)
1135                  string)
1136   :group 'wl-summary)
1137
1138 (defcustom wl-summary-default-score 0
1139   "*Default message score level.
1140 All scores generated by the score files will be added to this score.
1141 If this variable is nil, scoring will be disabled."
1142   :type '(choice (const :tag "disable" nil)
1143                  integer)
1144   :group 'wl-score)
1145
1146 (defcustom wl-summary-important-above nil
1147   "*Mark all messages with a score above this variable as important.
1148 This variable is local to the summary buffers."
1149   :type '(choice (const :tag "off" nil)
1150                  integer)
1151   :group 'wl-score)
1152
1153 (defcustom wl-summary-target-above nil
1154   "*Mark all messages with a score above this variable as target.
1155 This variable is local to the summary buffers."
1156   :type '(choice (const :tag "off" nil)
1157                  integer)
1158   :group 'wl-score)
1159
1160 (defcustom wl-summary-mark-below 0
1161   "*Mark all messages with a score below this variable as read.
1162 This variable is local to each summary buffer and usually set by the
1163 score file."
1164   :type 'integer
1165   :group 'wl-score)
1166
1167 (defcustom wl-summary-expunge-below nil
1168   "All messages that have a score less than this variable will be expunged.
1169 This variable is local to the summary buffers."
1170   :type '(choice (const :tag "off" nil)
1171                  integer)
1172   :group 'wl-score)
1173
1174 (defcustom wl-summary-score-marks
1175   (list wl-summary-new-uncached-mark wl-summary-new-cached-mark)
1176   "Persistent marks to scoring."
1177   :type '(repeat (string :tag "Mark"))
1178   :group 'wl-score)
1179
1180 (defcustom wl-use-scoring t
1181   "*If non-nil, enable scoring."
1182   :type 'boolean
1183   :group 'wl-pref)
1184
1185 (defcustom wl-summary-rescore-partial-threshold 200
1186   "*Summary is not scored entirely if there are messages more than this value.
1187 In sync-all or rescan."
1188   :type 'integer
1189   :group 'wl-score)
1190
1191 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
1192   "*Name of the directory where score files will be stored.
1193 (default \"~/.elmo\")."
1194   :type 'directory
1195   :group 'wl)
1196
1197 (defcustom wl-score-interactive-default-score 1000
1198   "*Scoring commands will raise/lower the score with this number as the default."
1199   :type 'integer
1200   :group 'wl-score)
1201
1202 (defcustom wl-score-expiry-days 7
1203   "*Number of days before unused score file entries are expired.
1204 If this variable is nil, no score file entries will be expired."
1205   :type '(choice (const :tag "never" nil)
1206                  number)
1207   :group 'wl-score)
1208
1209 (defcustom wl-score-update-entry-dates t
1210   "*In non-nil, update matching score entry dates.
1211 If this variable is nil, then score entries that provide matches
1212 will be expired along with non-matching score entries."
1213   :type 'boolean
1214   :group 'wl-score)
1215
1216 (defcustom wl-score-folder-alist nil
1217   "*Alist of folder regexp and score file."
1218   :type '(repeat (list (regexp :tag "Folder Regexp")
1219                        (repeat :inline t
1220                                (choice file
1221                                        (symbol :tag "Variable")))))
1222   :group 'wl-score)
1223
1224 (defcustom wl-score-folder-alist-matchone t
1225   "*If non-nil, getting only one element of `wl-score-folder-alist'."
1226   :type 'boolean
1227   :group 'wl-score)
1228
1229 (defcustom wl-score-default-file "all.SCORE"
1230   "*Default score file name."
1231   :type 'file
1232   :group 'wl-score)
1233
1234 (defcustom wl-score-simplify-fuzzy-regexp
1235   '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1236   "*Strings to be removed when doing fuzzy matches.
1237 This can either be a regular expression or list of regular expressions."
1238   :type '(repeat regexp)
1239   :group 'wl-score)
1240
1241 (defcustom wl-score-header-default-entry
1242   '(("number" -1000 perm =)
1243     ("subject" -1000 nil nil)
1244     ("from" -1000 perm s)
1245     ("message-id" -1000 temp e)
1246     ("references" -1000 perm e)
1247     ("to" -1000 perm s)
1248     ("cc" -1000 perm s)
1249     ("date" -1000 temp nil)
1250     ("xref" -1000 perm s)
1251     ("extra" -1000 perm s)
1252     ("chars" -1000 perm >)
1253     ("lines" -1000 perm >)
1254     ("followup" -1000 perm s)
1255     ("thread" -1000 temp s))
1256   "*Default entry when insert score entry."
1257   :type '(repeat (list (string :tag "Header")
1258                        (choice (integer :tag "Score")
1259                                (const :tag "Ask" nil))
1260                        (choice (const :tag "Permanent" perm)
1261                                (const :tag "Temporary" temp)
1262                                (const :tag "Ask" nil))
1263                        (choice (const :tag "Regexp string" r)
1264                                (const :tag "Substring" s)
1265                                (const :tag "fuzzy string" f)
1266                                (const :tag "Exact string" e)
1267                                (const :tag "REGEXP STRING" R)
1268                                (const :tag "SUBSTRING" S)
1269                                (const :tag "FUZZY STRING" F)
1270                                (const :tag "EXACT STRING" E)
1271                                (const :tag "less than" <)
1272                                (const :tag "less equal" <=)
1273                                (const :tag "greater than" >)
1274                                (const :tag "greater equal" >=)
1275                                (const :tag "equal" =)
1276                                (const :tag "Ask" nil))))
1277   :group 'wl-score)
1278
1279 (defcustom wl-score-mode-mime-charset 'x-ctext
1280   "*MIME Charset for score file."
1281   :type 'symbol
1282   :group 'wl-score)
1283
1284 (defcustom wl-draft-fields
1285   '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1286     "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1287   "Fields used in draft mode."
1288   :type '(repeat (string :tag "Field"))
1289   :group 'wl-draft)
1290
1291 ;; MIME Bcc.
1292 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1293   "Field name for MIME-encapsulated Bcc."
1294   :type '(string :tag "Field Name")
1295   :group 'wl-draft)
1296
1297 (defcustom wl-draft-mime-bcc-body nil
1298   "Body string for MIME-encapsulated Bcc.
1299 If nil, a string `This is a blind carbon copy.' is used."
1300   :type '(choice (const :tag "default" nil)
1301                  (string :tag "Body"))
1302   :group 'wl-draft)
1303
1304 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1305   "Disable Bcc while MIME-encapsulated Bcc."
1306   :type 'boolean
1307   :group 'wl-draft)
1308
1309 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1310   "Disable Fcc while MIME-encapsulated Bcc."
1311   :type 'boolean
1312   :group 'wl-draft)
1313
1314 (defcustom wl-draft-config-alist nil
1315   "Alist of condition and actions for dynamical draft modification.
1316 First element of each list is some condition for the draft buffer (regular
1317 expression for header or elisp expression) and remaining elements indicate
1318 actions.
1319 If the first element is `reply' keyword, the next element be the condition
1320 for the message being replied, and remaining elements are actions.
1321
1322 The configuration is applied when `wl-draft-config-exec' is called, or
1323 applied automatically before sending message.
1324
1325 ex.
1326 '((\"^To: .*wl@lists.airs.net\"
1327    (\"From\" . my-from-address-for-wl-list)
1328    (\"Organization\" . my-organization-for-wl-list))
1329   (reply
1330    \"^To: .*hogehoge@aaa.ne.jp\"
1331    (\"From\" . \"Alternative Address <hogehoge@aaa.ne.jp>\")
1332    my-draft-config-function-hogehoge))
1333
1334 See also variable `wl-draft-parent-folder'."
1335   :type '(repeat (list (sexp :tag "Match")
1336                        (repeat
1337                         :inline t
1338                         (choice (cons (sexp :tag "Field(Variable)")
1339                                       (sexp :tag "Value"))
1340                                 (sexp :tag "Function")))))
1341   :group 'wl-draft
1342   :group 'wl-setting)
1343
1344 (defcustom wl-draft-config-matchone nil
1345   "*If non-nil, applied only one element of `wl-draft-config-alist'."
1346   :type 'boolean
1347   :group 'wl-draft
1348   :group 'wl-setting)
1349
1350 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1351   "*The string which is inserted for elided text."
1352   :type 'string
1353   :group 'wl-draft)
1354
1355 (defcustom wl-template-alist nil
1356   "Alist of template.
1357 First element of each list is a string specifies the name of the template.
1358 Remaining elements indicate actions. The format of actions is same as that
1359 of `wl-draft-config-alist'."
1360   :type '(repeat (list (string :tag "Name")
1361                        (repeat
1362                         :inline t
1363                         (choice (cons (sexp :tag "Field(Variable)")
1364                                       (sexp :tag "Value"))
1365                                 (sexp :tag "Function")))))
1366   :group 'wl-draft
1367   :group 'wl-setting)
1368
1369 (defcustom wl-template-visible-select t
1370   "*If non-nil, select template with visible."
1371   :type 'boolean
1372   :group 'wl-draft)
1373
1374 (defcustom wl-template-confirm nil
1375   "*If non-nil, require your confirmation when selected template."
1376   :type 'boolean
1377   :group 'wl-draft)
1378
1379 (defcustom wl-template-buffer-lines 7
1380   "*Lines of template buffer."
1381   :type 'integer
1382   :group 'wl-draft)
1383
1384 ;; queued sending.
1385 (defcustom wl-draft-enable-queuing t
1386   "*Non-nil enables queued sending."
1387   :type 'boolean
1388   :group 'wl-draft
1389   :group 'wl-pref)
1390
1391 (defcustom wl-draft-force-queuing nil
1392   "*Non-nil forces queued sending for mail and news."
1393   :type 'boolean
1394   :group 'wl-draft
1395   :group 'wl-pref)
1396
1397 (defcustom wl-draft-force-queuing-mail nil
1398   "*Non-nil forces queued sending for mail."
1399   :type 'boolean
1400   :group 'wl-draft
1401   :group 'wl-pref)
1402
1403 (defcustom wl-draft-force-queuing-news nil
1404   "*Non-nil forces queued sending for news."
1405   :type 'boolean
1406   :group 'wl-draft
1407   :group 'wl-pref)
1408
1409 (defcustom wl-draft-use-cache nil
1410   "*If non-nil, sending message is cached."
1411   :type 'boolean
1412   :group 'wl-draft
1413   :group 'wl-pref)
1414
1415 (defcustom wl-auto-flush-queue t
1416   "*If non-nil, sending queue is flushed when network status is toggled."
1417   :type 'boolean
1418   :group 'wl-draft
1419   :group 'wl-pref)
1420
1421 (defcustom wl-draft-buffer-style 'full
1422   "Style of draft buffer except for `wl-summary-reply' and `wl-summary-forward'
1423 'keep is to use current window, 'full is to use full frame window and
1424 'split is to split current window.
1425 If it is a function, it is called with the draft buffer as an argument."
1426   :type '(choice (const :tag "Keep window" keep)
1427                  (const :tag "Split window" split)
1428                  (const :tag "Full window" full)
1429                  (sexp :tag "Use Function"))
1430   :group 'wl-draft)
1431
1432 (defcustom wl-draft-reply-buffer-style 'split
1433   "Style of draft buffer for `wl-summary-reply' and `wl-summary-forward'
1434 'keep is to use message buffer window, 'full is to use full frame window and
1435 'split is to split message buffer window.
1436 If it is a function, it is called with the draft buffer as an argument."
1437   :type '(choice (const :tag "Keep window" keep)
1438                  (const :tag "Split window" split)
1439                  (const :tag "Full window" full)
1440                  (sexp :tag "Use Function"))
1441   :group 'wl-draft)
1442
1443 (defcustom wl-draft-reply-default-position 'body
1444   "Begining position of reply buffer.
1445 'body means the top of body.
1446 'bottom means the bottom of body.
1447 'top means the top of header.
1448 \"To\", \"Newsgroups\", \"Subject\" means the position of the header field.
1449 You can also set it to a list of setting.
1450 "
1451   :type '(choice (repeat
1452                   (choice
1453                    (const :tag "Top of body" body)
1454                    (const :tag "Bottom of body" bottom)
1455                    (const :tag "Top of header" top)
1456                    (const "To")
1457                    (const "Newsgroups")
1458                    (const "Subject")
1459                    (string :tag "Header Name")))
1460                  (const :tag "Top of body" body)
1461                  (const :tag "Bottom of body" bottom)
1462                  (const :tag "Top of header" top)
1463                  (const "To")
1464                  (const "Newsgroups")
1465                  (const "Subject")
1466                  (string :tag "Header Name"))
1467   :group 'wl-draft)
1468
1469 (defcustom wl-draft-queue-save-variables
1470   '(wl-envelope-from wl-from
1471     wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1472     wl-smtp-authenticate-type wl-smtp-connection-type
1473     wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1474     wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1475     wl-nntp-posting-server wl-nntp-posting-server
1476     wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1477   "*Saving variables in queue info."
1478   :type '(repeat (sexp :tag "Variable"))
1479   :group 'wl-draft)
1480
1481 (defcustom wl-draft-sendlog t
1482   "*Keep send state in log if non-nil."
1483   :type 'boolean
1484   :group 'wl-draft)
1485
1486 (defcustom wl-draft-sendlog-max-size 20000
1487   "*Max file size of sendlog."
1488   :type '(choice (const :tag "Unlimited" nil)
1489                  integer)
1490   :group 'wl-draft)
1491
1492 (defcustom wl-summary-default-number-column 5
1493   "Number of columns in summary buffer."
1494   :type 'integer
1495   :group 'wl-summary)
1496
1497 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1498   "Alist of folder and its number column.
1499 If no matches, 'wl-summary-default-number-column' is used.
1500 ex.
1501 '((\"^%inbox@qmail-maildir\" . 9)
1502   (\"^-.*@news-server\" . 6))"
1503   :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1504   :group 'wl-summary)
1505
1506 (defcustom wl-summary-highlight t
1507   "Non-nil forces Summary buffer to be highlighted."
1508   :type 'boolean
1509   :group 'wl-summary
1510   :group 'wl-highlight)
1511
1512 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1513   "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1514   :type 'boolean
1515   :group 'wl-summary
1516   :group 'wl-highlight)
1517
1518 (defcustom wl-summary-highlight-partial-threshold 1000
1519   "Summary is not highlighted entirely if there are lines more than this value.
1520 Available if only `wl-summary-lazy-highlight' is nil."
1521   :type 'integer
1522   :group 'wl-summary
1523   :group 'wl-highlight)
1524
1525 (defcustom wl-summary-partial-highlight-above-lines 30
1526   "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1527 Summary lines are highlighted partialy above current position.
1528 Available if only `wl-summary-lazy-highlight' is nil."
1529   :type 'integer
1530   :group 'wl-summary
1531   :group 'wl-highlight)
1532
1533 (defcustom wl-summary-lazy-update-mark (boundp 'window-scroll-functions)
1534   "Non-nil forces lazy update mark using `window-scroll-functions'."
1535   :type 'boolean
1536   :group 'wl-summary)
1537
1538 (defcustom wl-summary-cache-use t
1539   "Non-nil forces wl-summary to use cache file."
1540   :type 'boolean
1541   :group 'wl-summary)
1542
1543 (defcustom wl-summary-auto-sync-marks t
1544   "Non-nil forces to synchronize unread/important marks."
1545   :type 'boolean
1546   :group 'wl-summary)
1547
1548 (defcustom wl-summary-cache-file ".wl-summary-cache"
1549   "*Cache file for summary mode contents."
1550   :type 'file
1551   :group 'wl-summary)
1552 (defcustom wl-summary-view-file ".wl-summary-view"
1553   "*Current summary view."
1554   :type 'file
1555   :group 'wl-summary)
1556 (defcustom wl-thread-top-file ".wl-thread-top"
1557   "*Current thread top entity... obsolete."
1558   :type 'file
1559   :group 'wl-summary)
1560 (defcustom wl-thread-entity-file ".wl-thread-entity"
1561   "*Thread entities."
1562   :type 'file
1563   :group 'wl-summary)
1564 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1565   "*Thread top entity list."
1566   :type 'file
1567   :group 'wl-summary)
1568
1569 (defcustom wl-print-buffer-function 'lpr-buffer
1570   "A function to print current buffer."
1571   :type 'function
1572   :group 'wl-pref)
1573
1574 (defcustom wl-ps-print-buffer-function
1575   (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1576   "A function to print current buffer with ps-print."
1577   :type 'function
1578   :group 'wl-pref)
1579
1580 ;;;; Preferences
1581 (defcustom wl-use-petname t
1582   "*Display petname in summary and default citation title."
1583   :type 'boolean
1584   :group 'wl-pref)
1585
1586 (defcustom wl-use-folder-petname
1587   '(modeline)
1588   "*List of situation using folder petname.
1589 Allowed situations are:
1590   modeline    : displayed on modeline.
1591   ask-folder  : displayed on minibuffer when ask folder.
1592   read-folder : can used for completion at `wl-summary-read-folder'."
1593   :type '(set (const modeline)
1594               (const ask-folder)
1595               (const read-folder))
1596   :group 'wl-summary
1597   :group 'wl-pref)
1598
1599 (defcustom wl-folder-petname-alist nil
1600   "A list of (realname . petname)."
1601   :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1602   :group 'wl-folder)
1603
1604 (defcustom wl-summary-weekday-name-lang
1605   (if (and (boundp 'current-language-environment)
1606            (string-equal "Japanese"
1607                          (symbol-value 'current-language-environment)))
1608       "ja" "en")
1609   "*Language to display week day."
1610   :type '(choice (const "ja")
1611                  (const "en")
1612                  (const "fr")
1613                  (const "de")
1614                  (string :tag "Other"))
1615   :group 'wl-summary
1616   :group 'wl-pref)
1617
1618 (defcustom wl-message-id-use-wl-from t
1619   "*Use `wl-from' for domain part of Message-ID if non-nil."
1620   :type 'boolean
1621   :group 'wl-pref)
1622
1623 (defcustom wl-local-domain nil
1624   "*Domain part of this client (without hostname).
1625 Set this if (system-name) does not return FQDN."
1626   :type '(choice (const :tag "Use System Name" nil)
1627                  string)
1628   :group 'wl-pref)
1629
1630 (defcustom wl-message-id-domain nil
1631   "*Specific domain part of Message-ID."
1632   :type '(choice (const :tag "Use System Name" nil)
1633                  string)
1634   :group 'wl-pref)
1635
1636 (defcustom wl-unique-id-suffix ".wl"
1637   "*Specific string in generated Message-ID
1638 which appear just before @."
1639   :type 'string
1640   :group 'wl-pref)
1641
1642 (defcustom wl-break-pages t
1643   "*Break Pages at ^L."
1644   :type 'boolean
1645   :group 'wl-pref)
1646
1647 (defcustom wl-message-use-header-narrowing t
1648   "Use header narrowing when non-nil."
1649   :type 'boolean
1650   :group 'wl-pref)
1651
1652 (defcustom wl-message-header-narrowing-fields '("to" "cc")
1653   "A list of field name to enable header narrowing."
1654   :type '(repeat string)
1655   :group 'wl-pref)
1656
1657 (defcustom wl-message-header-narrowing-lines 4
1658   "Line number to enable the header narrowing."
1659   :type 'integer
1660   :group 'wl-pref)
1661
1662 (defcustom wl-message-header-narrowing-string "..."
1663   "A string used for header narrowing truncation."
1664   :type 'string
1665   :group 'wl-pref)
1666
1667 (defvar wl-message-mode-line-format-spec-alist
1668   '((?f (if (memq 'modeline wl-use-folder-petname)
1669             (wl-folder-get-petname wl-message-buffer-cur-folder)
1670           wl-message-buffer-cur-folder))
1671     (?m (upcase (symbol-name
1672                  (wl-message-display-type-property
1673                   wl-message-buffer-cur-display-type
1674                   :mime))))
1675     (?F wl-message-buffer-flag-indicator)
1676     (?n wl-message-buffer-cur-number))
1677   "An alist of format specifications for message buffer's mode-lines.
1678 Each element is a list of following:
1679 \(SPEC STRING-EXP)
1680 SPEC is a character for format specification.
1681 STRING-EXP is an expression to get string to insert.")
1682
1683 (defcustom wl-message-mode-line-format "Wanderlust: << %f / %n %F>> [%m]"
1684   "*A format string for message buffer's mode-line of Wanderlust.
1685 It may include any of the following format specifications
1686 which are replaced by the given information:
1687
1688 %f The folder name.
1689 %n The number of the message.
1690 %m The MIME analysis status.
1691 %F The global flag indicator."
1692   :group 'wl-pref
1693   :type 'string)
1694
1695 (defcustom wl-message-truncate-lines default-truncate-lines
1696   "*Truncate lines in Message Buffer."
1697   :type 'boolean
1698   :group 'wl-pref)
1699
1700 (defcustom wl-draft-truncate-lines default-truncate-lines
1701   "*Truncate lines in Draft Buffer."
1702   :type 'boolean
1703   :group 'wl-draft
1704   :group 'wl-pref)
1705
1706 (defcustom wl-message-scroll-amount nil
1707   "*Scroll amount by SPC key."
1708   :type '(choice (const :tag "scrolling by screenfuls" nil)
1709                  integer)
1710   :group 'wl-pref)
1711
1712 (defcustom wl-message-window-size '(1 . 4)
1713   "*Size of summary and message window.  cons cell of (Summary : Message)."
1714   :type '(cons integer integer)
1715   :group 'wl-pref)
1716
1717 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1718                                         "Newsgroups" "Subject" "^From")
1719   "*Sort order of header fields.  Each elements are regexp of field name."
1720   :type '(repeat (string :tag "Field Regexp"))
1721   :group 'wl-pref
1722   :group 'wl-setting)
1723
1724 (defcustom wl-message-ignored-field-list nil
1725   "All fields that match this list will be hidden in message buffer.
1726 Each elements are regexp of field-name.
1727 You can specify exceptions by `wl-message-visible-field-list'."
1728   :type '(repeat (string :tag "Field Regexp"))
1729   :group 'wl-pref
1730   :group 'wl-setting)
1731
1732 (defcustom wl-message-visible-field-list nil
1733   "All fields that match this list will be displayed in message buffer.
1734 Each elements are regexp of field-name.
1735 This variable overwhelm `wl-message-ignored-field-list' settings."
1736   :type '(repeat (string :tag "Field Regexp"))
1737   :group 'wl-pref
1738   :group 'wl-setting)
1739
1740 (defcustom wl-message-header-button-alist
1741   (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1742        "<[^>\n ]+>"
1743        0 wl-message-button-refer-article  0)
1744       ("^[^:]+:"
1745        "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1746        1 wl-message-button-refer-article 3)))
1747   "Alist of headers and regexps to match buttons in message headers."
1748   :type '(repeat
1749           (list (regexp :tag "Header")
1750                 regexp
1751                 (integer :tag "Button")
1752                 (function :tag "Callback")
1753                 (repeat :tag "Data"
1754                         :inline t
1755                         (integer :tag "Regexp group"))))
1756   :group 'wl-pref)
1757
1758 (defcustom wl-message-body-button-alist
1759   '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1760     ("<[^>\n ]+@[^>\n ]+>" 0 wl-message-button-refer-article 0 1024))
1761   "Alist of regexps to match buttons in message body."
1762   :type '(repeat
1763           (list regexp
1764                 (integer :tag "Button")
1765                 (function :tag "Callback")
1766                 (repeat :tag "Data"
1767                         :inline t
1768                         (integer :tag "Regexp group"))
1769                 (integer :tag "Max Length")))
1770   :group 'wl-pref)
1771
1772 (defcustom wl-folder-window-width 20
1773   "*Width of folder window."
1774   :type 'integer
1775   :group 'wl-folder
1776   :group 'wl-pref)
1777
1778 (defcustom wl-summary-recenter t
1779   "*Recenter on redisplay."
1780   :type 'boolean
1781   :group 'wl-summary
1782   :group 'wl-pref)
1783
1784 (defcustom wl-folder-use-frame nil
1785   "*Use dedicated frame for folder mode if non-nil."
1786   :type 'boolean
1787   :group 'wl-pref)
1788
1789 (defcustom wl-summary-use-frame nil
1790   "*Use dedicated frame for each folder summary if non-nil."
1791   :type 'boolean
1792   :group 'wl-pref)
1793
1794 (defcustom wl-stay-folder-window nil
1795   "*Stay folder window when folder is selected if non-nil."
1796   :type 'boolean
1797   :group 'wl-pref)
1798
1799 (defcustom wl-reply-subject-prefix "Re: "
1800   "*Prefix of the subject of the replied message.
1801 The value is string or string valued function to be evalueted in the target
1802 message buffer."
1803   :type '(choice string function)
1804   :group 'wl-draft
1805   :group 'wl-pref)
1806
1807 (defcustom wl-forward-subject-prefix "Forward: "
1808   "*Prefix of the subject of the forwarded message.
1809 The value is string or string valued function to be evalueted in the target
1810 message buffer."
1811   :type '(choice string function)
1812   :group 'wl-draft
1813   :group 'wl-pref)
1814
1815 (defcustom wl-draft-reply-use-address-with-full-name t
1816   "*Use address with full-name in the draft of replied message."
1817   :type 'boolean
1818   :group 'wl-pref
1819   :group 'wl-draft)
1820
1821 (defcustom wl-subject-re-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1822   "*Regexp matching \"Re: \" in the subject line."
1823   :type 'regexp
1824   :group 'wl-draft
1825   :group 'wl-pref)
1826
1827 (defcustom wl-subject-forward-prefix-regexp "^[ \t]*\\(\\([Ff][Oo][Rr][Ww][Aa][Rr][Dd]\\|[Ff][Ww][Dd]\\|[Ff][Ww]\\)[:>][ \t]*\\)*[ \t]*"
1828   "*Regexp matching \"Forward: \", \"Fwd: \", or \"Fw: \" in the subject line."
1829   :type 'regexp
1830   :group 'wl-draft
1831   :group 'wl-pref)
1832
1833 (defcustom wl-folder-many-unsync-threshold 70
1834   "*Folders which contains messages more than this number are highlighted
1835 with wl-highlight-folder-many-face."
1836   :type 'integer
1837   :group 'wl-folder
1838   :group 'wl-pref)
1839
1840 (defcustom wl-fcc nil
1841   "*Folder Carbon Copy target initially added at creating draft buffer."
1842   :type '(choice (const :tag "disable" nil)
1843                  string function)
1844   :group 'wl-draft
1845   :group 'wl-pref)
1846
1847 (defcustom wl-fcc-force-as-read nil
1848   "*If non-nil, mark copied message as read."
1849   :type 'boolean
1850   :group 'wl-draft
1851   :group 'wl-pref)
1852
1853 (defcustom wl-bcc nil
1854   "*Blind Carbon Copy target initially added at creating draft buffer."
1855   :type '(choice (const :tag "disable" nil)
1856                  string)
1857   :group 'wl-draft
1858   :group 'wl-pref)
1859
1860 (defcustom wl-folder-desktop-name "Desktop"
1861   "*An implicit name of the folder top entity."
1862   :type 'string
1863   :group 'wl-folder
1864   :group 'wl-pref)
1865
1866 (defcustom wl-summary-indent-length-limit 46
1867   "*Limit of indent length for thread. Nil means unlimited"
1868   :type '(choice (const :tag "Unlimited" nil)
1869                  integer)
1870   :group 'wl-summary
1871   :group 'wl-pref)
1872
1873 (defcustom wl-summary-max-thread-depth 30
1874   "*If thread depth of the message is larger than this value, divide it."
1875   :type '(choice (const :tag "Unlimited" nil)
1876                  integer)
1877   :group 'wl-summary
1878   :group 'wl-pref)
1879
1880 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1881   "*A string displayed in summary when no from field exists."
1882   :type 'string
1883   :group 'wl-summary)
1884
1885 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1886   "*A string displayed in summary when no subject field exists."
1887   :type 'string
1888   :group 'wl-summary)
1889
1890 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1891   "*The body content of a cancel message."
1892   :type 'string
1893   :group 'wl-summary)
1894
1895 (defcustom wl-summary-width 80
1896   "*Set summary line width if non nil."
1897   :type '(choice (const :tag "Don't truncate" nil)
1898                  integer)
1899   :group 'wl-summary
1900   :group 'wl-pref)
1901
1902 (defcustom wl-summary-print-argument-within-window nil
1903   "*If non-nil, always print argument right side of window."
1904   :type 'boolean
1905   :group 'wl-summary
1906   :group 'wl-pref)
1907
1908 (defcustom wl-summary-pick-field-default "Body"
1909   "*Default field for pick."
1910   :type '(radio (const "From")
1911                 (const "Subject")
1912                 (const "To")
1913                 (const "Cc")
1914                 (const "Body")
1915                 (const "Since")
1916                 (const "Before")
1917                 (const "Last")
1918                 (const "First")
1919                 (string :tag "Other"))
1920   :group 'wl-summary)
1921
1922 (defcustom wl-mime-charset (if wl-on-mule 'x-ctext 'iso-8859-1)
1923   "*MIME Charset for summary and message."
1924   :type 'symbol
1925   :group 'wl-summary
1926   :group 'wl-pref)
1927
1928 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1929   "A function for creating User-Agent field string."
1930   :type 'function
1931   :group 'wl-draft)
1932
1933 (defcustom wl-highlight-background-mode  (if (boundp 'hilit-background-mode)
1934                                              (or hilit-background-mode 'dark)
1935                                            'dark)
1936   "*Background mode of highlight (for Old Emacsen).  'dark or 'light."
1937   :type '(radio (const dark)
1938                 (const light))
1939   :group 'wl-highlight)
1940
1941 (defcustom wl-highlight-x-face-function nil
1942   "A function to display X-Face."
1943   :type 'function
1944   :group 'wl-highlight)
1945
1946 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1947   "Location of the qmail-inject program."
1948   :type '(string :tag "Program")
1949   :group 'wl-draft)
1950
1951 (defcustom wl-qmail-inject-args nil
1952   "Arguments passed to qmail-inject programs.
1953 This should be a list of strings, one string for each argument.
1954
1955 For e.g., if you wish to set the envelope sender address so that bounces
1956 go to the right place or to deal with listserv's usage of that address, you
1957 might set this variable to '(\"-f\" \"you@some.where\")."
1958   :type '(repeat (string :tag "Argument"))
1959   :group 'wl-draft)
1960
1961 (defcustom wl-rejected-letter-start
1962   "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1963   "Regexp specifying the beginning of the wrapper around a returned letter.
1964 This wrapper is generated by the mail system when rejecting a letter."
1965   :type 'regexp
1966   :group 'wl-draft)
1967
1968 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1969   "*All headers that match this regexp will be deleted when forwarding a message."
1970   :type 'regexp
1971   :group 'wl-draft)
1972
1973 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1974   "*All headers that match this regexp will be deleted when resending a message."
1975   :type 'regexp
1976   :group 'wl-draft)
1977
1978 (defcustom wl-auto-save-drafts-interval 1
1979   "Idle interval in seconds to save draft buffers automatically.
1980 If you don't want to use this feature, set this to nil."
1981   :type '(choice (const :tag "Don't use this feature" nil)
1982                  (number :tag "Secs"))
1983   :group 'wl-draft)
1984
1985 (defcustom wl-draft-preview-attributes t
1986   "Non-nil forces to preview the attributes in the `wl-draft-preview-message'.
1987 Attributes specified in the `wl-draft-preview-attributes-list' are displayed."
1988   :type 'boolean
1989   :group 'wl-draft)
1990
1991 (defcustom wl-draft-preview-attributes-list '(recipients
1992                                               envelope-from
1993                                               smtp-posting-server
1994                                               smtp-posting-port)
1995   "*Attribute symbols to display in the draft preview.
1996 Candidates are following:
1997 `recipients'
1998 `envelope-from'
1999 `smtp-posting-server'
2000 `smtp-posting-port'
2001 `nntp-posting-server'
2002 `nntp-posting-port'
2003 Also variables which begin with `wl-' can be specified
2004 \(`wl-' have to be removed\)"
2005   :type '(repeat symbol)
2006   :group 'wl-draft)
2007
2008 (defcustom wl-draft-preview-attributes-buffer-lines 5
2009   "*Buffer height for the draft attribute preview."
2010   :type 'integer
2011   :group 'wl-draft)
2012
2013 (defcustom wl-draft-preview-attributes-buffer-name "*Preview Attributes*"
2014   "*Buffer name for the draft attribute preview."
2015   :type 'string
2016   :group 'wl-draft)
2017
2018 (defcustom wl-refile-default-from-folder "+from"
2019   "*Folder name to refile by `wl-refile-guess-by-from'."
2020   :type '(string :tag "Folder")
2021   :group 'wl-pref)
2022
2023 (defcustom wl-summary-auto-refile-skip-marks
2024   (list wl-summary-new-uncached-mark
2025         wl-summary-new-cached-mark
2026         wl-summary-unread-uncached-mark
2027         wl-summary-unread-cached-mark)
2028   "Persistent marks to skip auto-refiling."
2029   :type '(repeat (string :tag "Mark"))
2030   :group 'wl-summary)
2031
2032 (defcustom wl-summary-reserve-mark-list
2033   (list "o" "O" "D" "d" "i")
2034   "If a message is already marked as temporal marks in this list,
2035 the message is not marked by any mark command."
2036   :type '(repeat (string :tag "Temp-Mark"))
2037   :group 'wl-summary)
2038
2039 (defcustom wl-summary-skip-mark-list
2040   (list "D" "d")
2041   "If a message is already marked as temporal marks in this list,
2042 the message is skipped at cursor move."
2043   :type '(repeat (string :tag "Temp-Mark"))
2044   :group 'wl-summary)
2045
2046 (defcustom wl-summary-incorporate-marks
2047   (list wl-summary-new-uncached-mark
2048         wl-summary-unread-uncached-mark)
2049   "Persistent marks to prefetch at `wl-summary-incorporate'."
2050   :type '(repeat (string :tag "Mark"))
2051   :group 'wl-summary)
2052
2053 (defcustom wl-refile-rule-alist nil
2054   "Refile rule alist.
2055 e.x.
2056 '((\"From\"
2057    (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
2058   (\"x-ml-name\"
2059    (\"^Wanderlust\"    . \"+wl\")
2060    (\"^Elips\" . \"+elips\")))"
2061   :type '(repeat (list (string :tag "Field")
2062                        (repeat :inline t
2063                                (cons (regexp :tag "Value")
2064                                      (string :tag "Folder")))))
2065   :group 'wl-pref)
2066
2067 (defcustom wl-strict-diff-folders nil
2068   "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
2069   :type '(choice (const :tag "Off" nil)
2070                  (repeat (regexp :tag "Folder Regexp")))
2071   :group 'wl-folder)
2072
2073 (defcustom wl-folder-use-server-diff t
2074   "Checked unread message number on IMAP4 server.
2075 Only IMAP4 folders have an effect."
2076   :type 'boolean
2077   :group 'wl-folder)
2078
2079 (defcustom wl-force-fetch-folders nil
2080   "Non-nil forces to fetch subfolders when user opened an 'access' folder."
2081   :type '(choice (const :tag "off" nil)
2082                  (const :menu-tag "on" t)
2083                  (repeat (regexp :tag "Folder Regexp")))
2084   :group 'wl-folder)
2085
2086 (defcustom wl-auto-check-folder-name nil
2087   "*A folder, a group or a list of folders and groups specified which
2088 will be automatically checked at the startup time."
2089   :type '(choice (string :tag "Folder")
2090                  (repeat (string :tag "Folder"))
2091                  (const none))
2092   :group 'wl-folder)
2093
2094 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
2095   "All folders that match this list won't be checked at the startup
2096 time even if they are embedded in some groups specified by
2097 wl-auto-check-folder-name.
2098 Those folders are also skipped when you check on the Desktop.
2099 This value is preceded by wl-auto-check-folder-list.
2100 Each elements are regexp of folder name."
2101   :type '(repeat (regexp :tag "Folder Regexp"))
2102   :group 'wl-folder)
2103
2104 (defcustom wl-auto-check-folder-list nil
2105   "A list of patterns for exceptional folders against
2106 wl-auto-uncheck-folder-list.
2107 Each elements are regexp of folder name."
2108   :type '(repeat (regexp :tag "Folder Regexp"))
2109   :group 'wl-folder)
2110
2111 (defcustom wl-show-plug-status-on-modeline t
2112   "If it is non-nil, show plugged status in modeline."
2113   :type 'boolean
2114   :group 'wl-highlight)
2115
2116 (defcustom wl-plug-state-indicator-on  " [ON] "
2117   "String used to show plugged status ON."
2118   :type 'string
2119   :group 'wl-highlight)
2120
2121 (defcustom wl-plug-state-indicator-off " [--] "
2122   "String used to show plugged status OFF."
2123   :type 'string
2124   :group 'wl-highlight)
2125
2126 (defcustom wl-biff-check-folder-list nil
2127   "All folders that match this list are automatically checked
2128 every intervals specified by wl-biff-check-interval."
2129   :type '(repeat (regexp :tag "Folder"))
2130   :group 'wl-highlight)
2131
2132 (defcustom wl-biff-check-interval 40
2133   "Number of seconds between updates of new mails in the mode line."
2134   :type 'integer
2135   :group 'wl-highlight)
2136
2137 (defcustom wl-biff-use-idle-timer nil
2138   "Non-nil to use idle timer instead of strict timer for wl-biff"
2139   :type 'boolean
2140   :group 'wl-highlight)
2141
2142 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
2143                                                (not (featurep 'mule)))
2144                                           "[Mail]"
2145                                         (decode-coding-string
2146                                          ;; Youbin mark
2147                                          (read "\"[\e$B\\\")\e(B]\"")
2148                                          (if (boundp 'MULE)
2149                                              '*iso-2022-jp*
2150                                            'iso-2022-jp)))
2151   "String used to show biff status ON."
2152   :type 'string
2153   :group 'wl-highlight)
2154
2155 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
2156                                                 (not (featurep 'mule)))
2157                                            "[--]"
2158                                           ;; Japanese short hyphen
2159                                          "[\e$B!>\e(B]")
2160   "String used to show biff status OFF."
2161   :type 'string
2162   :group 'wl-highlight)
2163
2164 (defcustom wl-mode-line-display-priority-list '(biff plug title)
2165   "Displaying order of items to be shown in modeline.  The first item will
2166 be placed in the leftmost.  The significant items are `biff' and `plug';
2167 otherwise, e.g. `title', corresponds to the things except for the biff
2168 staus nor the plugged status.  The default order is '(biff plug title)
2169 even if the value of this option is set to nil.  Here are some samples:
2170
2171 ;; Plugged status first:
2172 \(setq wl-mode-line-display-priority-list '(plug))
2173
2174 ;; Biff status, Title of Wanderlust, Plugged status:
2175 \(setq wl-mode-line-display-priority-list '(biff title plug))
2176
2177 "
2178   :type '(repeat (radio (const :format "%v " biff)
2179                         (const :format "%v " plug)
2180                         (sexp :tag "Other" :value title)))
2181   :group 'wl-highlight)
2182
2183 (defcustom wl-interactive-send t
2184   "*If non-nil, require your confirmation when sending draft message."
2185   :type 'boolean
2186   :group 'wl-pref
2187   :group 'wl-setting)
2188
2189 (defcustom wl-interactive-exit t
2190   "*If non-nil, require your confirmation when exiting WL."
2191   :type 'boolean
2192   :group 'wl-pref)
2193
2194 (defcustom wl-summary-move-order 'unread
2195   "*The order of priority when move in summary mode.
2196 If this variable is `unread', precede \"U\", \"u\", \"N\", \"n\" mark.
2197 If this variable is `new', precede \"N\", \"n\" mark."
2198   :type '(radio (const new)
2199                 (const unread))
2200   :group 'wl-summary
2201   :group 'wl-setting)
2202
2203 (defvar wl-summary-move-direction-downward t)
2204
2205 (defcustom wl-summary-move-direction-toggle t
2206   "*If non-nil, search direction for the next message will be determined
2207 depends on previous search direction.
2208 It uses wl-summary-move-direction-downward as a direction flag."
2209   :type 'boolean
2210   :group 'wl-summary)
2211
2212 (defcustom wl-auto-select-first nil
2213   "*If non-nil, display selected first message when enter summary."
2214   :type 'boolean
2215   :group 'wl-pref
2216   :group 'wl-setting)
2217
2218 (defcustom wl-auto-prefetch-first nil
2219   "*If non-nil, prefetch selected first message when enter summary."
2220   :type 'boolean
2221   :group 'wl-pref
2222   :group 'wl-setting)
2223
2224 (defcustom wl-auto-select-next nil
2225   "*If non-nil, offer to go to the next folder from the end of the previous.
2226 If the value is the symbol `unread', go to the next folder
2227 that no unread message exists.  If the value is the symbol `skip-no-unread',
2228 skip the folder that no unread message exists.
2229
2230 See also variable `wl-summary-next-no-unread-command'."
2231   :type '(radio (const :tag "off" nil)
2232                 (const :tag "on" t)
2233                 (const unread)
2234                 (const skip-no-unread))
2235   :group 'wl-pref
2236   :group 'wl-setting)
2237
2238 (defcustom wl-message-buffer-name " *WL:Message*"
2239   "*Buffer name for message buffers."
2240   :group 'wl-pref
2241   :group 'wl-setting)
2242
2243 (defcustom wl-message-buffer-prefetch-folder-type-list '(imap4 nntp)
2244   "*All folder types that match this list prefetch next message,
2245 and reserved buffer cache."
2246   :type `(choice (const :tag "all" t)
2247                  (const :tag "never" nil)
2248                  (set (const localdir)
2249                       (const localnews)
2250                       (const maildir)
2251                       (const imap4)
2252                       (const nntp)
2253                       (const pop3)
2254                       (const shimbun)
2255                       (const nmz)
2256                       (const archive)
2257                       (const mark)
2258                       (const cache)))
2259   :group 'wl-pref)
2260
2261 (defcustom wl-message-buffer-prefetch-folder-list nil
2262   "*All folders that match this list prefetch next message,
2263 and reserved buffer cache.
2264 e.x.
2265 '(\"^[-%]\")"
2266   :type '(repeat (regexp :tag "Folder Regexp"))
2267   :group 'wl-pref)
2268
2269 (defcustom wl-message-buffer-prefetch-depth 1
2270   "*Depth of buffer prefetch in summary mode."
2271   :type 'integer
2272   :group 'wl-pref)
2273
2274 (defcustom wl-message-buffer-prefetch-idle-time 1
2275   "*Idle time of buffer prefetch."
2276   :type 'number
2277   :group 'wl-pref)
2278
2279 (defcustom wl-message-buffer-prefetch-threshold 30000
2280   "*Quit forward cache prefetching if message size is larger than this value."
2281   :type 'integer
2282   :group 'wl-pref)
2283
2284 (defcustom wl-summary-always-sticky-folder-list nil
2285   "All folders that match this list has sticky summary.
2286 Each elements are regexp of folder name."
2287   :type '(radio (const :tag "none" nil)
2288                 (const :tag "all" t)
2289                 (repeat (regexp :tag "Folder Regexp")))
2290   :group 'wl-pref)
2291
2292 (defcustom wl-summary-force-prefetch-folder-list nil
2293     "All folders that match this list are prefetched.
2294 Each elements are regexp of folder name."
2295     :type '(radio (const :tag "none" nil)
2296                   (const :tag "all" t)
2297                   (repeat (regexp :tag "Folder Regexp")))
2298     :group 'wl-pref)
2299
2300 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
2301   "All folders that match this list won't save its msgdb.
2302 Each elements are regexp of folder name."
2303   :type '(repeat (regexp :tag "Folder Regexp"))
2304   :group 'wl-pref)
2305
2306 (defcustom wl-save-folder-list nil
2307   "All folders that match this list save its msgdb.
2308 Each elements are regexp of folder name."
2309   :type '(repeat (regexp :tag "Folder Regexp"))
2310   :group 'wl-pref)
2311
2312 (defcustom wl-folder-mime-charset-alist
2313   '(("^-alt\\.chinese" . big5)
2314     ("^-relcom\\." . koi8-r)
2315     ("^-tw\\." . big5)
2316     ("^-han\\." . euc-kr)
2317     ("@sponichi" . shift_jis)
2318     ("@2ch" . shift_jis))
2319   "Charset alist.  If no match, `wl-mime-charset' is used."
2320   :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
2321   :group 'wl-summary
2322   :group 'wl-pref)
2323
2324 (defcustom wl-folder-weekday-name-lang-alist
2325   '(("^-alt\\.chinese" . "en")
2326     ("^-relcom\\." . "en")
2327     ("^-tw\\." . "en")
2328     ("^-han\\." . "en"))
2329   "Weekday name lang alist.
2330 If no match, `wl-summary-weekday-name-lang' is used.
2331 e.x.
2332 '((\"xemacs-beta$\" . \"en\")
2333   (\"^-fj\" . \"ja\"))"
2334   :type '(repeat (cons (regexp :tag "Folder Regexp")
2335                        (choice (const "ja")
2336                                (const "en")
2337                                (const "fr")
2338                                (const "de")
2339                                (string :tag "Other"))))
2340   :group 'wl-pref)
2341
2342 (defcustom wl-folder-thread-indent-set-alist
2343   '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
2344     ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
2345     ("^-tw\\." . (2 "+" "+" "|" "-" " "))
2346     ("^-han\\." . (2 "+" "+" "|" "-" " ")))
2347   "Thread indent set alist.
2348 If no match, following indent set is used.
2349 \(wl-thread-indent-level
2350  wl-thread-have-younger-brother-str
2351  wl-thread-youngest-child-str
2352  wl-thread-vertical-str
2353  wl-thread-horizontal-str
2354  wl-thread-space-str)
2355 e.x.
2356 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
2357   :type '(repeat (cons (regexp :tag "Folder Regexp")
2358                        (group (integer :tag "Indent")
2359                               (string :tag "Yonger Brother")
2360                               (string :tag "Yonger Child")
2361                               (string :tag "Vertical")
2362                               (string :tag "Horizontal")
2363                               (string :tag "Space"))))
2364   :group 'wl-pref)
2365
2366 (defcustom wl-folder-sync-range-alist
2367   (list (cons 'wl-require-update-all-folder-p "all"))
2368   "*Default sync range alist.  If no matches, `wl-default-sync-range' is used."
2369   :type '(repeat (cons (choice (regexp :tag "Folder Regexp")
2370                                (symbol :tag "A function"))
2371                        (choice (const "update")
2372                                (const "all")
2373                                (const "rescan")
2374                                (const "no-sync")
2375                                (const :tag "none" nil))))
2376   :group 'wl-pref)
2377
2378 (defcustom wl-default-sync-range  "update"
2379   "*Default sync range."
2380   :type '(choice (const "update")
2381                  (const "all")
2382                  (const "rescan")
2383                  (const "no-sync")
2384                  (const :tag "none" nil))
2385   :group 'wl-pref)
2386
2387 (defcustom wl-ask-range t
2388   "*If non-nil, ask for a range for summary synchronization.
2389 If nil, always use default."
2390   :type 'boolean
2391   :group 'wl-pref)
2392
2393 (defcustom wl-folder-process-duplicates-alist nil
2394   "Specify process type of duplicated messages.
2395 It should be a list of cons cell like: (REGEXP . TYPE)
2396 REGEXP is a regular expression string of folder name.
2397 TYPE is one of the symbols `hide' or `read'.
2398 `hide' means hide duplicated messages.
2399 `read' means mark as read duplicated messages.
2400 If TYPE is nil, do nothing for duplicated messages."
2401   :type '(repeat (cons (regexp :tag "Folder regexp")
2402                        (choice (const :tag "Hide" hide)
2403                                (const :tag "Mark as read" read))))
2404   :group 'wl-folder)
2405
2406 (defcustom wl-folder-move-cur-folder nil
2407   "*Non-nil, move cursor to current folder on folder buffer when goto folder."
2408   :type 'boolean
2409   :group 'wl-folder)
2410
2411 (defcustom wl-folder-check-async t
2412   "*Check the folder asynchronous."
2413   :type 'boolean
2414   :group 'wl-folder)
2415
2416 (defcustom wl-folder-notify-deleted nil
2417   "*Non-nil, display negative number on folder-mode when message is deleted
2418 in folder. If the value is 'sync, msgdb would be synchronized."
2419   :type '(choice (const :tag "off" nil)
2420                  (const :tag "on" t)
2421                  (const sync))
2422   :group 'wl-folder)
2423
2424 (defcustom wl-summary-exit-next-move t
2425   "*Non-nil, move to next-unsync or next-entity when exit summary."
2426   :type 'boolean
2427   :group 'wl-summary)
2428
2429 (defcustom wl-summary-next-no-unread-command
2430   '(wl-summary-read wl-summary-down wl-summary-up)
2431   "*Command list available when the value of `wl-auto-select-next' is 'unread
2432 or 'skip-no-unread."
2433   :type '(repeat function)
2434   :group 'wl-summary)
2435
2436 (defcustom wl-summary-search-via-nntp 'confirm
2437   "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'.
2438 If the value is 'confirm, confirm before search, 'force to search via nntp
2439 regardless of current folder type."
2440   :type '(choice (const :tag "confirm" confirm)
2441                  (const :tag "always" force)
2442                  (const :tag "in nntp folder" t)
2443                  (const :tag "never" nil))
2444   :group 'wl-summary)
2445
2446 (defcustom wl-summary-keep-cursor-command
2447   '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2448   "*Command list to keep cursor position when folder is changed to
2449 already existing summary."
2450   :type '(repeat function)
2451   :group 'wl-summary)
2452
2453 (defcustom wl-summary-showto-folder-regexp nil
2454   "Regexp specifying the folder that shows the To (or Newsgroups) field as
2455 Sender information in summary mode."
2456   :type '(choice (const :tag "none" nil)
2457                  regexp)
2458   :group 'wl-summary)
2459
2460 (defcustom wl-summary-save-file-suffix ".eml"
2461   "Suffix for the saved file name."
2462   :type 'string
2463   :group 'wl-summary)
2464
2465 (defcustom wl-folder-removed-mark "#<removed>"
2466   "Mark for removed folder."
2467   :type 'string
2468   :group 'wl-folder)
2469
2470 (defcustom wl-folder-unsubscribe-mark "#"
2471   "Mark for unsubscribe folder."
2472   :type 'string
2473   :group 'wl-folder)
2474
2475 (defcustom wl-dispose-folder-alist '(("^-" . remove)
2476                                      ("^@" . remove))
2477   "*Alist of folder and dispose policy.
2478 Each element is (folder-regexp . policy).
2479
2480 The policy is one of the followings:
2481 'remove or
2482 'null     : remove message.
2483 string    : refile to the specified folder.
2484 'trash or
2485 otherwise : refile to the `wl-trash-folder'.
2486 ex.
2487 '((\"^%\" . \"%#mh/trash\")
2488   (\"^-\" . remove)
2489   (\"^\\\\+\" . trash))"
2490   :type '(repeat (cons (regexp :tag "Folder Regexp")
2491                        (choice :tag "Policy"
2492                                (const remove)
2493                                (const :tag "remove(null)" null)
2494                                (const trash)
2495                                (const :tag "trash(other)" trash)
2496                                (string :tag "Folder"))))
2497   :group 'wl-folder)
2498
2499 (defcustom wl-folder-hierarchy-access-folders '("^-[^\\.]*\\(:\\|@\\|$\\)"
2500                                                 "^@$" "^'$")
2501   "*Access group REGEXPs to make hierarchy structure."
2502   :type '(repeat (string :tag "Regexp"))
2503   :group 'wl-folder)
2504
2505 (defcustom wl-folder-init-load-access-folders nil
2506   "*Access group folders to load folder list on `wl-folder-init'.
2507 If this variable is non-nil,
2508 `wl-folder-init-no-load-access-folders' will be ignored."
2509   :type '(repeat (regexp :tag "Folder Regexp"))
2510   :group 'wl-folder)
2511
2512 (defcustom wl-folder-init-no-load-access-folders nil
2513   "*Access group folders to not load folder list on `wl-folder-init'.
2514 If `wl-folder-init-load-access-folders' is non-nil,
2515 this variable will be ignored."
2516   :type '(repeat (regexp :tag "Folder Regexp"))
2517   :group 'wl-folder)
2518
2519 (defcustom wl-folder-access-subscribe-alist nil
2520   "*Subscribe folders to fetching folder entries.
2521 Each element is (group-regexp (subscribe folder-regexp ...)).
2522 If subscribe is non-nil, subscribe when match folder-regexp.
2523 If subscribe is nil, unsubscribe when match folder-regexp.
2524
2525 ex.
2526 '((\"^-fj$\"   . (t   \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2527   (\"^-comp$\" . (t   \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2528   (\"^-$\"     . (nil \"^-alt\" \"^-rec\")))"
2529   :type '(repeat (cons (regexp :tag "Folder Regexp")
2530                        (list (boolean :tag "Subscribed")
2531                              (repeat :inline t
2532                                      (regexp :tag "Folder Regexp")))))
2533   :group 'wl-folder)
2534
2535 ;;; For Folder Manager
2536
2537 (defcustom wl-interactive-save-folders t
2538   "*Non-nil require your confirmation when save folders."
2539   :type 'boolean
2540   :group 'wl-folder
2541   :group 'wl-setting)
2542
2543 (defcustom wl-fldmgr-make-backup t
2544   "*Non-nil make backup file when save folders."
2545   :type 'boolean
2546   :group 'wl-folder)
2547
2548 (defcustom wl-fldmgr-folders-indent "\t"
2549   "*Indent string for folders file."
2550   :type 'string
2551   :group 'wl-folder)
2552
2553 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2554   "*A function to sort folder."
2555   :type 'function
2556   :group 'wl-folder)
2557
2558 (defcustom wl-fldmgr-sort-group-first t
2559   "*Non-nil Group folder is first when sort."
2560   :type 'function
2561   :group 'wl-folder)
2562
2563 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2564   "*If non-nil, completion for adding folder refers current folder list."
2565   :type 'boolean
2566   :group 'wl-folder)
2567
2568 (defcustom wl-fldmgr-make-filter-default "Body"
2569   "*Default filter key while making filter on Folder."
2570   :type '(radio (const "From")
2571                 (const "Subject")
2572                 (const "To")
2573                 (const "Cc")
2574                 (const "Body")
2575                 (const "Since")
2576                 (const "Before")
2577                 (const "Last")
2578                 (const "First")
2579                 (string :tag "Other"))
2580   :group 'wl-folder)
2581
2582 (defcustom wl-fldmgr-allow-rename-access-group nil
2583   "*If non-nil, allow to rename folder in access group."
2584   :type 'boolean
2585   :group 'wl-folder)
2586
2587 ;;; For Expire and Archive
2588
2589 (defcustom wl-expire-alist nil
2590   "Alist to decide a policy for expire.
2591 Each element is (folder-regexp (number or date) policy).
2592
2593 The policy is one of the followings:
2594 'remove  : remove messsage.
2595 'trash   : refile `wl-trash-folder'.
2596 string   : refile string folder.
2597 function : call function.
2598
2599 ex.
2600 '((\"^\\\\+ml/wl$\"             (number 500 510) wl-expire-archive-number1 t)
2601   (\"^\\\\+ml/\"                (number 300 305) wl-expire-archive-number2)
2602   (\"^\\\\+outbox$\"            (number 300) \"$outbox;lha\")
2603   (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\"      (date 7) remove)
2604   (\"^\\\\+misc$\"              (date 14) trash))"
2605   :type '(repeat (choice (list :tag "No-match"
2606                                (regexp :tag "Folder Regexp")
2607                                (const nil))
2608                          (list :tag "Match"
2609                                (regexp :tag "Folder Regexp")
2610                                (list (radio :value number
2611                                             (const number)
2612                                             (const date))
2613                                      (list :inline t
2614                                            integer
2615                                            (repeat :inline t integer)))
2616                                (choice :tag "Policy"
2617                                        :value remove
2618                                        (const remove)
2619                                        (const trash)
2620                                        (string :tag "folder")
2621                                        function)
2622                                (repeat :inline t
2623                                        :tag "Arg for function"
2624                                        sexp))))
2625   :group 'wl-expire)
2626
2627 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2628   "Alist to decide a policy for archive.
2629 Each element is (folder-regexp policy(function)).
2630
2631 ex.
2632 '((\"\\\\+work$\" wl-archive-date)
2633   (\"\\\\+ml/\"   wl-archive-number1)
2634   (\".*\"       wl-archive-number2))"
2635   :type '(repeat (list (regexp :tag "Folder Regexp")
2636                        function
2637                        (repeat :inline t
2638                                (sexp :tag "Argument"))))
2639   :group 'wl-expire)
2640
2641 (defcustom wl-summary-expire-reserve-marks
2642   (list wl-summary-flag-mark
2643         wl-summary-new-uncached-mark
2644         wl-summary-new-cached-mark
2645         wl-summary-unread-uncached-mark
2646         wl-summary-unread-cached-mark)
2647   "Permanent marks of reserved message when expire.
2648 Don't reserve temporary mark message.
2649
2650 ex.
2651 'all  : reserved all permanent marks.
2652 'none : not reserve permanent marks.
2653 list  : reserved specified permanent marks."
2654   :type '(repeat (string :tag "Mark"))
2655   :group 'wl-expire)
2656
2657 (defcustom wl-expire-number-with-reserve-marks nil
2658   "If non-nil, include reserve message when expire by number."
2659   :type 'boolean
2660   :group 'wl-expire)
2661
2662 (defcustom wl-expire-add-seen-list t
2663   "*If non-nil, add seen message list when refile message at expire."
2664   :type 'boolean
2665   :group 'wl-expire)
2666
2667 (defcustom wl-expire-use-log nil
2668   "*If non-nil, write a log when expired."
2669   :type 'boolean
2670   :group 'wl-expire)
2671
2672 (defcustom wl-expire-folder-update-msgdb t
2673   "*Non-nil update summary msgdb when expire on folder mode."
2674   :type 'boolean
2675   :group 'wl-expire)
2676
2677 ;; for wl-expire-archive-{number1|number2}
2678 (defcustom wl-expire-archive-files 100
2679   "*The number of one archive folder."
2680   :type 'integer
2681   :group 'wl-expire)
2682
2683 ;; for wl-expire-archive-{number1|number2|date}
2684 (defcustom wl-expire-archive-get-folder-function
2685   'wl-expire-archive-get-folder
2686   "*A function to get archive folder name."
2687   :type 'function
2688   :group 'wl-expire)
2689
2690 (defcustom wl-expire-delete-oldmsg-confirm t
2691   "*If non-nil, require your confirmation when delete old message."
2692   :type 'boolean
2693   :group 'wl-expire)
2694
2695 ;; for wl-expire-archive-get-folder
2696 (defcustom wl-expire-archive-folder-type 'zip
2697   "*Archiver type of archive folder."
2698   :type '(radio (const zip)
2699                 (const lha)
2700                 (const zoo)
2701                 (const rar)
2702                 (const tar)
2703                 (const tgz)
2704                 (symbol :tag "Other"))
2705   :group 'wl-expire)
2706
2707 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2708   "*A format string for archive folder name."
2709   :type 'string
2710   :group 'wl-expire)
2711
2712 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2713   "*A regexp string for archive folder name."
2714   :type 'string
2715   :group 'wl-expire)
2716
2717 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2718                                                 ;; $folder-199812;zip
2719   "*A format string for archive date folder name."
2720   :type 'string
2721   :group 'wl-expire)
2722
2723 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2724   "*A regexp string for archive date folder name."
2725   :type 'string
2726   :group 'wl-expire)
2727
2728 (defcustom wl-expire-archive-folder-prefix nil
2729   "*Prefix for archive folder."
2730   :type '(radio (const :tag "nothing" nil)
2731                 (const :tag "full" t)
2732                 (const short))
2733   :group 'wl-expire)
2734
2735 ;;;; Highlights.
2736
2737 ;; highilght about summary
2738 (defcustom wl-highlight-max-summary-lines 10000
2739   "*If the summary is larger than this lines, don't highlight it."
2740   :type 'integer
2741   :group 'wl-highlight)
2742
2743 ;; highilght about draft and message
2744 (defcustom wl-highlight-body-too t
2745   "*In addition to header, highlight the body too.  if non nil."
2746   :type 'boolean
2747   :group 'wl-highlight)
2748
2749 (defcustom wl-highlight-message-header-alist
2750   '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2751     ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2752     ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2753   ""
2754   :type '(repeat (cons regexp face))
2755   :group 'wl-highlight)
2756
2757 (defcustom wl-highlight-citation-prefix-regexp
2758   "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2759   "All lines that match this regexp will be highlighted with
2760  `wl-highlight-message-cited-text-*' face."
2761   :type 'regexp
2762   :group 'wl-highlight)
2763
2764 (defcustom wl-highlight-highlight-citation-too nil
2765   "*Whether the whole citation line should go in the
2766 `wl-highlight-citation-face' face.
2767 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2768 default face, and the remainder of the line is in the
2769 wl-highlight-message-cited-text face."
2770   :type 'boolean
2771   :group 'wl-highlight)
2772
2773 (defcustom wl-highlight-force-citation-header-regexp
2774   "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2775   "*The pattern to match the prolog of a cited block.
2776 Text in the body of a message which matches this will be displayed in
2777 the `wl-highlight-message-headers' face."
2778   :type 'regexp
2779   :group 'wl-highlight)
2780
2781 (defcustom wl-highlight-citation-header-regexp
2782   (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2783           "^At[^\n]+\n[^\n]+wrote:\n\\|"
2784           "^.*\\(writes\\|wrote\\|said\\):\n")
2785   "*The pattern to match the prolog of a cited block.
2786 Text in the body of a message which matches this will be displayed in
2787 the `wl-highlight-message-headers' face."
2788   :type 'regexp
2789   :group 'wl-highlight)
2790
2791 (defcustom wl-highlight-max-header-size nil
2792   "*If the message header is larger than this many chars, don't highlight it.
2793 If this is nil, all headers will be highlighted."
2794   :type 'integer
2795   :group 'wl-highlight)
2796
2797 (defcustom wl-highlight-max-message-size 10000
2798   "*If the message body is larger than this many chars, don't highlight it.
2799 This is to prevent us from wasting time trying to fontify things like
2800 uuencoded files and large digests.  If this is nil, all messages will
2801 be highlighted."
2802   :type 'integer
2803   :group 'wl-highlight)
2804
2805 ;; highilght about signature (of draft and message)
2806 (defcustom wl-highlight-signature-separator
2807   '("\n--+\n" "\n\n--+.*\n*\\'")
2808   "List of regexps matching signature separator.
2809 It will be verified from head to tail looking for a separator.
2810 Verification will be done from the end of the buffer.
2811 No need to specify \"^-- $\" in this list,
2812 because it is verified by default.
2813 This variable can also be a regex."
2814   :type '(repeat regexp)
2815   :group 'wl-highlight)
2816
2817 (defcustom wl-max-signature-size 400
2818   "*If the signature is larger than this chars, don't treat it as a signature."
2819   :type 'integer
2820   :group 'wl-highlight)
2821
2822 ;; highilght about mouse
2823 (defcustom wl-use-highlight-mouse-line (and window-system
2824                                             (>= emacs-major-version 19))
2825   "*Highlight mouse line, if non-nil."
2826   :type 'boolean
2827   :group 'wl-highlight)
2828
2829 (defcustom wl-highlight-summary-line-help-echo-alist
2830   '((flag wl-highlight-flag-folder-help-echo)
2831     (nmz elmo-message-file-name))
2832   "*Alist to display help-echo in summary buffer.
2833 Each element is (folder-type handler(function)).
2834 Handler take two arguments elmo-folder and message number and return string."
2835   :type 'boolean
2836   :group 'wl-highlight)
2837
2838 ;; highilght about folder
2839 (defcustom wl-highlight-folder-with-icon
2840   (or (and (featurep 'xemacs)
2841            (featurep 'xpm))
2842       wl-on-emacs21)
2843   "*Highlight folder with icon(XEmacs or Emacs 21)."
2844   :type 'boolean
2845   :group 'wl-highlight)
2846
2847 (defcustom wl-highlight-folder-by-numbers t
2848   "Highlight folder lines by numbers.
2849 If it is a number, only numbers will be highlighted."
2850   :type '(choice (const :tag "whole line" t)
2851                  (const :tag "only numbers" 1)
2852                  (const :tag "don't highlight" nil))
2853   :group 'wl-highlight)
2854
2855 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2856   "Function to search signature area in the message body."
2857   :type 'function
2858   :group 'wl-highlight)
2859
2860 (defcustom wl-use-dnd (and wl-on-xemacs
2861                            (featurep 'dragdrop))
2862   "If Non-nil, support dragdrop feature in XEmacs."
2863   :type 'boolean
2864   :group 'wl-pref)
2865
2866 (defcustom wl-reset-plugged-alist t
2867   "*If non-nil, reset `elmo-plugged-alist' when startup."
2868   :type 'boolean
2869   :group 'wl-pref)
2870
2871 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2872                                         (module-installed-p 'image)
2873                                         (module-installed-p 'bitmap))
2874                                     t)
2875   "If it is T, show graphic logo in the startup screen.  You can set it to
2876 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2877   :type '(radio (const :tag "Off" nil)
2878                 (const :tag "On (any format)" t)
2879                 (const xpm)
2880                 (const xbm)
2881                 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2882   :group 'wl-pref)
2883
2884 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2885   "*A string displayed when invalid character exists."
2886   :type 'string
2887   :group 'wl-pref)
2888
2889 ;;; Internal variables
2890 (defvar wl-init nil)
2891
2892 ;; For disconnected operations.
2893 (defvar wl-plugged-hook nil)
2894 (defvar wl-unplugged-hook nil)
2895 (defcustom wl-plugged t
2896   "*Plugged state at the startup.  Nil means off-line."
2897   :type 'boolean
2898   :group 'wl
2899   :group 'wl-setting)
2900
2901 ;; Internal variables used to modeline identifiers.
2902 (defvar wl-modeline-plug-status nil)
2903 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2904 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2905 (defvar wl-modeline-biff-status nil)
2906 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2907 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2908
2909 ;; Advanced thread view.
2910 (defvar wl-thread-indent-level (if wl-on-mule 1 2)
2911   "*Indent level for thread.")
2912 (defvar wl-thread-have-younger-brother-str (if wl-on-mule "\e$B(2\e(B" "+")
2913   "*A string for thread branch line.  It should contain one character.")
2914 (defvar wl-thread-youngest-child-str       (if wl-on-mule "\e$B(1\e(B" "+")
2915   "*A string for thread branch line.  It should contain one character.")
2916 (defvar wl-thread-vertical-str             (if wl-on-mule "\e$B(-\e(B" "|")
2917   "*A string for thread branch line.  It should contain one character.")
2918 (defvar wl-thread-horizontal-str           (if wl-on-mule "\e$B(,\e(B" "-")
2919   "*A string for thread branch line.  It should contain one character.")
2920 (defvar wl-thread-space-str                (if wl-on-mule "\e$B!!\e(B" " ")
2921   "*A string for thread branch line.  It should contain one character.")
2922
2923 ;; folder icons. filename relative to wl-icon-directory
2924 (defvar wl-opened-group-folder-icon "opened.xpm"
2925   "*Icon file for opened group folder.")
2926 (defvar wl-closed-group-folder-icon "closed.xpm"
2927   "*Icon file for closed group folder.")
2928 (defvar wl-nntp-folder-icon "news.xpm"
2929   "*Icon file for nntp folder.")
2930 (defvar wl-imap-folder-icon "imap.xpm"
2931   "*Icon file for imap folder.")
2932 (defvar wl-pop-folder-icon  "pop.xpm"
2933   "*Icon file for pop folder.")
2934 (defvar wl-localdir-folder-icon "local.xpm"
2935   "*Icon file for localdir folder.")
2936 (defvar wl-localnews-folder-icon "localnews.xpm"
2937   "*Icon file for localnews folder.")
2938 (defvar wl-internal-folder-icon "internal.xpm"
2939   "*Icon file for internal folder.")
2940 (defvar wl-multi-folder-icon "multi.xpm"
2941   "*Icon file for multi folder.")
2942 (defvar wl-filter-folder-icon "filter.xpm"
2943   "*Icon file for filter folder.")
2944 (defvar wl-archive-folder-icon "archive.xpm"
2945   "*Icon file for archive folder.")
2946 (defvar wl-pipe-folder-icon "pipe.xpm"
2947   "*Icon file for pipe folder.")
2948 (defvar wl-nmz-folder-icon "nmz.xpm"
2949   "*Icon file for namazu folder.")
2950 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2951   "*Icon file for shimbun folder.")
2952 (defvar wl-file-folder-icon "file.xpm"
2953   "*Icon file for file folder.")
2954 (defvar wl-maildir-folder-icon "maildir.xpm"
2955   "*Icon file for maildir folder.")
2956 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2957   "*Icon file for emptied trash folder.")
2958 (defvar wl-trash-folder-icon "trash.xpm"
2959   "*Icon file for trash folder.")
2960 (defvar wl-draft-folder-icon "draft.xpm"
2961   "*Icon file for draft folder.")
2962 (defvar wl-queue-folder-icon "queue.xpm"
2963   "*Icon file for queue folder.")
2964 (defvar wl-plugged-icon "plugged.xpm"
2965   "*Icon file for plugged state.")
2966 (defvar wl-unplugged-icon "unplugged.xpm"
2967   "*Icon file for unplugged state.")
2968 (defvar wl-biff-mail-icon "letter.xpm"
2969   "*Icon file for mail existed state.")
2970 (defvar wl-biff-nomail-icon "no-letter.xpm"
2971   "*Icon file for no mail existed state.")
2972 (defvar wl-prog-uudecode "uudecode"
2973   "*uudecode program name.")
2974 (defvar wl-prog-uudecode-arg nil
2975   "*Arguments for uudecode program.")
2976 (defvar wl-prog-uudecode-no-stdout-option t
2977   "*If non-nil, uudecode program don't have option for output to stdout.")
2978
2979 ;; plug
2980 (defvar wl-plugged-plug-on "ON")
2981 (defvar wl-plugged-plug-off "--")
2982 (defvar wl-plugged-auto-off "**")
2983 (defvar wl-plugged-server-indent 2)
2984 (defvar wl-plugged-port-indent 4)
2985 (defvar wl-plugged-queue-status-column 25)
2986
2987 ;;;; Obsolete variables.
2988
2989 ;; 2003-11-05
2990 (elmo-define-obsolete-variable 'wl-summary-new-mark
2991                                'wl-summary-new-uncached-mark)
2992
2993 ;; 2003-07-15 delete -> dispose
2994 (elmo-define-obsolete-variable 'wl-delete-folder-alist
2995                                'wl-dispose-folder-alist)
2996
2997 ;; 2002-12-25
2998 (elmo-define-obsolete-variable 'wl-draft-reply-myself-with-argument-list
2999                                'wl-draft-reply-with-argument-list)
3000 (elmo-define-obsolete-variable 'wl-draft-reply-myself-without-argument-list
3001                                'wl-draft-reply-without-argument-list)
3002
3003 ;; 2001-12-11: *-dir -> *-directory
3004 (elmo-define-obsolete-variable 'wl-icon-dir
3005                                'wl-icon-directory)
3006 (elmo-define-obsolete-variable 'wl-mime-save-dir
3007                                'wl-mime-save-directory)
3008 (elmo-define-obsolete-variable 'wl-score-files-dir
3009                                'wl-score-files-directory)
3010 (elmo-define-obsolete-variable 'wl-tmp-dir
3011                                'wl-temporary-file-directory)
3012
3013 ;; 2001-12-10
3014 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
3015                                'elmo-folder-update-threshold)
3016 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
3017                                'elmo-message-fetch-threshold)
3018
3019 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
3020                                'wl-message-buffer-prefetch-folder-type-list)
3021 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
3022                                'wl-message-buffer-prefetch-folder-list)
3023
3024 ;; 2001-02-27: *-func -> *-function
3025 (elmo-define-obsolete-variable 'wl-summary-from-func
3026                                'wl-summary-from-function)
3027 (elmo-define-obsolete-variable 'wl-summary-subject-func
3028                                'wl-summary-subject-function)
3029 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
3030                                'wl-summary-subject-filter-function)
3031 (elmo-define-obsolete-variable 'wl-draft-send-func
3032                                'wl-draft-send-function)
3033 (elmo-define-obsolete-variable 'wl-draft-send-news-func
3034                                'wl-draft-send-news-function)
3035 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
3036                                'wl-draft-send-mail-function)
3037 (elmo-define-obsolete-variable 'wl-print-buffer-func
3038                                'wl-print-buffer-function)
3039 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
3040                                'wl-ps-print-buffer-function)
3041 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
3042                                'wl-generate-mailer-string-function)
3043 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
3044                                'wl-highlight-x-face-function)
3045 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
3046                                'wl-fldmgr-sort-function)
3047 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
3048                                'wl-expire-archive-get-folder-function)
3049 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
3050                                'wl-highlight-signature-search-function)
3051
3052 ;; 2000-01-25: temp mark -> target mark
3053 (elmo-define-obsolete-variable 'wl-summary-temp-above
3054                                'wl-summary-target-above)
3055
3056 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
3057 (defvar wl-draft-prepared-config-alist nil)
3058 (make-obsolete-variable 'wl-draft-prepared-config-alist
3059                         'wl-draft-config-alist)
3060
3061 ;; 1999-10-10
3062 (elmo-define-obsolete-variable 'wl-address-filename
3063                                'wl-address-file)
3064 (elmo-define-obsolete-variable 'wl-score-default-file-name
3065                                'wl-score-default-file)
3066
3067
3068 (require 'product)
3069 (product-provide (provide 'wl-vars) (require 'wl-version))
3070
3071 ;;; wl-vars.el ends here