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