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