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