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