1 ;;; wl-vars.el -- Variable definitions for Wanderlust.
3 ;; Copyright 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
5 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
6 ;; Keywords: mail, net news
7 ;; Time-stamp: <00/04/28 16:11:11 teranisi>
9 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
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)
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.
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.
35 (if (module-installed-p 'custom)
38 (defconst wl-appname "Wanderlust")
39 (defconst wl-version elmo-version) ; equals to ELMO version.
40 (defconst wl-codename "Purple Rain")
42 ;;; Customizable Variables
45 "Wanderlust, a news and mail reading software."
47 :link '(custom-manual "(wl-ja)Top")
52 "Wanderlust, Preferences."
56 (defgroup wl-folder nil
57 "Wanderlust, folder buffer."
61 (defgroup wl-summary nil
62 "Wanderlust, summary buffer."
66 (defgroup wl-summary-marks nil
67 "Wanderlust, marks used in summary buffers."
71 (defgroup wl-expire nil
72 "Wanderlust, Expiring and archiving."
76 (defgroup wl-score nil
77 "Wanderlust, Score file handling."
81 (defgroup wl-highlight nil
82 "Wanderlust, Highlights."
86 (defgroup wl-draft nil
87 "Wanderlust, draft mode."
92 (defconst wl-on-emacs20 (> emacs-major-version 19))
94 (defconst wl-on-xemacs (featurep 'xemacs))
96 (defconst wl-on-nemacs (fboundp 'nemacs-version))
98 (defconst wl-on-mule (featurep 'mule))
100 (defconst wl-on-mule3
101 (and wl-on-mule (or wl-on-xemacs wl-on-emacs20)))
106 (defun-maybe locate-data-directory (a)))
109 (cond (wl-on-mule3 'binary)
110 (wl-on-mule '*noconv*)
114 (defvar wl-cs-autoconv
115 (cond (wl-on-mule3 'undecided)
116 (wl-on-mule '*autoconv*)
117 (wl-on-nemacs 2) ; junet...
121 (cond (wl-on-mule3 'junet)
122 (wl-on-mule '*junet*)
126 (defvar wl-cs-cache wl-cs-local)
128 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
131 (defcustom wl-from (if (boundp 'user-mail-address)
133 "*From string used in draft."
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)
145 (defcustom wl-organization nil
147 :type '(choice (const :tag "none" nil)
151 (defcustom wl-tmp-dir "~/tmp/"
152 "*Default temporary directory to save message, part."
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)
163 (defcustom wl-summary-from-func 'wl-summary-default-from
164 "*A function for displaying sender (From: field) information."
168 (defcustom wl-summary-subject-func 'wl-summary-default-subject
169 "*A function for displaying subject."
173 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
174 "*A filter function for comparing subjects."
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."
184 (defcustom wl-summary-update-confirm-threshold 500
185 "*Confirm updating summary if message number is larger than this value."
190 (defcustom wl-default-folder "%inbox"
191 "*Default folder used in wl-summary-goto-folder."
194 (defcustom wl-draft-folder "+draft"
198 (defcustom wl-trash-folder "+trash"
202 (defcustom wl-queue-folder "+queue"
207 (defcustom wl-default-spec "%"
212 (defcustom wl-insert-mail-followup-to nil
213 "*Insert Mail-Followup-To: field if non-nil."
217 (defcustom wl-insert-mail-reply-to nil
218 "*Insert Mail-Reply-To: field if non-nil."
222 (defcustom wl-insert-message-id t
223 "*Insert Message-ID: field if non-nil."
227 (defcustom wl-auto-insert-x-face t
228 "*Insert X-Face: field automatically"
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."
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)
245 "*Display demo at start time."
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)
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)
264 (defcustom wl-smtp-posting-user nil
265 "*SMTP authentication user. "
266 :type '(choice (const :tag "none" nil)
270 (defcustom wl-smtp-posting-server nil
271 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
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)
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"))
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)
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)
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)
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."
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"))
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)
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)
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)
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."
354 (defcustom wl-fetch-confirm-threshold 30000
355 "*Confirm fetching if message size is larger than this value."
359 (defcustom wl-prefetch-confirm t
360 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
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))
373 (defcustom wl-cache-prefetch-threshold 30000
374 "*Quit forward cache prefetching if message size is larger than this value."
378 (defcustom wl-thread-insert-opened nil
379 "*Non-nil forces to insert thread as opened in updating."
383 (defcustom wl-thread-open-reading-thread t
384 "*Non-nil forces to open reading thread."
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.")
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.")
484 ;;;; functions for draft
485 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
486 "A function to send message."
490 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
491 "A function to send news."
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"))
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))))
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))))
539 (defcustom wl-draft-always-delete-myself nil
540 "*Always delete myself from reciepient if non-nil."
544 (defcustom wl-draft-resume-folder-window t
545 "*Resume folder window in wl-draft-hide"
549 (defcustom wl-draft-use-frame nil
550 "*Raise new frame when composing draft."
554 (defcustom wl-draft-qmail-send-plugged nil
555 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
560 (defcustom wl-init-file "~/.wl"
561 "*User customization setting file."
565 (defcustom wl-folders-file "~/.folders"
570 (defcustom wl-address-file "~/.addresses"
575 (defcustom wl-alias-file "~/.im/Aliases"
576 "*Alias file for completion"
580 (defcustom wl-folder-info-save t
581 "If non-nil, save elmo-folder-info-alist."
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)
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)
624 (defcustom wl-summary-fix-timezone "JST"
625 "Non-nil forces to fix timezone of summary date."
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)
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)
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)
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
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)
665 (defcustom wl-summary-score-marks
666 (list wl-summary-new-mark)
667 "Persistent marks to scoring."
668 :type '(repeat (string :tag "Mark"))
671 (defcustom wl-use-scoring (not wl-on-nemacs)
672 "*If non-nil, enable scoring."
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."
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\")."
687 (defcustom wl-score-interactive-default-score 1000
688 "*Scoring commands will raise/lower the score with this number as the default."
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)
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."
706 (defcustom wl-score-folder-alist nil
707 "*Alist of folder regexp and score file."
708 :type '(repeat (list (regexp :tag "Folder Regexp")
711 (symbol :tag "Variable")))))
714 (defcustom wl-score-folder-alist-matchone t
715 "*If non-nil, getting only one element of `wl-score-folder-alist'."
719 (defcustom wl-score-default-file "all.SCORE"
720 "*Default score file name."
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)
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)
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))))
769 (defcustom wl-score-mode-mime-charset 'x-ctext
770 "*MIME Charset for score file."
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"))
781 (defcustom wl-draft-config-alist nil
782 "Alist of configuration field on draft.
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")
793 (choice (cons (sexp :tag "Field(Variable)")
795 (sexp :tag "Function")))))
798 (defcustom wl-draft-config-matchone nil
799 "*If non-nil, applied only one element of `wl-draft-config-alist'."
803 (defcustom wl-template-alist nil
805 :type '(repeat (list (string :tag "Name")
808 (choice (cons (sexp :tag "Field(Variable)")
810 (sexp :tag "Function")))))
813 (defcustom wl-template-visible-select t
814 "*If non-nil, select template with visible."
818 (defcustom wl-template-confirm nil
819 "*If non-nil, require your confirmation when selected template."
823 (defcustom wl-template-buffer-lines 7
824 "*Lines of template buffer."
829 (defcustom wl-draft-enable-queuing t
830 "*Non-nil enables queued sending."
835 (defcustom wl-auto-flush-queue t
836 "*If non-nil, sending queue is flushed when network status is toggled."
841 (defcustom wl-draft-reply-buffer-style 'split
843 :type '(radio (const split)
847 (defcustom wl-draft-queue-save-variables
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"))
855 (defcustom wl-draft-sendlog t
856 "*Keep send state in log if non-nil."
860 (defcustom wl-draft-sendlog-max-size 20000
861 "*Max file size of sendlog."
865 (defcustom wl-summary-default-number-column 5
866 "number of columns in summary buffer."
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.
874 '((\"^%inbox@qmail-maildir\" . 9)
875 (\"^-.*@news-server\" . 6))"
876 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
879 (defcustom wl-summary-highlight t
880 "Non-nil forces Summary buffer to be highlighted."
883 :group 'wl-highlight)
885 (defcustom wl-summary-highlight-partial-threshold 1000
886 "Summary is not highlighted entirely
887 if there are lines more than this value."
890 :group 'wl-highlight)
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."
897 :group 'wl-highlight)
899 (defcustom wl-summary-cache-use t
900 "Non-nil forces wl-summary to use cache file."
904 (defcustom wl-summary-auto-sync-marks t
905 "Non-nil forces to synchronize unread/important marks."
909 (defcustom wl-summary-cache-file ".wl-summary-cache"
910 "*Cache file for summary mode contents."
913 (defcustom wl-summary-view-file ".wl-summary-view"
914 "*current summary view."
917 (defcustom wl-thread-top-file ".wl-thread-top"
918 "*current thread top entity... obsolete."
921 (defcustom wl-thread-entity-file ".wl-thread-entity"
925 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
926 "*thread top entity list."
930 (defcustom wl-print-buffer-func 'lpr-buffer
931 "A function to print current buffer."
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."
942 (defcustom wl-use-petname t
943 "*Display petname in summary and default citation title."
947 (defcustom wl-use-folder-petname
949 "*List of situation using folder petname. Allowed situations are:
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)
960 (defcustom wl-folder-petname-alist nil
961 "A list of (realname . petname)"
962 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
965 (defcustom wl-summary-weekday-name-lang "ja"
966 "*Language to display week day."
967 :type '(choice (const "ja")
971 (string :tag "Other"))
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)
982 (defcustom wl-message-id-domain nil
983 "*Specific domain part of Message-ID."
984 :type '(choice (const :tag "Use System Name" nil)
988 (defcustom wl-break-pages t
989 "*Break Pages at ^L."
993 (defcustom wl-message-scroll-amount 5
994 "*Scroll amount by SPC key."
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)
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.
1007 :type '(repeat (string :tag "Field Regexp"))
1010 (defcustom wl-folder-window-width 20
1011 "*Width of folder window."
1016 (defcustom wl-summary-recenter t
1017 "*Recenter on redisplay"
1022 (defcustom wl-stay-folder-window nil
1023 "*Stay folder window when folder is selected if non-nil."
1027 (defcustom wl-reply-subject-prefix "Re: "
1028 "*Prefix of the subject of the replied message."
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."
1040 (defcustom wl-fcc nil
1041 "*Folder Carbon Copy."
1042 :type '(choice (const :tag "disable" nil)
1047 (defcustom wl-bcc nil
1048 "*Blind Carbon Copy."
1049 :type '(choice (const :tag "disable" nil)
1054 (defcustom wl-folder-desktop-name "Desktop"
1055 "*An implicit name of the folder top entity."
1060 (defcustom wl-summary-indent-length-limit 46
1061 "*Limit of indent length for thread."
1066 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1067 "*A string displayed in summary when no from field exists."
1071 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1072 "*A string displayed in summary when no subject field exists."
1076 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1077 "*The body content of a cancel message."
1081 (defcustom wl-summary-width 80
1082 "*Set summary line width if non nil."
1087 (defcustom wl-summary-pick-field-default "Body"
1088 "*Default field for pick."
1089 :type '(radio (const "From")
1097 (string :tag "Other"))
1100 (defcustom wl-from-width 17
1101 "*From width in summary."
1106 (defcustom wl-mime-charset (if wl-on-nemacs
1109 "*MIME Charset for summary and message."
1114 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1115 "A function to create X-Mailer field string ."
1119 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1120 (or hilit-background-mode 'dark)
1122 "*Background mode of highlight (for Old Emacsen). 'dark or 'light"
1123 :type '(radio (const dark)
1125 :group 'wl-highlight)
1127 (defcustom wl-highlight-x-face-func nil
1128 "A function to display X-Face."
1130 :group 'wl-highlight)
1132 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1133 "Location of the qmail-inject program."
1134 :type '(string :tag "Program")
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.
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"))
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."
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."
1159 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1160 "*All headers that match this regexp will be deleted when resending a message."
1164 (defcustom wl-refile-default-from-folder "+from"
1165 "*Folder name to refile by `wl-refile-guess-by-from'."
1166 :type '(string :tag "Folder")
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"))
1177 (defcustom wl-summary-reserve-mark-list
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"))
1184 (defcustom wl-summary-skip-mark-list
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"))
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"))
1198 (defcustom wl-refile-rule-alist nil
1203 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1205 (\"^Wanderlust\" . \"+wl\")
1206 (\"^Elips\" . \"+elips\")))"
1207 :type '(repeat (list (string :tag "Field")
1209 (cons (regexp :tag "Value")
1210 (string :tag "Folder")))))
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"))
1218 (defcustom wl-folder-use-server-diff t
1219 "Checked unread message number on IMAP4 server.
1220 Only IMAP4 folders have an effect."
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")))
1231 (defcustom wl-auto-check-folder-name nil
1232 "*The folder specified by this variable will be automatically checked
1234 :type '(choice (string :tag "Folder")
1235 (repeat (string :tag "Folder"))
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"))
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"))
1255 (defcustom wl-interactive-send nil
1256 "*If non-nil, require your confirmation when sending draft message."
1260 (defcustom wl-interactive-exit t
1261 "*If non-nil, require your confirmation when exiting WL."
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)
1273 (defvar wl-summary-move-direction-downward t)
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."
1282 (defcustom wl-auto-select-first nil
1283 "*If non-nil, display selected first message when enter summary."
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.
1293 See also variable `wl-summary-next-no-unread-command'."
1294 :type '(radio (const :tag "off" nil)
1297 (const skip-no-unread))
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)
1312 (defcustom wl-cache-prefetch-folder-list nil
1313 "*All folders that match this list prefetch next message,
1314 and reserved buffer cache.
1317 :type '(repeat (regexp :tag "Folder Regexp"))
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."
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.")
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"))
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"))
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"))
1348 (defcustom wl-search-mime-charset 'iso-2022-jp
1349 "*MIME Charset for searching message."
1353 (defcustom wl-folder-mime-charset-alist
1354 '(("^-alt\\.chinese" . big5)
1355 ("^-relcom\\." . koi8-r)
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")))
1363 (defcustom wl-folder-weekday-name-lang-alist
1364 '(("^-alt\\.chinese" . "en")
1365 ("^-relcom\\." . "en")
1367 ("^-han\\." . "en"))
1368 "Weekday name lang alist. If no match, wl-summary-weekday-name-lang
1371 '((\"xemacs-beta$\" . \"en\")
1372 (\"^-fj\" . \"ja\"))"
1373 :type '(repeat (cons (regexp :tag "Folder Regexp")
1374 (choice (const "ja")
1378 (string :tag "Other"))))
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)
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"))))
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) "$")
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")
1418 (const :tag "none" nil))))
1421 (defcustom wl-default-sync-range "update"
1422 "*Default sync range."
1423 :type '(choice (const "update")
1429 (const :tag "none" nil))
1432 (defcustom wl-ask-range t
1433 "*If non-nil, ask for a range for summary synchronization.
1434 If nil, always use default."
1438 (defcustom wl-folder-move-cur-folder nil
1439 "*Non-nil, move to current folder on folder-mode when goto folder."
1443 (defcustom wl-folder-check-async (not wl-on-nemacs)
1444 "*Check the folder asynchronous."
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)
1456 (defcustom wl-summary-exit-next-move t
1457 "*Non-nil, move to next-unsync or next-entity when exit summary."
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)
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."
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)
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."
1486 (defcustom wl-folder-removed-mark "#<removed>"
1487 "Mark for removed folder."
1491 (defcustom wl-folder-unsubscribe-mark "#"
1492 "Mark for unsubscribe folder."
1496 (defcustom wl-delete-folder-alist '(("^-" . remove))
1497 "*Alist of folder and delete policy.
1498 Each element is (folder-regexp . policy).
1500 The policy is one of the followings:
1502 'null : remove message.
1503 string : refile to the specified folder.
1505 otherwise : refile to the `wl-trash-folder'.
1507 '((\"^%\" . \"%#mh/trash\")
1509 (\"^\\\\+\" . trash))"
1510 :type '(repeat (cons (regexp :tag "Folder Regexp")
1511 (choice :tag "Policy"
1513 (const :tag "remove(null)" null)
1515 (const :tag "trash(other)" trash)
1516 (string :tag "Folder"))))
1519 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
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)
1529 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1530 "*Access group folders to make hierarchy structure."
1531 :type '(repeat (string :tag "Folder"))
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"))
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"))
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.
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")
1561 (regexp :tag "Folder Regexp")))))
1564 ;;; For Folder Manager
1566 (defcustom wl-interactive-save-folders t
1567 "*Non-nil require your confirmation when save folders."
1571 (defcustom wl-fldmgr-make-backup t
1572 "*Non-nil make backup file when save folders."
1576 (defcustom wl-fldmgr-folders-indent "\t"
1577 "*Indent string for folders file."
1581 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1582 "*A function to sort folder."
1586 (defcustom wl-fldmgr-sort-group-first t
1587 "*Non-nil Group folder is first when sort."
1591 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1592 "*If non-nil, completion for adding folder refers current folder list."
1596 ;;; For Expire and Archive
1598 (defcustom wl-expire-alist nil
1599 "Alist to decide a policy for expire.
1600 Each element is (folder-regexp (number or date) policy).
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.
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")
1618 (regexp :tag "Folder Regexp")
1619 (list (radio :value number
1624 (repeat :inline t integer)))
1625 (choice :tag "Policy"
1629 (string :tag "folder")
1632 :tag "Arg for function"
1636 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1637 "Alist to decide a policy for archive.
1638 Each element is (folder-regexp policy(function)).
1641 '((\"\\\\+work$\" wl-archive-date)
1642 (\"\\\\+ml/\" wl-archive-number1)
1643 (\".*\" wl-archive-number2))"
1644 :type '(repeat (list (regexp :tag "Folder Regexp")
1647 (sexp :tag "Argument"))))
1650 (defcustom wl-summary-expire-reserve-marks
1651 (list wl-summary-important-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.
1660 'all : reserved all permanent marks.
1661 'none : not reserve permanent marks.
1662 list : reserved specified permanent marks."
1663 :type '(repeat (string :tag "Mark"))
1666 (defcustom wl-expire-number-with-reserve-marks nil
1667 "If non-nil, include reserve message when expire by number."
1671 (defcustom wl-expire-add-seen-list t
1672 "*If non-nil, add seen message list when refile message at expire."
1676 (defcustom wl-expire-use-log nil
1677 "*If non-nil, write a log when expired."
1681 (defcustom wl-expire-folder-update-msgdb t
1682 "*Non-nil update summary msgdb when expire on folder mode."
1686 ;; for wl-expire-archive-{number1|number2}
1687 (defcustom wl-expire-archive-files 100
1688 "*The number of one archive folder."
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."
1699 (defcustom wl-expire-delete-oldmsg-confirm t
1700 "*If non-nil, require your confirmation when delete old message."
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)
1713 (symbol :tag "Other"))
1716 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1717 "*A format string for archive folder name."
1721 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1722 "*A regexp string for archive folder name."
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."
1732 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1733 "*A regexp string for archive date folder name."
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)
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."
1750 :group 'wl-highlight)
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."
1756 :group 'wl-highlight)
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))
1763 :type '(repeat (cons regexp face))
1764 :group 'wl-highlight)
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."
1771 :group 'wl-highlight)
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."
1780 :group 'wl-highlight)
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."
1788 :group 'wl-highlight)
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."
1798 :group 'wl-highlight)
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
1806 :group 'wl-highlight)
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)
1820 (defcustom wl-max-signature-size 400
1821 "*If the signature is larger than this chars, don't treat it as a signature."
1823 :group 'wl-highlight)
1825 ;; highilght about mouse
1826 (defcustom wl-use-highlight-mouse-line (and wl-on-xemacs window-system)
1827 "*Highlight mouse line, if non nil."
1829 :group 'wl-highlight)
1831 ;; highilght about folder
1832 (defcustom wl-highlight-folder-with-icon
1833 (and (featurep 'xemacs)
1835 "*Highlight folder with icon(XEmacs)."
1837 :group 'wl-highlight)
1838 (defcustom wl-highlight-group-folder-by-numbers t
1839 "*Highlight group folder by numbers."
1841 :group 'wl-highlight)
1843 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
1844 "Function to search signature area in the message body."
1846 :group 'wl-highlight)
1848 (defcustom wl-use-dnd (and wl-on-xemacs
1849 (featurep 'dragdrop))
1850 "If Non-nil, support dragdrop feature in XEmacs."
1854 (defcustom wl-reset-plugged-alist t
1855 "*If non-nil, reset `elmo-plugged-alist' when startup."
1859 (defcustom wl-demo-display-logo (or (and (featurep 'xemacs)
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."
1868 ;;; Internal variables
1869 (defvar wl-init nil)
1871 ;; For disconnected operations.
1872 (defvar wl-plugged-hook nil)
1873 (defvar wl-unplugged-hook nil)
1874 (defvar wl-plugged t)
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)
1880 (defvar wl-show-plug-status-on-modeline t)
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.")
1896 (defvar wl-highlight-thread-indent-string-regexp "[^\\[]*"
1897 "* A regexp string for thread indent...for highlight.")
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.")
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)
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)
1965 ;;; wl-vars.el ends here