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