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