3146152ea6f6d44efe0df19ad699fa5fdb0ccea9
[elisp/wanderlust.git] / wl / wl-vars.el
1 ;;; wl-vars.el -- Variable definitions for Wanderlust.
2
3 ;; Copyright 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
4
5 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
6 ;; Keywords: mail, net news
7 ;; Time-stamp: <00/03/25 00:19:06 teranisi>
8
9 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
10
11 ;; This program is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
15 ;;
16 ;; This program is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 ;; GNU General Public License for more details.
20 ;;
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25 ;;
26
27 ;;; Commentary:
28 ;; 
29
30 ;;; Code:
31 ;; 
32
33 (require 'elmo-vars)
34
35 (if (module-installed-p 'custom)
36     (require 'custom))
37
38 (defconst wl-appname  "Wanderlust")
39 (defconst wl-version  elmo-version) ; equals to ELMO version.
40 (defconst wl-codename "Purple Rain")
41
42 ;;; Customizable Variables
43
44 (defgroup wl nil
45   "Wanderlust, a news and mail reading software."
46   :tag "Wanderlust"
47   :link '(custom-manual "(wl-ja)Top")
48   :group 'news
49   :group 'mail)
50
51 (defgroup wl-pref nil
52   "Wanderlust, Preferences."
53   :prefix "wl-"
54   :group 'wl)
55
56 (defgroup wl-folder nil
57   "Wanderlust, folder buffer."
58   :prefix "wl-"
59   :group 'wl)
60
61 (defgroup wl-summary nil
62   "Wanderlust, summary buffer."
63   :prefix "wl-"
64   :group 'wl)
65
66 (defgroup wl-summary-marks nil
67   "Wanderlust, marks used in summary buffers."
68   :prefix "wl-summary-"
69   :group 'wl-summary)
70
71 (defgroup wl-expire nil
72   "Wanderlust, Expiring and archiving."
73   :prefix "wl-"
74   :group 'wl)
75
76 (defgroup wl-score nil
77   "Wanderlust, Score file handling."
78   :prefix "wl-"
79   :group 'wl)
80
81 (defgroup wl-highlight nil
82   "Wanderlust, Highlights."
83   :prefix "wl-"
84   :group 'wl)
85
86 (defgroup wl-draft nil
87   "Wanderlust, draft mode."
88   :prefix "wl-"
89   :group 'wl)
90
91 ;;; Emacsen
92 (defconst wl-on-emacs20 (> emacs-major-version 19))
93
94 (defconst wl-on-xemacs (featurep 'xemacs))
95
96 (defconst wl-on-nemacs (fboundp 'nemacs-version))
97
98 (defconst wl-on-mule (featurep 'mule))
99
100 (defconst wl-on-mule3
101   (and wl-on-mule (or wl-on-xemacs wl-on-emacs20)))
102
103 (require 'elmo-vars)
104
105 (eval-when-compile
106   (defun-maybe locate-data-directory (a)))
107
108 (defvar wl-cs-noconv
109   (cond (wl-on-mule3 'binary)
110         (wl-on-mule  '*noconv*)
111         (wl-on-nemacs 0)
112         (t           nil)))
113
114 (defvar wl-cs-autoconv
115   (cond (wl-on-mule3 'undecided)
116         (wl-on-mule  '*autoconv*)
117         (wl-on-nemacs 2) ; junet...
118         (t           nil)))
119
120 (defvar wl-cs-local
121   (cond (wl-on-mule3  'junet)
122         (wl-on-mule   '*junet*)
123         (wl-on-nemacs 2)
124         (t           nil)))
125
126 (defvar wl-cs-cache wl-cs-local)
127
128 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
129   "*Use SEMI or not")
130
131 (defcustom wl-from (if (boundp 'user-mail-address)
132                        user-mail-address)
133   "*From string used in draft."
134   :type 'string
135   :group 'wl)
136
137 (defcustom wl-user-mail-address-list nil
138   "*A list of user's mail addresses. 
139 This list is used to judge whether an address is user's or not.
140 You should set this variable if you use multiple e-mail addresses.
141 If you don't have multiple e-mail addresses, you don't have to set this."
142   :type '(repeat string)
143   :group 'wl)
144
145 (defcustom wl-organization nil
146   "Organization name."
147   :type '(choice (const :tag "none" nil)
148                  string)
149   :group 'wl)
150
151 (defcustom wl-tmp-dir "~/tmp/"
152   "*Default temporary directory to save message, part."
153   :type 'directory
154   :group 'wl)
155
156 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
157                            (locate-data-directory "wl"))
158   "*Icon directory (XEmacs)."
159   :type '(choice (const :tag "none" nil)
160                  string)
161   :group 'wl)
162
163 (defcustom wl-summary-from-func 'wl-summary-default-from
164   "*A function for displaying sender (From: field) information."
165   :type 'function
166   :group 'wl-summary)
167
168 (defcustom wl-summary-subject-func 'wl-summary-default-subject
169   "*A function for displaying subject."
170   :type 'function
171   :group 'wl-summary)
172
173 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
174   "*A filter function for comparing subjects."
175   :type 'function
176   :group 'wl-summary)
177
178 (defcustom wl-summary-update-confirm-threshold 500
179   "*Confirm updating summary if message number is larger than this value."
180   :type 'integer
181   :group 'wl-summary)
182
183 ;; Important folders
184 (defcustom wl-default-folder "%inbox"
185   "*Default folder used in wl-summary-goto-folder."
186   :type 'string
187   :group 'wl)
188 (defcustom wl-draft-folder "+draft"
189   "*Draft folder"
190   :type 'string
191   :group 'wl)
192 (defcustom wl-trash-folder "+trash"
193   "*Trash folder"
194   :type 'string
195   :group 'wl)
196 (defcustom wl-queue-folder "+queue"
197   "*Queue folder"
198   :type 'string
199   :group 'wl)
200
201 (defcustom wl-default-spec "%"
202   "*Default spec"
203   :type 'string
204   :group 'wl)
205
206 (defcustom wl-insert-mail-followup-to nil
207   "*Insert Mail-Followup-To: field if non-nil."
208   :type 'boolean
209   :group 'wl-draft)
210
211 (defcustom wl-insert-mail-reply-to nil
212   "*Insert Mail-Reply-To: field if non-nil."
213   :type 'boolean
214   :group 'wl-draft)
215
216 (defcustom wl-insert-message-id t
217   "*Insert Message-ID: field if non-nil."
218   :type 'boolean
219   :group 'wl-draft)
220
221 (defcustom wl-auto-insert-x-face t
222   "*Insert X-Face: field automatically"
223   :type 'boolean
224   :group 'wl-draft)
225
226 (defcustom wl-x-face-file "~/.xface"
227   "*If file exists and `wl-auto-insert-x-face' is non-nil, 
228 X-Face field is inserted using its contents."
229   :type 'file
230   :group 'wl-draft)
231
232 (defcustom wl-subscribed-mailing-list nil
233   "*Subscribed mailing list. You had better set this variable 
234 if you set wl-insert-mail-followup-to as t."
235   :type '(repeat string)
236   :group 'wl-pref)
237
238 (defcustom wl-demo t
239   "*Display demo at start time."
240   :type 'boolean
241   :group 'wl-pref)
242
243 (defcustom wl-envelope-from nil
244   "*Envelope From used in SMTP.
245 If nil, wl-from is used."
246   :type '(choice (const :tag "Same as 'From' field." nil)
247                  string)
248   :group 'wl)
249
250 (defcustom wl-smtp-connection-type nil
251   "*SMTP connection type.
252 If nil, default smtp connection type is used."
253   :type '(choice (const :tag "default" nil)
254                  (const :tag "Use STARTTLS" starttls)
255                  symbol)
256   :group 'wl)
257
258 (defcustom wl-smtp-posting-user nil
259   "*SMTP authentication user. "
260   :type '(choice (const :tag "none" nil)
261                  string)
262   :group 'wl)
263
264 (defcustom wl-smtp-posting-server nil
265   "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
266   :type 'string
267   :group 'wl)
268
269 (defcustom wl-smtp-posting-port nil
270   "*SMTP port number in `wl-smtp-posting-server'.
271 If nil, default SMTP port number(25) is used."
272   :type '(choice (const :tag "Default (25)" nil)
273                  integer)
274   :group 'wl)
275
276 (defcustom wl-smtp-authenticate-type nil
277   "*SMTP Authentication type. 
278 If nil, don't authenticate."
279   :type '(choice (const :tag "none" nil)
280                  (const :tag "PLAIN" "plain")
281                  (const :tag "CRAM-MD5" "cram-md5")
282                  (const :tag "LOGIN" "login")
283                  (string :tag "Other"))
284   :group 'wl)
285
286 (defcustom wl-pop-before-smtp-user nil
287   "*POP3 user name to send mail using POP-before-SMTP.
288 If nil, elmo-default-pop3-user is used.
289 To use POP-before-SMTP,
290 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
291   :type '(choice (const :tag "none" nil)
292                  string)
293   :group 'wl)
294
295 (defcustom wl-pop-before-smtp-server nil
296   "*POP3 server for POP-before-SMTP.
297 If nil, elmo-default-pop3-server is used."
298   :type '(choice (const :tag "none" nil)
299                  string)
300   :group 'wl)
301
302 (defcustom wl-pop-before-smtp-port nil
303   "*POP3 port for POP-before-SMTP.
304 If nil, elmo-default-pop3-port is used."
305   :type '(choice (const :tag "none" nil)
306                  integer string)
307   :group 'wl)
308
309 (defcustom wl-pop-before-smtp-ssl nil
310   "*Non-nil forces using SSL by default for POP-before-SMTP.
311 If nil, elmo-default-pop3-ssl is used."
312   :type 'boolean
313   :group 'wl)
314
315 (defcustom wl-pop-before-smtp-authenticate-type nil
316   "*Default Authentication type for POP-before-SMTP
317 If nil, elmo-default-pop3-authenticate-type is used."
318   :type '(choice (const :tag "none" nil)
319                  (const :tag "APOP" "apop")
320                  (const :tag "POP3" "user"))
321   :group 'wl)
322
323 (defcustom wl-nntp-posting-server nil
324   "*NNTP server name to post news.
325 If nil, elmo-default-nntp-server is used."
326   :type '(choice (const :tag "none" nil)
327                  string)
328   :group 'wl)
329 (defcustom wl-nntp-posting-user nil
330   "*NNTP user name to post news for authinfo.
331 If nil, elmo-default-nntp-user is used.
332 If nil, don't authenticate."
333   :type '(choice (const :tag "none" nil)
334                  string)
335   :group 'wl)
336 (defcustom wl-nntp-posting-port nil
337   "*NNTP port to post news.
338 If nil, elmo-default-nntp-port is used."
339   :type '(choice (const :tag "none" nil)
340                  integer string)
341   :group 'wl)
342 (defcustom wl-nntp-posting-ssl nil
343   "*Non-nil forces using SSL to post news.
344 If nil, elmo-default-nntp-ssl is used."
345   :type 'boolean
346   :group 'wl)
347
348 (defcustom wl-fetch-confirm-threshold 30000
349   "*Confirm fetching if message size is larger than this value."
350   :type 'integer
351   :group 'wl-pref)
352
353 (defcustom wl-prefetch-confirm t
354   "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
355   :type 'boolean
356   :group 'wl-pref)
357
358 (defcustom wl-prefetch-threshold 30000
359   "*Maximum size of message prefetched without confirmation.
360 If nil, all messages prefetched regardless of its size.
361 If message size is larger than this value, confirm prefetching
362 when `wl-prefetch-confirm' is non-nil."
363   :type '(choice (integer :tag "Threshold (bytes)")
364                  (const :tag "No limitation" nil))
365   :group 'wl-pref)
366
367 (defcustom wl-cache-prefetch-threshold 30000
368   "*Quit forward cache prefetching if message size is larger than this value."
369   :type 'integer
370   :group 'wl-pref)
371
372 (defcustom wl-thread-insert-opened nil
373   "*Non-nil forces to insert thread as opened in updating."
374   :type 'boolean
375   :group 'wl-summary)
376
377 (defcustom wl-thread-open-reading-thread t
378   "*Non-nil forces to open reading thread."
379   :type 'boolean
380   :group 'wl-summary)
381
382 ;;;; Hooks
383 (defvar wl-folder-mode-hook nil
384   "A hook called when wanderlust folder mode is started.")
385 (defvar wl-summary-toggle-disp-on-hook nil
386   "A hook called when message is toggled.")
387 (defvar wl-summary-toggle-disp-off-hook nil
388   "A hook called when message is disappeared.")
389 (defvar wl-summary-toggle-disp-folder-on-hook nil
390   "A hook called when folder is toggled.")
391 (defvar wl-summary-toggle-disp-folder-off-hook nil
392   "A hook called when folder is disappeared.")
393 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
394   "A hook called when message window is resumed when folder is toggled.")
395 (defvar wl-summary-mode-hook nil
396   "A hook called when summary mode is started.")
397 (defvar wl-summary-prepared-pre-hook nil
398   "A hook called before the summary buffer has been generated.")
399 (defvar wl-summary-prepared-hook nil
400   "A hook called after the summary buffer has been generated.")
401 (defvar wl-summary-sync-updated-hook nil
402   "A hook called when update summary buffer.")
403 (defvar wl-summary-unread-message-hook nil
404   "A hook called when unread message is displayed.")
405 (defvar wl-summary-edit-addresses-hook nil
406   "A hook called when address book is edited.")
407 (defvar wl-summary-divide-thread-when-subject-changed nil
408   "Divide thread when subject is changed.")
409 (defvar wl-init-hook nil
410   "A hook called when initialization is finished.")
411 (defvar wl-hook nil
412   "A hook called when Wanderlust is invoked.")
413 (defvar wl-reply-hook nil
414   "A hook called when replied.")
415 (defvar wl-mail-setup-hook nil
416   "A hook called when Draft is prepared.")
417 (defvar wl-draft-reedit-hook nil
418   "A hook called when Draft is re-edited.")
419 (defvar wl-draft-send-hook nil
420   "A hook called on the draft editing buffer before sending process starts.")
421 (defvar wl-mail-send-pre-hook nil
422   "A hook called just before the mail sending process starts.")
423 (defvar wl-news-send-pre-hook nil
424   "A hook called just before the news sending process starts.")
425 (defvar wl-message-buffer-created-hook nil
426   "A hook called when Message buffer is prepared.")
427 (defvar wl-message-redisplay-hook nil
428   "A hook called when Message is displayed.")
429 (defvar wl-message-exit-hook nil
430   "A hook called when quit message.")
431 (defvar wl-summary-exit-hook nil
432   "A hook called when exit summary mode.")
433 (defvar wl-highlight-headers-hook nil
434   "A hook called when header is highlighted.")
435 (defvar wl-highlight-message-hook nil
436   "A hook called when message is highlighted.")
437 (defvar wl-exit-hook nil
438   "A hook called when exit wanderlust.")
439 (defvar wl-folder-suspend-hook nil
440   "A hook called when suspend wanderlust.")
441 (defvar wl-auto-check-folder-pre-hook nil
442   "A hook called before auto check folders.")
443 (defvar wl-auto-check-folder-hook nil
444   "A hook called when auto check folders.")
445 (defvar wl-folder-check-entity-pre-hook nil
446   "A hook called before check entity.")
447 (defvar wl-folder-check-entity-hook nil
448   "A hook called when check entity.")
449 (defvar wl-draft-config-exec-hook nil
450   "A hook called when execute header-config on draft.")
451 (defvar wl-summary-expire-pre-hook nil
452   "A hook called before expire.")
453 (defvar wl-summary-expire-hook nil
454   "A hook called when expired.")
455 (defvar wl-summary-archive-pre-hook nil
456   "A hook called before archive.")
457 (defvar wl-summary-archive-hook nil
458   "A hook called when archived.")
459 (defvar wl-summary-line-inserted-hook nil
460   "A hook called when summary line is inserted.")
461 (defvar wl-thread-update-children-number-hook nil
462   "A hook called when children number is updated.")
463 (defvar wl-folder-update-access-group-hook nil
464   "A hook called when update access group folder.")
465 (defvar wl-draft-cited-hook nil
466   "A hook called after a message is cited.")
467 (defvar wl-draft-insert-x-face-field-hook nil
468   "A hook called after a x-face field is inserted.")
469 (defvar wl-template-mode-hook nil
470   "A hook called when template mode is started.")
471 (defvar wl-score-mode-hook nil
472   "A hook called when score mode is started.")
473 (defvar wl-make-plugged-hook nil
474   "A hook called when make plugged alist.")
475 (defvar wl-plugged-exit-hook nil
476   "A hook called when exit plugged mode.")
477
478 ;;;; functions for draft
479 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
480   "A function to send message."
481   :type 'function
482   :group 'wl-draft)
483
484 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
485   "A function to send news."
486   :type 'function
487   :group 'wl-draft)
488
489 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
490   "A function to send mail.
491 Prepared candidates are 'wl-draft-send-mail-with-smtp,
492 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
493   :type '(radio (function-item wl-draft-send-mail-with-smtp)
494                 (function-item wl-draft-send-mail-with-qmail)
495                 (function-item wl-draft-send-mail-with-pop-before-smtp)
496                 (function :tag "Other"))
497   :group 'wl-draft)
498
499 (defcustom wl-draft-reply-with-argument-list
500   '(("Reply-To" . (("Reply-To") nil nil))
501     ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
502     ("From" . (("From") nil nil)))
503   "Alist of cons cell of 
504 ('field-name' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
505 If car of each cons cell exists in original message,
506 cdr of each cons cell is used for draft message.
507 Default is for 'reply-to-author'."
508   :type '(repeat (cons (choice (string :tag "Field Name")
509                                (repeat (string :tag "Field Name")))
510                        (list (repeat :tag "Fields For To" string)
511                              (repeat :tag "Fields For Cc" string)
512                              (repeat :tag "Fields For Newsgroups" string))))
513   :group 'wl-draft)
514   
515 (defcustom wl-draft-reply-without-argument-list
516   '(("Followup-To" . (nil nil ("Followup-To")))
517     ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
518     ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
519   "Alist of cons cell of 
520 ('field-name' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
521 'field-name' is a string.
522 'fields for ***' is a list of strings.
523 If car of each cons cell exists in original message,
524 cdr of each cons cell is used for draft message.
525 Default is for 'reply-to-all'."
526   :type '(repeat (cons (choice (string :tag "Field Name")
527                                (repeat (string :tag "Field Name")))
528                        (list (repeat :tag "Fields For To" string)
529                              (repeat :tag "Fields For Cc" string)
530                              (repeat :tag "Fields For Newsgroups" string))))
531   :group 'wl-draft)
532
533 (defcustom wl-draft-always-delete-myself nil
534   "*Always delete myself from reciepient if non-nil."
535   :type 'boolean
536   :group 'wl-draft)
537
538 (defcustom wl-draft-resume-folder-window t
539   "*Resume folder window in wl-draft-hide"
540   :type 'boolean
541   :group 'wl-draft)
542
543 (defcustom wl-draft-use-frame nil
544   "*Raise new frame when composing draft."
545   :type 'boolean
546   :group 'wl-draft)
547
548 (defcustom wl-draft-qmail-send-plugged nil
549   "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
550   :type 'boolean
551   :group 'wl-draft)
552
553 ;;;; 
554 (defcustom wl-init-file "~/.wl"
555   "*User customization setting file."
556   :type 'file
557   :group 'wl)
558
559 (defcustom wl-folders-file "~/.folders"
560   "*Folders file"
561   :type 'file
562   :group 'wl)
563
564 (defcustom wl-address-file "~/.addresses"
565   "*Addresses file"
566   :type 'file
567   :group 'wl)
568
569 (defcustom wl-alias-file "~/.im/Aliases"
570   "*Alias file for completion"
571   :type 'file
572   :group 'wl)
573
574 (defcustom wl-folder-info-save t
575   "If non-nil, save elmo-folder-info-alist."
576   :type 'boolean
577   :group 'wl-folder)
578
579 (defcustom wl-summary-unread-mark "!"
580   "Mark for unread message."
581   :type '(string :tag "Mark")
582   :group 'wl-summary-marks)
583 (defcustom wl-summary-important-mark "$"
584   "Mark for important message."
585   :type '(string :tag "Mark")
586   :group 'wl-summary-marks)
587 (defcustom wl-summary-new-mark "N"
588   "Mark for new message."
589   :type '(string :tag "Mark")
590   :group 'wl-summary-marks)
591 (defcustom wl-summary-unread-uncached-mark "U"
592   "Mark for unread and uncached message."
593   :type '(string :tag "Mark")
594   :group 'wl-summary-marks)
595 (defcustom wl-summary-unread-cached-mark "!"
596   "Mark for unread but already cached message."
597   :type '(string :tag "Mark")
598   :group 'wl-summary-marks)
599 (defcustom wl-summary-read-uncached-mark "u"
600   "Mark for read but uncached message."
601   :type '(string :tag "Mark")
602   :group 'wl-summary-marks)
603 (defcustom wl-summary-score-over-mark "+"
604   "Score mark used for messages with high scores."
605   :type '(string :tag "Mark")
606   :group 'wl-summary-marks)
607 (defcustom wl-summary-score-below-mark "-"
608   "Score mark used for messages with low scores."
609   :type '(string :tag "Mark")
610   :group 'wl-summary-marks)
611
612 (defcustom wl-summary-no-mime-folder-list
613   (list (concat "^" (regexp-quote wl-draft-folder) "$"))
614   "*All folders that match this list don't analysis mime."
615   :type '(repeat string)
616   :group 'wl-summary)
617
618 (defcustom wl-summary-fix-timezone "JST"
619   "Non-nil forces to fix timezone of summary date."
620   :type 'string
621   :group 'wl-summary)
622
623 (defcustom wl-summary-default-score 0
624   "*Default message score level.
625 All scores generated by the score files will be added to this score.
626 If this variable is nil, scoring will be disabled."
627   :type '(choice (const :tag "disable" nil)
628                  integer)
629   :group 'wl-score)
630
631 (defcustom wl-summary-important-above nil
632   "*Mark all messages with a score above this variable as important.
633 This variable is local to the summary buffers."
634   :type '(choice (const :tag "off" nil)
635                  integer)
636   :group 'wl-score)
637
638 (defcustom wl-summary-temp-above nil
639   "*Mark all messages with a score above this variable as temp.
640 This variable is local to the summary buffers."
641   :type '(choice (const :tag "off" nil)
642                  integer)
643   :group 'wl-score)
644
645 (defcustom wl-summary-mark-below 0
646   "*Mark all messages with a score below this variable as read.
647 This variable is local to each summary buffer and usually set by the
648 score file."
649   :type 'integer
650   :group 'wl-score)
651
652 (defcustom wl-summary-expunge-below nil
653   "All messages that have a score less than this variable will be expunged.
654 This variable is local to the summary buffers."
655   :type '(choice (const :tag "off" nil)
656                  integer)
657   :group 'wl-score)
658
659 (defcustom wl-summary-score-marks 
660   (list wl-summary-new-mark)
661   "Persistent marks to scoring."
662   :type '(repeat (string :tag "Mark"))
663   :group 'wl-score)
664
665 (defcustom wl-use-scoring (not wl-on-nemacs)
666   "*If non-nil, enable scoring."
667   :type 'boolean
668   :group 'wl-pref)
669
670 (defcustom wl-summary-rescore-partial-threshold 200
671   "*Summary is not scored entirely if there are messages more than this value
672 in sync-all or rescan."
673   :type 'integer
674   :group 'wl-score)
675
676 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
677   "*Name of the directory where score files will be stored (default \"~/.elmo\")."
678   :type 'directory
679   :group 'wl)
680
681 (defcustom wl-score-interactive-default-score 1000
682   "*Scoring commands will raise/lower the score with this number as the default."
683   :type 'integer
684   :group 'wl-score)
685
686 (defcustom wl-score-expiry-days 7
687   "*Number of days before unused score file entries are expired.
688 If this variable is nil, no score file entries will be expired."
689   :type '(choice (const :tag "never" nil)
690                  number)
691   :group 'wl-score)
692
693 (defcustom wl-score-update-entry-dates t
694   "*In non-nil, update matching score entry dates.
695 If this variable is nil, then score entries that provide matches
696 will be expired along with non-matching score entries."
697   :type 'boolean
698   :group 'wl-score)
699
700 (defcustom wl-score-folder-alist nil
701   "*Alist of folder regexp and score file."
702   :type '(repeat (list (regexp :tag "Folder Regexp")
703                        (repeat :inline t
704                                (choice file
705                                        (symbol :tag "Variable")))))
706   :group 'wl-score)
707
708 (defcustom wl-score-folder-alist-matchone t
709   "*If non-nil, getting only one element of `wl-score-folder-alist'."
710   :type 'boolean
711   :group 'wl-score)
712
713 (defcustom wl-score-default-file "all.SCORE"
714   "*Default score file name."
715   :type 'file
716   :group 'wl-score)
717
718 (defcustom wl-score-simplify-fuzzy-regexp
719   '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
720   "*Strings to be removed when doing fuzzy matches.
721 This can either be a regular expression or list of regular expressions."
722   :type '(repeat regexp)
723   :group 'wl-score)
724
725 (defcustom wl-score-header-default-entry
726   '(("number" -1000 perm =)
727     ("subject" -1000 nil nil)
728     ("from" -1000 perm s)
729     ("message-id" -1000 temp e)
730     ("references" -1000 perm e)
731     ("to" -1000 perm s)
732     ("cc" -1000 perm s)
733     ("date" -1000 temp nil)
734     ("xref" -1000 perm s)
735     ("extra" -1000 perm s)
736     ("chars" -1000 perm >)
737     ("lines" -1000 perm >)
738     ("followup" -1000 perm s)
739     ("thread" -1000 temp s))
740   "*Default entry when insert score entry."
741   :type '(repeat (list (string :tag "Header")
742                        (choice (integer :tag "Score")
743                                (const :tag "Ask" nil))
744                        (choice (const :tag "Permanent" perm)
745                                (const :tag "Temporary" temp)
746                                (const :tag "Ask" nil))
747                        (choice (const :tag "Regexp string" r)
748                                (const :tag "Substring" s)
749                                (const :tag "fuzzy string" f)
750                                (const :tag "Exact string" e)
751                                (const :tag "REGEXP STRING" R)
752                                (const :tag "SUBSTRING" S)
753                                (const :tag "FUZZY STRING" F)
754                                (const :tag "EXACT STRING" E)
755                                (const :tag "less than" <)
756                                (const :tag "less equal" <=)
757                                (const :tag "greater than" >)
758                                (const :tag "greater equal" >=)
759                                (const :tag "equal" =)
760                                (const :tag "Ask" nil))))
761   :group 'wl-score)
762
763 (defcustom wl-score-mode-mime-charset 'x-ctext
764   "*MIME Charset for score file."
765   :type 'symbol
766   :group 'wl-score)
767
768 (defcustom wl-draft-fields
769   '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
770     "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:") 
771   "Fields used in draft mode."
772   :type '(repeat (string :tag "Field"))
773   :group 'wl-draft)
774
775 (defcustom wl-draft-config-alist nil
776   "Alist of configuration field on draft.
777 ex.
778 '((\"^To: .*wl@lists.airs.net\"
779    (\"From\" . wl-from2)
780    (\"Organization\" . wl-organization2))
781   (\"^To: .*hogehoge@\"
782    (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
783    wl-my-draft-config-func-hoge))"
784   :type '(repeat (list (sexp :tag "Match")
785                        (repeat
786                         :inline t
787                         (choice (cons (sexp :tag "Field(Variable)")
788                                       (sexp :tag "Value"))
789                                 (sexp :tag "Function")))))
790   :group 'wl-draft)
791
792 (defcustom wl-draft-config-matchone nil
793   "*If non-nil, applied only one element of `wl-draft-config-alist'."
794   :type 'boolean
795   :group 'wl-draft)
796
797 (defcustom wl-template-alist nil
798   "Alist of template."
799   :type '(repeat (list (string :tag "Name")
800                        (repeat
801                         :inline t
802                         (choice (cons (sexp :tag "Field(Variable)")
803                                       (sexp :tag "Value"))
804                                 (sexp :tag "Function")))))
805   :group 'wl-draft)
806
807 (defcustom wl-template-visible-select t
808   "*If non-nil, select template with visible."
809   :type 'boolean
810   :group 'wl-draft)
811
812 (defcustom wl-template-confirm nil
813   "*If non-nil, require your confirmation when selected template."
814   :type 'boolean
815   :group 'wl-draft)
816
817 (defcustom wl-template-buffer-lines 7
818   "*Lines of template buffer."
819   :type 'integer
820   :group 'wl-draft)
821
822 ;; queued sending.
823 (defcustom wl-draft-enable-queuing t
824   "*Non-nil enables queued sending."
825   :type 'boolean
826   :group 'wl-draft
827   :group 'wl-pref)
828
829 (defcustom wl-auto-flush-queue t
830   "*If non-nil, sending queue is flushed when network status is toggled."
831   :type 'boolean
832   :group 'wl-draft
833   :group 'wl-pref)
834
835 (defcustom wl-draft-reply-buffer-style 'split
836   "'split or 'full"
837   :type '(radio (const split)
838                 (const full))
839   :group 'wl-draft)
840
841 (defcustom wl-draft-queue-save-variables
842   '(wl-envelope-from
843     wl-smtp-posting-server smtp-service
844     wl-nntp-posting-server elmo-default-nntp-port)
845   "*Saving variables in queue info."
846   :type '(repeat (sexp :tag "Variable"))
847   :group 'wl-draft)
848
849 (defcustom wl-draft-sendlog t
850   "*Keep send state in log if non-nil."
851   :type 'boolean
852   :group 'wl-draft)
853
854 (defcustom wl-draft-sendlog-max-size 20000
855   "*Max file size of sendlog."
856   :type 'integer
857   :group 'wl-draft)
858
859 (defcustom wl-summary-default-number-column 5
860   "number of columns in summary buffer."
861   :type 'integer
862   :group 'wl-summary)
863
864 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
865   "Alist of folder and its number column.
866 If no matches, 'wl-summary-default-number-column' is used.
867 ex.
868 '((\"^%inbox@qmail-maildir\" . 9)
869   (\"^-.*@news-server\" . 6))"
870   :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
871   :group 'wl-summary)
872
873 (defcustom wl-summary-highlight t
874   "Non-nil forces Summary buffer to be highlighted."
875   :type 'boolean
876   :group 'wl-summary
877   :group 'wl-highlight)
878
879 (defcustom wl-summary-highlight-partial-threshold 1000
880   "Summary is not highlighted entirely 
881 if there are lines more than this value."
882   :type 'integer
883   :group 'wl-summary
884   :group 'wl-highlight)
885
886 (defcustom wl-summary-partial-highlight-above-lines 30
887   "If Summary has lines more than wl-summary-highlight-partial-threshold,
888 Summary lines are highlighted partialy above current position."
889   :type 'integer
890   :group 'wl-summary
891   :group 'wl-highlight)
892
893 (defcustom wl-summary-cache-use t
894   "Non-nil forces wl-summary to use cache file."
895   :type 'boolean
896   :group 'wl-summary)
897
898 (defcustom wl-summary-auto-sync-marks t
899   "Non-nil forces to synchronize unread/important marks."
900   :type 'boolean
901   :group 'wl-summary)
902
903 (defcustom wl-summary-cache-file ".wl-summary-cache"
904   "*Cache file for summary mode contents."
905   :type 'file
906   :group 'wl-summary)
907 (defcustom wl-summary-view-file ".wl-summary-view"
908   "*current summary view."
909   :type 'file
910   :group 'wl-summary)
911 (defcustom wl-thread-top-file ".wl-thread-top"
912   "*current thread top entity... obsolete."
913   :type 'file
914   :group 'wl-summary)
915 (defcustom wl-thread-entity-file ".wl-thread-entity"
916   "*thread entities."
917   :type 'file
918   :group 'wl-summary)
919 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
920   "*thread top entity list."
921   :type 'file
922   :group 'wl-summary)
923
924 (defcustom wl-print-buffer-func 'lpr-buffer
925   "A function to print current buffer."
926   :type 'function
927   :group 'wl-pref)
928
929 (defcustom wl-ps-print-buffer-func 
930   (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
931   "A function to print current buffer with ps-print."
932   :type 'function
933   :group 'wl-pref)
934
935 ;;;; Preferences
936 (defcustom wl-use-petname t
937   "*Display petname in summary and default citation title."
938   :type 'boolean
939   :group 'wl-pref)
940
941 (defcustom wl-use-folder-petname
942   '(modeline)
943   "*List of situation using folder petname. Allowed situations are:
944
945   modeline    : displayed on modeline.
946   ask-folder  : displayed on minibuffer when ask folder.
947   read-folder : can used for completion at `wl-summary-read-folder'."
948   :type '(set (const modeline)
949               (const ask-folder)
950               (const read-folder))
951   :group 'wl-summary
952   :group 'wl-pref)
953
954 (defcustom wl-folder-petname-alist nil
955   "A list of (realname . petname)"
956   :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
957   :group 'wl-folder)
958
959 (defcustom wl-summary-weekday-name-lang "ja"
960   "*Language to display week day."
961   :type '(choice (const "ja")
962                  (const "en")
963                  (const "fr")
964                  (const "de")
965                  (string :tag "Other"))
966   :group 'wl-summary
967   :group 'wl-pref)
968
969 (defcustom wl-local-domain nil
970   "*Domain part of this client (without hostname).  
971 Set this if (system-name) does not return FQDN."
972   :type '(choice (const :tag "Use System Name" nil)
973                  string)
974   :group 'wl-pref)
975
976 (defcustom wl-message-id-domain nil
977   "*Specific domain part of Message-ID."
978   :type '(choice (const :tag "Use System Name" nil)
979                  string)
980   :group 'wl-pref)
981
982 (defcustom wl-break-pages t
983   "*Break Pages at ^L."
984   :type 'boolean
985   :group 'wl-pref)
986
987 (defcustom wl-message-scroll-amount 5
988   "*Scroll amount by SPC key."
989   :type 'integer
990   :group 'wl-pref)
991
992 (defcustom wl-message-window-size '(1 . 4)
993   "*Size of summary and message window. cons cell of (Summary : Message)."
994   :type '(cons integer integer)
995   :group 'wl-pref)
996
997 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc" 
998                                         "Newsgroups" "Subject" "^From")
999   "*Sort order of header fields. Each elements are regexp of field name.
1000 (Not valid on tm.)"
1001   :type '(repeat (string :tag "Field Regexp"))
1002   :group 'wl-pref)
1003
1004 (defcustom wl-folder-window-width 20
1005   "*Width of folder window."
1006   :type 'integer
1007   :group 'wl-folder
1008   :group 'wl-pref)
1009
1010 (defcustom wl-summary-recenter t
1011   "*Recenter on redisplay"
1012   :type 'boolean
1013   :group 'wl-summary
1014   :group 'wl-pref)
1015
1016 (defcustom wl-stay-folder-window nil
1017   "*Stay folder window when folder is selected if non-nil."
1018   :type 'boolean
1019   :group 'wl-pref)
1020
1021 (defcustom wl-reply-subject-prefix "Re: "
1022   "*Prefix of the subject of the replied message."
1023   :type 'string
1024   :group 'wl-draft
1025   :group 'wl-pref)
1026
1027 (defcustom wl-folder-many-unsync-threshold 70
1028   "*Folders which contains messages more than this number are highlighted
1029 with wl-highlight-folder-many-face."
1030   :type 'integer
1031   :group 'wl-folder
1032   :group 'wl-pref)
1033
1034 (defcustom wl-fcc nil
1035   "*Folder Carbon Copy."
1036   :type '(choice (const :tag "disable" nil)
1037                  string)
1038   :group 'wl-draft
1039   :group 'wl-pref)
1040
1041 (defcustom wl-bcc nil
1042   "*Blind Carbon Copy."
1043   :type '(choice (const :tag "disable" nil)
1044                  string)
1045   :group 'wl-draft
1046   :group 'wl-pref)
1047
1048 (defcustom wl-folder-desktop-name "Desktop"
1049   "*An implicit name of the folder top entity."
1050   :type 'string
1051   :group 'wl-folder
1052   :group 'wl-pref)
1053
1054 (defcustom wl-summary-indent-length-limit 46
1055   "*Limit of indent length for thread."
1056   :type 'integer
1057   :group 'wl-summary
1058   :group 'wl-pref)
1059
1060 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1061   "*A string displayed in summary when no from field exists."
1062   :type 'string
1063   :group 'wl-summary)
1064
1065 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1066   "*A string displayed in summary when no subject field exists."
1067   :type 'string
1068   :group 'wl-summary)
1069
1070 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1071   "*The body content of a cancel message."
1072   :type 'string
1073   :group 'wl-summary)
1074
1075 (defcustom wl-summary-width 80
1076   "*Set summary line width if non nil."
1077   :type 'integer
1078   :group 'wl-summary
1079   :group 'wl-pref)
1080
1081 (defcustom wl-summary-pick-field-default "Body"
1082   "*Default field for pick."
1083   :type '(radio (const "From")
1084                 (const "Subject")
1085                 (const "Date")
1086                 (const "To")
1087                 (const "Cc")
1088                 (const "Body")
1089                 (const "Since")
1090                 (const "Before")
1091                 (string :tag "Other"))
1092   :group 'wl-summary)
1093
1094 (defcustom wl-from-width 17
1095   "*From width in summary."
1096   :type 'integer
1097   :group 'wl-summary
1098   :group 'wl-pref)
1099
1100 (defcustom wl-mime-charset (if wl-on-nemacs
1101                                'iso-2022-jp
1102                              'x-ctext)
1103   "*MIME Charset for summary and message."
1104   :type 'symbol
1105   :group 'wl-summary
1106   :group 'wl-pref)
1107
1108 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1109   "A function to create X-Mailer field string ."
1110   :type 'function
1111   :group 'wl-draft)
1112
1113 (defcustom wl-highlight-background-mode  (if (boundp 'hilit-background-mode)
1114                                              (or hilit-background-mode 'dark)
1115                                            'dark)
1116   "*Background mode of highlight (for Old Emacsen). 'dark or 'light"
1117   :type '(radio (const dark)
1118                 (const light))
1119   :group 'wl-highlight)
1120
1121 (defcustom wl-highlight-x-face-func nil
1122   "A function to display X-Face."
1123   :type 'function
1124   :group 'wl-highlight)
1125
1126 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1127   "Location of the qmail-inject program."
1128   :type '(string :tag "Program")
1129   :group 'wl-draft)
1130
1131 (defcustom wl-qmail-inject-args nil
1132   "Arguments passed to qmail-inject programs.
1133 This should be a list of strings, one string for each argument.
1134
1135 For e.g., if you wish to set the envelope sender address so that bounces
1136 go to the right place or to deal with listserv's usage of that address, you
1137 might set this variable to '(\"-f\" \"you@some.where\")."
1138   :type '(repeat (string :tag "Argument"))
1139   :group 'wl-draft)
1140
1141 (defcustom wl-rejected-letter-start 
1142   "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1143   "Regexp specifying the beginning of the wrapper around a returned letter.
1144   This wrapper is generated by the mail system when rejecting a letter."
1145   :type 'regexp
1146   :group 'wl-draft)
1147
1148 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1149   "*All headers that match this regexp will be deleted when resending a message."
1150   :type 'regexp
1151   :group 'wl-draft)
1152
1153 (defcustom wl-refile-default-from-folder "+from"
1154   "*Folder name to refile by `wl-refile-guess-by-from'."
1155   :type '(string :tag "Folder")
1156   :group 'wl-pref)
1157
1158 (defcustom wl-summary-auto-refile-skip-marks 
1159   (list wl-summary-new-mark
1160         wl-summary-unread-uncached-mark
1161         wl-summary-unread-cached-mark)
1162   "Persistent marks to skip auto-refiling."
1163   :type '(repeat (string :tag "Mark"))
1164   :group 'wl-summary)
1165
1166 (defcustom wl-summary-reserve-mark-list
1167   (list "o" "O" "D")
1168   "If a message is already marked as temporal marks in this list, 
1169 the message is not marked by any mark command."
1170   :type '(repeat (string :tag "Temp-Mark"))
1171   :group 'wl-summary)
1172
1173 (defcustom wl-summary-skip-mark-list
1174   (list "D")
1175   "If a message is already marked as temporal marks in this list, 
1176 the message is skipped at cursor move."
1177   :type '(repeat (string :tag "Temp-Mark"))
1178   :group 'wl-summary)
1179
1180 (defcustom wl-summary-incorporate-marks
1181   (list wl-summary-new-mark
1182         wl-summary-unread-uncached-mark)
1183   "Persistent marks to prefetch at `wl-summary-incorporate'"
1184   :type '(repeat (string :tag "Mark"))
1185   :group 'wl-summary)
1186
1187 (defcustom wl-refile-rule-alist nil
1188   "Refile rule alist.
1189 e.x.
1190 '(
1191   (\"From\"
1192    (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1193   (\"x-ml-name\"
1194    (\"^Wanderlust\"    . \"+wl\")
1195    (\"^Elips\" . \"+elips\")))"
1196   :type '(repeat (list (string :tag "Field")
1197                        (repeat :inline t
1198                                (cons (regexp :tag "Value")
1199                                      (string :tag "Folder")))))
1200   :group 'wl-pref)
1201
1202 (defcustom wl-strict-diff-folders nil
1203   "Folders in this list are checked its unsync message number strictly."
1204   :type '(repeat (string :tag "Folder"))
1205   :group 'wl-folder)
1206
1207 (defcustom wl-folder-use-server-diff t
1208   "Checked unread message number on IMAP4 server. 
1209 Only IMAP4 folders have an effect."
1210   :type 'boolean
1211   :group 'wl-folder)
1212
1213 (defcustom wl-force-fetch-folders nil
1214   "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1215   :type '(choice (const :tag "off" nil)
1216                  (const :menu-tag "on" t)
1217                  (repeat (regexp :tag "Folder Regexp")))
1218   :group 'wl-folder)
1219
1220 (defcustom wl-auto-check-folder-name nil
1221   "*The folder specified by this variable will be automatically checked 
1222 at start time."
1223   :type '(choice (string :tag "Folder")
1224                  (repeat (string :tag "Folder"))
1225                  (const none))
1226   :group 'wl-folder)
1227
1228 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1229   "All folders that match this list won't be checked when group is 
1230 automatically checked (or desktop is checked).
1231 This value is preceded by wl-auto-check-folder-list.
1232 Each elements are regexp of folder name."
1233   :type '(repeat (regexp :tag "Folder Regexp"))
1234   :group 'wl-folder)
1235
1236 (defcustom wl-auto-check-folder-list nil
1237   "All folders that match this list are checked when group is 
1238 automatically checked (or desktop is checked).
1239 This value precedes wl-auto-uncheck-folder-list.
1240 Each elements are regexp of folder name."
1241   :type '(repeat (regexp :tag "Folder Regexp"))
1242   :group 'wl-folder)
1243
1244 (defcustom wl-interactive-send nil
1245   "*If non-nil, require your confirmation when sending draft message."
1246   :type 'boolean
1247   :group 'wl-pref)
1248
1249 (defcustom wl-interactive-exit t
1250   "*If non-nil, require your confirmation when exiting WL."
1251   :type 'boolean
1252   :group 'wl-pref)
1253
1254 (defcustom wl-summary-move-order 'unread
1255   "*The order of priority when move in summary mode.
1256 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1257 If this variable is `new', precede \"N\" mark."
1258   :type '(radio (const new)
1259                 (const unread))
1260   :group 'wl-summary)
1261
1262 (defvar wl-summary-move-direction-downward t)
1263
1264 (defcustom wl-summary-move-direction-toggle t
1265   "*If non-nil, search direction for the next message will be determined
1266 depends on previous search direction. 
1267 It uses wl-summary-move-direction-downward as a direction flag."
1268   :type 'boolean
1269   :group 'wl-summary)
1270
1271 (defcustom wl-auto-select-first nil
1272   "*If non-nil, display selected first message when enter summary."
1273   :type 'boolean
1274   :group 'wl-pref)
1275
1276 (defcustom wl-auto-select-next nil
1277   "*If non-nil, offer to go to the next folder from the end of the previous.
1278 If the value is the symbol `unread', go to the next folder 
1279 that no unread message exists. If the value is the symbol `skip-no-unread',
1280 skip the folder that no unread message exists.
1281
1282 See also variable `wl-summary-next-no-unread-command'."
1283   :type '(radio (const :tag "off" nil)
1284                 (const :tag "on" t)
1285                 (const unread)
1286                 (const skip-no-unread))
1287   :group 'wl-pref)
1288
1289 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1290   "*All folder types that match this list prefetch next message, 
1291 and reserved buffer cache."
1292   :type '(set (const localdir)
1293               (const localnews)
1294               (const imap4)
1295               (const nntp)
1296               (const pop3)
1297               (const archive)
1298               (const internal))
1299   :group 'wl-pref)
1300
1301 (defcustom wl-cache-prefetch-folder-list nil
1302   "*All folders that match this list prefetch next message, 
1303 and reserved buffer cache.
1304 e.x.
1305 '(\"^[-%]\")"
1306   :type '(repeat (regexp :tag "Folder Regexp"))
1307   :group 'wl-pref)
1308
1309 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1310   "*A function to get message number when prefetch next message."
1311   :type 'function
1312   :group 'wl-pref)
1313
1314 ;; obsolete
1315 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1316 ;  "All folders that match this list won't be cached when reading messages.
1317 ;Each elements are regexp of folder name.")
1318
1319 (defcustom wl-summary-always-sticky-folder-list nil
1320   "All folders that match this list has sticky summary.
1321 Each elements are regexp of folder name."
1322   :type '(repeat (regexp :tag "Folder Regexp"))
1323   :group 'wl-pref)
1324
1325 (defcustom wl-no-save-folder-list '("^/.*$")
1326   "All folders that match this list won't save its msgdb.
1327 Each elements are regexp of folder name."
1328   :type '(repeat (regexp :tag "Folder Regexp"))
1329   :group 'wl-pref)
1330
1331 (defcustom wl-save-folder-list nil
1332   "All folders that match this list save its msgdb.
1333 Each elements are regexp of folder name."
1334   :type '(repeat (regexp :tag "Folder Regexp"))
1335   :group 'wl-pref)
1336
1337 (defcustom wl-search-mime-charset 'iso-2022-jp
1338   "*MIME Charset for searching message."
1339   :type 'symbol
1340   :group 'wl-pref)
1341
1342 (defcustom wl-folder-mime-charset-alist
1343   '(("^-alt\\.chinese" . big5)
1344     ("^-relcom\\." . koi8-r)
1345     ("^-tw\\." . big5)
1346     ("^-han\\." . euc-kr))
1347   "Charset alist. If no match, wl-mime-charset is used."
1348   :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1349   :group 'wl-summary
1350   :group 'wl-pref)
1351
1352 (defcustom wl-folder-weekday-name-lang-alist
1353   '(("^-alt\\.chinese" . "en")
1354     ("^-relcom\\." . "en")
1355     ("^-tw\\." . "en")
1356     ("^-han\\." . "en"))
1357   "Weekday name lang alist. If no match, wl-summary-weekday-name-lang 
1358 is used.
1359 e.x.
1360 '((\"xemacs-beta$\" . \"en\")
1361   (\"^-fj\" . \"ja\"))"
1362   :type '(repeat (cons (regexp :tag "Folder Regexp")
1363                        (choice (const "ja")
1364                                (const "en")
1365                                (const "fr")
1366                                (const "de")
1367                                (string :tag "Other"))))
1368   :group 'wl-pref)
1369
1370 (defcustom wl-folder-thread-indent-set-alist
1371   '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1372     ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1373     ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1374     ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1375   "Thread indent set alist. 
1376 If no match, following indent set is used.
1377 (wl-thread-indent-level
1378  wl-thread-have-younger-brother-str
1379  wl-thread-youngest-child-str
1380  wl-thread-vertical-str
1381  wl-thread-horizontal-str
1382  wl-thread-space-str)
1383 e.x.
1384 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1385   :type '(repeat (cons (regexp :tag "Folder Regexp")
1386                        (group (integer :tag "Indent")
1387                               (string :tag "Yonger Brother")
1388                               (string :tag "Yonger Child")
1389                               (string :tag "Vertical")
1390                               (string :tag "Horizontal")
1391                               (string :tag "Space"))))
1392   :group 'wl-pref)
1393
1394 (defcustom wl-folder-sync-range-alist 
1395   (list (cons "^&.*$" "all")
1396         (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^" 
1397                       (regexp-quote wl-queue-folder) "$")
1398               "all"))
1399   "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1400   :type '(repeat (cons (regexp :tag "Folder Regexp")
1401                        (choice (const "update")
1402                                (const "all")
1403                                (const "rescan")
1404                                (const "first:")
1405                                (const "last:")
1406                                (const "no-sync")
1407                                (const :tag "none" nil))))
1408   :group 'wl-pref)
1409
1410 (defcustom wl-default-sync-range  "update"
1411   "*Default sync range."
1412   :type '(choice (const "update")
1413                  (const "all")
1414                  (const "rescan")
1415                  (const "first:")
1416                  (const "last:")
1417                  (const "no-sync")
1418                  (const :tag "none" nil))
1419   :group 'wl-pref)
1420
1421 (defcustom wl-ask-range t
1422   "*If non-nil, ask for a range for summary synchronization. 
1423 If nil, always use default."
1424   :type 'boolean
1425   :group 'wl-pref)
1426
1427 (defcustom wl-folder-move-cur-folder nil
1428   "*Non-nil, move to current folder on folder-mode when goto folder."
1429   :type 'boolean
1430   :group 'wl-folder)
1431
1432 (defcustom wl-folder-check-async (not wl-on-nemacs)
1433   "*Check the folder asynchronous."
1434   :type 'boolean
1435   :group 'wl-folder)
1436
1437 (defcustom wl-folder-notify-deleted nil
1438   "*Non-nil, display negative number on folder-mode when message is deleted
1439 in folder. If the value is 'sync, msgdb would be synchronized."
1440   :type '(choice (const :tag "off" nil)
1441                  (const :tag "on" t)
1442                  (const sync))
1443   :group 'wl-folder)
1444
1445 (defcustom wl-summary-exit-next-move t
1446   "*Non-nil, move to next-unsync or next-entity when exit summary."
1447   :type 'boolean
1448   :group 'wl-summary)
1449
1450 (defcustom wl-summary-next-no-unread-command 
1451   '(wl-summary-read wl-summary-down wl-summary-up)
1452   "*Command list available when the value of `wl-auto-select-next' is 'unread
1453 or 'skip-no-unread."
1454   :type '(repeat function)
1455   :group 'wl-summary)
1456
1457 (defcustom wl-summary-search-via-nntp 'confirm
1458   "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1459   :type 'boolean
1460   :group 'wl-summary)
1461
1462 (defcustom wl-summary-keep-cursor-command 
1463   '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1464   "*Command list to keep cursor position when folder is changed to
1465 already existing summary."
1466   :type '(repeat function)
1467   :group 'wl-summary)
1468
1469 (defcustom wl-summary-showto-folder-regexp nil
1470   "Regexp specifying the folder that shows the To (or Newsgroups) field as
1471   Sender information in summary mode."
1472   :type 'regexp
1473   :group 'wl-summary)
1474
1475 (defcustom wl-folder-removed-mark "#<removed>"
1476   "Mark for removed folder."
1477   :type 'string
1478   :group 'wl-folder)
1479
1480 (defcustom wl-folder-unsubscribe-mark "#"
1481   "Mark for unsubscribe folder."
1482   :type 'string
1483   :group 'wl-folder)
1484
1485 (defcustom wl-delete-folder-alist '(("^-" . remove))
1486   "*Alist of folder and delete policy. 
1487 Each element is (folder-regexp . policy).
1488
1489 The policy is one of the followings:
1490 'remove or
1491 'null     : remove message.
1492 string    : refile to the specified folder.
1493 'trash or 
1494 otherwise : refile to the `wl-trash-folder'.
1495 ex.
1496 '((\"^%\" . \"%#mh/trash\")
1497   (\"^-\" . remove)
1498   (\"^\\\\+\" . trash))"
1499   :type '(repeat (cons (regexp :tag "Folder Regexp")
1500                        (choice :tag "Policy"
1501                                (const remove)
1502                                (const :tag "remove(null)" null)
1503                                (const trash)
1504                                (const :tag "trash(other)" trash)
1505                                (string :tag "Folder"))))
1506   :group 'wl-folder)
1507
1508 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1509                                     (".*" . move))
1510   "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1511 POLICY is copy or move."
1512   :type '(repeat (cons (regexp :tag "Folder Regexp")
1513                        (choice (const copy)
1514                                (const move))))
1515   :group 'wl-summary
1516   :group 'wl-pref)
1517
1518 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1519   "*Access group folders to make hierarchy structure."
1520   :type '(repeat (string :tag "Folder"))
1521   :group 'wl-folder)
1522
1523 (defcustom wl-folder-init-load-access-folders nil
1524   "*Access group folders to load folder list on `wl-folder-init'.
1525 If this variable is non-nil,
1526 `wl-folder-init-no-load-access-folders' will be ignored."
1527   :type '(repeat (regexp :tag "Folder Regexp"))
1528   :group 'wl-folder)
1529
1530 (defcustom wl-folder-init-no-load-access-folders nil
1531   "*Access group folders to not load folder list on `wl-folder-init'.
1532 If `wl-folder-init-load-access-folders' is non-nil,
1533 this variable will be ignored."
1534   :type '(repeat (regexp :tag "Folder Regexp"))
1535   :group 'wl-folder)
1536
1537 (defcustom wl-folder-access-subscribe-alist nil
1538   "*Subscribe folders to fetching folder entries.
1539 Each element is (group-regexp (subscribe folder-regexp ...)).
1540 If subscribe is non-nil, subscribe when match folder-regexp.
1541 If subscribe is nil, unsubscribe when match folder-regexp.
1542
1543 ex.
1544 '((\"^-fj$\"   . (t   \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1545   (\"^-comp$\" . (t   \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1546   (\"^-$\"     . (nil \"^-alt\" \"^-rec\")))"
1547   :type '(repeat (cons (regexp :tag "Folder Regexp")
1548                        (list (boolean :tag "Subscribed")
1549                              (repeat :inline t
1550                                      (regexp :tag "Folder Regexp")))))
1551   :group 'wl-folder)
1552
1553 ;;; For Folder Manager 
1554
1555 (defcustom wl-interactive-save-folders t
1556   "*Non-nil require your confirmation when save folders."
1557   :type 'boolean
1558   :group 'wl-folder)
1559
1560 (defcustom wl-fldmgr-make-backup t
1561   "*Non-nil make backup file when save folders."
1562   :type 'boolean
1563   :group 'wl-folder)
1564
1565 (defcustom wl-fldmgr-folders-indent "\t"
1566   "*Indent string for folders file."
1567   :type 'string
1568   :group 'wl-folder)
1569
1570 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1571   "*A function to sort folder."
1572   :type 'function
1573   :group 'wl-folder)
1574
1575 (defcustom wl-fldmgr-sort-group-first t
1576   "*Non-nil Group folder is first when sort."
1577   :type 'function
1578   :group 'wl-folder)
1579
1580 ;;; For Expire and Archive
1581
1582 (defcustom wl-expire-alist nil
1583   "Alist to decide a policy for expire.
1584 Each element is (folder-regexp (number or date) policy).
1585
1586 The policy is one of the followings:
1587 'remove  : remove messsage.
1588 'trash   : refile wl-trash-folder.
1589 string   : refile string folder.
1590 function : call function.
1591
1592 ex.
1593 '((\"^\\\\+ml/wl$\"             (number 500 510) wl-expire-archive-number1 t)
1594   (\"^\\\\+ml/\"                (number 300 305) wl-expire-archive-number2)
1595   (\"^\\\\+outbox$\"            (number 300) \"$outbox;lha\")
1596   (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\"      (date 7) remove)
1597   (\"^\\\\+misc$\"              (date 14) trash))"
1598   :type '(repeat (choice (list :tag "No-match"
1599                                (regexp :tag "Folder Regexp")
1600                                (const nil))
1601                          (list :tag "Match"
1602                                (regexp :tag "Folder Regexp")
1603                                (list (radio :value number
1604                                             (const number)
1605                                             (const date))
1606                                      (list :inline t
1607                                            integer
1608                                            (repeat :inline t integer)))
1609                                (choice :tag "Policy"
1610                                        :value remove
1611                                        (const remove)
1612                                        (const trash)
1613                                        (string :tag "folder")
1614                                        function)
1615                                (repeat :inline t
1616                                        :tag "Arg for function"
1617                                        sexp))))
1618   :group 'wl-expire)
1619
1620 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1621   "Alist to decide a policy for archive.
1622 Each element is (folder-regexp policy(function)).
1623
1624 ex.
1625 '((\"\\\\+work$\" wl-archive-date)
1626   (\"\\\\+ml/\"   wl-archive-number1)
1627   (\".*\"       wl-archive-number2))"
1628   :type '(repeat (list (regexp :tag "Folder Regexp")
1629                        function
1630                        (repeat :inline t
1631                                (sexp :tag "Argument"))))
1632   :group 'wl-expire)
1633
1634 (defcustom wl-summary-expire-reserve-marks
1635   (list wl-summary-important-mark
1636         wl-summary-new-mark
1637         wl-summary-unread-mark
1638         wl-summary-unread-uncached-mark
1639         wl-summary-unread-cached-mark)
1640   "Permanent marks of reserved message when expire.
1641 Don't reserve temporary mark message.
1642
1643 ex.
1644 'all  : reserved all permanent marks.
1645 'none : not reserve permanent marks.
1646 list  : reserved specified permanent marks."
1647   :type '(repeat (string :tag "Mark"))
1648   :group 'wl-expire)
1649
1650 (defcustom wl-expire-number-with-reserve-marks nil
1651   "If non-nil, include reserve message when expire by number."
1652   :type 'boolean
1653   :group 'wl-expire)
1654
1655 (defcustom wl-expire-add-seen-list t
1656   "*If non-nil, add seen message list when refile message at expire."
1657   :type 'boolean
1658   :group 'wl-expire)
1659
1660 (defcustom wl-expire-use-log nil
1661   "*If non-nil, write a log when expired."
1662   :type 'boolean
1663   :group 'wl-expire)
1664
1665 (defcustom wl-expire-folder-update-msgdb t
1666   "*Non-nil update summary msgdb when expire on folder mode."
1667   :type 'boolean
1668   :group 'wl-expire)
1669
1670 ;; for wl-expire-archive-{number1|number2}
1671 (defcustom wl-expire-archive-files 100
1672   "*The number of one archive folder."
1673   :type 'integer
1674   :group 'wl-expire)
1675
1676 ;; for wl-expire-archive-{number1|number2|date}
1677 (defcustom wl-expire-archive-get-folder-func
1678   'wl-expire-archive-get-folder
1679   "*A function to get archive folder name."
1680   :type 'function
1681   :group 'wl-expire)
1682
1683 (defcustom wl-expire-delete-oldmsg-confirm t
1684   "*If non-nil, require your confirmation when delete old message."
1685   :type 'boolean
1686   :group 'wl-expire)
1687
1688 ;; for wl-expire-archive-get-folder
1689 (defcustom wl-expire-archive-folder-type 'zip
1690   "*Archiver type of archive folder."
1691   :type '(radio (const zip)
1692                 (const lha)
1693                 (const zoo)
1694                 (const rar)
1695                 (const tar)
1696                 (const tgz)
1697                 (symbol :tag "Other"))
1698   :group 'wl-expire)
1699
1700 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1701   "*A format string for archive folder name."
1702   :type 'string
1703   :group 'wl-expire)
1704
1705 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1706   "*A regexp string for archive folder name."
1707   :type 'string
1708   :group 'wl-expire)
1709
1710 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1711                                                 ;; $folder-199812;zip
1712   "*A format string for archive date folder name."
1713   :type 'string
1714   :group 'wl-expire)
1715
1716 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1717   "*A regexp string for archive date folder name."
1718   :type 'string
1719   :group 'wl-expire)
1720
1721 (defcustom wl-expire-archive-folder-prefix nil
1722   "*Prefix for archive folder."
1723   :type '(radio (const :tag "nothing" nil)
1724                 (const :tag "full" t)
1725                 (const short))
1726   :group 'wl-expire)
1727
1728 ;;;; Highlights.
1729
1730 ;; highilght about summary
1731 (defcustom wl-highlight-max-summary-lines 10000
1732   "*If the summary is larger than this lines, don't highlight it."
1733   :type 'integer
1734   :group 'wl-highlight)
1735  
1736 ;; highilght about draft and message
1737 (defcustom wl-highlight-body-too t
1738   "*In addition to header, highlight the body too. if non nil."
1739   :type 'boolean
1740   :group 'wl-highlight)
1741
1742 (defcustom wl-highlight-message-header-alist
1743   '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
1744     ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
1745     ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
1746   ""
1747   :type '(repeat (cons regexp face))
1748   :group 'wl-highlight)
1749
1750 (defcustom wl-highlight-citation-prefix-regexp 
1751   "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
1752   "All lines that match this regexp will be highlighted with
1753  `wl-highlight-message-cited-text-*' face."
1754   :type 'regexp
1755   :group 'wl-highlight)
1756
1757 (defcustom wl-highlight-highlight-citation-too nil
1758   "*Whether the whole citation line should go in the 
1759   `wl-highlight-citation-face' face.
1760 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
1761 default face, and the remainder of the line is in the 
1762 wl-highlight-message-cited-text face."
1763   :type 'boolean
1764   :group 'wl-highlight)
1765
1766 (defcustom wl-highlight-force-citation-header-regexp
1767   "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
1768   "*The pattern to match the prolog of a cited block.
1769 Text in the body of a message which matches this will be displayed in
1770 the `wl-highlight-message-headers' face."
1771   :type 'regexp
1772   :group 'wl-highlight)
1773
1774 (defcustom wl-highlight-citation-header-regexp
1775   (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
1776           "^At[^\n]+\n[^\n]+wrote:\n\\|" 
1777           "^.*\\(writes\\|wrote\\|said\\):\n")
1778   "*The pattern to match the prolog of a cited block.
1779 Text in the body of a message which matches this will be displayed in
1780 the `wl-highlight-message-headers' face."
1781    :type 'regexp
1782    :group 'wl-highlight)
1783
1784 (defcustom wl-highlight-max-message-size 10000
1785   "*If the message body is larger than this many chars, don't highlight it.
1786 This is to prevent us from wasting time trying to fontify things like
1787 uuencoded files and large digests.  If this is nil, all messages will
1788 be highlighted."
1789     :type 'integer
1790     :group 'wl-highlight)
1791   
1792 ;; highilght about signature (of draft and message)
1793 (defcustom wl-highlight-signature-separator 
1794   '("\n--+\n" "\n\n--+.*\n*\\'")
1795   "List of regexps matching signature separator.
1796 It will be verified from head to tail looking for a separator.  
1797 Verification will be done from the end of the buffer.
1798 No need to specify \"^-- $\" in this list, 
1799 because it is verified by default.
1800 This variable can also be a regex. "
1801   :type '(repeat regexp)
1802   :group 'wl-highlight)
1803
1804 (defcustom wl-max-signature-size 400
1805   "*If the signature is larger than this chars, don't treat it as a signature."
1806   :type 'integer
1807   :group 'wl-highlight)
1808   
1809 ;; highilght about mouse
1810 (defcustom wl-use-highlight-mouse-line (and wl-on-xemacs window-system)
1811   "*Highlight mouse line, if non nil."
1812   :type 'boolean
1813   :group 'wl-highlight)
1814  
1815 ;; highilght about folder
1816 (defcustom wl-highlight-folder-with-icon 
1817   (and (featurep 'xemacs)
1818        (featurep 'xpm))
1819   "*Highlight folder with icon(XEmacs)."
1820   :type 'boolean
1821   :group 'wl-highlight)
1822 (defcustom wl-highlight-group-folder-by-numbers t
1823   "*Highlight group folder by numbers."
1824   :type 'boolean
1825   :group 'wl-highlight)
1826
1827 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
1828   "Function to search signature area in the message body."
1829   :type 'function
1830   :group 'wl-highlight)
1831
1832 (defcustom wl-use-dnd (and wl-on-xemacs
1833                            (featurep 'dragdrop))
1834   "If Non-nil, support dragdrop feature in XEmacs."
1835   :type 'boolean
1836   :group 'wl-pref)
1837
1838 (defcustom wl-reset-plugged-alist t
1839   "*If non-nil, reset `elmo-plugged-alist' when startup."
1840   :type 'boolean
1841   :group 'wl-pref)
1842
1843 (defcustom wl-demo-display-logo (or (and (featurep 'xemacs)
1844                                          (featurep 'xpm))
1845                                     (and (module-installed-p 'image)
1846                                          (image-type-available-p 'xpm))
1847                                     (module-installed-p 'bitmap))
1848   "If non-nil, display image (or bitmap) logo in th Wanderlust opening demo."
1849   :type 'boolean
1850   :group 'wl-pref)
1851
1852 ;;; Internal variables
1853 (defvar wl-init nil)
1854
1855 ;; For disconnected operations.
1856 (defvar wl-plugged-hook nil)
1857 (defvar wl-unplugged-hook nil)
1858 (defvar wl-plugged t)
1859
1860 (defvar wl-plug-state-indicator-on  " [ON] ")
1861 (defvar wl-plug-state-indicator-off " [--] ")
1862 (defvar wl-plug-state-indicator wl-plug-state-indicator-on)
1863
1864 (defvar wl-show-plug-status-on-modeline t)
1865
1866 ;; Advanced thread view.  
1867 (defvar wl-thread-indent-level 1
1868   "*Indent level for thread.")
1869 (defvar wl-thread-have-younger-brother-str "\e$B(2\e(B"
1870   "*A string for thread branch line. It should contain one character.")
1871 (defvar wl-thread-youngest-child-str       "\e$B(1\e(B"
1872   "*A string for thread branch line. It should contain one character.")
1873 (defvar wl-thread-vertical-str             "\e$B(-\e(B"
1874   "*A string for thread branch line. It should contain one character.")
1875 (defvar wl-thread-horizontal-str           "\e$B(,\e(B"
1876   "*A string for thread branch line. It should contain one character.")
1877 (defvar wl-thread-space-str                "\e$B!!\e(B"
1878   "*A string for thread branch line. It should contain one character.")
1879
1880 (defvar wl-highlight-thread-indent-string-regexp "[^\\[]*"
1881   "* A regexp string for thread indent...for highlight.")
1882
1883 ;; folder icons. filename relative to wl-icon-dir
1884 (defvar wl-opened-group-folder-icon "opened.xpm"
1885   "*Icon file for opened group folder.")
1886 (defvar wl-closed-group-folder-icon "closed.xpm"
1887   "*Icon file for closed group folder.")
1888 (defvar wl-nntp-folder-icon "news.xpm"
1889   "*Icon file for nntp folder.")
1890 (defvar wl-imap-folder-icon "imap.xpm"
1891   "*Icon file for imap folder.")
1892 (defvar wl-pop-folder-icon  "pop.xpm"
1893   "*Icon file for pop folder.")
1894 (defvar wl-localdir-folder-icon "local.xpm"
1895   "*Icon file for localdir folder.")
1896 (defvar wl-localnews-folder-icon "localnews.xpm"
1897   "*Icon file for localnews folder.")
1898 (defvar wl-internal-folder-icon "internal.xpm"
1899   "*Icon file for internal folder.")
1900 (defvar wl-multi-folder-icon "multi.xpm"
1901   "*Icon file for multi folder.")
1902 (defvar wl-filter-folder-icon "filter.xpm"
1903   "*Icon file for filter folder.")
1904 (defvar wl-archive-folder-icon "archive.xpm"
1905   "*Icon file for archive folder.")
1906 (defvar wl-pipe-folder-icon "pipe.xpm"
1907   "*Icon file for pipe folder.")
1908 (defvar wl-maildir-folder-icon "maildir.xpm"
1909   "*Icon file for maildir folder.")
1910 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
1911   "*Icon file for emptied trash folder.")
1912 (defvar wl-trash-folder-icon "trash.xpm"
1913   "*Icon file for trash folder.")
1914 (defvar wl-draft-folder-icon "draft.xpm"
1915   "*Icon file for draft folder.")
1916 (defvar wl-queue-folder-icon "queue.xpm"
1917   "*Icon file for queue folder.")
1918 (defvar wl-plugged-icon "plugged.xpm"
1919   "*Icon file for plugged state.")
1920 (defvar wl-unplugged-icon "unplugged.xpm"
1921   "*Icon file for unplugged state.")
1922 (defvar wl-prog-uudecode "uudecode"
1923   "*uudecode program name")
1924 (defvar wl-prog-uudecode-arg '("-p") ;; outout is stdout.
1925   "*arguments for uudecode program")
1926 (defvar wl-prog-uudecode-no-stdout-option nil
1927   "*If non-nil, uudecode program don't have option for output to stdout.")
1928
1929 ;; Obsolete variables. for compatibility.
1930 (defvar wl-address-filename wl-address-file)
1931 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
1932 (defvar wl-score-default-file-name wl-score-default-file)
1933 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
1934 (defvar wl-draft-prepared-config-alist nil)
1935 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
1936 (defvar wl-score-files-directory wl-score-files-dir)
1937 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
1938
1939 ;; plug
1940 (defvar wl-plugged-plug-on "ON")
1941 (defvar wl-plugged-plug-off "--")
1942 (defvar wl-plugged-auto-off "**")
1943 (defvar wl-plugged-server-indent 2)
1944 (defvar wl-plugged-port-indent 4)
1945 (defvar wl-plugged-queue-status-column 25)
1946
1947 (provide 'wl-vars)
1948
1949 ;;; wl-vars.el ends here