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: <2000-04-07 10:40:28 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-update-confirm-threshold 500
179 "*Confirm updating summary if message number is larger than this value."
184 (defcustom wl-default-folder "%inbox"
185 "*Default folder used in wl-summary-goto-folder."
188 (defcustom wl-draft-folder "+draft"
192 (defcustom wl-trash-folder "+trash"
196 (defcustom wl-queue-folder "+queue"
201 (defcustom wl-default-spec "%"
206 (defcustom wl-insert-mail-followup-to nil
207 "*Insert Mail-Followup-To: field if non-nil."
211 (defcustom wl-insert-mail-reply-to nil
212 "*Insert Mail-Reply-To: field if non-nil."
216 (defcustom wl-insert-message-id t
217 "*Insert Message-ID: field if non-nil."
221 (defcustom wl-auto-insert-x-face t
222 "*Insert X-Face: field automatically"
226 (defcustom wl-x-face-file "~/.xface"
227 "*If file exists and `wl-auto-insert-x-face' is non-nil,
228 X-Face field is inserted using its contents."
232 (defcustom wl-subscribed-mailing-list nil
233 "*Subscribed mailing list. You had better set this variable
234 if you set wl-insert-mail-followup-to as t."
235 :type '(repeat string)
239 "*Display demo at start time."
243 (defcustom wl-envelope-from nil
244 "*Envelope From used in SMTP.
245 If nil, wl-from is used."
246 :type '(choice (const :tag "Same as 'From' field." nil)
250 (defcustom wl-smtp-connection-type nil
251 "*SMTP connection type.
252 If nil, default smtp connection type is used."
253 :type '(choice (const :tag "default" nil)
254 (const :tag "Use STARTTLS" starttls)
258 (defcustom wl-smtp-posting-user nil
259 "*SMTP authentication user. "
260 :type '(choice (const :tag "none" nil)
264 (defcustom wl-smtp-posting-server nil
265 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
269 (defcustom wl-smtp-posting-port nil
270 "*SMTP port number in `wl-smtp-posting-server'.
271 If nil, default SMTP port number(25) is used."
272 :type '(choice (const :tag "Default (25)" nil)
276 (defcustom wl-smtp-authenticate-type nil
277 "*SMTP Authentication type.
278 If nil, don't authenticate."
279 :type '(choice (const :tag "none" nil)
280 (const :tag "PLAIN" "plain")
281 (const :tag "CRAM-MD5" "cram-md5")
282 (const :tag "LOGIN" "login")
283 (string :tag "Other"))
286 (defcustom wl-pop-before-smtp-user nil
287 "*POP3 user name to send mail using POP-before-SMTP.
288 If nil, elmo-default-pop3-user is used.
289 To use POP-before-SMTP,
290 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
291 :type '(choice (const :tag "none" nil)
295 (defcustom wl-pop-before-smtp-server nil
296 "*POP3 server for POP-before-SMTP.
297 If nil, elmo-default-pop3-server is used."
298 :type '(choice (const :tag "none" nil)
302 (defcustom wl-pop-before-smtp-port nil
303 "*POP3 port for POP-before-SMTP.
304 If nil, elmo-default-pop3-port is used."
305 :type '(choice (const :tag "none" nil)
309 (defcustom wl-pop-before-smtp-ssl nil
310 "*Non-nil forces using SSL by default for POP-before-SMTP.
311 If nil, elmo-default-pop3-ssl is used."
315 (defcustom wl-pop-before-smtp-authenticate-type nil
316 "*Default Authentication type for POP-before-SMTP
317 If nil, elmo-default-pop3-authenticate-type is used."
318 :type '(choice (const :tag "none" nil)
319 (const :tag "APOP" "apop")
320 (const :tag "POP3" "user"))
323 (defcustom wl-nntp-posting-server nil
324 "*NNTP server name to post news.
325 If nil, elmo-default-nntp-server is used."
326 :type '(choice (const :tag "none" nil)
329 (defcustom wl-nntp-posting-user nil
330 "*NNTP user name to post news for authinfo.
331 If nil, elmo-default-nntp-user is used.
332 If nil, don't authenticate."
333 :type '(choice (const :tag "none" nil)
336 (defcustom wl-nntp-posting-port nil
337 "*NNTP port to post news.
338 If nil, elmo-default-nntp-port is used."
339 :type '(choice (const :tag "none" nil)
342 (defcustom wl-nntp-posting-ssl nil
343 "*Non-nil forces using SSL to post news.
344 If nil, elmo-default-nntp-ssl is used."
348 (defcustom wl-fetch-confirm-threshold 30000
349 "*Confirm fetching if message size is larger than this value."
353 (defcustom wl-prefetch-confirm t
354 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
358 (defcustom wl-prefetch-threshold 30000
359 "*Maximum size of message prefetched without confirmation.
360 If nil, all messages prefetched regardless of its size.
361 If message size is larger than this value, confirm prefetching
362 when `wl-prefetch-confirm' is non-nil."
363 :type '(choice (integer :tag "Threshold (bytes)")
364 (const :tag "No limitation" nil))
367 (defcustom wl-cache-prefetch-threshold 30000
368 "*Quit forward cache prefetching if message size is larger than this value."
372 (defcustom wl-thread-insert-opened nil
373 "*Non-nil forces to insert thread as opened in updating."
377 (defcustom wl-thread-open-reading-thread t
378 "*Non-nil forces to open reading thread."
383 (defvar wl-folder-mode-hook nil
384 "A hook called when wanderlust folder mode is started.")
385 (defvar wl-summary-toggle-disp-on-hook nil
386 "A hook called when message is toggled.")
387 (defvar wl-summary-toggle-disp-off-hook nil
388 "A hook called when message is disappeared.")
389 (defvar wl-summary-toggle-disp-folder-on-hook nil
390 "A hook called when folder is toggled.")
391 (defvar wl-summary-toggle-disp-folder-off-hook nil
392 "A hook called when folder is disappeared.")
393 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
394 "A hook called when message window is resumed when folder is toggled.")
395 (defvar wl-summary-mode-hook nil
396 "A hook called when summary mode is started.")
397 (defvar wl-summary-prepared-pre-hook nil
398 "A hook called before the summary buffer has been generated.")
399 (defvar wl-summary-prepared-hook nil
400 "A hook called after the summary buffer has been generated.")
401 (defvar wl-summary-sync-updated-hook nil
402 "A hook called when update summary buffer.")
403 (defvar wl-summary-unread-message-hook nil
404 "A hook called when unread message is displayed.")
405 (defvar wl-summary-edit-addresses-hook nil
406 "A hook called when address book is edited.")
407 (defvar wl-summary-divide-thread-when-subject-changed nil
408 "Divide thread when subject is changed.")
409 (defvar wl-init-hook nil
410 "A hook called when initialization is finished.")
412 "A hook called when Wanderlust is invoked.")
413 (defvar wl-reply-hook nil
414 "A hook called when replied.")
415 (defvar wl-mail-setup-hook nil
416 "A hook called when Draft is prepared.")
417 (defvar wl-draft-reedit-hook nil
418 "A hook called when Draft is re-edited.")
419 (defvar wl-draft-send-hook nil
420 "A hook called on the draft editing buffer before sending process starts.")
421 (defvar wl-mail-send-pre-hook nil
422 "A hook called just before the mail sending process starts.")
423 (defvar wl-news-send-pre-hook nil
424 "A hook called just before the news sending process starts.")
425 (defvar wl-message-buffer-created-hook nil
426 "A hook called when Message buffer is prepared.")
427 (defvar wl-message-redisplay-hook nil
428 "A hook called when Message is displayed.")
429 (defvar wl-message-exit-hook nil
430 "A hook called when quit message.")
431 (defvar wl-summary-exit-hook nil
432 "A hook called when exit summary mode.")
433 (defvar wl-highlight-headers-hook nil
434 "A hook called when header is highlighted.")
435 (defvar wl-highlight-message-hook nil
436 "A hook called when message is highlighted.")
437 (defvar wl-exit-hook nil
438 "A hook called when exit wanderlust.")
439 (defvar wl-folder-suspend-hook nil
440 "A hook called when suspend wanderlust.")
441 (defvar wl-auto-check-folder-pre-hook nil
442 "A hook called before auto check folders.")
443 (defvar wl-auto-check-folder-hook nil
444 "A hook called when auto check folders.")
445 (defvar wl-folder-check-entity-pre-hook nil
446 "A hook called before check entity.")
447 (defvar wl-folder-check-entity-hook nil
448 "A hook called when check entity.")
449 (defvar wl-draft-config-exec-hook nil
450 "A hook called when execute header-config on draft.")
451 (defvar wl-summary-expire-pre-hook nil
452 "A hook called before expire.")
453 (defvar wl-summary-expire-hook nil
454 "A hook called when expired.")
455 (defvar wl-summary-archive-pre-hook nil
456 "A hook called before archive.")
457 (defvar wl-summary-archive-hook nil
458 "A hook called when archived.")
459 (defvar wl-summary-line-inserted-hook nil
460 "A hook called when summary line is inserted.")
461 (defvar wl-thread-update-children-number-hook nil
462 "A hook called when children number is updated.")
463 (defvar wl-folder-update-access-group-hook nil
464 "A hook called when update access group folder.")
465 (defvar wl-draft-cited-hook nil
466 "A hook called after a message is cited.")
467 (defvar wl-draft-insert-x-face-field-hook nil
468 "A hook called after a x-face field is inserted.")
469 (defvar wl-template-mode-hook nil
470 "A hook called when template mode is started.")
471 (defvar wl-score-mode-hook nil
472 "A hook called when score mode is started.")
473 (defvar wl-make-plugged-hook nil
474 "A hook called when make plugged alist.")
475 (defvar wl-plugged-exit-hook nil
476 "A hook called when exit plugged mode.")
478 ;;;; functions for draft
479 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
480 "A function to send message."
484 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
485 "A function to send news."
489 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
490 "A function to send mail.
491 Prepared candidates are 'wl-draft-send-mail-with-smtp,
492 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
493 :type '(radio (function-item wl-draft-send-mail-with-smtp)
494 (function-item wl-draft-send-mail-with-qmail)
495 (function-item wl-draft-send-mail-with-pop-before-smtp)
496 (function :tag "Other"))
499 (defcustom wl-draft-reply-with-argument-list
500 '(("Reply-To" . (("Reply-To") nil nil))
501 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
502 ("From" . (("From") nil nil)))
503 "Alist of cons cell of
504 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
505 If car of each cons cell exists in original message,
506 cdr of each cons cell is used for draft message.
507 Default is for 'reply-to-author'."
508 :type '(repeat (cons (choice (string :tag "Field Name")
509 (repeat (string :tag "Field Name")))
510 (list (repeat :tag "Fields For To" string)
511 (repeat :tag "Fields For Cc" string)
512 (repeat :tag "Fields For Newsgroups" string))))
515 (defcustom wl-draft-reply-without-argument-list
516 '(("Followup-To" . (nil nil ("Followup-To")))
517 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
518 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
519 "Alist of cons cell of
520 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
521 'field-name' is a string.
522 'fields for ***' is a list of strings.
523 If car of each cons cell exists in original message,
524 cdr of each cons cell is used for draft message.
525 Default is for 'reply-to-all'."
526 :type '(repeat (cons (choice (string :tag "Field Name")
527 (repeat (string :tag "Field Name")))
528 (list (repeat :tag "Fields For To" string)
529 (repeat :tag "Fields For Cc" string)
530 (repeat :tag "Fields For Newsgroups" string))))
533 (defcustom wl-draft-always-delete-myself nil
534 "*Always delete myself from reciepient if non-nil."
538 (defcustom wl-draft-resume-folder-window t
539 "*Resume folder window in wl-draft-hide"
543 (defcustom wl-draft-use-frame nil
544 "*Raise new frame when composing draft."
548 (defcustom wl-draft-qmail-send-plugged nil
549 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
554 (defcustom wl-init-file "~/.wl"
555 "*User customization setting file."
559 (defcustom wl-folders-file "~/.folders"
564 (defcustom wl-address-file "~/.addresses"
569 (defcustom wl-alias-file "~/.im/Aliases"
570 "*Alias file for completion"
574 (defcustom wl-folder-info-save t
575 "If non-nil, save elmo-folder-info-alist."
579 (defcustom wl-summary-unread-mark "!"
580 "Mark for unread message."
581 :type '(string :tag "Mark")
582 :group 'wl-summary-marks)
583 (defcustom wl-summary-important-mark "$"
584 "Mark for important message."
585 :type '(string :tag "Mark")
586 :group 'wl-summary-marks)
587 (defcustom wl-summary-new-mark "N"
588 "Mark for new message."
589 :type '(string :tag "Mark")
590 :group 'wl-summary-marks)
591 (defcustom wl-summary-unread-uncached-mark "U"
592 "Mark for unread and uncached message."
593 :type '(string :tag "Mark")
594 :group 'wl-summary-marks)
595 (defcustom wl-summary-unread-cached-mark "!"
596 "Mark for unread but already cached message."
597 :type '(string :tag "Mark")
598 :group 'wl-summary-marks)
599 (defcustom wl-summary-read-uncached-mark "u"
600 "Mark for read but uncached message."
601 :type '(string :tag "Mark")
602 :group 'wl-summary-marks)
603 (defcustom wl-summary-score-over-mark "+"
604 "Score mark used for messages with high scores."
605 :type '(string :tag "Mark")
606 :group 'wl-summary-marks)
607 (defcustom wl-summary-score-below-mark "-"
608 "Score mark used for messages with low scores."
609 :type '(string :tag "Mark")
610 :group 'wl-summary-marks)
612 (defcustom wl-summary-no-mime-folder-list
613 (list (concat "^" (regexp-quote wl-draft-folder) "$"))
614 "*All folders that match this list don't analysis mime."
615 :type '(repeat string)
618 (defcustom wl-summary-fix-timezone "JST"
619 "Non-nil forces to fix timezone of summary date."
623 (defcustom wl-summary-default-score 0
624 "*Default message score level.
625 All scores generated by the score files will be added to this score.
626 If this variable is nil, scoring will be disabled."
627 :type '(choice (const :tag "disable" nil)
631 (defcustom wl-summary-important-above nil
632 "*Mark all messages with a score above this variable as important.
633 This variable is local to the summary buffers."
634 :type '(choice (const :tag "off" nil)
638 (defcustom wl-summary-temp-above nil
639 "*Mark all messages with a score above this variable as temp.
640 This variable is local to the summary buffers."
641 :type '(choice (const :tag "off" nil)
645 (defcustom wl-summary-mark-below 0
646 "*Mark all messages with a score below this variable as read.
647 This variable is local to each summary buffer and usually set by the
652 (defcustom wl-summary-expunge-below nil
653 "All messages that have a score less than this variable will be expunged.
654 This variable is local to the summary buffers."
655 :type '(choice (const :tag "off" nil)
659 (defcustom wl-summary-score-marks
660 (list wl-summary-new-mark)
661 "Persistent marks to scoring."
662 :type '(repeat (string :tag "Mark"))
665 (defcustom wl-use-scoring (not wl-on-nemacs)
666 "*If non-nil, enable scoring."
670 (defcustom wl-summary-rescore-partial-threshold 200
671 "*Summary is not scored entirely if there are messages more than this value
672 in sync-all or rescan."
676 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
677 "*Name of the directory where score files will be stored (default \"~/.elmo\")."
681 (defcustom wl-score-interactive-default-score 1000
682 "*Scoring commands will raise/lower the score with this number as the default."
686 (defcustom wl-score-expiry-days 7
687 "*Number of days before unused score file entries are expired.
688 If this variable is nil, no score file entries will be expired."
689 :type '(choice (const :tag "never" nil)
693 (defcustom wl-score-update-entry-dates t
694 "*In non-nil, update matching score entry dates.
695 If this variable is nil, then score entries that provide matches
696 will be expired along with non-matching score entries."
700 (defcustom wl-score-folder-alist nil
701 "*Alist of folder regexp and score file."
702 :type '(repeat (list (regexp :tag "Folder Regexp")
705 (symbol :tag "Variable")))))
708 (defcustom wl-score-folder-alist-matchone t
709 "*If non-nil, getting only one element of `wl-score-folder-alist'."
713 (defcustom wl-score-default-file "all.SCORE"
714 "*Default score file name."
718 (defcustom wl-score-simplify-fuzzy-regexp
719 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
720 "*Strings to be removed when doing fuzzy matches.
721 This can either be a regular expression or list of regular expressions."
722 :type '(repeat regexp)
725 (defcustom wl-score-header-default-entry
726 '(("number" -1000 perm =)
727 ("subject" -1000 nil nil)
728 ("from" -1000 perm s)
729 ("message-id" -1000 temp e)
730 ("references" -1000 perm e)
733 ("date" -1000 temp nil)
734 ("xref" -1000 perm s)
735 ("extra" -1000 perm s)
736 ("chars" -1000 perm >)
737 ("lines" -1000 perm >)
738 ("followup" -1000 perm s)
739 ("thread" -1000 temp s))
740 "*Default entry when insert score entry."
741 :type '(repeat (list (string :tag "Header")
742 (choice (integer :tag "Score")
743 (const :tag "Ask" nil))
744 (choice (const :tag "Permanent" perm)
745 (const :tag "Temporary" temp)
746 (const :tag "Ask" nil))
747 (choice (const :tag "Regexp string" r)
748 (const :tag "Substring" s)
749 (const :tag "fuzzy string" f)
750 (const :tag "Exact string" e)
751 (const :tag "REGEXP STRING" R)
752 (const :tag "SUBSTRING" S)
753 (const :tag "FUZZY STRING" F)
754 (const :tag "EXACT STRING" E)
755 (const :tag "less than" <)
756 (const :tag "less equal" <=)
757 (const :tag "greater than" >)
758 (const :tag "greater equal" >=)
759 (const :tag "equal" =)
760 (const :tag "Ask" nil))))
763 (defcustom wl-score-mode-mime-charset 'x-ctext
764 "*MIME Charset for score file."
768 (defcustom wl-draft-fields
769 '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
770 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
771 "Fields used in draft mode."
772 :type '(repeat (string :tag "Field"))
775 (defcustom wl-draft-config-alist nil
776 "Alist of configuration field on draft.
778 '((\"^To: .*wl@lists.airs.net\"
779 (\"From\" . wl-from2)
780 (\"Organization\" . wl-organization2))
781 (\"^To: .*hogehoge@\"
782 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
783 wl-my-draft-config-func-hoge))"
784 :type '(repeat (list (sexp :tag "Match")
787 (choice (cons (sexp :tag "Field(Variable)")
789 (sexp :tag "Function")))))
792 (defcustom wl-draft-config-matchone nil
793 "*If non-nil, applied only one element of `wl-draft-config-alist'."
797 (defcustom wl-template-alist nil
799 :type '(repeat (list (string :tag "Name")
802 (choice (cons (sexp :tag "Field(Variable)")
804 (sexp :tag "Function")))))
807 (defcustom wl-template-visible-select t
808 "*If non-nil, select template with visible."
812 (defcustom wl-template-confirm nil
813 "*If non-nil, require your confirmation when selected template."
817 (defcustom wl-template-buffer-lines 7
818 "*Lines of template buffer."
823 (defcustom wl-draft-enable-queuing t
824 "*Non-nil enables queued sending."
829 (defcustom wl-auto-flush-queue t
830 "*If non-nil, sending queue is flushed when network status is toggled."
835 (defcustom wl-draft-reply-buffer-style 'split
837 :type '(radio (const split)
841 (defcustom wl-draft-queue-save-variables
843 wl-smtp-posting-server smtp-service
844 wl-nntp-posting-server elmo-default-nntp-port)
845 "*Saving variables in queue info."
846 :type '(repeat (sexp :tag "Variable"))
849 (defcustom wl-draft-sendlog t
850 "*Keep send state in log if non-nil."
854 (defcustom wl-draft-sendlog-max-size 20000
855 "*Max file size of sendlog."
859 (defcustom wl-summary-default-number-column 5
860 "number of columns in summary buffer."
864 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
865 "Alist of folder and its number column.
866 If no matches, 'wl-summary-default-number-column' is used.
868 '((\"^%inbox@qmail-maildir\" . 9)
869 (\"^-.*@news-server\" . 6))"
870 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
873 (defcustom wl-summary-highlight t
874 "Non-nil forces Summary buffer to be highlighted."
877 :group 'wl-highlight)
879 (defcustom wl-summary-highlight-partial-threshold 1000
880 "Summary is not highlighted entirely
881 if there are lines more than this value."
884 :group 'wl-highlight)
886 (defcustom wl-summary-partial-highlight-above-lines 30
887 "If Summary has lines more than wl-summary-highlight-partial-threshold,
888 Summary lines are highlighted partialy above current position."
891 :group 'wl-highlight)
893 (defcustom wl-summary-cache-use t
894 "Non-nil forces wl-summary to use cache file."
898 (defcustom wl-summary-auto-sync-marks t
899 "Non-nil forces to synchronize unread/important marks."
903 (defcustom wl-summary-cache-file ".wl-summary-cache"
904 "*Cache file for summary mode contents."
907 (defcustom wl-summary-view-file ".wl-summary-view"
908 "*current summary view."
911 (defcustom wl-thread-top-file ".wl-thread-top"
912 "*current thread top entity... obsolete."
915 (defcustom wl-thread-entity-file ".wl-thread-entity"
919 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
920 "*thread top entity list."
924 (defcustom wl-print-buffer-func 'lpr-buffer
925 "A function to print current buffer."
929 (defcustom wl-ps-print-buffer-func
930 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
931 "A function to print current buffer with ps-print."
936 (defcustom wl-use-petname t
937 "*Display petname in summary and default citation title."
941 (defcustom wl-use-folder-petname
943 "*List of situation using folder petname. Allowed situations are:
945 modeline : displayed on modeline.
946 ask-folder : displayed on minibuffer when ask folder.
947 read-folder : can used for completion at `wl-summary-read-folder'."
948 :type '(set (const modeline)
954 (defcustom wl-folder-petname-alist nil
955 "A list of (realname . petname)"
956 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
959 (defcustom wl-summary-weekday-name-lang "ja"
960 "*Language to display week day."
961 :type '(choice (const "ja")
965 (string :tag "Other"))
969 (defcustom wl-local-domain nil
970 "*Domain part of this client (without hostname).
971 Set this if (system-name) does not return FQDN."
972 :type '(choice (const :tag "Use System Name" nil)
976 (defcustom wl-message-id-domain nil
977 "*Specific domain part of Message-ID."
978 :type '(choice (const :tag "Use System Name" nil)
982 (defcustom wl-break-pages t
983 "*Break Pages at ^L."
987 (defcustom wl-message-scroll-amount 5
988 "*Scroll amount by SPC key."
992 (defcustom wl-message-window-size '(1 . 4)
993 "*Size of summary and message window. cons cell of (Summary : Message)."
994 :type '(cons integer integer)
997 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
998 "Newsgroups" "Subject" "^From")
999 "*Sort order of header fields. Each elements are regexp of field name.
1001 :type '(repeat (string :tag "Field Regexp"))
1004 (defcustom wl-folder-window-width 20
1005 "*Width of folder window."
1010 (defcustom wl-summary-recenter t
1011 "*Recenter on redisplay"
1016 (defcustom wl-stay-folder-window nil
1017 "*Stay folder window when folder is selected if non-nil."
1021 (defcustom wl-reply-subject-prefix "Re: "
1022 "*Prefix of the subject of the replied message."
1027 (defcustom wl-folder-many-unsync-threshold 70
1028 "*Folders which contains messages more than this number are highlighted
1029 with wl-highlight-folder-many-face."
1034 (defcustom wl-fcc nil
1035 "*Folder Carbon Copy."
1036 :type '(choice (const :tag "disable" nil)
1041 (defcustom wl-bcc nil
1042 "*Blind Carbon Copy."
1043 :type '(choice (const :tag "disable" nil)
1048 (defcustom wl-folder-desktop-name "Desktop"
1049 "*An implicit name of the folder top entity."
1054 (defcustom wl-summary-indent-length-limit 46
1055 "*Limit of indent length for thread."
1060 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1061 "*A string displayed in summary when no from field exists."
1065 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1066 "*A string displayed in summary when no subject field exists."
1070 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1071 "*The body content of a cancel message."
1075 (defcustom wl-summary-width 80
1076 "*Set summary line width if non nil."
1081 (defcustom wl-summary-pick-field-default "Body"
1082 "*Default field for pick."
1083 :type '(radio (const "From")
1091 (string :tag "Other"))
1094 (defcustom wl-from-width 17
1095 "*From width in summary."
1100 (defcustom wl-mime-charset (if wl-on-nemacs
1103 "*MIME Charset for summary and message."
1108 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1109 "A function to create X-Mailer field string ."
1113 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1114 (or hilit-background-mode 'dark)
1116 "*Background mode of highlight (for Old Emacsen). 'dark or 'light"
1117 :type '(radio (const dark)
1119 :group 'wl-highlight)
1121 (defcustom wl-highlight-x-face-func nil
1122 "A function to display X-Face."
1124 :group 'wl-highlight)
1126 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1127 "Location of the qmail-inject program."
1128 :type '(string :tag "Program")
1131 (defcustom wl-qmail-inject-args nil
1132 "Arguments passed to qmail-inject programs.
1133 This should be a list of strings, one string for each argument.
1135 For e.g., if you wish to set the envelope sender address so that bounces
1136 go to the right place or to deal with listserv's usage of that address, you
1137 might set this variable to '(\"-f\" \"you@some.where\")."
1138 :type '(repeat (string :tag "Argument"))
1141 (defcustom wl-rejected-letter-start
1142 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1143 "Regexp specifying the beginning of the wrapper around a returned letter.
1144 This wrapper is generated by the mail system when rejecting a letter."
1148 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1149 "*All headers that match this regexp will be deleted when forwarding a message."
1153 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1154 "*All headers that match this regexp will be deleted when resending a message."
1158 (defcustom wl-refile-default-from-folder "+from"
1159 "*Folder name to refile by `wl-refile-guess-by-from'."
1160 :type '(string :tag "Folder")
1163 (defcustom wl-summary-auto-refile-skip-marks
1164 (list wl-summary-new-mark
1165 wl-summary-unread-uncached-mark
1166 wl-summary-unread-cached-mark)
1167 "Persistent marks to skip auto-refiling."
1168 :type '(repeat (string :tag "Mark"))
1171 (defcustom wl-summary-reserve-mark-list
1173 "If a message is already marked as temporal marks in this list,
1174 the message is not marked by any mark command."
1175 :type '(repeat (string :tag "Temp-Mark"))
1178 (defcustom wl-summary-skip-mark-list
1180 "If a message is already marked as temporal marks in this list,
1181 the message is skipped at cursor move."
1182 :type '(repeat (string :tag "Temp-Mark"))
1185 (defcustom wl-summary-incorporate-marks
1186 (list wl-summary-new-mark
1187 wl-summary-unread-uncached-mark)
1188 "Persistent marks to prefetch at `wl-summary-incorporate'"
1189 :type '(repeat (string :tag "Mark"))
1192 (defcustom wl-refile-rule-alist nil
1197 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1199 (\"^Wanderlust\" . \"+wl\")
1200 (\"^Elips\" . \"+elips\")))"
1201 :type '(repeat (list (string :tag "Field")
1203 (cons (regexp :tag "Value")
1204 (string :tag "Folder")))))
1207 (defcustom wl-strict-diff-folders nil
1208 "Folders in this list are checked its unsync message number strictly."
1209 :type '(repeat (string :tag "Folder"))
1212 (defcustom wl-folder-use-server-diff t
1213 "Checked unread message number on IMAP4 server.
1214 Only IMAP4 folders have an effect."
1218 (defcustom wl-force-fetch-folders nil
1219 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1220 :type '(choice (const :tag "off" nil)
1221 (const :menu-tag "on" t)
1222 (repeat (regexp :tag "Folder Regexp")))
1225 (defcustom wl-auto-check-folder-name nil
1226 "*The folder specified by this variable will be automatically checked
1228 :type '(choice (string :tag "Folder")
1229 (repeat (string :tag "Folder"))
1233 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1234 "All folders that match this list won't be checked when group is
1235 automatically checked (or desktop is checked).
1236 This value is preceded by wl-auto-check-folder-list.
1237 Each elements are regexp of folder name."
1238 :type '(repeat (regexp :tag "Folder Regexp"))
1241 (defcustom wl-auto-check-folder-list nil
1242 "All folders that match this list are checked when group is
1243 automatically checked (or desktop is checked).
1244 This value precedes wl-auto-uncheck-folder-list.
1245 Each elements are regexp of folder name."
1246 :type '(repeat (regexp :tag "Folder Regexp"))
1249 (defcustom wl-interactive-send nil
1250 "*If non-nil, require your confirmation when sending draft message."
1254 (defcustom wl-interactive-exit t
1255 "*If non-nil, require your confirmation when exiting WL."
1259 (defcustom wl-summary-move-order 'unread
1260 "*The order of priority when move in summary mode.
1261 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1262 If this variable is `new', precede \"N\" mark."
1263 :type '(radio (const new)
1267 (defvar wl-summary-move-direction-downward t)
1269 (defcustom wl-summary-move-direction-toggle t
1270 "*If non-nil, search direction for the next message will be determined
1271 depends on previous search direction.
1272 It uses wl-summary-move-direction-downward as a direction flag."
1276 (defcustom wl-auto-select-first nil
1277 "*If non-nil, display selected first message when enter summary."
1281 (defcustom wl-auto-select-next nil
1282 "*If non-nil, offer to go to the next folder from the end of the previous.
1283 If the value is the symbol `unread', go to the next folder
1284 that no unread message exists. If the value is the symbol `skip-no-unread',
1285 skip the folder that no unread message exists.
1287 See also variable `wl-summary-next-no-unread-command'."
1288 :type '(radio (const :tag "off" nil)
1291 (const skip-no-unread))
1294 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1295 "*All folder types that match this list prefetch next message,
1296 and reserved buffer cache."
1297 :type '(set (const localdir)
1306 (defcustom wl-cache-prefetch-folder-list nil
1307 "*All folders that match this list prefetch next message,
1308 and reserved buffer cache.
1311 :type '(repeat (regexp :tag "Folder Regexp"))
1314 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1315 "*A function to get message number when prefetch next message."
1320 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1321 ; "All folders that match this list won't be cached when reading messages.
1322 ;Each elements are regexp of folder name.")
1324 (defcustom wl-summary-always-sticky-folder-list nil
1325 "All folders that match this list has sticky summary.
1326 Each elements are regexp of folder name."
1327 :type '(repeat (regexp :tag "Folder Regexp"))
1330 (defcustom wl-no-save-folder-list '("^/.*$")
1331 "All folders that match this list won't save its msgdb.
1332 Each elements are regexp of folder name."
1333 :type '(repeat (regexp :tag "Folder Regexp"))
1336 (defcustom wl-save-folder-list nil
1337 "All folders that match this list save its msgdb.
1338 Each elements are regexp of folder name."
1339 :type '(repeat (regexp :tag "Folder Regexp"))
1342 (defcustom wl-search-mime-charset 'iso-2022-jp
1343 "*MIME Charset for searching message."
1347 (defcustom wl-folder-mime-charset-alist
1348 '(("^-alt\\.chinese" . big5)
1349 ("^-relcom\\." . koi8-r)
1351 ("^-han\\." . euc-kr))
1352 "Charset alist. If no match, wl-mime-charset is used."
1353 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1357 (defcustom wl-folder-weekday-name-lang-alist
1358 '(("^-alt\\.chinese" . "en")
1359 ("^-relcom\\." . "en")
1361 ("^-han\\." . "en"))
1362 "Weekday name lang alist. If no match, wl-summary-weekday-name-lang
1365 '((\"xemacs-beta$\" . \"en\")
1366 (\"^-fj\" . \"ja\"))"
1367 :type '(repeat (cons (regexp :tag "Folder Regexp")
1368 (choice (const "ja")
1372 (string :tag "Other"))))
1375 (defcustom wl-folder-thread-indent-set-alist
1376 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1377 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1378 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1379 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1380 "Thread indent set alist.
1381 If no match, following indent set is used.
1382 (wl-thread-indent-level
1383 wl-thread-have-younger-brother-str
1384 wl-thread-youngest-child-str
1385 wl-thread-vertical-str
1386 wl-thread-horizontal-str
1387 wl-thread-space-str)
1389 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1390 :type '(repeat (cons (regexp :tag "Folder Regexp")
1391 (group (integer :tag "Indent")
1392 (string :tag "Yonger Brother")
1393 (string :tag "Yonger Child")
1394 (string :tag "Vertical")
1395 (string :tag "Horizontal")
1396 (string :tag "Space"))))
1399 (defcustom wl-folder-sync-range-alist
1400 (list (cons "^&.*$" "all")
1401 (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1402 (regexp-quote wl-queue-folder) "$")
1404 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1405 :type '(repeat (cons (regexp :tag "Folder Regexp")
1406 (choice (const "update")
1412 (const :tag "none" nil))))
1415 (defcustom wl-default-sync-range "update"
1416 "*Default sync range."
1417 :type '(choice (const "update")
1423 (const :tag "none" nil))
1426 (defcustom wl-ask-range t
1427 "*If non-nil, ask for a range for summary synchronization.
1428 If nil, always use default."
1432 (defcustom wl-folder-move-cur-folder nil
1433 "*Non-nil, move to current folder on folder-mode when goto folder."
1437 (defcustom wl-folder-check-async (not wl-on-nemacs)
1438 "*Check the folder asynchronous."
1442 (defcustom wl-folder-notify-deleted nil
1443 "*Non-nil, display negative number on folder-mode when message is deleted
1444 in folder. If the value is 'sync, msgdb would be synchronized."
1445 :type '(choice (const :tag "off" nil)
1450 (defcustom wl-summary-exit-next-move t
1451 "*Non-nil, move to next-unsync or next-entity when exit summary."
1455 (defcustom wl-summary-next-no-unread-command
1456 '(wl-summary-read wl-summary-down wl-summary-up)
1457 "*Command list available when the value of `wl-auto-select-next' is 'unread
1458 or 'skip-no-unread."
1459 :type '(repeat function)
1462 (defcustom wl-summary-search-via-nntp 'confirm
1463 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1467 (defcustom wl-summary-keep-cursor-command
1468 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1469 "*Command list to keep cursor position when folder is changed to
1470 already existing summary."
1471 :type '(repeat function)
1474 (defcustom wl-summary-showto-folder-regexp nil
1475 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1476 Sender information in summary mode."
1480 (defcustom wl-folder-removed-mark "#<removed>"
1481 "Mark for removed folder."
1485 (defcustom wl-folder-unsubscribe-mark "#"
1486 "Mark for unsubscribe folder."
1490 (defcustom wl-delete-folder-alist '(("^-" . remove))
1491 "*Alist of folder and delete policy.
1492 Each element is (folder-regexp . policy).
1494 The policy is one of the followings:
1496 'null : remove message.
1497 string : refile to the specified folder.
1499 otherwise : refile to the `wl-trash-folder'.
1501 '((\"^%\" . \"%#mh/trash\")
1503 (\"^\\\\+\" . trash))"
1504 :type '(repeat (cons (regexp :tag "Folder Regexp")
1505 (choice :tag "Policy"
1507 (const :tag "remove(null)" null)
1509 (const :tag "trash(other)" trash)
1510 (string :tag "Folder"))))
1513 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1515 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1516 POLICY is copy or move."
1517 :type '(repeat (cons (regexp :tag "Folder Regexp")
1518 (choice (const copy)
1523 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1524 "*Access group folders to make hierarchy structure."
1525 :type '(repeat (string :tag "Folder"))
1528 (defcustom wl-folder-init-load-access-folders nil
1529 "*Access group folders to load folder list on `wl-folder-init'.
1530 If this variable is non-nil,
1531 `wl-folder-init-no-load-access-folders' will be ignored."
1532 :type '(repeat (regexp :tag "Folder Regexp"))
1535 (defcustom wl-folder-init-no-load-access-folders nil
1536 "*Access group folders to not load folder list on `wl-folder-init'.
1537 If `wl-folder-init-load-access-folders' is non-nil,
1538 this variable will be ignored."
1539 :type '(repeat (regexp :tag "Folder Regexp"))
1542 (defcustom wl-folder-access-subscribe-alist nil
1543 "*Subscribe folders to fetching folder entries.
1544 Each element is (group-regexp (subscribe folder-regexp ...)).
1545 If subscribe is non-nil, subscribe when match folder-regexp.
1546 If subscribe is nil, unsubscribe when match folder-regexp.
1549 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1550 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1551 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
1552 :type '(repeat (cons (regexp :tag "Folder Regexp")
1553 (list (boolean :tag "Subscribed")
1555 (regexp :tag "Folder Regexp")))))
1558 ;;; For Folder Manager
1560 (defcustom wl-interactive-save-folders t
1561 "*Non-nil require your confirmation when save folders."
1565 (defcustom wl-fldmgr-make-backup t
1566 "*Non-nil make backup file when save folders."
1570 (defcustom wl-fldmgr-folders-indent "\t"
1571 "*Indent string for folders file."
1575 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1576 "*A function to sort folder."
1580 (defcustom wl-fldmgr-sort-group-first t
1581 "*Non-nil Group folder is first when sort."
1585 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1586 "*If non-nil, completion for adding folder refers current folder list."
1590 ;;; For Expire and Archive
1592 (defcustom wl-expire-alist nil
1593 "Alist to decide a policy for expire.
1594 Each element is (folder-regexp (number or date) policy).
1596 The policy is one of the followings:
1597 'remove : remove messsage.
1598 'trash : refile wl-trash-folder.
1599 string : refile string folder.
1600 function : call function.
1603 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
1604 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
1605 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
1606 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
1607 (\"^\\\\+misc$\" (date 14) trash))"
1608 :type '(repeat (choice (list :tag "No-match"
1609 (regexp :tag "Folder Regexp")
1612 (regexp :tag "Folder Regexp")
1613 (list (radio :value number
1618 (repeat :inline t integer)))
1619 (choice :tag "Policy"
1623 (string :tag "folder")
1626 :tag "Arg for function"
1630 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1631 "Alist to decide a policy for archive.
1632 Each element is (folder-regexp policy(function)).
1635 '((\"\\\\+work$\" wl-archive-date)
1636 (\"\\\\+ml/\" wl-archive-number1)
1637 (\".*\" wl-archive-number2))"
1638 :type '(repeat (list (regexp :tag "Folder Regexp")
1641 (sexp :tag "Argument"))))
1644 (defcustom wl-summary-expire-reserve-marks
1645 (list wl-summary-important-mark
1647 wl-summary-unread-mark
1648 wl-summary-unread-uncached-mark
1649 wl-summary-unread-cached-mark)
1650 "Permanent marks of reserved message when expire.
1651 Don't reserve temporary mark message.
1654 'all : reserved all permanent marks.
1655 'none : not reserve permanent marks.
1656 list : reserved specified permanent marks."
1657 :type '(repeat (string :tag "Mark"))
1660 (defcustom wl-expire-number-with-reserve-marks nil
1661 "If non-nil, include reserve message when expire by number."
1665 (defcustom wl-expire-add-seen-list t
1666 "*If non-nil, add seen message list when refile message at expire."
1670 (defcustom wl-expire-use-log nil
1671 "*If non-nil, write a log when expired."
1675 (defcustom wl-expire-folder-update-msgdb t
1676 "*Non-nil update summary msgdb when expire on folder mode."
1680 ;; for wl-expire-archive-{number1|number2}
1681 (defcustom wl-expire-archive-files 100
1682 "*The number of one archive folder."
1686 ;; for wl-expire-archive-{number1|number2|date}
1687 (defcustom wl-expire-archive-get-folder-func
1688 'wl-expire-archive-get-folder
1689 "*A function to get archive folder name."
1693 (defcustom wl-expire-delete-oldmsg-confirm t
1694 "*If non-nil, require your confirmation when delete old message."
1698 ;; for wl-expire-archive-get-folder
1699 (defcustom wl-expire-archive-folder-type 'zip
1700 "*Archiver type of archive folder."
1701 :type '(radio (const zip)
1707 (symbol :tag "Other"))
1710 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1711 "*A format string for archive folder name."
1715 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1716 "*A regexp string for archive folder name."
1720 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1721 ;; $folder-199812;zip
1722 "*A format string for archive date folder name."
1726 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1727 "*A regexp string for archive date folder name."
1731 (defcustom wl-expire-archive-folder-prefix nil
1732 "*Prefix for archive folder."
1733 :type '(radio (const :tag "nothing" nil)
1734 (const :tag "full" t)
1740 ;; highilght about summary
1741 (defcustom wl-highlight-max-summary-lines 10000
1742 "*If the summary is larger than this lines, don't highlight it."
1744 :group 'wl-highlight)
1746 ;; highilght about draft and message
1747 (defcustom wl-highlight-body-too t
1748 "*In addition to header, highlight the body too. if non nil."
1750 :group 'wl-highlight)
1752 (defcustom wl-highlight-message-header-alist
1753 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
1754 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
1755 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
1757 :type '(repeat (cons regexp face))
1758 :group 'wl-highlight)
1760 (defcustom wl-highlight-citation-prefix-regexp
1761 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
1762 "All lines that match this regexp will be highlighted with
1763 `wl-highlight-message-cited-text-*' face."
1765 :group 'wl-highlight)
1767 (defcustom wl-highlight-highlight-citation-too nil
1768 "*Whether the whole citation line should go in the
1769 `wl-highlight-citation-face' face.
1770 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
1771 default face, and the remainder of the line is in the
1772 wl-highlight-message-cited-text face."
1774 :group 'wl-highlight)
1776 (defcustom wl-highlight-force-citation-header-regexp
1777 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
1778 "*The pattern to match the prolog of a cited block.
1779 Text in the body of a message which matches this will be displayed in
1780 the `wl-highlight-message-headers' face."
1782 :group 'wl-highlight)
1784 (defcustom wl-highlight-citation-header-regexp
1785 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
1786 "^At[^\n]+\n[^\n]+wrote:\n\\|"
1787 "^.*\\(writes\\|wrote\\|said\\):\n")
1788 "*The pattern to match the prolog of a cited block.
1789 Text in the body of a message which matches this will be displayed in
1790 the `wl-highlight-message-headers' face."
1792 :group 'wl-highlight)
1794 (defcustom wl-highlight-max-message-size 10000
1795 "*If the message body is larger than this many chars, don't highlight it.
1796 This is to prevent us from wasting time trying to fontify things like
1797 uuencoded files and large digests. If this is nil, all messages will
1800 :group 'wl-highlight)
1802 ;; highilght about signature (of draft and message)
1803 (defcustom wl-highlight-signature-separator
1804 '("\n--+\n" "\n\n--+.*\n*\\'")
1805 "List of regexps matching signature separator.
1806 It will be verified from head to tail looking for a separator.
1807 Verification will be done from the end of the buffer.
1808 No need to specify \"^-- $\" in this list,
1809 because it is verified by default.
1810 This variable can also be a regex. "
1811 :type '(repeat regexp)
1812 :group 'wl-highlight)
1814 (defcustom wl-max-signature-size 400
1815 "*If the signature is larger than this chars, don't treat it as a signature."
1817 :group 'wl-highlight)
1819 ;; highilght about mouse
1820 (defcustom wl-use-highlight-mouse-line (and wl-on-xemacs window-system)
1821 "*Highlight mouse line, if non nil."
1823 :group 'wl-highlight)
1825 ;; highilght about folder
1826 (defcustom wl-highlight-folder-with-icon
1827 (and (featurep 'xemacs)
1829 "*Highlight folder with icon(XEmacs)."
1831 :group 'wl-highlight)
1832 (defcustom wl-highlight-group-folder-by-numbers t
1833 "*Highlight group folder by numbers."
1835 :group 'wl-highlight)
1837 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
1838 "Function to search signature area in the message body."
1840 :group 'wl-highlight)
1842 (defcustom wl-use-dnd (and wl-on-xemacs
1843 (featurep 'dragdrop))
1844 "If Non-nil, support dragdrop feature in XEmacs."
1848 (defcustom wl-reset-plugged-alist t
1849 "*If non-nil, reset `elmo-plugged-alist' when startup."
1853 (defcustom wl-demo-display-logo (or (and (featurep 'xemacs)
1855 (and (module-installed-p 'image)
1856 (image-type-available-p 'xpm))
1857 (module-installed-p 'bitmap))
1858 "If non-nil, display image (or bitmap) logo in th Wanderlust opening demo."
1862 ;;; Internal variables
1863 (defvar wl-init nil)
1865 ;; For disconnected operations.
1866 (defvar wl-plugged-hook nil)
1867 (defvar wl-unplugged-hook nil)
1868 (defvar wl-plugged t)
1870 (defvar wl-plug-state-indicator-on " [ON] ")
1871 (defvar wl-plug-state-indicator-off " [--] ")
1872 (defvar wl-plug-state-indicator wl-plug-state-indicator-on)
1874 (defvar wl-show-plug-status-on-modeline t)
1876 ;; Advanced thread view.
1877 (defvar wl-thread-indent-level 1
1878 "*Indent level for thread.")
1879 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
1880 "*A string for thread branch line. It should contain one character.")
1881 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
1882 "*A string for thread branch line. It should contain one character.")
1883 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
1884 "*A string for thread branch line. It should contain one character.")
1885 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
1886 "*A string for thread branch line. It should contain one character.")
1887 (defvar wl-thread-space-str "
\e$B!!
\e(B"
1888 "*A string for thread branch line. It should contain one character.")
1890 (defvar wl-highlight-thread-indent-string-regexp "[^\\[]*"
1891 "* A regexp string for thread indent...for highlight.")
1893 ;; folder icons. filename relative to wl-icon-dir
1894 (defvar wl-opened-group-folder-icon "opened.xpm"
1895 "*Icon file for opened group folder.")
1896 (defvar wl-closed-group-folder-icon "closed.xpm"
1897 "*Icon file for closed group folder.")
1898 (defvar wl-nntp-folder-icon "news.xpm"
1899 "*Icon file for nntp folder.")
1900 (defvar wl-imap-folder-icon "imap.xpm"
1901 "*Icon file for imap folder.")
1902 (defvar wl-pop-folder-icon "pop.xpm"
1903 "*Icon file for pop folder.")
1904 (defvar wl-localdir-folder-icon "local.xpm"
1905 "*Icon file for localdir folder.")
1906 (defvar wl-localnews-folder-icon "localnews.xpm"
1907 "*Icon file for localnews folder.")
1908 (defvar wl-internal-folder-icon "internal.xpm"
1909 "*Icon file for internal folder.")
1910 (defvar wl-multi-folder-icon "multi.xpm"
1911 "*Icon file for multi folder.")
1912 (defvar wl-filter-folder-icon "filter.xpm"
1913 "*Icon file for filter folder.")
1914 (defvar wl-archive-folder-icon "archive.xpm"
1915 "*Icon file for archive folder.")
1916 (defvar wl-pipe-folder-icon "pipe.xpm"
1917 "*Icon file for pipe folder.")
1918 (defvar wl-maildir-folder-icon "maildir.xpm"
1919 "*Icon file for maildir folder.")
1920 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
1921 "*Icon file for emptied trash folder.")
1922 (defvar wl-trash-folder-icon "trash.xpm"
1923 "*Icon file for trash folder.")
1924 (defvar wl-draft-folder-icon "draft.xpm"
1925 "*Icon file for draft folder.")
1926 (defvar wl-queue-folder-icon "queue.xpm"
1927 "*Icon file for queue folder.")
1928 (defvar wl-plugged-icon "plugged.xpm"
1929 "*Icon file for plugged state.")
1930 (defvar wl-unplugged-icon "unplugged.xpm"
1931 "*Icon file for unplugged state.")
1932 (defvar wl-prog-uudecode "uudecode"
1933 "*uudecode program name")
1934 (defvar wl-prog-uudecode-arg '("-p") ;; outout is stdout.
1935 "*arguments for uudecode program")
1936 (defvar wl-prog-uudecode-no-stdout-option nil
1937 "*If non-nil, uudecode program don't have option for output to stdout.")
1939 ;; Obsolete variables. for compatibility.
1940 (defvar wl-address-filename wl-address-file)
1941 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
1942 (defvar wl-score-default-file-name wl-score-default-file)
1943 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
1944 (defvar wl-draft-prepared-config-alist nil)
1945 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
1946 (defvar wl-score-files-directory wl-score-files-dir)
1947 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
1950 (defvar wl-plugged-plug-on "ON")
1951 (defvar wl-plugged-plug-off "--")
1952 (defvar wl-plugged-auto-off "**")
1953 (defvar wl-plugged-server-indent 2)
1954 (defvar wl-plugged-port-indent 4)
1955 (defvar wl-plugged-queue-status-column 25)
1959 ;;; wl-vars.el ends here