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