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