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