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