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