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."
44 :link '(custom-manual "(wl-ja)Top")
49 "Wanderlust, Preferences."
53 (defgroup wl-folder nil
54 "Wanderlust, folder buffer."
58 (defgroup wl-summary nil
59 "Wanderlust, summary buffer."
63 (defgroup wl-summary-marks nil
64 "Wanderlust, marks used in summary buffers."
68 (defgroup wl-expire nil
69 "Wanderlust, Expiring and archiving."
73 (defgroup wl-score nil
74 "Wanderlust, Score file handling."
78 (defgroup wl-highlight nil
79 "Wanderlust, Highlights."
83 (defgroup wl-draft nil
84 "Wanderlust, draft mode."
89 (defconst wl-on-xemacs (featurep 'xemacs))
91 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
92 (>= emacs-major-version 21)))
94 (defconst wl-on-nemacs (fboundp 'nemacs-version))
96 (defconst wl-on-mule (featurep 'mule))
99 (and wl-on-mule (or wl-on-xemacs
100 (> emacs-major-version 19))))
105 (defun-maybe locate-data-directory (a)))
108 (cond (wl-on-mule3 'binary)
109 (wl-on-mule '*noconv*)
113 (defvar wl-cs-autoconv
114 (cond (wl-on-mule3 'undecided)
115 (wl-on-mule '*autoconv*)
116 (wl-on-nemacs 2) ; junet...
120 (cond (wl-on-mule3 'junet)
121 (wl-on-mule '*junet*)
125 (defvar wl-cs-cache wl-cs-local)
127 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
130 (defcustom wl-from (if (boundp 'user-mail-address)
132 "*From string used in draft."
136 (defcustom wl-user-mail-address-list nil
137 "*A list of user's mail addresses.
138 This list is used to judge whether an address is user's or not.
139 You should set this variable if you use multiple e-mail addresses.
140 If you don't have multiple e-mail addresses, you don't have to set this."
141 :type '(repeat string)
144 (defcustom wl-organization nil
146 :type '(choice (const :tag "none" nil)
150 (defcustom wl-tmp-dir "~/tmp/"
151 "*Default temporary directory to save message, part."
155 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
156 (locate-data-directory "wl")
157 (let ((icons (expand-file-name "wl/icons/"
159 (if (file-directory-p icons)
161 "*Icon directory (XEmacs or Emacs 21)."
162 :type '(choice (const :tag "none" nil)
166 (defcustom wl-summary-from-func 'wl-summary-default-from
167 "*A function for displaying sender (From: field) information."
171 (defcustom wl-summary-subject-func 'wl-summary-default-subject
172 "*A function for displaying subject."
176 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
177 "*A filter function for comparing subjects."
181 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[: ]"
182 "*If message does not have in-reply-to field nor references field and
183 subject matches this regexp, search parent message by subject matching."
187 (defcustom wl-summary-update-confirm-threshold 500
188 "*Confirm updating summary if message number is larger than this value."
193 (defcustom wl-default-folder "%inbox"
194 "*Default folder used in `wl-summary-goto-folder'."
197 (defcustom wl-draft-folder "+draft"
201 (defcustom wl-trash-folder "+trash"
205 (defcustom wl-queue-folder "+queue"
210 (defcustom wl-default-spec "%"
215 (defcustom wl-insert-mail-followup-to nil
216 "*Insert Mail-Followup-To: field if non-nil."
220 (defcustom wl-insert-mail-reply-to nil
221 "*Insert Mail-Reply-To: field if non-nil."
225 (defcustom wl-insert-message-id t
226 "*Insert Message-ID: field if non-nil."
230 (defcustom wl-auto-insert-x-face t
231 "*Insert X-Face: field automatically."
235 (defcustom wl-x-face-file "~/.xface"
236 "*X-Face field is inserted using its contents.
237 If file exists and `wl-auto-insert-x-face' is non-nil."
241 (defcustom wl-subscribed-mailing-list nil
242 "*Subscribed mailing list.
243 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
244 :type '(repeat string)
248 "*Display demo at start time."
252 (defcustom wl-envelope-from nil
253 "*Envelope From used in SMTP.
254 If nil, `wl-from' is used."
255 :type '(choice (const :tag "Same as 'From' field." nil)
259 (defcustom wl-draft-add-references t
260 "*If non-nil, message-id of the cited message is inserted to the
261 references field of the current draft."
265 (defcustom wl-smtp-connection-type nil
266 "*SMTP connection type.
267 If nil, default smtp connection type is used."
268 :type '(choice (const :tag "default" nil)
269 (const :tag "Use STARTTLS" starttls)
273 (defcustom wl-smtp-posting-user nil
274 "*SMTP authentication user."
275 :type '(choice (const :tag "none" nil)
279 (defcustom wl-smtp-posting-server nil
280 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
281 :type '(choice (const :tag "none" nil)
285 (defcustom wl-smtp-posting-port nil
286 "*SMTP port number in `wl-smtp-posting-server'.
287 If nil, default SMTP port number(25) is used."
288 :type '(choice (const :tag "Default (25)" nil)
292 (defcustom wl-smtp-authenticate-type nil
293 "*SMTP Authentication type.
294 If nil, don't authenticate."
295 :type '(choice (const :tag "none" nil)
296 (const :tag "PLAIN" "plain")
297 (const :tag "CRAM-MD5" "cram-md5")
298 (const :tag "LOGIN" "login")
299 (string :tag "Other"))
302 (defcustom wl-pop-before-smtp-user nil
303 "*POP3 user name to send mail using POP-before-SMTP.
304 If nil, `elmo-default-pop3-user' is used.
305 To use POP-before-SMTP,
306 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
307 :type '(choice (const :tag "none" nil)
311 (defcustom wl-pop-before-smtp-server nil
312 "*POP3 server for POP-before-SMTP.
313 If nil, `elmo-default-pop3-server' is used."
314 :type '(choice (const :tag "none" nil)
318 (defcustom wl-pop-before-smtp-port nil
319 "*POP3 port for POP-before-SMTP.
320 If nil, `elmo-default-pop3-port' is used."
321 :type '(choice (const :tag "none" nil)
325 (defcustom wl-pop-before-smtp-stream-type nil
326 "*Stream type for POP-before-SMTP.
327 If nil, `elmo-default-pop3-stream-type' is used."
331 (defcustom wl-pop-before-smtp-authenticate-type nil
332 "*Default Authentication type for POP-before-SMTP.
333 If nil, `elmo-default-pop3-authenticate-type' is used."
334 :type '(choice (const :tag "none" nil)
335 (const :tag "APOP" "apop")
336 (const :tag "POP3" "user"))
339 (defcustom wl-nntp-posting-server nil
340 "*NNTP server name to post news.
341 If nil, `elmo-default-nntp-server' is used."
342 :type '(choice (const :tag "none" nil)
345 (defcustom wl-nntp-posting-user nil
346 "*NNTP user name to post news for authinfo.
347 If nil, `elmo-default-nntp-user' is used.
348 If nil, don't authenticate."
349 :type '(choice (const :tag "none" nil)
352 (defcustom wl-nntp-posting-port nil
353 "*NNTP port to post news.
354 If nil, `elmo-default-nntp-port' is used."
355 :type '(choice (const :tag "none" nil)
358 (defcustom wl-nntp-posting-stream-type nil
359 "*Stream type for posting Netnews.
360 If nil, `elmo-default-nntp-stream-type' is used."
364 (defcustom wl-fetch-confirm-threshold 30000
365 "*Confirm fetching if message size is larger than this value."
369 (defcustom wl-prefetch-confirm t
370 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
374 (defcustom wl-prefetch-threshold 30000
375 "*Maximum size of message prefetched without confirmation.
376 If nil, all messages prefetched regardless of its size.
377 If message size is larger than this value, confirm prefetching
378 when `wl-prefetch-confirm' is non-nil."
379 :type '(choice (integer :tag "Threshold (bytes)")
380 (const :tag "No limitation" nil))
383 (defcustom wl-cache-prefetch-threshold 30000
384 "*Quit forward cache prefetching if message size is larger than this value."
388 (defcustom wl-thread-insert-opened nil
389 "*Non-nil forces to insert thread as opened in updating."
393 (defcustom wl-thread-open-reading-thread t
394 "*Non-nil forces to open reading thread."
399 (defvar wl-folder-mode-hook nil
400 "A hook called when wanderlust folder mode is started.
401 This hook may contain the functions `wl-folder-init-icons' and
402 `wl-setup-folder' for reasons of system internal to accord facilities
403 for the Emacs variants.")
404 (defvar wl-summary-toggle-disp-on-hook nil
405 "A hook called when message is toggled.")
406 (defvar wl-summary-toggle-disp-off-hook nil
407 "A hook called when message is disappeared.")
408 (defvar wl-summary-toggle-disp-folder-on-hook nil
409 "A hook called when folder is toggled.")
410 (defvar wl-summary-toggle-disp-folder-off-hook nil
411 "A hook called when folder is disappeared.")
412 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
413 "A hook called when message window is resumed when folder is toggled.")
414 (defvar wl-summary-mode-hook nil
415 "A hook called when summary mode is started.
416 This hook may contain the function `wl-setup-summary' for reasons of
417 system internal to accord facilities for the Emacs variants.")
419 (defvar wl-summary-prepared-pre-hook nil
420 "A hook called before the summary buffer has been generated.")
421 (defvar wl-summary-prepared-hook nil
422 "A hook called after the summary buffer has been generated.")
423 (defvar wl-summary-sync-updated-hook nil
424 "A hook called when update summary buffer.")
425 (defvar wl-summary-unread-message-hook nil
426 "A hook called when unread message is displayed.")
427 (defvar wl-summary-edit-addresses-hook nil
428 "A hook called when address book is edited.")
429 (defvar wl-summary-buffer-message-saved-hook nil
430 "A hook called when msgdb is saved.")
431 (defvar wl-summary-buffer-mark-saved-hook nil
432 "A hook called when mark is saved.")
433 (defvar wl-summary-divide-thread-when-subject-changed nil
434 "Divide thread when subject is changed.")
435 (defvar wl-init-hook nil
436 "A hook called when initialization is finished. This hook may contain
437 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
438 reasons of system internal to accord facilities for the Emacs variants.")
440 "A hook called when Wanderlust is invoked.")
441 (defvar wl-reply-hook nil
442 "A hook called when replied.")
443 (defvar wl-mail-setup-hook nil
444 "A hook called when Draft is prepared.")
445 (defvar wl-draft-reedit-hook nil
446 "A hook called when Draft is re-edited.")
447 (defvar wl-draft-send-hook '(wl-draft-config-exec)
448 "A hook called on the draft editing buffer before sending process starts.")
449 (defvar wl-mail-send-pre-hook nil
450 "A hook called just before the mail sending process starts.")
451 (defvar wl-news-send-pre-hook nil
452 "A hook called just before the news sending process starts.")
453 (defvar wl-message-buffer-created-hook nil
454 "A hook called when Message buffer is prepared.")
455 (defvar wl-message-redisplay-hook nil
456 "A hook called when Message is displayed.")
457 (defvar wl-message-exit-hook nil
458 "A hook called when quit message.")
459 (defvar wl-summary-exit-hook nil
460 "A hook called when exit summary mode.")
461 (defvar wl-highlight-headers-hook nil
462 "A hook called when header is highlighted.")
463 (defvar wl-highlight-message-hook nil
464 "A hook called when message is highlighted.")
465 (defvar wl-save-hook nil
466 "A hook called when save summary and folder status.")
467 (defvar wl-exit-hook nil
468 "A hook called when exit wanderlust.")
469 (defvar wl-folder-suspend-hook nil
470 "A hook called when suspend wanderlust.")
471 (defvar wl-biff-notify-hook nil
472 "A hook called when a biff-notification is invoked.")
473 (defvar wl-auto-check-folder-pre-hook nil
474 "A hook called before auto check folders.")
475 (defvar wl-auto-check-folder-hook nil
476 "A hook called when auto check folders.")
477 (defvar wl-folder-check-entity-pre-hook nil
478 "A hook called before check entity.")
479 (defvar wl-folder-check-entity-hook nil
480 "A hook called when check entity.")
481 (defvar wl-draft-config-exec-hook nil
482 "A hook called when execute header-config on draft.")
483 (defvar wl-summary-expire-pre-hook nil
484 "A hook called before expire.")
485 (defvar wl-summary-expire-hook nil
486 "A hook called when expired.")
487 (defvar wl-summary-archive-pre-hook nil
488 "A hook called before archive.")
489 (defvar wl-summary-archive-hook nil
490 "A hook called when archived.")
491 (defvar wl-summary-line-inserted-hook nil
492 "A hook called when summary line is inserted.")
493 (defvar wl-summary-insert-headers-hook nil
494 "A hook called when insert header for search header.")
495 (defvar wl-thread-update-children-number-hook nil
496 "A hook called when children number is updated.")
497 (defvar wl-folder-update-access-group-hook nil
498 "A hook called when update access group folder.")
499 (defvar wl-draft-cited-hook nil
500 "A hook called after a message is cited.")
501 (defvar wl-draft-insert-x-face-field-hook nil
502 "A hook called after a x-face field is inserted.")
503 (defvar wl-template-mode-hook nil
504 "A hook called when template mode is started.")
505 (defvar wl-score-mode-hook nil
506 "A hook called when score mode is started.")
507 (defvar wl-make-plugged-hook nil
508 "A hook called when make plugged alist.")
510 (defvar wl-plugged-exit-hook nil
511 "A hook called when exit plugged mode.")
513 ;;;; functions for draft
514 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
515 "A function to send message."
519 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
520 "A function to send news."
524 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
525 "A function to send mail.
526 Prepared candidates are 'wl-draft-send-mail-with-smtp,
527 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
528 :type '(radio (function-item wl-draft-send-mail-with-smtp)
529 (function-item wl-draft-send-mail-with-qmail)
530 (function-item wl-draft-send-mail-with-pop-before-smtp)
531 (function :tag "Other"))
534 (defcustom wl-draft-reply-with-argument-list
535 '(("Reply-To" . (("Reply-To") nil nil))
536 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
537 ("From" . (("From") nil nil)))
538 "Alist of cons cell of
539 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
540 'field-name' is a string.
541 'fields for ***' is a list of strings.
542 If car of each cons cell exists in original message,
543 cdr of each cons cell is used for draft message.
544 Default is for 'reply-to-author'."
545 :type '(repeat (cons (choice (string :tag "Field Name")
546 (repeat (string :tag "Field Name")))
547 (list (repeat :tag "Fields For To" string)
548 (repeat :tag "Fields For Cc" string)
549 (repeat :tag "Fields For Newsgroups" string))))
552 (defcustom wl-draft-reply-without-argument-list
553 '(("Followup-To" . (nil nil ("Followup-To")))
554 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
555 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
556 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
557 "Alist of cons cell of
558 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
559 'field-name' is a string.
560 'fields for ***' is a list of strings.
561 If car of each cons cell exists in original message,
562 cdr of each cons cell is used for draft message.
563 Default is for 'reply-to-all'."
564 :type '(repeat (cons (choice (string :tag "Field Name")
565 (repeat (string :tag "Field Name")))
566 (list (repeat :tag "Fields For To" string)
567 (repeat :tag "Fields For Cc" string)
568 (repeat :tag "Fields For Newsgroups" string))))
571 (defcustom wl-draft-reply-myself-with-argument-list
572 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
573 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
574 ("From" . (("To") ("Cc") nil)))
575 "Alist of cons cell of
576 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
577 'field-name' is a string.
578 'fields for ***' is a list of strings.
579 If car of each cons cell exists in original message,
580 cdr of each cons cell is used for draft message.
581 Default is for 'reply-to-me'."
582 :type '(repeat (cons (choice (string :tag "Field Name")
583 (repeat (string :tag "Field Name")))
584 (list (repeat :tag "Fields For To" string)
585 (repeat :tag "Fields For Cc" string)
586 (repeat :tag "Fields For Newsgroups" string))))
589 (defcustom wl-draft-reply-myself-without-argument-list
590 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
591 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
592 ("From" . (("To") ("Cc") nil)))
593 "Alist of cons cell of
594 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
595 'field-name' is a string.
596 'fields for ***' is a list of strings.
597 If car of each cons cell exists in original message,
598 cdr of each cons cell is used for draft message.
599 Default is for 'followup-to-me'."
600 :type '(repeat (cons (choice (string :tag "Field Name")
601 (repeat (string :tag "Field Name")))
602 (list (repeat :tag "Fields For To" string)
603 (repeat :tag "Fields For Cc" string)
604 (repeat :tag "Fields For Newsgroups" string))))
607 (defcustom wl-draft-always-delete-myself nil
608 "*Always delete myself from reciepient if non-nil."
612 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
613 "*Do not insert bcc or fcc if To and Cc fields is a member of
614 `wl-subscribed-mailing-list'"
618 (defcustom wl-draft-resume-folder-window t
619 "*Resume folder window in `wl-draft-hide'."
623 (defcustom wl-draft-use-frame nil
624 "*Raise new frame when composing draft."
628 (defcustom wl-draft-qmail-send-plugged nil
629 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
633 (defcustom wl-draft-remove-group-list-contents t
634 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
639 (defcustom wl-init-file "~/.wl"
640 "*User customization setting file."
644 (defcustom wl-folders-file "~/.folders"
649 (defcustom wl-address-file "~/.addresses"
654 (defcustom wl-alias-file "~/.im/Aliases"
655 "*Alias file for completion."
659 (defcustom wl-ldap-server "localhost"
661 :type '(string :tag "Server")
664 (defcustom wl-ldap-port nil
666 :type '(choice (const :tag "Default port" nil)
670 (defcustom wl-ldap-base "c=US"
672 :type '(string :tag "Base")
675 (defcustom wl-use-ldap nil
676 "*If non-nil, use LDAP for address completion."
680 (defcustom wl-folder-info-save t
681 "If non-nil, save elmo-folder-info-alist."
685 (defcustom wl-summary-unread-mark "!"
686 "Mark for unread message."
687 :type '(string :tag "Mark")
688 :group 'wl-summary-marks)
689 (defcustom wl-summary-important-mark "$"
690 "Mark for important message."
691 :type '(string :tag "Mark")
692 :group 'wl-summary-marks)
693 (defcustom wl-summary-new-mark "N"
694 "Mark for new message."
695 :type '(string :tag "Mark")
696 :group 'wl-summary-marks)
697 (defcustom wl-summary-unread-uncached-mark "U"
698 "Mark for unread and uncached message."
699 :type '(string :tag "Mark")
700 :group 'wl-summary-marks)
701 (defcustom wl-summary-unread-cached-mark "!"
702 "Mark for unread but already cached message."
703 :type '(string :tag "Mark")
704 :group 'wl-summary-marks)
705 (defcustom wl-summary-read-uncached-mark "u"
706 "Mark for read but uncached message."
707 :type '(string :tag "Mark")
708 :group 'wl-summary-marks)
709 (defcustom wl-summary-score-over-mark "+"
710 "Score mark used for messages with high scores."
711 :type '(string :tag "Mark")
712 :group 'wl-summary-marks)
713 (defcustom wl-summary-score-below-mark "-"
714 "Score mark used for messages with low scores."
715 :type '(string :tag "Mark")
716 :group 'wl-summary-marks)
718 (defcustom wl-summary-no-mime-folder-list
719 (list (concat "^" (regexp-quote wl-draft-folder) "$"))
720 "*All folders that match this list don't analysis mime."
721 :type '(repeat string)
724 (defcustom wl-summary-fix-timezone "JST"
725 "Non-nil forces to fix timezone of summary date."
729 (defcustom wl-summary-default-score 0
730 "*Default message score level.
731 All scores generated by the score files will be added to this score.
732 If this variable is nil, scoring will be disabled."
733 :type '(choice (const :tag "disable" nil)
737 (defcustom wl-summary-important-above nil
738 "*Mark all messages with a score above this variable as important.
739 This variable is local to the summary buffers."
740 :type '(choice (const :tag "off" nil)
744 (defcustom wl-summary-target-above nil
745 "*Mark all messages with a score above this variable as target.
746 This variable is local to the summary buffers."
747 :type '(choice (const :tag "off" nil)
751 (defcustom wl-summary-mark-below 0
752 "*Mark all messages with a score below this variable as read.
753 This variable is local to each summary buffer and usually set by the
758 (defcustom wl-summary-expunge-below nil
759 "All messages that have a score less than this variable will be expunged.
760 This variable is local to the summary buffers."
761 :type '(choice (const :tag "off" nil)
765 (defcustom wl-summary-score-marks
766 (list wl-summary-new-mark)
767 "Persistent marks to scoring."
768 :type '(repeat (string :tag "Mark"))
771 (defcustom wl-use-scoring (not wl-on-nemacs)
772 "*If non-nil, enable scoring."
776 (defcustom wl-summary-rescore-partial-threshold 200
777 "*Summary is not scored entirely if there are messages more than this value.
778 In sync-all or rescan."
782 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
783 "*Name of the directory where score files will be stored.
784 (default \"~/.elmo\")."
788 (defcustom wl-score-interactive-default-score 1000
789 "*Scoring commands will raise/lower the score with this number as the default."
793 (defcustom wl-score-expiry-days 7
794 "*Number of days before unused score file entries are expired.
795 If this variable is nil, no score file entries will be expired."
796 :type '(choice (const :tag "never" nil)
800 (defcustom wl-score-update-entry-dates t
801 "*In non-nil, update matching score entry dates.
802 If this variable is nil, then score entries that provide matches
803 will be expired along with non-matching score entries."
807 (defcustom wl-score-folder-alist nil
808 "*Alist of folder regexp and score file."
809 :type '(repeat (list (regexp :tag "Folder Regexp")
812 (symbol :tag "Variable")))))
815 (defcustom wl-score-folder-alist-matchone t
816 "*If non-nil, getting only one element of `wl-score-folder-alist'."
820 (defcustom wl-score-default-file "all.SCORE"
821 "*Default score file name."
825 (defcustom wl-score-simplify-fuzzy-regexp
826 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
827 "*Strings to be removed when doing fuzzy matches.
828 This can either be a regular expression or list of regular expressions."
829 :type '(repeat regexp)
832 (defcustom wl-score-header-default-entry
833 '(("number" -1000 perm =)
834 ("subject" -1000 nil nil)
835 ("from" -1000 perm s)
836 ("message-id" -1000 temp e)
837 ("references" -1000 perm e)
840 ("date" -1000 temp nil)
841 ("xref" -1000 perm s)
842 ("extra" -1000 perm s)
843 ("chars" -1000 perm >)
844 ("lines" -1000 perm >)
845 ("followup" -1000 perm s)
846 ("thread" -1000 temp s))
847 "*Default entry when insert score entry."
848 :type '(repeat (list (string :tag "Header")
849 (choice (integer :tag "Score")
850 (const :tag "Ask" nil))
851 (choice (const :tag "Permanent" perm)
852 (const :tag "Temporary" temp)
853 (const :tag "Ask" nil))
854 (choice (const :tag "Regexp string" r)
855 (const :tag "Substring" s)
856 (const :tag "fuzzy string" f)
857 (const :tag "Exact string" e)
858 (const :tag "REGEXP STRING" R)
859 (const :tag "SUBSTRING" S)
860 (const :tag "FUZZY STRING" F)
861 (const :tag "EXACT STRING" E)
862 (const :tag "less than" <)
863 (const :tag "less equal" <=)
864 (const :tag "greater than" >)
865 (const :tag "greater equal" >=)
866 (const :tag "equal" =)
867 (const :tag "Ask" nil))))
870 (defcustom wl-score-mode-mime-charset 'x-ctext
871 "*MIME Charset for score file."
875 (defcustom wl-draft-fields
876 '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
877 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
878 "Fields used in draft mode."
879 :type '(repeat (string :tag "Field"))
882 (defcustom wl-draft-config-alist nil
883 "Alist of configuration field on draft.
885 '((\"^To: .*wl@lists.airs.net\"
886 (\"From\" . wl-from2)
887 (\"Organization\" . wl-organization2))
888 (\"^To: .*hogehoge@\"
889 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
890 wl-my-draft-config-func-hoge))"
891 :type '(repeat (list (sexp :tag "Match")
894 (choice (cons (sexp :tag "Field(Variable)")
896 (sexp :tag "Function")))))
899 (defcustom wl-draft-config-matchone nil
900 "*If non-nil, applied only one element of `wl-draft-config-alist'."
904 (defcustom wl-template-alist nil
906 :type '(repeat (list (string :tag "Name")
909 (choice (cons (sexp :tag "Field(Variable)")
911 (sexp :tag "Function")))))
914 (defcustom wl-template-visible-select t
915 "*If non-nil, select template with visible."
919 (defcustom wl-template-confirm nil
920 "*If non-nil, require your confirmation when selected template."
924 (defcustom wl-template-buffer-lines 7
925 "*Lines of template buffer."
930 (defcustom wl-draft-enable-queuing t
931 "*Non-nil enables queued sending."
936 (defcustom wl-draft-use-cache nil
937 "*If non-nil, sending message is cached."
942 (defcustom wl-auto-flush-queue t
943 "*If non-nil, sending queue is flushed when network status is toggled."
948 (defcustom wl-draft-reply-buffer-style 'split
950 :type '(radio (const split)
954 (defcustom wl-draft-queue-save-variables
955 '(wl-envelope-from wl-from
956 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
957 wl-smtp-authenticate-type wl-smtp-connection-type
958 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
959 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
960 wl-nntp-posting-server wl-nntp-posting-server
961 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
962 "*Saving variables in queue info."
963 :type '(repeat (sexp :tag "Variable"))
966 (defcustom wl-draft-sendlog t
967 "*Keep send state in log if non-nil."
971 (defcustom wl-draft-sendlog-max-size 20000
972 "*Max file size of sendlog."
976 (defcustom wl-summary-default-number-column 5
977 "Number of columns in summary buffer."
981 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
982 "Alist of folder and its number column.
983 If no matches, 'wl-summary-default-number-column' is used.
985 '((\"^%inbox@qmail-maildir\" . 9)
986 (\"^-.*@news-server\" . 6))"
987 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
990 (defcustom wl-summary-highlight t
991 "Non-nil forces Summary buffer to be highlighted."
994 :group 'wl-highlight)
996 (defcustom wl-summary-lazy-highlight (and (boundp 'window-scroll-functions)
998 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1001 :group 'wl-highlight)
1003 (defcustom wl-summary-highlight-partial-threshold 1000
1004 "Summary is not highlighted entirely if there are lines more than this value.
1005 Available if only `wl-summary-lazy-highlight' is nil."
1008 :group 'wl-highlight)
1010 (defcustom wl-summary-partial-highlight-above-lines 30
1011 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1012 Summary lines are highlighted partialy above current position.
1013 Available if only `wl-summary-lazy-highlight' is nil."
1016 :group 'wl-highlight)
1018 (defcustom wl-summary-cache-use t
1019 "Non-nil forces wl-summary to use cache file."
1023 (defcustom wl-summary-auto-sync-marks t
1024 "Non-nil forces to synchronize unread/important marks."
1028 (defcustom wl-summary-cache-file ".wl-summary-cache"
1029 "*Cache file for summary mode contents."
1032 (defcustom wl-summary-view-file ".wl-summary-view"
1033 "*Current summary view."
1036 (defcustom wl-thread-top-file ".wl-thread-top"
1037 "*Current thread top entity... obsolete."
1040 (defcustom wl-thread-entity-file ".wl-thread-entity"
1044 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1045 "*Thread top entity list."
1049 (defcustom wl-print-buffer-func 'lpr-buffer
1050 "A function to print current buffer."
1054 (defcustom wl-ps-print-buffer-func
1055 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1056 "A function to print current buffer with ps-print."
1061 (defcustom wl-use-petname t
1062 "*Display petname in summary and default citation title."
1066 (defcustom wl-use-folder-petname
1068 "*List of situation using folder petname.
1069 Allowed situations are:
1070 modeline : displayed on modeline.
1071 ask-folder : displayed on minibuffer when ask folder.
1072 read-folder : can used for completion at `wl-summary-read-folder'."
1073 :type '(set (const modeline)
1075 (const read-folder))
1079 (defcustom wl-folder-petname-alist nil
1080 "A list of (realname . petname)."
1081 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1084 (defcustom wl-summary-weekday-name-lang "ja"
1085 "*Language to display week day."
1086 :type '(choice (const "ja")
1090 (string :tag "Other"))
1094 (defcustom wl-local-domain nil
1095 "*Domain part of this client (without hostname).
1096 Set this if (system-name) does not return FQDN."
1097 :type '(choice (const :tag "Use System Name" nil)
1101 (defcustom wl-message-id-domain nil
1102 "*Specific domain part of Message-ID."
1103 :type '(choice (const :tag "Use System Name" nil)
1107 (defcustom wl-break-pages t
1108 "*Break Pages at ^L."
1112 (defcustom wl-message-scroll-amount 5
1113 "*Scroll amount by SPC key."
1117 (defcustom wl-message-window-size '(1 . 4)
1118 "*Size of summary and message window. cons cell of (Summary : Message)."
1119 :type '(cons integer integer)
1122 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1123 "Newsgroups" "Subject" "^From")
1124 "*Sort order of header fields. Each elements are regexp of field name.
1126 :type '(repeat (string :tag "Field Regexp"))
1129 (defcustom wl-message-ignored-field-list nil
1130 "All fields that match this list will be hidden in message buffer.
1131 Each elements are regexp of field-name."
1132 :type '(repeat (string :tag "Field Regexp"))
1135 (defcustom wl-message-visible-field-list nil
1136 "All fields that match this list will be displayed in message buffer.
1137 Each elements are regexp of field-name."
1138 :type '(repeat (string :tag "Field Regexp"))
1141 (defcustom wl-folder-window-width 20
1142 "*Width of folder window."
1147 (defcustom wl-summary-recenter t
1148 "*Recenter on redisplay."
1153 (defcustom wl-stay-folder-window nil
1154 "*Stay folder window when folder is selected if non-nil."
1158 (defcustom wl-reply-subject-prefix "Re: "
1159 "*Prefix of the subject of the replied message."
1164 (defcustom wl-draft-reply-use-address-with-full-name t
1165 "*Use address with full-name in the draft of replied message."
1170 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1171 "*Regexp matching \"Re: \" in the subject line."
1176 (defcustom wl-folder-many-unsync-threshold 70
1177 "*Folders which contains messages more than this number are highlighted
1178 with wl-highlight-folder-many-face."
1183 (defcustom wl-fcc nil
1184 "*Folder Carbon Copy."
1185 :type '(choice (const :tag "disable" nil)
1190 (defcustom wl-bcc nil
1191 "*Blind Carbon Copy."
1192 :type '(choice (const :tag "disable" nil)
1197 (defcustom wl-folder-desktop-name "Desktop"
1198 "*An implicit name of the folder top entity."
1203 (defcustom wl-summary-indent-length-limit 46
1204 "*Limit of indent length for thread."
1209 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1210 "*A string displayed in summary when no from field exists."
1214 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1215 "*A string displayed in summary when no subject field exists."
1219 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1220 "*The body content of a cancel message."
1224 (defcustom wl-summary-width 80
1225 "*Set summary line width if non nil."
1230 (defcustom wl-summary-pick-field-default "Body"
1231 "*Default field for pick."
1232 :type '(radio (const "From")
1241 (string :tag "Other"))
1244 (defcustom wl-from-width 17
1245 "*From width in summary."
1250 (defcustom wl-subject-length-limit 35
1251 "*Subject width in summary."
1256 (defcustom wl-mime-charset (if wl-on-nemacs
1259 "*MIME Charset for summary and message."
1264 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1265 "A function to create X-Mailer field string ."
1269 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1270 (or hilit-background-mode 'dark)
1272 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1273 :type '(radio (const dark)
1275 :group 'wl-highlight)
1277 (defcustom wl-highlight-x-face-func nil
1278 "A function to display X-Face."
1280 :group 'wl-highlight)
1282 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1283 "Location of the qmail-inject program."
1284 :type '(string :tag "Program")
1287 (defcustom wl-qmail-inject-args nil
1288 "Arguments passed to qmail-inject programs.
1289 This should be a list of strings, one string for each argument.
1291 For e.g., if you wish to set the envelope sender address so that bounces
1292 go to the right place or to deal with listserv's usage of that address, you
1293 might set this variable to '(\"-f\" \"you@some.where\")."
1294 :type '(repeat (string :tag "Argument"))
1297 (defcustom wl-rejected-letter-start
1298 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1299 "Regexp specifying the beginning of the wrapper around a returned letter.
1300 This wrapper is generated by the mail system when rejecting a letter."
1304 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1305 "*All headers that match this regexp will be deleted when forwarding a message."
1309 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1310 "*All headers that match this regexp will be deleted when resending a message."
1314 (defcustom wl-refile-default-from-folder "+from"
1315 "*Folder name to refile by `wl-refile-guess-by-from'."
1316 :type '(string :tag "Folder")
1319 (defcustom wl-summary-auto-refile-skip-marks
1320 (list wl-summary-new-mark
1321 wl-summary-unread-uncached-mark
1322 wl-summary-unread-cached-mark)
1323 "Persistent marks to skip auto-refiling."
1324 :type '(repeat (string :tag "Mark"))
1327 (defcustom wl-summary-reserve-mark-list
1329 "If a message is already marked as temporal marks in this list,
1330 the message is not marked by any mark command."
1331 :type '(repeat (string :tag "Temp-Mark"))
1334 (defcustom wl-summary-skip-mark-list
1336 "If a message is already marked as temporal marks in this list,
1337 the message is skipped at cursor move."
1338 :type '(repeat (string :tag "Temp-Mark"))
1341 (defcustom wl-summary-incorporate-marks
1342 (list wl-summary-new-mark
1343 wl-summary-unread-uncached-mark)
1344 "Persistent marks to prefetch at `wl-summary-incorporate'."
1345 :type '(repeat (string :tag "Mark"))
1348 (defcustom wl-refile-rule-alist nil
1353 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1355 (\"^Wanderlust\" . \"+wl\")
1356 (\"^Elips\" . \"+elips\")))"
1357 :type '(repeat (list (string :tag "Field")
1359 (cons (regexp :tag "Value")
1360 (string :tag "Folder")))))
1363 (defcustom wl-strict-diff-folders nil
1364 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1365 :type '(choice (const :tag "Off" nil)
1366 (repeat (regexp :tag "Folder Regexp")))
1369 (defcustom wl-folder-use-server-diff t
1370 "Checked unread message number on IMAP4 server.
1371 Only IMAP4 folders have an effect."
1375 (defcustom wl-force-fetch-folders nil
1376 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1377 :type '(choice (const :tag "off" nil)
1378 (const :menu-tag "on" t)
1379 (repeat (regexp :tag "Folder Regexp")))
1382 (defcustom wl-auto-check-folder-name nil
1383 "*The folder specified by this variable will be automatically checked
1385 :type '(choice (string :tag "Folder")
1386 (repeat (string :tag "Folder"))
1390 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1391 "All folders that match this list won't be checked when group is
1392 automatically checked (or desktop is checked).
1393 This value is preceded by wl-auto-check-folder-list.
1394 Each elements are regexp of folder name."
1395 :type '(repeat (regexp :tag "Folder Regexp"))
1398 (defcustom wl-auto-check-folder-list nil
1399 "All folders that match this list are checked when group is
1400 automatically checked (or desktop is checked).
1401 This value precedes wl-auto-uncheck-folder-list.
1402 Each elements are regexp of folder name."
1403 :type '(repeat (regexp :tag "Folder Regexp"))
1406 (defcustom wl-show-plug-status-on-modeline t
1407 "If it is non-nil, show plugged status in modeline."
1409 :group 'wl-highlight)
1411 (defcustom wl-plug-state-indicator-on " [ON] "
1412 "String used to show plugged status ON."
1414 :group 'wl-highlight)
1416 (defcustom wl-plug-state-indicator-off " [--] "
1417 "String used to show plugged status OFF."
1419 :group 'wl-highlight)
1421 (defcustom wl-biff-check-folder-list nil
1422 "All folders that match this list are automatically checked
1423 every intervals specified by wl-biff-check-interval."
1424 :type '(repeat (regexp :tag "Folder Regexp"))
1425 :group 'wl-highlight)
1427 (defcustom wl-biff-check-interval 40
1428 "Number of seconds between updates of new mails in the mode line."
1430 :group 'wl-highlight)
1432 (defcustom wl-biff-state-indicator-on "[
\e$B")
\e(B]"
1433 "String used to show biff status ON."
1435 :group 'wl-highlight)
1437 (defcustom wl-biff-state-indicator-off "[
\e$B!>
\e(B]"
1438 "String used to show biff status OFF."
1440 :group 'wl-highlight)
1442 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1443 "Displaying order of items to be shown in modeline. The first item will
1444 be placed in the leftmost. The significant items are `biff' and `plug';
1445 otherwise, e.g. `title', corresponds to the things except for the biff
1446 staus nor the plugged status. The default order is '(biff plug title)
1447 even if the value of this option is set to nil. Here are some samples:
1449 ;; Plugged status first:
1450 \(setq wl-mode-line-display-priority-list '(plug))
1452 ;; Biff status, Title of Wanderlust, Plugged status:
1453 \(setq wl-mode-line-display-priority-list '(biff title plug))
1456 :type '(repeat (radio (const :format "%v " biff)
1457 (const :format "%v " plug)
1458 (sexp :tag "Other" :value title)))
1459 :group 'wl-highlight)
1461 (defcustom wl-interactive-send nil
1462 "*If non-nil, require your confirmation when sending draft message."
1466 (defcustom wl-interactive-exit t
1467 "*If non-nil, require your confirmation when exiting WL."
1471 (defcustom wl-summary-move-order 'unread
1472 "*The order of priority when move in summary mode.
1473 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1474 If this variable is `new', precede \"N\" mark."
1475 :type '(radio (const new)
1479 (defvar wl-summary-move-direction-downward t)
1481 (defcustom wl-summary-move-direction-toggle t
1482 "*If non-nil, search direction for the next message will be determined
1483 depends on previous search direction.
1484 It uses wl-summary-move-direction-downward as a direction flag."
1488 (defcustom wl-auto-select-first nil
1489 "*If non-nil, display selected first message when enter summary."
1493 (defcustom wl-auto-select-next nil
1494 "*If non-nil, offer to go to the next folder from the end of the previous.
1495 If the value is the symbol `unread', go to the next folder
1496 that no unread message exists. If the value is the symbol `skip-no-unread',
1497 skip the folder that no unread message exists.
1499 See also variable `wl-summary-next-no-unread-command'."
1500 :type '(radio (const :tag "off" nil)
1503 (const skip-no-unread))
1506 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1507 "*All folder types that match this list prefetch next message,
1508 and reserved buffer cache."
1509 :type '(set (const localdir)
1518 (defcustom wl-cache-prefetch-folder-list nil
1519 "*All folders that match this list prefetch next message,
1520 and reserved buffer cache.
1523 :type '(repeat (regexp :tag "Folder Regexp"))
1526 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1527 "*A function to get message number when prefetch next message."
1532 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1533 ; "All folders that match this list won't be cached when reading messages.
1534 ;Each elements are regexp of folder name.")
1536 (defcustom wl-summary-always-sticky-folder-list nil
1537 "All folders that match this list has sticky summary.
1538 Each elements are regexp of folder name."
1539 :type '(radio (const :tag "none" nil)
1540 (const :tag "all" t)
1541 (repeat (regexp :tag "Folder Regexp")))
1544 (defcustom wl-no-save-folder-list '("^/.*$")
1545 "All folders that match this list won't save its msgdb.
1546 Each elements are regexp of folder name."
1547 :type '(repeat (regexp :tag "Folder Regexp"))
1550 (defcustom wl-save-folder-list nil
1551 "All folders that match this list save its msgdb.
1552 Each elements are regexp of folder name."
1553 :type '(repeat (regexp :tag "Folder Regexp"))
1556 (defcustom wl-folder-mime-charset-alist
1557 '(("^-alt\\.chinese" . big5)
1558 ("^-relcom\\." . koi8-r)
1560 ("^-han\\." . euc-kr))
1561 "Charset alist. If no match, `wl-mime-charset' is used."
1562 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1566 (defcustom wl-folder-weekday-name-lang-alist
1567 '(("^-alt\\.chinese" . "en")
1568 ("^-relcom\\." . "en")
1570 ("^-han\\." . "en"))
1571 "Weekday name lang alist.
1572 If no match, `wl-summary-weekday-name-lang' is used.
1574 '((\"xemacs-beta$\" . \"en\")
1575 (\"^-fj\" . \"ja\"))"
1576 :type '(repeat (cons (regexp :tag "Folder Regexp")
1577 (choice (const "ja")
1581 (string :tag "Other"))))
1584 (defcustom wl-folder-thread-indent-set-alist
1585 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1586 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1587 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1588 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1589 "Thread indent set alist.
1590 If no match, following indent set is used.
1591 (wl-thread-indent-level
1592 wl-thread-have-younger-brother-str
1593 wl-thread-youngest-child-str
1594 wl-thread-vertical-str
1595 wl-thread-horizontal-str
1596 wl-thread-space-str)
1598 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1599 :type '(repeat (cons (regexp :tag "Folder Regexp")
1600 (group (integer :tag "Indent")
1601 (string :tag "Yonger Brother")
1602 (string :tag "Yonger Child")
1603 (string :tag "Vertical")
1604 (string :tag "Horizontal")
1605 (string :tag "Space"))))
1608 (defcustom wl-folder-sync-range-alist
1609 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1610 (regexp-quote wl-queue-folder) "$")
1612 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1613 :type '(repeat (cons (regexp :tag "Folder Regexp")
1614 (choice (const "update")
1620 (const :tag "none" nil))))
1623 (defcustom wl-default-sync-range "update"
1624 "*Default sync range."
1625 :type '(choice (const "update")
1631 (const :tag "none" nil))
1634 (defcustom wl-ask-range t
1635 "*If non-nil, ask for a range for summary synchronization.
1636 If nil, always use default."
1640 (defcustom wl-folder-move-cur-folder nil
1641 "*Non-nil, move to current folder on folder-mode when goto folder."
1645 (defcustom wl-folder-check-async (not wl-on-nemacs)
1646 "*Check the folder asynchronous."
1650 (defcustom wl-folder-notify-deleted nil
1651 "*Non-nil, display negative number on folder-mode when message is deleted
1652 in folder. If the value is 'sync, msgdb would be synchronized."
1653 :type '(choice (const :tag "off" nil)
1658 (defcustom wl-summary-exit-next-move t
1659 "*Non-nil, move to next-unsync or next-entity when exit summary."
1663 (defcustom wl-summary-next-no-unread-command
1664 '(wl-summary-read wl-summary-down wl-summary-up)
1665 "*Command list available when the value of `wl-auto-select-next' is 'unread
1666 or 'skip-no-unread."
1667 :type '(repeat function)
1670 (defcustom wl-summary-search-via-nntp 'confirm
1671 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1675 (defcustom wl-summary-keep-cursor-command
1676 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1677 "*Command list to keep cursor position when folder is changed to
1678 already existing summary."
1679 :type '(repeat function)
1682 (defcustom wl-summary-showto-folder-regexp nil
1683 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1684 Sender information in summary mode."
1685 :type '(choice (const :tag "none" nil)
1689 (defcustom wl-folder-removed-mark "#<removed>"
1690 "Mark for removed folder."
1694 (defcustom wl-folder-unsubscribe-mark "#"
1695 "Mark for unsubscribe folder."
1699 (defcustom wl-delete-folder-alist '(("^-" . remove))
1700 "*Alist of folder and delete policy.
1701 Each element is (folder-regexp . policy).
1703 The policy is one of the followings:
1705 'null : remove message.
1706 string : refile to the specified folder.
1708 otherwise : refile to the `wl-trash-folder'.
1710 '((\"^%\" . \"%#mh/trash\")
1712 (\"^\\\\+\" . trash))"
1713 :type '(repeat (cons (regexp :tag "Folder Regexp")
1714 (choice :tag "Policy"
1716 (const :tag "remove(null)" null)
1718 (const :tag "trash(other)" trash)
1719 (string :tag "Folder"))))
1722 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1724 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1725 POLICY is copy or move."
1726 :type '(repeat (cons (regexp :tag "Folder Regexp")
1727 (choice (const copy)
1732 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1733 "*Access group folders to make hierarchy structure."
1734 :type '(repeat (string :tag "Folder"))
1737 (defcustom wl-folder-init-load-access-folders nil
1738 "*Access group folders to load folder list on `wl-folder-init'.
1739 If this variable is non-nil,
1740 `wl-folder-init-no-load-access-folders' will be ignored."
1741 :type '(repeat (regexp :tag "Folder Regexp"))
1744 (defcustom wl-folder-init-no-load-access-folders nil
1745 "*Access group folders to not load folder list on `wl-folder-init'.
1746 If `wl-folder-init-load-access-folders' is non-nil,
1747 this variable will be ignored."
1748 :type '(repeat (regexp :tag "Folder Regexp"))
1751 (defcustom wl-folder-access-subscribe-alist nil
1752 "*Subscribe folders to fetching folder entries.
1753 Each element is (group-regexp (subscribe folder-regexp ...)).
1754 If subscribe is non-nil, subscribe when match folder-regexp.
1755 If subscribe is nil, unsubscribe when match folder-regexp.
1758 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1759 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1760 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
1761 :type '(repeat (cons (regexp :tag "Folder Regexp")
1762 (list (boolean :tag "Subscribed")
1764 (regexp :tag "Folder Regexp")))))
1767 ;;; For Folder Manager
1769 (defcustom wl-interactive-save-folders t
1770 "*Non-nil require your confirmation when save folders."
1774 (defcustom wl-fldmgr-make-backup t
1775 "*Non-nil make backup file when save folders."
1779 (defcustom wl-fldmgr-folders-indent "\t"
1780 "*Indent string for folders file."
1784 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1785 "*A function to sort folder."
1789 (defcustom wl-fldmgr-sort-group-first t
1790 "*Non-nil Group folder is first when sort."
1794 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1795 "*If non-nil, completion for adding folder refers current folder list."
1799 (defcustom wl-fldmgr-make-filter-default "Body"
1800 "*Default filter key while making filter on Folder."
1801 :type '(radio (const "From")
1810 (string :tag "Other"))
1813 ;;; For Expire and Archive
1815 (defcustom wl-expire-alist nil
1816 "Alist to decide a policy for expire.
1817 Each element is (folder-regexp (number or date) policy).
1819 The policy is one of the followings:
1820 'remove : remove messsage.
1821 'trash : refile `wl-trash-folder'.
1822 string : refile string folder.
1823 function : call function.
1826 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
1827 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
1828 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
1829 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
1830 (\"^\\\\+misc$\" (date 14) trash))"
1831 :type '(repeat (choice (list :tag "No-match"
1832 (regexp :tag "Folder Regexp")
1835 (regexp :tag "Folder Regexp")
1836 (list (radio :value number
1841 (repeat :inline t integer)))
1842 (choice :tag "Policy"
1846 (string :tag "folder")
1849 :tag "Arg for function"
1853 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1854 "Alist to decide a policy for archive.
1855 Each element is (folder-regexp policy(function)).
1858 '((\"\\\\+work$\" wl-archive-date)
1859 (\"\\\\+ml/\" wl-archive-number1)
1860 (\".*\" wl-archive-number2))"
1861 :type '(repeat (list (regexp :tag "Folder Regexp")
1864 (sexp :tag "Argument"))))
1867 (defcustom wl-summary-expire-reserve-marks
1868 (list wl-summary-important-mark
1870 wl-summary-unread-mark
1871 wl-summary-unread-uncached-mark
1872 wl-summary-unread-cached-mark)
1873 "Permanent marks of reserved message when expire.
1874 Don't reserve temporary mark message.
1877 'all : reserved all permanent marks.
1878 'none : not reserve permanent marks.
1879 list : reserved specified permanent marks."
1880 :type '(repeat (string :tag "Mark"))
1883 (defcustom wl-expire-number-with-reserve-marks nil
1884 "If non-nil, include reserve message when expire by number."
1888 (defcustom wl-expire-add-seen-list t
1889 "*If non-nil, add seen message list when refile message at expire."
1893 (defcustom wl-expire-use-log nil
1894 "*If non-nil, write a log when expired."
1898 (defcustom wl-expire-folder-update-msgdb t
1899 "*Non-nil update summary msgdb when expire on folder mode."
1903 ;; for wl-expire-archive-{number1|number2}
1904 (defcustom wl-expire-archive-files 100
1905 "*The number of one archive folder."
1909 ;; for wl-expire-archive-{number1|number2|date}
1910 (defcustom wl-expire-archive-get-folder-func
1911 'wl-expire-archive-get-folder
1912 "*A function to get archive folder name."
1916 (defcustom wl-expire-delete-oldmsg-confirm t
1917 "*If non-nil, require your confirmation when delete old message."
1921 ;; for wl-expire-archive-get-folder
1922 (defcustom wl-expire-archive-folder-type 'zip
1923 "*Archiver type of archive folder."
1924 :type '(radio (const zip)
1930 (symbol :tag "Other"))
1933 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1934 "*A format string for archive folder name."
1938 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1939 "*A regexp string for archive folder name."
1943 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1944 ;; $folder-199812;zip
1945 "*A format string for archive date folder name."
1949 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1950 "*A regexp string for archive date folder name."
1954 (defcustom wl-expire-archive-folder-prefix nil
1955 "*Prefix for archive folder."
1956 :type '(radio (const :tag "nothing" nil)
1957 (const :tag "full" t)
1963 ;; highilght about summary
1964 (defcustom wl-highlight-max-summary-lines 10000
1965 "*If the summary is larger than this lines, don't highlight it."
1967 :group 'wl-highlight)
1969 ;; highilght about draft and message
1970 (defcustom wl-highlight-body-too t
1971 "*In addition to header, highlight the body too. if non nil."
1973 :group 'wl-highlight)
1975 (defcustom wl-highlight-message-header-alist
1976 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
1977 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
1978 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
1980 :type '(repeat (cons regexp face))
1981 :group 'wl-highlight)
1983 (defcustom wl-highlight-message-header-button-alist
1984 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):" "<[^>]+>"
1985 0 wl-message-button-refer-article 0)
1986 ("^[^:]+:" "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1987 1 wl-message-button-refer-article 3)))
1988 "Alist of headers and regexps to match buttons in message headers."
1990 (list (regexp :tag "Header")
1992 (integer :tag "Button")
1993 (function :tag "Callback")
1996 (integer :tag "Regexp group"))))
1997 :group 'wl-highlight)
1999 (defcustom wl-highlight-citation-prefix-regexp
2000 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2001 "All lines that match this regexp will be highlighted with
2002 `wl-highlight-message-cited-text-*' face."
2004 :group 'wl-highlight)
2006 (defcustom wl-highlight-highlight-citation-too nil
2007 "*Whether the whole citation line should go in the
2008 `wl-highlight-citation-face' face.
2009 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2010 default face, and the remainder of the line is in the
2011 wl-highlight-message-cited-text face."
2013 :group 'wl-highlight)
2015 (defcustom wl-highlight-force-citation-header-regexp
2016 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2017 "*The pattern to match the prolog of a cited block.
2018 Text in the body of a message which matches this will be displayed in
2019 the `wl-highlight-message-headers' face."
2021 :group 'wl-highlight)
2023 (defcustom wl-highlight-citation-header-regexp
2024 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2025 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2026 "^.*\\(writes\\|wrote\\|said\\):\n")
2027 "*The pattern to match the prolog of a cited block.
2028 Text in the body of a message which matches this will be displayed in
2029 the `wl-highlight-message-headers' face."
2031 :group 'wl-highlight)
2033 (defcustom wl-highlight-max-header-size nil
2034 "*If the message header is larger than this many chars, don't highlight it.
2035 If this is nil, all headers will be highlighted."
2037 :group 'wl-highlight)
2039 (defcustom wl-highlight-max-message-size 10000
2040 "*If the message body is larger than this many chars, don't highlight it.
2041 This is to prevent us from wasting time trying to fontify things like
2042 uuencoded files and large digests. If this is nil, all messages will
2045 :group 'wl-highlight)
2047 ;; highilght about signature (of draft and message)
2048 (defcustom wl-highlight-signature-separator
2049 '("\n--+\n" "\n\n--+.*\n*\\'")
2050 "List of regexps matching signature separator.
2051 It will be verified from head to tail looking for a separator.
2052 Verification will be done from the end of the buffer.
2053 No need to specify \"^-- $\" in this list,
2054 because it is verified by default.
2055 This variable can also be a regex."
2056 :type '(repeat regexp)
2057 :group 'wl-highlight)
2059 (defcustom wl-max-signature-size 400
2060 "*If the signature is larger than this chars, don't treat it as a signature."
2062 :group 'wl-highlight)
2064 ;; highilght about mouse
2065 (defcustom wl-use-highlight-mouse-line (and window-system
2066 (>= emacs-major-version 19))
2067 "*Highlight mouse line, if non nil."
2069 :group 'wl-highlight)
2071 ;; highilght about folder
2072 (defcustom wl-highlight-folder-with-icon
2073 (or (and (featurep 'xemacs)
2076 "*Highlight folder with icon(XEmacs or Emacs 21)."
2078 :group 'wl-highlight)
2079 (defcustom wl-highlight-folder-by-numbers t
2080 "Highlight folder lines by numbers.
2081 If it is a number, only numbers will be highlighted."
2082 :type '(choice (const :tag "whole line" t)
2083 (const :tag "only numbers" 1)
2084 (const :tag "don't highlight" nil))
2085 :group 'wl-highlight)
2087 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
2088 "Function to search signature area in the message body."
2090 :group 'wl-highlight)
2092 (defcustom wl-use-dnd (and wl-on-xemacs
2093 (featurep 'dragdrop))
2094 "If Non-nil, support dragdrop feature in XEmacs."
2098 (defcustom wl-reset-plugged-alist t
2099 "*If non-nil, reset `elmo-plugged-alist' when startup."
2103 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2104 (module-installed-p 'image)
2105 (module-installed-p 'bitmap))
2107 "If it is T, show graphic logo in the startup screen. You can set it to
2108 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2109 :type '(radio (const :tag "Off" nil)
2110 (const :tag "On (any format)" t)
2113 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2116 ;;; Internal variables
2117 (defvar wl-init nil)
2119 ;; For disconnected operations.
2120 (defvar wl-plugged-hook nil)
2121 (defvar wl-unplugged-hook nil)
2122 (defvar wl-plugged t)
2124 ;; Internal variables used to modeline identifiers.
2125 (defvar wl-modeline-plug-status nil)
2126 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2127 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2128 (defvar wl-modeline-biff-status nil)
2129 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2130 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2132 ;; Advanced thread view.
2133 (defvar wl-thread-indent-level 1
2134 "*Indent level for thread.")
2135 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2136 "*A string for thread branch line. It should contain one character.")
2137 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2138 "*A string for thread branch line. It should contain one character.")
2139 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2140 "*A string for thread branch line. It should contain one character.")
2141 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2142 "*A string for thread branch line. It should contain one character.")
2143 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2144 "*A string for thread branch line. It should contain one character.")
2146 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2147 "* A regexp string for thread indent...for highlight.")
2149 ;; folder icons. filename relative to wl-icon-dir
2150 (defvar wl-opened-group-folder-icon "opened.xpm"
2151 "*Icon file for opened group folder.")
2152 (defvar wl-closed-group-folder-icon "closed.xpm"
2153 "*Icon file for closed group folder.")
2154 (defvar wl-nntp-folder-icon "news.xpm"
2155 "*Icon file for nntp folder.")
2156 (defvar wl-imap-folder-icon "imap.xpm"
2157 "*Icon file for imap folder.")
2158 (defvar wl-pop-folder-icon "pop.xpm"
2159 "*Icon file for pop folder.")
2160 (defvar wl-localdir-folder-icon "local.xpm"
2161 "*Icon file for localdir folder.")
2162 (defvar wl-localnews-folder-icon "localnews.xpm"
2163 "*Icon file for localnews folder.")
2164 (defvar wl-internal-folder-icon "internal.xpm"
2165 "*Icon file for internal folder.")
2166 (defvar wl-multi-folder-icon "multi.xpm"
2167 "*Icon file for multi folder.")
2168 (defvar wl-filter-folder-icon "filter.xpm"
2169 "*Icon file for filter folder.")
2170 (defvar wl-archive-folder-icon "archive.xpm"
2171 "*Icon file for archive folder.")
2172 (defvar wl-pipe-folder-icon "pipe.xpm"
2173 "*Icon file for pipe folder.")
2174 (defvar wl-maildir-folder-icon "maildir.xpm"
2175 "*Icon file for maildir folder.")
2176 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2177 "*Icon file for emptied trash folder.")
2178 (defvar wl-trash-folder-icon "trash.xpm"
2179 "*Icon file for trash folder.")
2180 (defvar wl-draft-folder-icon "draft.xpm"
2181 "*Icon file for draft folder.")
2182 (defvar wl-queue-folder-icon "queue.xpm"
2183 "*Icon file for queue folder.")
2184 (defvar wl-plugged-icon "plugged.xpm"
2185 "*Icon file for plugged state.")
2186 (defvar wl-unplugged-icon "unplugged.xpm"
2187 "*Icon file for unplugged state.")
2188 (defvar wl-biff-mail-icon "letter.xpm"
2189 "*Icon file for mail existed state.")
2190 (defvar wl-biff-nomail-icon "no-letter.xpm"
2191 "*Icon file for no mail existed state.")
2192 (defvar wl-prog-uudecode "uudecode"
2193 "*uudecode program name.")
2194 (defvar wl-prog-uudecode-arg nil
2195 "*Arguments for uudecode program.")
2196 (defvar wl-prog-uudecode-no-stdout-option t
2197 "*If non-nil, uudecode program don't have option for output to stdout.")
2199 ;; Obsolete variables. for compatibility.
2200 (defvar wl-address-filename wl-address-file)
2201 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
2202 (defvar wl-score-default-file-name wl-score-default-file)
2203 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
2204 (defvar wl-draft-prepared-config-alist nil)
2205 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
2206 (defvar wl-score-files-directory wl-score-files-dir)
2207 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
2208 (defvar wl-summary-temp-above wl-summary-target-above)
2209 (make-obsolete-variable 'wl-summary-temp-above 'wl-summary-target-above)
2212 (defvar wl-plugged-plug-on "ON")
2213 (defvar wl-plugged-plug-off "--")
2214 (defvar wl-plugged-auto-off "**")
2215 (defvar wl-plugged-server-indent 2)
2216 (defvar wl-plugged-port-indent 4)
2217 (defvar wl-plugged-queue-status-column 25)
2220 (product-provide (provide 'wl-vars) (require 'wl-version))
2222 ;;; wl-vars.el ends here