1 ;;; wl-vars.el -- Variable definitions for Wanderlust.
3 ;; Copyright (C) 1998,1999,2000,2001 Yuuichi Teranishi <teranisi@gohome.org>
4 ;; Copyright (C) 1998,1999,2000,2001 Masahiro MURATA <muse@ba2.so-net.ne.jp>
6 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
7 ;; Masahiro MURATA <muse@ba2.so-net.ne.jp>
8 ;; Keywords: mail, net news
10 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
36 (if (module-installed-p 'custom)
39 ;;; Customizable Variables
42 "Wanderlust, a news and mail reading software."
45 (if (and (boundp 'current-language-environment)
46 (string-equal "Japanese"
47 (symbol-value 'current-language-environment)))
54 "Wanderlust, Preferences."
58 (defgroup wl-folder nil
59 "Wanderlust, folder buffer."
63 (defgroup wl-summary nil
64 "Wanderlust, summary buffer."
68 (defgroup wl-summary-marks nil
69 "Wanderlust, marks used in summary buffers."
73 (defgroup wl-expire nil
74 "Wanderlust, Expiring and archiving."
78 (defgroup wl-score nil
79 "Wanderlust, Score file handling."
83 (defgroup wl-highlight nil
84 "Wanderlust, Highlights."
88 (defgroup wl-draft nil
89 "Wanderlust, draft mode."
94 (defconst wl-on-xemacs (featurep 'xemacs))
96 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
97 (>= emacs-major-version 21)))
99 (defconst wl-on-nemacs (fboundp 'nemacs-version))
101 (defconst wl-on-mule (featurep 'mule))
103 (defconst wl-on-mule3
104 (and wl-on-mule (or wl-on-xemacs
105 (> emacs-major-version 19))))
110 (defun-maybe locate-data-directory (a)))
113 (cond (wl-on-mule3 'binary)
114 (wl-on-mule '*noconv*)
118 (defvar wl-cs-autoconv
119 (cond (wl-on-mule3 'undecided)
120 (wl-on-mule '*autoconv*)
121 (wl-on-nemacs 2) ; junet...
125 (cond (wl-on-mule3 'junet)
126 (wl-on-mule '*junet*)
130 (defvar wl-cs-cache wl-cs-local)
132 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
135 (defcustom wl-from (if (boundp 'user-mail-address)
137 "*From string used in draft."
141 (defcustom wl-user-mail-address-list nil
142 "*A list of user's mail addresses.
143 This list is used to judge whether an address is user's or not.
144 You should set this variable if you use multiple e-mail addresses.
145 If you don't have multiple e-mail addresses, you don't have to set this."
146 :type '(repeat string)
149 (defcustom wl-organization nil
151 :type '(choice (const :tag "none" nil)
155 (defcustom wl-tmp-dir "~/tmp/"
156 "*Default temporary directory to save message, part."
160 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
161 (locate-data-directory "wl")
162 (let ((icons (expand-file-name "wl/icons/"
164 (if (file-directory-p icons)
166 "*Icon directory (XEmacs or Emacs 21)."
167 :type '(choice (const :tag "none" nil)
171 (defcustom wl-summary-from-func 'wl-summary-default-from
172 "*A function for displaying sender (From: field) information."
176 (defcustom wl-summary-subject-func 'wl-summary-default-subject
177 "*A function for displaying subject."
181 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
182 "*A filter function for comparing subjects."
186 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
187 "*If message does not have in-reply-to field nor references field and
188 subject matches this regexp, search parent message by subject matching."
192 (defcustom wl-summary-update-confirm-threshold 500
193 "*Confirm updating summary if message number is larger than this value."
198 (defcustom wl-default-folder "%inbox"
199 "*Default folder used in `wl-summary-goto-folder'."
202 (defcustom wl-draft-folder "+draft"
206 (defcustom wl-trash-folder "+trash"
210 (defcustom wl-queue-folder "+queue"
215 (defcustom wl-default-spec "%"
220 (defcustom wl-insert-mail-followup-to nil
221 "*Insert Mail-Followup-To: field if non-nil."
225 (defcustom wl-insert-mail-reply-to nil
226 "*Insert Mail-Reply-To: field if non-nil."
230 (defcustom wl-insert-message-id t
231 "*Insert Message-ID: field if non-nil."
235 (defcustom wl-auto-insert-x-face t
236 "*Insert X-Face: field automatically."
240 (defcustom wl-x-face-file "~/.xface"
241 "*X-Face field is inserted using its contents.
242 If file exists and `wl-auto-insert-x-face' is non-nil."
246 (defcustom wl-subscribed-mailing-list nil
247 "*Subscribed mailing list.
248 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
249 :type '(repeat string)
253 "*Display demo at start time."
257 (defcustom wl-envelope-from nil
258 "*Envelope From used in SMTP.
259 If nil, `wl-from' is used."
260 :type '(choice (const :tag "Same as 'From' field." nil)
264 (defcustom wl-draft-add-references t
265 "*If non-nil, message-id of the cited message is inserted to the
266 references field of the current draft."
270 (defcustom wl-smtp-connection-type nil
271 "*SMTP connection type.
272 If nil, default smtp connection type is used."
273 :type '(choice (const :tag "default" nil)
274 (const :tag "Use STARTTLS" starttls)
278 (defcustom wl-smtp-posting-user nil
279 "*SMTP authentication user."
280 :type '(choice (const :tag "none" nil)
284 (defcustom wl-smtp-posting-server nil
285 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
286 :type '(choice (const :tag "none" nil)
290 (defcustom wl-smtp-posting-port nil
291 "*SMTP port number in `wl-smtp-posting-server'.
292 If nil, default SMTP port number(25) is used."
293 :type '(choice (const :tag "Default (25)" nil)
297 (defcustom wl-smtp-authenticate-type nil
298 "*SMTP Authentication type.
299 If nil, don't authenticate."
300 :type '(choice (const :tag "none" nil)
301 (const :tag "PLAIN" "plain")
302 (const :tag "CRAM-MD5" "cram-md5")
303 (const :tag "LOGIN" "login")
304 (string :tag "Other"))
307 (defcustom wl-pop-before-smtp-user nil
308 "*POP3 user name to send mail using POP-before-SMTP.
309 If nil, `elmo-default-pop3-user' is used.
310 To use POP-before-SMTP,
311 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
312 :type '(choice (const :tag "none" nil)
316 (defcustom wl-pop-before-smtp-server nil
317 "*POP3 server for POP-before-SMTP.
318 If nil, `elmo-default-pop3-server' is used."
319 :type '(choice (const :tag "none" nil)
323 (defcustom wl-pop-before-smtp-port nil
324 "*POP3 port for POP-before-SMTP.
325 If nil, `elmo-default-pop3-port' is used."
326 :type '(choice (const :tag "none" nil)
330 (defcustom wl-pop-before-smtp-stream-type nil
331 "*Stream type for POP-before-SMTP.
332 If nil, `elmo-default-pop3-stream-type' is used."
336 (defcustom wl-pop-before-smtp-authenticate-type nil
337 "*Default Authentication type for POP-before-SMTP.
338 If nil, `elmo-default-pop3-authenticate-type' is used."
339 :type '(choice (const :tag "none" nil)
340 (const :tag "APOP" "apop")
341 (const :tag "POP3" "user"))
344 (defcustom wl-nntp-posting-server nil
345 "*NNTP server name to post news.
346 If nil, `elmo-default-nntp-server' is used."
347 :type '(choice (const :tag "none" nil)
350 (defcustom wl-nntp-posting-user nil
351 "*NNTP user name to post news for authinfo.
352 If nil, `elmo-default-nntp-user' is used.
353 If nil, don't authenticate."
354 :type '(choice (const :tag "none" nil)
357 (defcustom wl-nntp-posting-port nil
358 "*NNTP port to post news.
359 If nil, `elmo-default-nntp-port' is used."
360 :type '(choice (const :tag "none" nil)
363 (defcustom wl-nntp-posting-stream-type nil
364 "*Stream type for posting Netnews.
365 If nil, `elmo-default-nntp-stream-type' is used."
369 (defcustom wl-fetch-confirm-threshold 30000
370 "*Confirm fetching if message size is larger than this value."
374 (defcustom wl-prefetch-confirm t
375 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
379 (defcustom wl-prefetch-threshold 30000
380 "*Maximum size of message prefetched without confirmation.
381 If nil, all messages prefetched regardless of its size.
382 If message size is larger than this value, confirm prefetching
383 when `wl-prefetch-confirm' is non-nil."
384 :type '(choice (integer :tag "Threshold (bytes)")
385 (const :tag "No limitation" nil))
388 (defcustom wl-cache-prefetch-threshold 30000
389 "*Quit forward cache prefetching if message size is larger than this value."
393 (defcustom wl-thread-insert-opened nil
394 "*Non-nil forces to insert thread as opened in updating."
398 (defcustom wl-thread-open-reading-thread t
399 "*Non-nil forces to open reading thread."
404 (defvar wl-folder-mode-hook nil
405 "A hook called when wanderlust folder mode is started.
406 This hook may contain the functions `wl-folder-init-icons' and
407 `wl-setup-folder' for reasons of system internal to accord facilities
408 for the Emacs variants.")
409 (defvar wl-summary-toggle-disp-on-hook nil
410 "A hook called when message is toggled.")
411 (defvar wl-summary-toggle-disp-off-hook nil
412 "A hook called when message is disappeared.")
413 (defvar wl-summary-toggle-disp-folder-on-hook nil
414 "A hook called when folder is toggled.")
415 (defvar wl-summary-toggle-disp-folder-off-hook nil
416 "A hook called when folder is disappeared.")
417 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
418 "A hook called when message window is resumed when folder is toggled.")
419 (defvar wl-summary-mode-hook nil
420 "A hook called when summary mode is started.
421 This hook may contain the function `wl-setup-summary' for reasons of
422 system internal to accord facilities for the Emacs variants.")
424 (defvar wl-summary-prepared-pre-hook nil
425 "A hook called before the summary buffer has been generated.")
426 (defvar wl-summary-prepared-hook nil
427 "A hook called after the summary buffer has been generated.")
428 (defvar wl-summary-sync-updated-hook nil
429 "A hook called when update summary buffer.")
430 (defvar wl-summary-unread-message-hook nil
431 "A hook called when unread message is displayed.")
432 (defvar wl-summary-edit-addresses-hook nil
433 "A hook called when address book is edited.")
434 (defvar wl-summary-buffer-message-saved-hook nil
435 "A hook called when msgdb is saved.")
436 (defvar wl-summary-buffer-mark-saved-hook nil
437 "A hook called when mark is saved.")
438 (defvar wl-summary-divide-thread-when-subject-changed nil
439 "Divide thread when subject is changed.")
440 (defvar wl-init-hook nil
441 "A hook called when initialization is finished. This hook may contain
442 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
443 reasons of system internal to accord facilities for the Emacs variants.")
445 "A hook called when Wanderlust is invoked.")
446 (defvar wl-reply-hook nil
447 "A hook called when replied.")
448 (defvar wl-mail-setup-hook nil
449 "A hook called when Draft is prepared.")
450 (defvar wl-draft-reedit-hook nil
451 "A hook called when Draft is re-edited.")
452 (defvar wl-draft-send-hook '(wl-draft-config-exec)
453 "A hook called on the draft editing buffer before sending process starts.")
454 (defvar wl-mail-send-pre-hook nil
455 "A hook called just before the mail sending process starts.")
456 (defvar wl-news-send-pre-hook nil
457 "A hook called just before the news sending process starts.")
458 (defvar wl-message-buffer-created-hook nil
459 "A hook called when Message buffer is prepared.")
460 (defvar wl-message-redisplay-hook nil
461 "A hook called when Message is displayed.")
462 (defvar wl-message-exit-hook nil
463 "A hook called when quit message.")
464 (defvar wl-summary-exit-hook nil
465 "A hook called when exit summary mode.")
466 (defvar wl-highlight-headers-hook nil
467 "A hook called when header is highlighted.")
468 (defvar wl-highlight-message-hook nil
469 "A hook called when message is highlighted.")
470 (defvar wl-save-hook nil
471 "A hook called when save summary and folder status.")
472 (defvar wl-exit-hook nil
473 "A hook called when exit wanderlust.")
474 (defvar wl-folder-suspend-hook nil
475 "A hook called when suspend wanderlust.")
476 (defvar wl-biff-notify-hook nil
477 "A hook called when a biff-notification is invoked.")
478 (defvar wl-biff-unnotify-hook nil
479 "A hook called when a biff-notification is removed.")
480 (defvar wl-auto-check-folder-pre-hook nil
481 "A hook called before auto check folders.")
482 (defvar wl-auto-check-folder-hook nil
483 "A hook called when auto check folders.")
484 (defvar wl-folder-check-entity-pre-hook nil
485 "A hook called before check entity.")
486 (defvar wl-folder-check-entity-hook nil
487 "A hook called when check entity.")
488 (defvar wl-draft-config-exec-hook nil
489 "A hook called when execute header-config on draft.")
490 (defvar wl-summary-expire-pre-hook nil
491 "A hook called before expire.")
492 (defvar wl-summary-expire-hook nil
493 "A hook called when expired.")
494 (defvar wl-summary-archive-pre-hook nil
495 "A hook called before archive.")
496 (defvar wl-summary-archive-hook nil
497 "A hook called when archived.")
498 (defvar wl-summary-line-inserted-hook nil
499 "A hook called when summary line is inserted.")
500 (defvar wl-summary-insert-headers-hook nil
501 "A hook called when insert header for search header.")
502 (defvar wl-thread-update-children-number-hook nil
503 "A hook called when children number is updated.")
504 (defvar wl-folder-update-access-group-hook nil
505 "A hook called when update access group folder.")
506 (defvar wl-draft-cited-hook nil
507 "A hook called after a message is cited.")
508 (defvar wl-draft-insert-x-face-field-hook nil
509 "A hook called after a x-face field is inserted.")
510 (defvar wl-template-mode-hook nil
511 "A hook called when template mode is started.")
512 (defvar wl-score-mode-hook nil
513 "A hook called when score mode is started.")
514 (defvar wl-make-plugged-hook nil
515 "A hook called when make plugged alist.")
517 (defvar wl-plugged-exit-hook nil
518 "A hook called when exit plugged mode.")
520 ;;;; functions for draft
521 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
522 "A function to send message."
526 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
527 "A function to send news."
531 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
532 "A function to send mail.
533 Prepared candidates are 'wl-draft-send-mail-with-smtp,
534 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
535 :type '(radio (function-item wl-draft-send-mail-with-smtp)
536 (function-item wl-draft-send-mail-with-qmail)
537 (function-item wl-draft-send-mail-with-pop-before-smtp)
538 (function :tag "Other"))
541 (defcustom wl-draft-reply-with-argument-list
542 '(("Reply-To" . (("Reply-To") nil nil))
543 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
544 ("From" . (("From") nil nil)))
545 "Alist of cons cell of
546 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
547 'field-name' is a string.
548 'fields for ***' is a list of strings.
549 If car of each cons cell exists in original message,
550 cdr of each cons cell is used for draft message.
551 Default is for 'reply-to-author'."
552 :type '(repeat (cons (choice (string :tag "Field Name")
553 (repeat (string :tag "Field Name")))
554 (list (repeat :tag "Fields For To" string)
555 (repeat :tag "Fields For Cc" string)
556 (repeat :tag "Fields For Newsgroups" string))))
559 (defcustom wl-draft-reply-without-argument-list
560 '(("Followup-To" . (nil nil ("Followup-To")))
561 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
562 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
563 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
564 "Alist of cons cell of
565 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
566 'field-name' is a string.
567 'fields for ***' is a list of strings.
568 If car of each cons cell exists in original message,
569 cdr of each cons cell is used for draft message.
570 Default is for 'reply-to-all'."
571 :type '(repeat (cons (choice (string :tag "Field Name")
572 (repeat (string :tag "Field Name")))
573 (list (repeat :tag "Fields For To" string)
574 (repeat :tag "Fields For Cc" string)
575 (repeat :tag "Fields For Newsgroups" string))))
578 (defcustom wl-draft-reply-myself-with-argument-list
579 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
580 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
581 ("From" . (("To") ("Cc") nil)))
582 "Alist of cons cell of
583 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
584 'field-name' is a string.
585 'fields for ***' is a list of strings.
586 If car of each cons cell exists in original message,
587 cdr of each cons cell is used for draft message.
588 Default is for 'reply-to-me'."
589 :type '(repeat (cons (choice (string :tag "Field Name")
590 (repeat (string :tag "Field Name")))
591 (list (repeat :tag "Fields For To" string)
592 (repeat :tag "Fields For Cc" string)
593 (repeat :tag "Fields For Newsgroups" string))))
596 (defcustom wl-draft-reply-myself-without-argument-list
597 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
598 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
599 ("From" . (("To") ("Cc") nil)))
600 "Alist of cons cell of
601 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
602 'field-name' is a string.
603 'fields for ***' is a list of strings.
604 If car of each cons cell exists in original message,
605 cdr of each cons cell is used for draft message.
606 Default is for 'followup-to-me'."
607 :type '(repeat (cons (choice (string :tag "Field Name")
608 (repeat (string :tag "Field Name")))
609 (list (repeat :tag "Fields For To" string)
610 (repeat :tag "Fields For Cc" string)
611 (repeat :tag "Fields For Newsgroups" string))))
614 (defcustom wl-draft-always-delete-myself nil
615 "*Always delete myself from reciepient if non-nil."
619 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
620 "*Do not insert bcc or fcc if To and Cc fields is a member of
621 `wl-subscribed-mailing-list'"
625 (defcustom wl-draft-resume-folder-window t
626 "*Resume folder window in `wl-draft-hide'."
630 (defcustom wl-draft-use-frame nil
631 "*Raise new frame when composing draft."
635 (defcustom wl-draft-qmail-send-plugged nil
636 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
640 (defcustom wl-draft-remove-group-list-contents t
641 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
646 (defcustom wl-init-file "~/.wl"
647 "*User customization setting file."
651 (defcustom wl-folders-file "~/.folders"
656 (defcustom wl-address-file "~/.addresses"
661 (defcustom wl-alias-file "~/.im/Aliases"
662 "*Alias file for completion."
666 (defcustom wl-ldap-server "localhost"
668 :type '(string :tag "Server")
671 (defcustom wl-ldap-port nil
673 :type '(choice (const :tag "Default port" nil)
677 (defcustom wl-ldap-base "c=US"
679 :type '(string :tag "Base")
682 (defcustom wl-use-ldap nil
683 "*If non-nil, use LDAP for address completion."
687 (defcustom wl-folder-info-save t
688 "If non-nil, save elmo-folder-info-alist."
692 (defcustom wl-summary-unread-mark "!"
693 "Mark for unread message."
694 :type '(string :tag "Mark")
695 :group 'wl-summary-marks)
696 (defcustom wl-summary-important-mark "$"
697 "Mark for important message."
698 :type '(string :tag "Mark")
699 :group 'wl-summary-marks)
700 (defcustom wl-summary-new-mark "N"
701 "Mark for new message."
702 :type '(string :tag "Mark")
703 :group 'wl-summary-marks)
704 (defcustom wl-summary-unread-uncached-mark "U"
705 "Mark for unread and uncached message."
706 :type '(string :tag "Mark")
707 :group 'wl-summary-marks)
708 (defcustom wl-summary-unread-cached-mark "!"
709 "Mark for unread but already cached message."
710 :type '(string :tag "Mark")
711 :group 'wl-summary-marks)
712 (defcustom wl-summary-read-uncached-mark "u"
713 "Mark for read but uncached message."
714 :type '(string :tag "Mark")
715 :group 'wl-summary-marks)
716 (defcustom wl-summary-score-over-mark "+"
717 "Score mark used for messages with high scores."
718 :type '(string :tag "Mark")
719 :group 'wl-summary-marks)
720 (defcustom wl-summary-score-below-mark "-"
721 "Score mark used for messages with low scores."
722 :type '(string :tag "Mark")
723 :group 'wl-summary-marks)
725 (defcustom wl-summary-no-mime-folder-list
726 (list (concat "^" (regexp-quote wl-draft-folder) "$"))
727 "*All folders that match this list don't analysis mime."
728 :type '(repeat string)
731 (defcustom wl-summary-fix-timezone "JST"
732 "Non-nil forces to fix timezone of summary date."
736 (defcustom wl-summary-default-score 0
737 "*Default message score level.
738 All scores generated by the score files will be added to this score.
739 If this variable is nil, scoring will be disabled."
740 :type '(choice (const :tag "disable" nil)
744 (defcustom wl-summary-important-above nil
745 "*Mark all messages with a score above this variable as important.
746 This variable is local to the summary buffers."
747 :type '(choice (const :tag "off" nil)
751 (defcustom wl-summary-target-above nil
752 "*Mark all messages with a score above this variable as target.
753 This variable is local to the summary buffers."
754 :type '(choice (const :tag "off" nil)
758 (defcustom wl-summary-mark-below 0
759 "*Mark all messages with a score below this variable as read.
760 This variable is local to each summary buffer and usually set by the
765 (defcustom wl-summary-expunge-below nil
766 "All messages that have a score less than this variable will be expunged.
767 This variable is local to the summary buffers."
768 :type '(choice (const :tag "off" nil)
772 (defcustom wl-summary-score-marks
773 (list wl-summary-new-mark)
774 "Persistent marks to scoring."
775 :type '(repeat (string :tag "Mark"))
778 (defcustom wl-use-scoring (not wl-on-nemacs)
779 "*If non-nil, enable scoring."
783 (defcustom wl-summary-rescore-partial-threshold 200
784 "*Summary is not scored entirely if there are messages more than this value.
785 In sync-all or rescan."
789 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
790 "*Name of the directory where score files will be stored.
791 (default \"~/.elmo\")."
795 (defcustom wl-score-interactive-default-score 1000
796 "*Scoring commands will raise/lower the score with this number as the default."
800 (defcustom wl-score-expiry-days 7
801 "*Number of days before unused score file entries are expired.
802 If this variable is nil, no score file entries will be expired."
803 :type '(choice (const :tag "never" nil)
807 (defcustom wl-score-update-entry-dates t
808 "*In non-nil, update matching score entry dates.
809 If this variable is nil, then score entries that provide matches
810 will be expired along with non-matching score entries."
814 (defcustom wl-score-folder-alist nil
815 "*Alist of folder regexp and score file."
816 :type '(repeat (list (regexp :tag "Folder Regexp")
819 (symbol :tag "Variable")))))
822 (defcustom wl-score-folder-alist-matchone t
823 "*If non-nil, getting only one element of `wl-score-folder-alist'."
827 (defcustom wl-score-default-file "all.SCORE"
828 "*Default score file name."
832 (defcustom wl-score-simplify-fuzzy-regexp
833 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
834 "*Strings to be removed when doing fuzzy matches.
835 This can either be a regular expression or list of regular expressions."
836 :type '(repeat regexp)
839 (defcustom wl-score-header-default-entry
840 '(("number" -1000 perm =)
841 ("subject" -1000 nil nil)
842 ("from" -1000 perm s)
843 ("message-id" -1000 temp e)
844 ("references" -1000 perm e)
847 ("date" -1000 temp nil)
848 ("xref" -1000 perm s)
849 ("extra" -1000 perm s)
850 ("chars" -1000 perm >)
851 ("lines" -1000 perm >)
852 ("followup" -1000 perm s)
853 ("thread" -1000 temp s))
854 "*Default entry when insert score entry."
855 :type '(repeat (list (string :tag "Header")
856 (choice (integer :tag "Score")
857 (const :tag "Ask" nil))
858 (choice (const :tag "Permanent" perm)
859 (const :tag "Temporary" temp)
860 (const :tag "Ask" nil))
861 (choice (const :tag "Regexp string" r)
862 (const :tag "Substring" s)
863 (const :tag "fuzzy string" f)
864 (const :tag "Exact string" e)
865 (const :tag "REGEXP STRING" R)
866 (const :tag "SUBSTRING" S)
867 (const :tag "FUZZY STRING" F)
868 (const :tag "EXACT STRING" E)
869 (const :tag "less than" <)
870 (const :tag "less equal" <=)
871 (const :tag "greater than" >)
872 (const :tag "greater equal" >=)
873 (const :tag "equal" =)
874 (const :tag "Ask" nil))))
877 (defcustom wl-score-mode-mime-charset 'x-ctext
878 "*MIME Charset for score file."
882 (defcustom wl-draft-fields
883 '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
884 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
885 "Fields used in draft mode."
886 :type '(repeat (string :tag "Field"))
889 (defcustom wl-draft-config-alist nil
890 "Alist of configuration field on draft.
892 '((\"^To: .*wl@lists.airs.net\"
893 (\"From\" . wl-from2)
894 (\"Organization\" . wl-organization2))
895 (\"^To: .*hogehoge@\"
896 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
897 wl-my-draft-config-func-hoge))"
898 :type '(repeat (list (sexp :tag "Match")
901 (choice (cons (sexp :tag "Field(Variable)")
903 (sexp :tag "Function")))))
906 (defcustom wl-draft-config-matchone nil
907 "*If non-nil, applied only one element of `wl-draft-config-alist'."
911 (defcustom wl-template-alist nil
913 :type '(repeat (list (string :tag "Name")
916 (choice (cons (sexp :tag "Field(Variable)")
918 (sexp :tag "Function")))))
921 (defcustom wl-template-visible-select t
922 "*If non-nil, select template with visible."
926 (defcustom wl-template-confirm nil
927 "*If non-nil, require your confirmation when selected template."
931 (defcustom wl-template-buffer-lines 7
932 "*Lines of template buffer."
937 (defcustom wl-draft-enable-queuing t
938 "*Non-nil enables queued sending."
943 (defcustom wl-draft-use-cache nil
944 "*If non-nil, sending message is cached."
949 (defcustom wl-auto-flush-queue t
950 "*If non-nil, sending queue is flushed when network status is toggled."
955 (defcustom wl-draft-reply-buffer-style 'split
957 :type '(radio (const split)
961 (defcustom wl-draft-queue-save-variables
962 '(wl-envelope-from wl-from
963 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
964 wl-smtp-authenticate-type wl-smtp-connection-type
965 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
966 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
967 wl-nntp-posting-server wl-nntp-posting-server
968 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
969 "*Saving variables in queue info."
970 :type '(repeat (sexp :tag "Variable"))
973 (defcustom wl-draft-sendlog t
974 "*Keep send state in log if non-nil."
978 (defcustom wl-draft-sendlog-max-size 20000
979 "*Max file size of sendlog."
983 (defcustom wl-summary-default-number-column 5
984 "Number of columns in summary buffer."
988 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
989 "Alist of folder and its number column.
990 If no matches, 'wl-summary-default-number-column' is used.
992 '((\"^%inbox@qmail-maildir\" . 9)
993 (\"^-.*@news-server\" . 6))"
994 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
997 (defcustom wl-summary-highlight t
998 "Non-nil forces Summary buffer to be highlighted."
1001 :group 'wl-highlight)
1003 (defcustom wl-summary-lazy-highlight (and (boundp 'window-scroll-functions)
1005 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1008 :group 'wl-highlight)
1010 (defcustom wl-summary-highlight-partial-threshold 1000
1011 "Summary is not highlighted entirely if there are lines more than this value.
1012 Available if only `wl-summary-lazy-highlight' is nil."
1015 :group 'wl-highlight)
1017 (defcustom wl-summary-partial-highlight-above-lines 30
1018 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1019 Summary lines are highlighted partialy above current position.
1020 Available if only `wl-summary-lazy-highlight' is nil."
1023 :group 'wl-highlight)
1025 (defcustom wl-summary-cache-use t
1026 "Non-nil forces wl-summary to use cache file."
1030 (defcustom wl-summary-auto-sync-marks t
1031 "Non-nil forces to synchronize unread/important marks."
1035 (defcustom wl-summary-cache-file ".wl-summary-cache"
1036 "*Cache file for summary mode contents."
1039 (defcustom wl-summary-view-file ".wl-summary-view"
1040 "*Current summary view."
1043 (defcustom wl-thread-top-file ".wl-thread-top"
1044 "*Current thread top entity... obsolete."
1047 (defcustom wl-thread-entity-file ".wl-thread-entity"
1051 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1052 "*Thread top entity list."
1056 (defcustom wl-print-buffer-func 'lpr-buffer
1057 "A function to print current buffer."
1061 (defcustom wl-ps-print-buffer-func
1062 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1063 "A function to print current buffer with ps-print."
1068 (defcustom wl-use-petname t
1069 "*Display petname in summary and default citation title."
1073 (defcustom wl-use-folder-petname
1075 "*List of situation using folder petname.
1076 Allowed situations are:
1077 modeline : displayed on modeline.
1078 ask-folder : displayed on minibuffer when ask folder.
1079 read-folder : can used for completion at `wl-summary-read-folder'."
1080 :type '(set (const modeline)
1082 (const read-folder))
1086 (defcustom wl-folder-petname-alist nil
1087 "A list of (realname . petname)."
1088 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1091 (defcustom wl-summary-weekday-name-lang "ja"
1092 "*Language to display week day."
1093 :type '(choice (const "ja")
1097 (string :tag "Other"))
1101 (defcustom wl-local-domain nil
1102 "*Domain part of this client (without hostname).
1103 Set this if (system-name) does not return FQDN."
1104 :type '(choice (const :tag "Use System Name" nil)
1108 (defcustom wl-message-id-domain nil
1109 "*Specific domain part of Message-ID."
1110 :type '(choice (const :tag "Use System Name" nil)
1114 (defcustom wl-break-pages t
1115 "*Break Pages at ^L."
1119 (defcustom wl-message-scroll-amount 5
1120 "*Scroll amount by SPC key."
1124 (defcustom wl-message-window-size '(1 . 4)
1125 "*Size of summary and message window. cons cell of (Summary : Message)."
1126 :type '(cons integer integer)
1129 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1130 "Newsgroups" "Subject" "^From")
1131 "*Sort order of header fields. Each elements are regexp of field name.
1133 :type '(repeat (string :tag "Field Regexp"))
1136 (defcustom wl-message-ignored-field-list nil
1137 "All fields that match this list will be hidden in message buffer.
1138 Each elements are regexp of field-name."
1139 :type '(repeat (string :tag "Field Regexp"))
1142 (defcustom wl-message-visible-field-list nil
1143 "All fields that match this list will be displayed in message buffer.
1144 Each elements are regexp of field-name."
1145 :type '(repeat (string :tag "Field Regexp"))
1148 (defcustom wl-folder-window-width 20
1149 "*Width of folder window."
1154 (defcustom wl-summary-recenter t
1155 "*Recenter on redisplay."
1160 (defcustom wl-folder-use-frame nil
1161 "*Use dedicated frame for folder mode if non-nil."
1165 (defcustom wl-summary-use-frame nil
1166 "*Use dedicated frame for each folder summary if non-nil."
1170 (defcustom wl-stay-folder-window nil
1171 "*Stay folder window when folder is selected if non-nil."
1175 (defcustom wl-reply-subject-prefix "Re: "
1176 "*Prefix of the subject of the replied message."
1181 (defcustom wl-draft-reply-use-address-with-full-name t
1182 "*Use address with full-name in the draft of replied message."
1187 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1188 "*Regexp matching \"Re: \" in the subject line."
1193 (defcustom wl-folder-many-unsync-threshold 70
1194 "*Folders which contains messages more than this number are highlighted
1195 with wl-highlight-folder-many-face."
1200 (defcustom wl-fcc nil
1201 "*Folder Carbon Copy."
1202 :type '(choice (const :tag "disable" nil)
1207 (defcustom wl-bcc nil
1208 "*Blind Carbon Copy."
1209 :type '(choice (const :tag "disable" nil)
1214 (defcustom wl-folder-desktop-name "Desktop"
1215 "*An implicit name of the folder top entity."
1220 (defcustom wl-summary-indent-length-limit 46
1221 "*Limit of indent length for thread."
1226 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1227 "*A string displayed in summary when no from field exists."
1231 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1232 "*A string displayed in summary when no subject field exists."
1236 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1237 "*The body content of a cancel message."
1241 (defcustom wl-summary-width 80
1242 "*Set summary line width if non nil."
1247 (defcustom wl-summary-pick-field-default "Body"
1248 "*Default field for pick."
1249 :type '(radio (const "From")
1258 (string :tag "Other"))
1261 (defcustom wl-from-width 17
1262 "*From width in summary."
1267 (defcustom wl-subject-length-limit 35
1268 "*Subject width in summary."
1273 (defcustom wl-mime-charset (if wl-on-nemacs
1276 "*MIME Charset for summary and message."
1281 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1282 "A function to create X-Mailer field string ."
1286 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1287 (or hilit-background-mode 'dark)
1289 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1290 :type '(radio (const dark)
1292 :group 'wl-highlight)
1294 (defcustom wl-highlight-x-face-func nil
1295 "A function to display X-Face."
1297 :group 'wl-highlight)
1299 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1300 "Location of the qmail-inject program."
1301 :type '(string :tag "Program")
1304 (defcustom wl-qmail-inject-args nil
1305 "Arguments passed to qmail-inject programs.
1306 This should be a list of strings, one string for each argument.
1308 For e.g., if you wish to set the envelope sender address so that bounces
1309 go to the right place or to deal with listserv's usage of that address, you
1310 might set this variable to '(\"-f\" \"you@some.where\")."
1311 :type '(repeat (string :tag "Argument"))
1314 (defcustom wl-rejected-letter-start
1315 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1316 "Regexp specifying the beginning of the wrapper around a returned letter.
1317 This wrapper is generated by the mail system when rejecting a letter."
1321 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1322 "*All headers that match this regexp will be deleted when forwarding a message."
1326 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1327 "*All headers that match this regexp will be deleted when resending a message."
1331 (defcustom wl-refile-default-from-folder "+from"
1332 "*Folder name to refile by `wl-refile-guess-by-from'."
1333 :type '(string :tag "Folder")
1336 (defcustom wl-summary-auto-refile-skip-marks
1337 (list wl-summary-new-mark
1338 wl-summary-unread-uncached-mark
1339 wl-summary-unread-cached-mark)
1340 "Persistent marks to skip auto-refiling."
1341 :type '(repeat (string :tag "Mark"))
1344 (defcustom wl-summary-reserve-mark-list
1346 "If a message is already marked as temporal marks in this list,
1347 the message is not marked by any mark command."
1348 :type '(repeat (string :tag "Temp-Mark"))
1351 (defcustom wl-summary-skip-mark-list
1353 "If a message is already marked as temporal marks in this list,
1354 the message is skipped at cursor move."
1355 :type '(repeat (string :tag "Temp-Mark"))
1358 (defcustom wl-summary-incorporate-marks
1359 (list wl-summary-new-mark
1360 wl-summary-unread-uncached-mark)
1361 "Persistent marks to prefetch at `wl-summary-incorporate'."
1362 :type '(repeat (string :tag "Mark"))
1365 (defcustom wl-refile-rule-alist nil
1370 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1372 (\"^Wanderlust\" . \"+wl\")
1373 (\"^Elips\" . \"+elips\")))"
1374 :type '(repeat (list (string :tag "Field")
1376 (cons (regexp :tag "Value")
1377 (string :tag "Folder")))))
1380 (defcustom wl-strict-diff-folders nil
1381 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1382 :type '(choice (const :tag "Off" nil)
1383 (repeat (regexp :tag "Folder Regexp")))
1386 (defcustom wl-folder-use-server-diff t
1387 "Checked unread message number on IMAP4 server.
1388 Only IMAP4 folders have an effect."
1392 (defcustom wl-force-fetch-folders nil
1393 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1394 :type '(choice (const :tag "off" nil)
1395 (const :menu-tag "on" t)
1396 (repeat (regexp :tag "Folder Regexp")))
1399 (defcustom wl-auto-check-folder-name nil
1400 "*The folder specified by this variable will be automatically checked
1402 :type '(choice (string :tag "Folder")
1403 (repeat (string :tag "Folder"))
1407 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1408 "All folders that match this list won't be checked when group is
1409 automatically checked (or desktop is checked).
1410 This value is preceded by wl-auto-check-folder-list.
1411 Each elements are regexp of folder name."
1412 :type '(repeat (regexp :tag "Folder Regexp"))
1415 (defcustom wl-auto-check-folder-list nil
1416 "All folders that match this list are checked when group is
1417 automatically checked (or desktop is checked).
1418 This value precedes wl-auto-uncheck-folder-list.
1419 Each elements are regexp of folder name."
1420 :type '(repeat (regexp :tag "Folder Regexp"))
1423 (defcustom wl-show-plug-status-on-modeline t
1424 "If it is non-nil, show plugged status in modeline."
1426 :group 'wl-highlight)
1428 (defcustom wl-plug-state-indicator-on " [ON] "
1429 "String used to show plugged status ON."
1431 :group 'wl-highlight)
1433 (defcustom wl-plug-state-indicator-off " [--] "
1434 "String used to show plugged status OFF."
1436 :group 'wl-highlight)
1438 (defcustom wl-biff-check-folder-list nil
1439 "All folders that match this list are automatically checked
1440 every intervals specified by wl-biff-check-interval."
1441 :type '(repeat (regexp :tag "Folder Regexp"))
1442 :group 'wl-highlight)
1444 (defcustom wl-biff-check-interval 40
1445 "Number of seconds between updates of new mails in the mode line."
1447 :group 'wl-highlight)
1449 (defcustom wl-biff-state-indicator-on "[
\e$B")
\e(B]"
1450 "String used to show biff status ON."
1452 :group 'wl-highlight)
1454 (defcustom wl-biff-state-indicator-off "[
\e$B!>
\e(B]"
1455 "String used to show biff status OFF."
1457 :group 'wl-highlight)
1459 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1460 "Displaying order of items to be shown in modeline. The first item will
1461 be placed in the leftmost. The significant items are `biff' and `plug';
1462 otherwise, e.g. `title', corresponds to the things except for the biff
1463 staus nor the plugged status. The default order is '(biff plug title)
1464 even if the value of this option is set to nil. Here are some samples:
1466 ;; Plugged status first:
1467 \(setq wl-mode-line-display-priority-list '(plug))
1469 ;; Biff status, Title of Wanderlust, Plugged status:
1470 \(setq wl-mode-line-display-priority-list '(biff title plug))
1473 :type '(repeat (radio (const :format "%v " biff)
1474 (const :format "%v " plug)
1475 (sexp :tag "Other" :value title)))
1476 :group 'wl-highlight)
1478 (defcustom wl-interactive-send nil
1479 "*If non-nil, require your confirmation when sending draft message."
1483 (defcustom wl-interactive-exit t
1484 "*If non-nil, require your confirmation when exiting WL."
1488 (defcustom wl-summary-move-order 'unread
1489 "*The order of priority when move in summary mode.
1490 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1491 If this variable is `new', precede \"N\" mark."
1492 :type '(radio (const new)
1496 (defvar wl-summary-move-direction-downward t)
1498 (defcustom wl-summary-move-direction-toggle t
1499 "*If non-nil, search direction for the next message will be determined
1500 depends on previous search direction.
1501 It uses wl-summary-move-direction-downward as a direction flag."
1505 (defcustom wl-auto-select-first nil
1506 "*If non-nil, display selected first message when enter summary."
1510 (defcustom wl-auto-select-next nil
1511 "*If non-nil, offer to go to the next folder from the end of the previous.
1512 If the value is the symbol `unread', go to the next folder
1513 that no unread message exists. If the value is the symbol `skip-no-unread',
1514 skip the folder that no unread message exists.
1516 See also variable `wl-summary-next-no-unread-command'."
1517 :type '(radio (const :tag "off" nil)
1520 (const skip-no-unread))
1523 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1524 "*All folder types that match this list prefetch next message,
1525 and reserved buffer cache."
1526 :type '(set (const localdir)
1535 (defcustom wl-cache-prefetch-folder-list nil
1536 "*All folders that match this list prefetch next message,
1537 and reserved buffer cache.
1540 :type '(repeat (regexp :tag "Folder Regexp"))
1543 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1544 "*A function to get message number when prefetch next message."
1549 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1550 ; "All folders that match this list won't be cached when reading messages.
1551 ;Each elements are regexp of folder name.")
1553 (defcustom wl-summary-always-sticky-folder-list nil
1554 "All folders that match this list has sticky summary.
1555 Each elements are regexp of folder name."
1556 :type '(radio (const :tag "none" nil)
1557 (const :tag "all" t)
1558 (repeat (regexp :tag "Folder Regexp")))
1561 (defcustom wl-no-save-folder-list '("^/.*$")
1562 "All folders that match this list won't save its msgdb.
1563 Each elements are regexp of folder name."
1564 :type '(repeat (regexp :tag "Folder Regexp"))
1567 (defcustom wl-save-folder-list nil
1568 "All folders that match this list save its msgdb.
1569 Each elements are regexp of folder name."
1570 :type '(repeat (regexp :tag "Folder Regexp"))
1573 (defcustom wl-folder-mime-charset-alist
1574 '(("^-alt\\.chinese" . big5)
1575 ("^-relcom\\." . koi8-r)
1577 ("^-han\\." . euc-kr))
1578 "Charset alist. If no match, `wl-mime-charset' is used."
1579 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1583 (defcustom wl-folder-weekday-name-lang-alist
1584 '(("^-alt\\.chinese" . "en")
1585 ("^-relcom\\." . "en")
1587 ("^-han\\." . "en"))
1588 "Weekday name lang alist.
1589 If no match, `wl-summary-weekday-name-lang' is used.
1591 '((\"xemacs-beta$\" . \"en\")
1592 (\"^-fj\" . \"ja\"))"
1593 :type '(repeat (cons (regexp :tag "Folder Regexp")
1594 (choice (const "ja")
1598 (string :tag "Other"))))
1601 (defcustom wl-folder-thread-indent-set-alist
1602 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1603 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1604 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1605 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1606 "Thread indent set alist.
1607 If no match, following indent set is used.
1608 (wl-thread-indent-level
1609 wl-thread-have-younger-brother-str
1610 wl-thread-youngest-child-str
1611 wl-thread-vertical-str
1612 wl-thread-horizontal-str
1613 wl-thread-space-str)
1615 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1616 :type '(repeat (cons (regexp :tag "Folder Regexp")
1617 (group (integer :tag "Indent")
1618 (string :tag "Yonger Brother")
1619 (string :tag "Yonger Child")
1620 (string :tag "Vertical")
1621 (string :tag "Horizontal")
1622 (string :tag "Space"))))
1625 (defcustom wl-folder-sync-range-alist
1626 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1627 (regexp-quote wl-queue-folder) "$")
1629 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1630 :type '(repeat (cons (regexp :tag "Folder Regexp")
1631 (choice (const "update")
1637 (const :tag "none" nil))))
1640 (defcustom wl-default-sync-range "update"
1641 "*Default sync range."
1642 :type '(choice (const "update")
1648 (const :tag "none" nil))
1651 (defcustom wl-ask-range t
1652 "*If non-nil, ask for a range for summary synchronization.
1653 If nil, always use default."
1657 (defcustom wl-folder-move-cur-folder nil
1658 "*Non-nil, move to current folder on folder-mode when goto folder."
1662 (defcustom wl-folder-check-async (not wl-on-nemacs)
1663 "*Check the folder asynchronous."
1667 (defcustom wl-folder-notify-deleted nil
1668 "*Non-nil, display negative number on folder-mode when message is deleted
1669 in folder. If the value is 'sync, msgdb would be synchronized."
1670 :type '(choice (const :tag "off" nil)
1675 (defcustom wl-summary-exit-next-move t
1676 "*Non-nil, move to next-unsync or next-entity when exit summary."
1680 (defcustom wl-summary-next-no-unread-command
1681 '(wl-summary-read wl-summary-down wl-summary-up)
1682 "*Command list available when the value of `wl-auto-select-next' is 'unread
1683 or 'skip-no-unread."
1684 :type '(repeat function)
1687 (defcustom wl-summary-search-via-nntp 'confirm
1688 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1692 (defcustom wl-summary-keep-cursor-command
1693 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1694 "*Command list to keep cursor position when folder is changed to
1695 already existing summary."
1696 :type '(repeat function)
1699 (defcustom wl-summary-showto-folder-regexp nil
1700 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1701 Sender information in summary mode."
1702 :type '(choice (const :tag "none" nil)
1706 (defcustom wl-folder-removed-mark "#<removed>"
1707 "Mark for removed folder."
1711 (defcustom wl-folder-unsubscribe-mark "#"
1712 "Mark for unsubscribe folder."
1716 (defcustom wl-delete-folder-alist '(("^-" . remove))
1717 "*Alist of folder and delete policy.
1718 Each element is (folder-regexp . policy).
1720 The policy is one of the followings:
1722 'null : remove message.
1723 string : refile to the specified folder.
1725 otherwise : refile to the `wl-trash-folder'.
1727 '((\"^%\" . \"%#mh/trash\")
1729 (\"^\\\\+\" . trash))"
1730 :type '(repeat (cons (regexp :tag "Folder Regexp")
1731 (choice :tag "Policy"
1733 (const :tag "remove(null)" null)
1735 (const :tag "trash(other)" trash)
1736 (string :tag "Folder"))))
1739 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1741 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1742 POLICY is copy or move."
1743 :type '(repeat (cons (regexp :tag "Folder Regexp")
1744 (choice (const copy)
1749 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1750 "*Access group folders to make hierarchy structure."
1751 :type '(repeat (string :tag "Folder"))
1754 (defcustom wl-folder-init-load-access-folders nil
1755 "*Access group folders to load folder list on `wl-folder-init'.
1756 If this variable is non-nil,
1757 `wl-folder-init-no-load-access-folders' will be ignored."
1758 :type '(repeat (regexp :tag "Folder Regexp"))
1761 (defcustom wl-folder-init-no-load-access-folders nil
1762 "*Access group folders to not load folder list on `wl-folder-init'.
1763 If `wl-folder-init-load-access-folders' is non-nil,
1764 this variable will be ignored."
1765 :type '(repeat (regexp :tag "Folder Regexp"))
1768 (defcustom wl-folder-access-subscribe-alist nil
1769 "*Subscribe folders to fetching folder entries.
1770 Each element is (group-regexp (subscribe folder-regexp ...)).
1771 If subscribe is non-nil, subscribe when match folder-regexp.
1772 If subscribe is nil, unsubscribe when match folder-regexp.
1775 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1776 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1777 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
1778 :type '(repeat (cons (regexp :tag "Folder Regexp")
1779 (list (boolean :tag "Subscribed")
1781 (regexp :tag "Folder Regexp")))))
1784 ;;; For Folder Manager
1786 (defcustom wl-interactive-save-folders t
1787 "*Non-nil require your confirmation when save folders."
1791 (defcustom wl-fldmgr-make-backup t
1792 "*Non-nil make backup file when save folders."
1796 (defcustom wl-fldmgr-folders-indent "\t"
1797 "*Indent string for folders file."
1801 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1802 "*A function to sort folder."
1806 (defcustom wl-fldmgr-sort-group-first t
1807 "*Non-nil Group folder is first when sort."
1811 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1812 "*If non-nil, completion for adding folder refers current folder list."
1816 (defcustom wl-fldmgr-make-filter-default "Body"
1817 "*Default filter key while making filter on Folder."
1818 :type '(radio (const "From")
1827 (string :tag "Other"))
1830 ;;; For Expire and Archive
1832 (defcustom wl-expire-alist nil
1833 "Alist to decide a policy for expire.
1834 Each element is (folder-regexp (number or date) policy).
1836 The policy is one of the followings:
1837 'remove : remove messsage.
1838 'trash : refile `wl-trash-folder'.
1839 string : refile string folder.
1840 function : call function.
1843 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
1844 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
1845 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
1846 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
1847 (\"^\\\\+misc$\" (date 14) trash))"
1848 :type '(repeat (choice (list :tag "No-match"
1849 (regexp :tag "Folder Regexp")
1852 (regexp :tag "Folder Regexp")
1853 (list (radio :value number
1858 (repeat :inline t integer)))
1859 (choice :tag "Policy"
1863 (string :tag "folder")
1866 :tag "Arg for function"
1870 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1871 "Alist to decide a policy for archive.
1872 Each element is (folder-regexp policy(function)).
1875 '((\"\\\\+work$\" wl-archive-date)
1876 (\"\\\\+ml/\" wl-archive-number1)
1877 (\".*\" wl-archive-number2))"
1878 :type '(repeat (list (regexp :tag "Folder Regexp")
1881 (sexp :tag "Argument"))))
1884 (defcustom wl-summary-expire-reserve-marks
1885 (list wl-summary-important-mark
1887 wl-summary-unread-mark
1888 wl-summary-unread-uncached-mark
1889 wl-summary-unread-cached-mark)
1890 "Permanent marks of reserved message when expire.
1891 Don't reserve temporary mark message.
1894 'all : reserved all permanent marks.
1895 'none : not reserve permanent marks.
1896 list : reserved specified permanent marks."
1897 :type '(repeat (string :tag "Mark"))
1900 (defcustom wl-expire-number-with-reserve-marks nil
1901 "If non-nil, include reserve message when expire by number."
1905 (defcustom wl-expire-add-seen-list t
1906 "*If non-nil, add seen message list when refile message at expire."
1910 (defcustom wl-expire-use-log nil
1911 "*If non-nil, write a log when expired."
1915 (defcustom wl-expire-folder-update-msgdb t
1916 "*Non-nil update summary msgdb when expire on folder mode."
1920 ;; for wl-expire-archive-{number1|number2}
1921 (defcustom wl-expire-archive-files 100
1922 "*The number of one archive folder."
1926 ;; for wl-expire-archive-{number1|number2|date}
1927 (defcustom wl-expire-archive-get-folder-func
1928 'wl-expire-archive-get-folder
1929 "*A function to get archive folder name."
1933 (defcustom wl-expire-delete-oldmsg-confirm t
1934 "*If non-nil, require your confirmation when delete old message."
1938 ;; for wl-expire-archive-get-folder
1939 (defcustom wl-expire-archive-folder-type 'zip
1940 "*Archiver type of archive folder."
1941 :type '(radio (const zip)
1947 (symbol :tag "Other"))
1950 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1951 "*A format string for archive folder name."
1955 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1956 "*A regexp string for archive folder name."
1960 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1961 ;; $folder-199812;zip
1962 "*A format string for archive date folder name."
1966 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1967 "*A regexp string for archive date folder name."
1971 (defcustom wl-expire-archive-folder-prefix nil
1972 "*Prefix for archive folder."
1973 :type '(radio (const :tag "nothing" nil)
1974 (const :tag "full" t)
1980 ;; highilght about summary
1981 (defcustom wl-highlight-max-summary-lines 10000
1982 "*If the summary is larger than this lines, don't highlight it."
1984 :group 'wl-highlight)
1986 ;; highilght about draft and message
1987 (defcustom wl-highlight-body-too t
1988 "*In addition to header, highlight the body too. if non nil."
1990 :group 'wl-highlight)
1992 (defcustom wl-highlight-message-header-alist
1993 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
1994 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
1995 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
1997 :type '(repeat (cons regexp face))
1998 :group 'wl-highlight)
2000 (defcustom wl-highlight-message-header-button-alist
2001 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):" "<[^>]+>"
2002 0 wl-message-button-refer-article 0)
2003 ("^[^:]+:" "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
2004 1 wl-message-button-refer-article 3)))
2005 "Alist of headers and regexps to match buttons in message headers."
2007 (list (regexp :tag "Header")
2009 (integer :tag "Button")
2010 (function :tag "Callback")
2013 (integer :tag "Regexp group"))))
2014 :group 'wl-highlight)
2016 (defcustom wl-highlight-citation-prefix-regexp
2017 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2018 "All lines that match this regexp will be highlighted with
2019 `wl-highlight-message-cited-text-*' face."
2021 :group 'wl-highlight)
2023 (defcustom wl-highlight-highlight-citation-too nil
2024 "*Whether the whole citation line should go in the
2025 `wl-highlight-citation-face' face.
2026 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2027 default face, and the remainder of the line is in the
2028 wl-highlight-message-cited-text face."
2030 :group 'wl-highlight)
2032 (defcustom wl-highlight-force-citation-header-regexp
2033 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2034 "*The pattern to match the prolog of a cited block.
2035 Text in the body of a message which matches this will be displayed in
2036 the `wl-highlight-message-headers' face."
2038 :group 'wl-highlight)
2040 (defcustom wl-highlight-citation-header-regexp
2041 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2042 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2043 "^.*\\(writes\\|wrote\\|said\\):\n")
2044 "*The pattern to match the prolog of a cited block.
2045 Text in the body of a message which matches this will be displayed in
2046 the `wl-highlight-message-headers' face."
2048 :group 'wl-highlight)
2050 (defcustom wl-highlight-max-header-size nil
2051 "*If the message header is larger than this many chars, don't highlight it.
2052 If this is nil, all headers will be highlighted."
2054 :group 'wl-highlight)
2056 (defcustom wl-highlight-max-message-size 10000
2057 "*If the message body is larger than this many chars, don't highlight it.
2058 This is to prevent us from wasting time trying to fontify things like
2059 uuencoded files and large digests. If this is nil, all messages will
2062 :group 'wl-highlight)
2064 ;; highilght about signature (of draft and message)
2065 (defcustom wl-highlight-signature-separator
2066 '("\n--+\n" "\n\n--+.*\n*\\'")
2067 "List of regexps matching signature separator.
2068 It will be verified from head to tail looking for a separator.
2069 Verification will be done from the end of the buffer.
2070 No need to specify \"^-- $\" in this list,
2071 because it is verified by default.
2072 This variable can also be a regex."
2073 :type '(repeat regexp)
2074 :group 'wl-highlight)
2076 (defcustom wl-max-signature-size 400
2077 "*If the signature is larger than this chars, don't treat it as a signature."
2079 :group 'wl-highlight)
2081 ;; highilght about mouse
2082 (defcustom wl-use-highlight-mouse-line (and window-system
2083 (>= emacs-major-version 19))
2084 "*Highlight mouse line, if non nil."
2086 :group 'wl-highlight)
2088 ;; highilght about folder
2089 (defcustom wl-highlight-folder-with-icon
2090 (or (and (featurep 'xemacs)
2093 "*Highlight folder with icon(XEmacs or Emacs 21)."
2095 :group 'wl-highlight)
2096 (defcustom wl-highlight-folder-by-numbers t
2097 "Highlight folder lines by numbers.
2098 If it is a number, only numbers will be highlighted."
2099 :type '(choice (const :tag "whole line" t)
2100 (const :tag "only numbers" 1)
2101 (const :tag "don't highlight" nil))
2102 :group 'wl-highlight)
2104 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
2105 "Function to search signature area in the message body."
2107 :group 'wl-highlight)
2109 (defcustom wl-use-dnd (and wl-on-xemacs
2110 (featurep 'dragdrop))
2111 "If Non-nil, support dragdrop feature in XEmacs."
2115 (defcustom wl-reset-plugged-alist t
2116 "*If non-nil, reset `elmo-plugged-alist' when startup."
2120 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2121 (module-installed-p 'image)
2122 (module-installed-p 'bitmap))
2124 "If it is T, show graphic logo in the startup screen. You can set it to
2125 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2126 :type '(radio (const :tag "Off" nil)
2127 (const :tag "On (any format)" t)
2130 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2133 ;;; Internal variables
2134 (defvar wl-init nil)
2136 ;; For disconnected operations.
2137 (defvar wl-plugged-hook nil)
2138 (defvar wl-unplugged-hook nil)
2139 (defvar wl-plugged t)
2141 ;; Internal variables used to modeline identifiers.
2142 (defvar wl-modeline-plug-status nil)
2143 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2144 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2145 (defvar wl-modeline-biff-status nil)
2146 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2147 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2149 ;; Advanced thread view.
2150 (defvar wl-thread-indent-level 1
2151 "*Indent level for thread.")
2152 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2153 "*A string for thread branch line. It should contain one character.")
2154 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2155 "*A string for thread branch line. It should contain one character.")
2156 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2157 "*A string for thread branch line. It should contain one character.")
2158 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2159 "*A string for thread branch line. It should contain one character.")
2160 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2161 "*A string for thread branch line. It should contain one character.")
2163 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2164 "* A regexp string for thread indent...for highlight.")
2166 ;; folder icons. filename relative to wl-icon-dir
2167 (defvar wl-opened-group-folder-icon "opened.xpm"
2168 "*Icon file for opened group folder.")
2169 (defvar wl-closed-group-folder-icon "closed.xpm"
2170 "*Icon file for closed group folder.")
2171 (defvar wl-nntp-folder-icon "news.xpm"
2172 "*Icon file for nntp folder.")
2173 (defvar wl-imap-folder-icon "imap.xpm"
2174 "*Icon file for imap folder.")
2175 (defvar wl-pop-folder-icon "pop.xpm"
2176 "*Icon file for pop folder.")
2177 (defvar wl-localdir-folder-icon "local.xpm"
2178 "*Icon file for localdir folder.")
2179 (defvar wl-localnews-folder-icon "localnews.xpm"
2180 "*Icon file for localnews folder.")
2181 (defvar wl-internal-folder-icon "internal.xpm"
2182 "*Icon file for internal folder.")
2183 (defvar wl-multi-folder-icon "multi.xpm"
2184 "*Icon file for multi folder.")
2185 (defvar wl-filter-folder-icon "filter.xpm"
2186 "*Icon file for filter folder.")
2187 (defvar wl-archive-folder-icon "archive.xpm"
2188 "*Icon file for archive folder.")
2189 (defvar wl-pipe-folder-icon "pipe.xpm"
2190 "*Icon file for pipe folder.")
2191 (defvar wl-maildir-folder-icon "maildir.xpm"
2192 "*Icon file for maildir folder.")
2193 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2194 "*Icon file for emptied trash folder.")
2195 (defvar wl-trash-folder-icon "trash.xpm"
2196 "*Icon file for trash folder.")
2197 (defvar wl-draft-folder-icon "draft.xpm"
2198 "*Icon file for draft folder.")
2199 (defvar wl-queue-folder-icon "queue.xpm"
2200 "*Icon file for queue folder.")
2201 (defvar wl-plugged-icon "plugged.xpm"
2202 "*Icon file for plugged state.")
2203 (defvar wl-unplugged-icon "unplugged.xpm"
2204 "*Icon file for unplugged state.")
2205 (defvar wl-biff-mail-icon "letter.xpm"
2206 "*Icon file for mail existed state.")
2207 (defvar wl-biff-nomail-icon "no-letter.xpm"
2208 "*Icon file for no mail existed state.")
2209 (defvar wl-prog-uudecode "uudecode"
2210 "*uudecode program name.")
2211 (defvar wl-prog-uudecode-arg nil
2212 "*Arguments for uudecode program.")
2213 (defvar wl-prog-uudecode-no-stdout-option t
2214 "*If non-nil, uudecode program don't have option for output to stdout.")
2216 ;; Obsolete variables. for compatibility.
2217 (defvar wl-address-filename wl-address-file)
2218 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
2219 (defvar wl-score-default-file-name wl-score-default-file)
2220 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
2221 (defvar wl-draft-prepared-config-alist nil)
2222 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
2223 (defvar wl-score-files-directory wl-score-files-dir)
2224 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
2225 (defvar wl-summary-temp-above wl-summary-target-above)
2226 (make-obsolete-variable 'wl-summary-temp-above 'wl-summary-target-above)
2229 (defvar wl-plugged-plug-on "ON")
2230 (defvar wl-plugged-plug-off "--")
2231 (defvar wl-plugged-auto-off "**")
2232 (defvar wl-plugged-server-indent 2)
2233 (defvar wl-plugged-port-indent 4)
2234 (defvar wl-plugged-queue-status-column 25)
2237 (product-provide (provide 'wl-vars) (require 'wl-version))
2239 ;;; wl-vars.el ends here