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