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.
37 (if (module-installed-p 'custom)
40 ;;; Customizable Variables
43 "Wanderlust, a news and mail reading software."
45 :link (` (custom-manual
46 (, (if (and (boundp 'current-language-environment)
47 (string-equal "Japanese"
48 (symbol-value 'current-language-environment)))
55 "Wanderlust, Preferences."
59 (defgroup wl-folder nil
60 "Wanderlust, folder buffer."
64 (defgroup wl-summary nil
65 "Wanderlust, summary buffer."
69 (defgroup wl-summary-marks nil
70 "Wanderlust, marks used in summary buffers."
74 (defgroup wl-expire nil
75 "Wanderlust, Expiring and archiving."
79 (defgroup wl-score nil
80 "Wanderlust, Score file handling."
84 (defgroup wl-highlight nil
85 "Wanderlust, Highlights."
89 (defgroup wl-draft nil
90 "Wanderlust, draft mode."
95 (defconst wl-on-xemacs (featurep 'xemacs))
97 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
98 (>= emacs-major-version 21)))
100 (defconst wl-on-nemacs (fboundp 'nemacs-version))
102 (defconst wl-on-mule (featurep 'mule))
104 (defconst wl-on-mule3
105 (and wl-on-mule (or wl-on-xemacs
106 (> emacs-major-version 19))))
109 (defun-maybe locate-data-directory (a)))
112 (cond (wl-on-mule3 'binary)
113 (wl-on-mule '*noconv*)
117 (defvar wl-cs-autoconv
118 (cond (wl-on-mule3 'undecided)
119 (wl-on-mule '*autoconv*)
120 (wl-on-nemacs 2) ; junet...
124 (cond (wl-on-mule3 'junet)
125 (wl-on-mule '*junet*)
129 (defvar wl-cs-cache wl-cs-local)
131 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
134 (defcustom wl-from (and user-mail-address
135 (concat (and user-full-name
136 (concat (elmo-address-quote-specials
139 "<" user-mail-address ">"))
140 "*From string used in draft."
144 (defcustom wl-user-mail-address-list nil
145 "*A list of user's mail addresses.
146 This list is used to judge whether an address is user's or not.
147 You should set this variable if you use multiple e-mail addresses.
148 If you don't have multiple e-mail addresses, you don't have to set this."
149 :type '(repeat string)
152 (defcustom wl-organization (getenv "ORGANIZATION")
154 :type '(choice (const :tag "none" nil)
158 (defcustom wl-tmp-dir "~/tmp/"
159 "*Default temporary directory to save message, part."
163 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
164 (locate-data-directory "wl")
165 (let ((icons (expand-file-name "wl/icons/"
167 (if (file-directory-p icons)
169 "*Icon directory (XEmacs or Emacs 21)."
170 :type '(choice (const :tag "none" nil)
174 (defcustom wl-summary-from-func 'wl-summary-default-from
175 "*A function for displaying sender (From: field) information."
179 (defcustom wl-summary-subject-func 'wl-summary-default-subject
180 "*A function for displaying subject."
184 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
185 "*A filter function for comparing subjects."
189 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
190 "*If message does not have in-reply-to field nor references field and
191 subject matches this regexp, search parent message by subject matching."
195 (defcustom wl-summary-update-confirm-threshold 500
196 "*Confirm updating summary if message number is larger than this value."
201 (defcustom wl-default-folder "%inbox"
202 "*Default folder used in `wl-summary-goto-folder'."
205 (defcustom wl-draft-folder "+draft"
209 (defcustom wl-trash-folder "+trash"
213 (defcustom wl-queue-folder "+queue"
218 (defcustom wl-default-spec "%"
223 (defcustom wl-insert-mail-followup-to nil
224 "*Insert Mail-Followup-To: field if non-nil."
228 (defcustom wl-insert-mail-reply-to nil
229 "*Insert Mail-Reply-To: field if non-nil."
233 (defcustom wl-insert-message-id t
234 "*Insert Message-ID: field if non-nil."
238 (defcustom wl-auto-insert-x-face t
239 "*Insert X-Face: field automatically."
243 (defcustom wl-x-face-file "~/.xface"
244 "*X-Face field is inserted using its contents.
245 If file exists and `wl-auto-insert-x-face' is non-nil."
249 (defcustom wl-subscribed-mailing-list nil
250 "*Subscribed mailing list.
251 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
252 :type '(repeat string)
256 "*Display demo at start time."
260 (defcustom wl-envelope-from nil
261 "*Envelope From used in SMTP.
262 If nil, `wl-from' is used."
263 :type '(choice (const :tag "Same as 'From' field." nil)
267 (defcustom wl-draft-add-references t
268 "*If non-nil, message-id of the cited message is inserted to the
269 references field of the current draft."
273 (defcustom wl-smtp-connection-type nil
274 "*SMTP connection type.
275 If nil, default smtp connection type is used."
276 :type '(choice (const :tag "default" nil)
277 (const :tag "Use STARTTLS" starttls)
281 (defcustom wl-smtp-posting-user nil
282 "*SMTP authentication user."
283 :type '(choice (const :tag "none" nil)
287 (defcustom wl-smtp-posting-server nil
288 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
289 :type '(choice (const :tag "none" nil)
293 (defcustom wl-smtp-posting-port nil
294 "*SMTP port number in `wl-smtp-posting-server'.
295 If nil, default SMTP port number(25) is used."
296 :type '(choice (const :tag "Default (25)" nil)
300 (defcustom wl-smtp-authenticate-type nil
301 "*SMTP Authentication type.
302 If nil, don't authenticate."
303 :type '(choice (const :tag "none" nil)
304 (const :tag "PLAIN" "plain")
305 (const :tag "CRAM-MD5" "cram-md5")
306 (const :tag "LOGIN" "login")
307 (string :tag "Other"))
310 (defcustom wl-pop-before-smtp-user nil
311 "*POP3 user name to send mail using POP-before-SMTP.
312 If nil, `elmo-default-pop3-user' is used.
313 To use POP-before-SMTP,
314 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
315 :type '(choice (const :tag "none" nil)
319 (defcustom wl-pop-before-smtp-server nil
320 "*POP3 server for POP-before-SMTP.
321 If nil, `elmo-default-pop3-server' is used."
322 :type '(choice (const :tag "none" nil)
326 (defcustom wl-pop-before-smtp-port nil
327 "*POP3 port for POP-before-SMTP.
328 If nil, `elmo-default-pop3-port' is used."
329 :type '(choice (const :tag "none" nil)
333 (defcustom wl-pop-before-smtp-stream-type nil
334 "*Stream type for POP-before-SMTP.
335 If nil, `elmo-default-pop3-stream-type' is used."
339 (defcustom wl-pop-before-smtp-authenticate-type nil
340 "*Default Authentication type for POP-before-SMTP.
341 If nil, `elmo-default-pop3-authenticate-type' is used."
342 :type '(choice (const :tag "none" nil)
343 (const :tag "APOP" "apop")
344 (const :tag "POP3" "user"))
347 (defcustom wl-nntp-posting-server nil
348 "*NNTP server name to post news.
349 If nil, `elmo-default-nntp-server' is used."
350 :type '(choice (const :tag "none" nil)
353 (defcustom wl-nntp-posting-user nil
354 "*NNTP user name to post news for authinfo.
355 If nil, `elmo-default-nntp-user' is used.
356 If nil, don't authenticate."
357 :type '(choice (const :tag "none" nil)
360 (defcustom wl-nntp-posting-port nil
361 "*NNTP port to post news.
362 If nil, `elmo-default-nntp-port' is used."
363 :type '(choice (const :tag "none" nil)
366 (defcustom wl-nntp-posting-stream-type nil
367 "*Stream type for posting Netnews.
368 If nil, `elmo-default-nntp-stream-type' is used."
372 (defcustom wl-fetch-confirm-threshold 30000
373 "*Confirm fetching if message size is larger than this value."
377 (defcustom wl-prefetch-confirm t
378 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
382 (defcustom wl-prefetch-threshold 30000
383 "*Maximum size of message prefetched without confirmation.
384 If nil, all messages prefetched regardless of its size.
385 If message size is larger than this value, confirm prefetching
386 when `wl-prefetch-confirm' is non-nil."
387 :type '(choice (integer :tag "Threshold (bytes)")
388 (const :tag "No limitation" nil))
391 (defcustom wl-cache-prefetch-threshold 30000
392 "*Quit forward cache prefetching if message size is larger than this value."
396 (defcustom wl-thread-insert-opened nil
397 "*Non-nil forces to insert thread as opened in updating."
401 (defcustom wl-thread-open-reading-thread t
402 "*Non-nil forces to open reading thread."
407 (defvar wl-folder-mode-hook nil
408 "A hook called when wanderlust folder mode is started.
409 This hook may contain the functions `wl-folder-init-icons' and
410 `wl-setup-folder' for reasons of system internal to accord facilities
411 for the Emacs variants.")
412 (defvar wl-summary-toggle-disp-on-hook nil
413 "A hook called when message is toggled.")
414 (defvar wl-summary-toggle-disp-off-hook nil
415 "A hook called when message is disappeared.")
416 (defvar wl-summary-toggle-disp-folder-on-hook nil
417 "A hook called when folder is toggled.")
418 (defvar wl-summary-toggle-disp-folder-off-hook nil
419 "A hook called when folder is disappeared.")
420 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
421 "A hook called when message window is resumed when folder is toggled.")
422 (defvar wl-summary-mode-hook nil
423 "A hook called when summary mode is started.
424 This hook may contain the function `wl-setup-summary' for reasons of
425 system internal to accord facilities for the Emacs variants.")
427 (defvar wl-summary-prepared-pre-hook nil
428 "A hook called before the summary buffer has been generated.")
429 (defvar wl-summary-prepared-hook nil
430 "A hook called after the summary buffer has been generated.")
431 (defvar wl-summary-sync-updated-hook nil
432 "A hook called when update summary buffer.")
433 (defvar wl-summary-unread-message-hook nil
434 "A hook called when unread message is displayed.")
435 (defvar wl-summary-edit-addresses-hook nil
436 "A hook called when address book is edited.")
437 (defvar wl-summary-buffer-message-saved-hook nil
438 "A hook called when msgdb is saved.")
439 (defvar wl-summary-buffer-mark-saved-hook nil
440 "A hook called when mark is saved.")
441 (defvar wl-summary-divide-thread-when-subject-changed nil
442 "Divide thread when subject is changed.")
443 (defvar wl-init-hook nil
444 "A hook called when initialization is finished. This hook may contain
445 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
446 reasons of system internal to accord facilities for the Emacs variants.")
448 "A hook called when Wanderlust is invoked.")
449 (defvar wl-reply-hook nil
450 "A hook called when replied.")
451 (defvar wl-mail-setup-hook nil
452 "A hook called when Draft is prepared.")
453 (defvar wl-draft-reedit-hook nil
454 "A hook called when Draft is re-edited.")
455 (defvar wl-draft-send-hook '(wl-draft-config-exec)
456 "A hook called on the draft editing buffer before sending process starts.")
457 (defvar wl-mail-send-pre-hook nil
458 "A hook called just before the mail sending process starts.")
459 (defvar wl-news-send-pre-hook nil
460 "A hook called just before the news sending process starts.")
461 (defvar wl-message-buffer-created-hook nil
462 "A hook called when Message buffer is prepared.")
463 (defvar wl-message-redisplay-hook nil
464 "A hook called when Message is displayed.")
465 (defvar wl-message-exit-hook nil
466 "A hook called when quit message.")
467 (defvar wl-summary-exit-hook nil
468 "A hook called when exit summary mode.")
469 (defvar wl-highlight-headers-hook nil
470 "A hook called when header is highlighted.")
471 (defvar wl-highlight-message-hook nil
472 "A hook called when message is highlighted.")
473 (defvar wl-save-hook nil
474 "A hook called when save summary and folder status.")
475 (defvar wl-exit-hook nil
476 "A hook called when exit wanderlust.")
477 (defvar wl-folder-suspend-hook nil
478 "A hook called when suspend wanderlust.")
479 (defvar wl-biff-notify-hook '(ding)
480 "A hook called when a biff-notification is invoked.")
481 (defvar wl-biff-unnotify-hook nil
482 "A hook called when a biff-notification is removed.")
483 (defvar wl-auto-check-folder-pre-hook nil
484 "A hook called before auto check folders.")
485 (defvar wl-auto-check-folder-hook nil
486 "A hook called when auto check folders.")
487 (defvar wl-folder-check-entity-pre-hook nil
488 "A hook called before check entity.")
489 (defvar wl-folder-check-entity-hook nil
490 "A hook called when check entity.")
491 (defvar wl-draft-config-exec-hook nil
492 "A hook called when execute header-config on draft.")
493 (defvar wl-summary-expire-pre-hook nil
494 "A hook called before expire.")
495 (defvar wl-summary-expire-hook nil
496 "A hook called when expired.")
497 (defvar wl-summary-archive-pre-hook nil
498 "A hook called before archive.")
499 (defvar wl-summary-archive-hook nil
500 "A hook called when archived.")
501 (defvar wl-summary-line-inserted-hook nil
502 "A hook called when summary line is inserted.")
503 (defvar wl-summary-insert-headers-hook nil
504 "A hook called when insert header for search header.")
505 (defvar wl-thread-update-children-number-hook nil
506 "A hook called when children number is updated.")
507 (defvar wl-folder-update-access-group-hook nil
508 "A hook called when update access group folder.")
509 (defvar wl-draft-cited-hook nil
510 "A hook called after a message is cited.")
511 (defvar wl-draft-insert-x-face-field-hook nil
512 "A hook called after a x-face field is inserted.")
513 (defvar wl-template-mode-hook nil
514 "A hook called when template mode is started.")
515 (defvar wl-score-mode-hook nil
516 "A hook called when score mode is started.")
517 (defvar wl-make-plugged-hook nil
518 "A hook called when make plugged alist.")
520 (defvar wl-plugged-exit-hook nil
521 "A hook called when exit plugged mode.")
523 ;;;; functions for draft
524 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
525 "A function to send message."
529 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
530 "A function to send news."
534 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
535 "A function to send mail.
536 Prepared candidates are 'wl-draft-send-mail-with-smtp,
537 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
538 :type '(radio (function-item wl-draft-send-mail-with-smtp)
539 (function-item wl-draft-send-mail-with-qmail)
540 (function-item wl-draft-send-mail-with-pop-before-smtp)
541 (function :tag "Other"))
544 (defcustom wl-draft-reply-with-argument-list
545 '(("Reply-To" . (("Reply-To") nil nil))
546 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
547 ("From" . (("From") nil nil)))
548 "Alist of cons cell of
549 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
550 'field-name' is a string.
551 'fields for ***' is a list of strings.
552 If car of each cons cell exists in original message,
553 cdr of each cons cell is used for draft message.
554 Default is for 'reply-to-author'."
555 :type '(repeat (cons (choice (string :tag "Field Name")
556 (repeat (string :tag "Field Name")))
557 (list (repeat :tag "Fields For To" string)
558 (repeat :tag "Fields For Cc" string)
559 (repeat :tag "Fields For Newsgroups" string))))
562 (defcustom wl-draft-reply-without-argument-list
563 '(("Followup-To" . (nil nil ("Followup-To")))
564 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
565 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
566 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
567 "Alist of cons cell of
568 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
569 'field-name' is a string.
570 'fields for ***' is a list of strings.
571 If car of each cons cell exists in original message,
572 cdr of each cons cell is used for draft message.
573 Default is for 'reply-to-all'."
574 :type '(repeat (cons (choice (string :tag "Field Name")
575 (repeat (string :tag "Field Name")))
576 (list (repeat :tag "Fields For To" string)
577 (repeat :tag "Fields For Cc" string)
578 (repeat :tag "Fields For Newsgroups" string))))
581 (defcustom wl-draft-reply-myself-with-argument-list
582 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
583 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
584 ("From" . (("To") ("Cc") nil)))
585 "Alist of cons cell of
586 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
587 'field-name' is a string.
588 'fields for ***' is a list of strings.
589 If car of each cons cell exists in original message,
590 cdr of each cons cell is used for draft message.
591 Default is for 'reply-to-me'."
592 :type '(repeat (cons (choice (string :tag "Field Name")
593 (repeat (string :tag "Field Name")))
594 (list (repeat :tag "Fields For To" string)
595 (repeat :tag "Fields For Cc" string)
596 (repeat :tag "Fields For Newsgroups" string))))
599 (defcustom wl-draft-reply-myself-without-argument-list
600 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
601 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
602 ("From" . (("To") ("Cc") nil)))
603 "Alist of cons cell of
604 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
605 'field-name' is a string.
606 'fields for ***' is a list of strings.
607 If car of each cons cell exists in original message,
608 cdr of each cons cell is used for draft message.
609 Default is for 'followup-to-me'."
610 :type '(repeat (cons (choice (string :tag "Field Name")
611 (repeat (string :tag "Field Name")))
612 (list (repeat :tag "Fields For To" string)
613 (repeat :tag "Fields For Cc" string)
614 (repeat :tag "Fields For Newsgroups" string))))
617 (defcustom wl-draft-always-delete-myself nil
618 "*Always delete myself from reciepient if non-nil."
622 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
623 "*Do not insert bcc or fcc if To and Cc fields is a member of
624 `wl-subscribed-mailing-list'"
628 (defcustom wl-draft-resume-folder-window t
629 "*Resume folder window in `wl-draft-hide'."
633 (defcustom wl-draft-use-frame nil
634 "*Raise new frame when composing draft."
638 (defcustom wl-draft-qmail-send-plugged nil
639 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
643 (defcustom wl-draft-remove-group-list-contents t
644 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
649 (defcustom wl-init-file "~/.wl"
650 "*User customization setting file."
654 (defcustom wl-folders-file "~/.folders"
659 (defcustom wl-address-file "~/.addresses"
664 (defcustom wl-alias-file "~/.im/Aliases"
665 "*Alias file for completion."
669 (defcustom wl-ldap-server "localhost"
671 :type '(string :tag "Server")
674 (defcustom wl-ldap-port nil
676 :type '(choice (const :tag "Default port" nil)
680 (defcustom wl-ldap-base "c=US"
682 :type '(string :tag "Base")
685 (defcustom wl-ldap-objectclass "person"
690 (defcustom wl-use-ldap nil
691 "*If non-nil, use LDAP for address completion."
695 (defcustom wl-folder-info-save t
696 "If non-nil, save elmo-folder-info-alist."
700 (defcustom wl-summary-unread-mark "!"
701 "Mark for unread message."
702 :type '(string :tag "Mark")
703 :group 'wl-summary-marks)
704 (defcustom wl-summary-important-mark "$"
705 "Mark for important message."
706 :type '(string :tag "Mark")
707 :group 'wl-summary-marks)
708 (defcustom wl-summary-new-mark "N"
709 "Mark for new message."
710 :type '(string :tag "Mark")
711 :group 'wl-summary-marks)
712 (defcustom wl-summary-unread-uncached-mark "U"
713 "Mark for unread and uncached message."
714 :type '(string :tag "Mark")
715 :group 'wl-summary-marks)
716 (defcustom wl-summary-unread-cached-mark "!"
717 "Mark for unread but already cached message."
718 :type '(string :tag "Mark")
719 :group 'wl-summary-marks)
720 (defcustom wl-summary-read-uncached-mark "u"
721 "Mark for read but uncached message."
722 :type '(string :tag "Mark")
723 :group 'wl-summary-marks)
724 (defcustom wl-summary-score-over-mark "+"
725 "Score mark used for messages with high scores."
726 :type '(string :tag "Mark")
727 :group 'wl-summary-marks)
728 (defcustom wl-summary-score-below-mark "-"
729 "Score mark used for messages with low scores."
730 :type '(string :tag "Mark")
731 :group 'wl-summary-marks)
733 (defcustom wl-summary-no-mime-folder-list
734 (list (concat "^" (regexp-quote wl-draft-folder) "$"))
735 "*All folders that match this list don't analysis mime."
736 :type '(repeat string)
739 (defcustom wl-summary-fix-timezone nil
740 "*Time zone of the date string in summary mode.
741 If nil, it is adjust to the default time zone information
742 \(system's default time zone or environment variable TZ\)."
743 :type '(choice (const :tag "Default time zone" nil)
747 (defcustom wl-summary-default-score 0
748 "*Default message score level.
749 All scores generated by the score files will be added to this score.
750 If this variable is nil, scoring will be disabled."
751 :type '(choice (const :tag "disable" nil)
755 (defcustom wl-summary-important-above nil
756 "*Mark all messages with a score above this variable as important.
757 This variable is local to the summary buffers."
758 :type '(choice (const :tag "off" nil)
762 (defcustom wl-summary-target-above nil
763 "*Mark all messages with a score above this variable as target.
764 This variable is local to the summary buffers."
765 :type '(choice (const :tag "off" nil)
769 (defcustom wl-summary-mark-below 0
770 "*Mark all messages with a score below this variable as read.
771 This variable is local to each summary buffer and usually set by the
776 (defcustom wl-summary-expunge-below nil
777 "All messages that have a score less than this variable will be expunged.
778 This variable is local to the summary buffers."
779 :type '(choice (const :tag "off" nil)
783 (defcustom wl-summary-score-marks
784 (list wl-summary-new-mark)
785 "Persistent marks to scoring."
786 :type '(repeat (string :tag "Mark"))
789 (defcustom wl-use-scoring (not wl-on-nemacs)
790 "*If non-nil, enable scoring."
794 (defcustom wl-summary-rescore-partial-threshold 200
795 "*Summary is not scored entirely if there are messages more than this value.
796 In sync-all or rescan."
800 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
801 "*Name of the directory where score files will be stored.
802 (default \"~/.elmo\")."
806 (defcustom wl-score-interactive-default-score 1000
807 "*Scoring commands will raise/lower the score with this number as the default."
811 (defcustom wl-score-expiry-days 7
812 "*Number of days before unused score file entries are expired.
813 If this variable is nil, no score file entries will be expired."
814 :type '(choice (const :tag "never" nil)
818 (defcustom wl-score-update-entry-dates t
819 "*In non-nil, update matching score entry dates.
820 If this variable is nil, then score entries that provide matches
821 will be expired along with non-matching score entries."
825 (defcustom wl-score-folder-alist nil
826 "*Alist of folder regexp and score file."
827 :type '(repeat (list (regexp :tag "Folder Regexp")
830 (symbol :tag "Variable")))))
833 (defcustom wl-score-folder-alist-matchone t
834 "*If non-nil, getting only one element of `wl-score-folder-alist'."
838 (defcustom wl-score-default-file "all.SCORE"
839 "*Default score file name."
843 (defcustom wl-score-simplify-fuzzy-regexp
844 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
845 "*Strings to be removed when doing fuzzy matches.
846 This can either be a regular expression or list of regular expressions."
847 :type '(repeat regexp)
850 (defcustom wl-score-header-default-entry
851 '(("number" -1000 perm =)
852 ("subject" -1000 nil nil)
853 ("from" -1000 perm s)
854 ("message-id" -1000 temp e)
855 ("references" -1000 perm e)
858 ("date" -1000 temp nil)
859 ("xref" -1000 perm s)
860 ("extra" -1000 perm s)
861 ("chars" -1000 perm >)
862 ("lines" -1000 perm >)
863 ("followup" -1000 perm s)
864 ("thread" -1000 temp s))
865 "*Default entry when insert score entry."
866 :type '(repeat (list (string :tag "Header")
867 (choice (integer :tag "Score")
868 (const :tag "Ask" nil))
869 (choice (const :tag "Permanent" perm)
870 (const :tag "Temporary" temp)
871 (const :tag "Ask" nil))
872 (choice (const :tag "Regexp string" r)
873 (const :tag "Substring" s)
874 (const :tag "fuzzy string" f)
875 (const :tag "Exact string" e)
876 (const :tag "REGEXP STRING" R)
877 (const :tag "SUBSTRING" S)
878 (const :tag "FUZZY STRING" F)
879 (const :tag "EXACT STRING" E)
880 (const :tag "less than" <)
881 (const :tag "less equal" <=)
882 (const :tag "greater than" >)
883 (const :tag "greater equal" >=)
884 (const :tag "equal" =)
885 (const :tag "Ask" nil))))
888 (defcustom wl-score-mode-mime-charset 'x-ctext
889 "*MIME Charset for score file."
893 (defcustom wl-draft-fields
894 '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
895 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
896 "Fields used in draft mode."
897 :type '(repeat (string :tag "Field"))
900 (defcustom wl-draft-config-alist nil
901 "Alist of configuration field on draft.
903 '((\"^To: .*wl@lists.airs.net\"
904 (\"From\" . wl-from2)
905 (\"Organization\" . wl-organization2))
906 (\"^To: .*hogehoge@\"
907 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
908 wl-my-draft-config-func-hoge))"
909 :type '(repeat (list (sexp :tag "Match")
912 (choice (cons (sexp :tag "Field(Variable)")
914 (sexp :tag "Function")))))
917 (defcustom wl-draft-config-matchone nil
918 "*If non-nil, applied only one element of `wl-draft-config-alist'."
922 (defcustom wl-template-alist nil
924 :type '(repeat (list (string :tag "Name")
927 (choice (cons (sexp :tag "Field(Variable)")
929 (sexp :tag "Function")))))
932 (defcustom wl-template-visible-select t
933 "*If non-nil, select template with visible."
937 (defcustom wl-template-confirm nil
938 "*If non-nil, require your confirmation when selected template."
942 (defcustom wl-template-buffer-lines 7
943 "*Lines of template buffer."
948 (defcustom wl-draft-enable-queuing t
949 "*Non-nil enables queued sending."
954 (defcustom wl-draft-use-cache nil
955 "*If non-nil, sending message is cached."
960 (defcustom wl-auto-flush-queue t
961 "*If non-nil, sending queue is flushed when network status is toggled."
966 (defcustom wl-draft-reply-buffer-style 'split
968 :type '(radio (const split)
972 (defcustom wl-draft-queue-save-variables
973 '(wl-envelope-from wl-from
974 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
975 wl-smtp-authenticate-type wl-smtp-connection-type
976 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
977 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
978 wl-nntp-posting-server wl-nntp-posting-server
979 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
980 "*Saving variables in queue info."
981 :type '(repeat (sexp :tag "Variable"))
984 (defcustom wl-draft-sendlog t
985 "*Keep send state in log if non-nil."
989 (defcustom wl-draft-sendlog-max-size 20000
990 "*Max file size of sendlog."
994 (defcustom wl-summary-default-number-column 5
995 "Number of columns in summary buffer."
999 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1000 "Alist of folder and its number column.
1001 If no matches, 'wl-summary-default-number-column' is used.
1003 '((\"^%inbox@qmail-maildir\" . 9)
1004 (\"^-.*@news-server\" . 6))"
1005 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1008 (defcustom wl-summary-highlight t
1009 "Non-nil forces Summary buffer to be highlighted."
1012 :group 'wl-highlight)
1014 (defcustom wl-summary-lazy-highlight (and (boundp 'window-scroll-functions)
1016 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1019 :group 'wl-highlight)
1021 (defcustom wl-summary-highlight-partial-threshold 1000
1022 "Summary is not highlighted entirely if there are lines more than this value.
1023 Available if only `wl-summary-lazy-highlight' is nil."
1026 :group 'wl-highlight)
1028 (defcustom wl-summary-partial-highlight-above-lines 30
1029 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1030 Summary lines are highlighted partialy above current position.
1031 Available if only `wl-summary-lazy-highlight' is nil."
1034 :group 'wl-highlight)
1036 (defcustom wl-summary-cache-use t
1037 "Non-nil forces wl-summary to use cache file."
1041 (defcustom wl-summary-auto-sync-marks t
1042 "Non-nil forces to synchronize unread/important marks."
1046 (defcustom wl-summary-cache-file ".wl-summary-cache"
1047 "*Cache file for summary mode contents."
1050 (defcustom wl-summary-view-file ".wl-summary-view"
1051 "*Current summary view."
1054 (defcustom wl-thread-top-file ".wl-thread-top"
1055 "*Current thread top entity... obsolete."
1058 (defcustom wl-thread-entity-file ".wl-thread-entity"
1062 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1063 "*Thread top entity list."
1067 (defcustom wl-print-buffer-func 'lpr-buffer
1068 "A function to print current buffer."
1072 (defcustom wl-ps-print-buffer-func
1073 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1074 "A function to print current buffer with ps-print."
1079 (defcustom wl-use-petname t
1080 "*Display petname in summary and default citation title."
1084 (defcustom wl-use-folder-petname
1086 "*List of situation using folder petname.
1087 Allowed situations are:
1088 modeline : displayed on modeline.
1089 ask-folder : displayed on minibuffer when ask folder.
1090 read-folder : can used for completion at `wl-summary-read-folder'."
1091 :type '(set (const modeline)
1093 (const read-folder))
1097 (defcustom wl-folder-petname-alist nil
1098 "A list of (realname . petname)."
1099 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1102 (defcustom wl-summary-weekday-name-lang "ja"
1103 "*Language to display week day."
1104 :type '(choice (const "ja")
1108 (string :tag "Other"))
1112 (defcustom wl-local-domain nil
1113 "*Domain part of this client (without hostname).
1114 Set this if (system-name) does not return FQDN."
1115 :type '(choice (const :tag "Use System Name" nil)
1119 (defcustom wl-message-id-domain nil
1120 "*Specific domain part of Message-ID."
1121 :type '(choice (const :tag "Use System Name" nil)
1125 (defcustom wl-break-pages t
1126 "*Break Pages at ^L."
1130 (defcustom wl-message-truncate-lines default-truncate-lines
1131 "*Truncate lines in Message Buffer."
1135 (defcustom wl-draft-truncate-lines default-truncate-lines
1136 "*Truncate lines in Draft Buffer."
1141 (defcustom wl-message-scroll-amount 5
1142 "*Scroll amount by SPC key."
1146 (defcustom wl-message-window-size '(1 . 4)
1147 "*Size of summary and message window. cons cell of (Summary : Message)."
1148 :type '(cons integer integer)
1151 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1152 "Newsgroups" "Subject" "^From")
1153 "*Sort order of header fields. Each elements are regexp of field name.
1155 :type '(repeat (string :tag "Field Regexp"))
1158 (defcustom wl-message-ignored-field-list nil
1159 "All fields that match this list will be hidden in message buffer.
1160 Each elements are regexp of field-name."
1161 :type '(repeat (string :tag "Field Regexp"))
1164 (defcustom wl-message-visible-field-list nil
1165 "All fields that match this list will be displayed in message buffer.
1166 Each elements are regexp of field-name."
1167 :type '(repeat (string :tag "Field Regexp"))
1170 (defcustom wl-folder-window-width 20
1171 "*Width of folder window."
1176 (defcustom wl-summary-recenter t
1177 "*Recenter on redisplay."
1182 (defcustom wl-folder-use-frame nil
1183 "*Use dedicated frame for folder mode if non-nil."
1187 (defcustom wl-summary-use-frame nil
1188 "*Use dedicated frame for each folder summary if non-nil."
1192 (defcustom wl-stay-folder-window nil
1193 "*Stay folder window when folder is selected if non-nil."
1197 (defcustom wl-reply-subject-prefix "Re: "
1198 "*Prefix of the subject of the replied message."
1203 (defcustom wl-draft-reply-use-address-with-full-name t
1204 "*Use address with full-name in the draft of replied message."
1209 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1210 "*Regexp matching \"Re: \" in the subject line."
1215 (defcustom wl-folder-many-unsync-threshold 70
1216 "*Folders which contains messages more than this number are highlighted
1217 with wl-highlight-folder-many-face."
1222 (defcustom wl-fcc nil
1223 "*Folder Carbon Copy."
1224 :type '(choice (const :tag "disable" nil)
1229 (defcustom wl-bcc nil
1230 "*Blind Carbon Copy."
1231 :type '(choice (const :tag "disable" nil)
1236 (defcustom wl-folder-desktop-name "Desktop"
1237 "*An implicit name of the folder top entity."
1242 (defcustom wl-summary-indent-length-limit 46
1243 "*Limit of indent length for thread."
1248 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1249 "*A string displayed in summary when no from field exists."
1253 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1254 "*A string displayed in summary when no subject field exists."
1258 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1259 "*The body content of a cancel message."
1263 (defcustom wl-summary-width 80
1264 "*Set summary line width if non nil."
1265 :type '(choice (const :tag "Don't truncate" nil)
1270 (defcustom wl-summary-pick-field-default "Body"
1271 "*Default field for pick."
1272 :type '(radio (const "From")
1281 (string :tag "Other"))
1284 (defcustom wl-from-width 17
1285 "*From width in summary."
1290 (defcustom wl-subject-length-limit 35
1291 "*Subject width in summary."
1296 (defcustom wl-mime-charset (if wl-on-nemacs
1299 "*MIME Charset for summary and message."
1304 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1305 "A function to create X-Mailer field string ."
1309 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1310 (or hilit-background-mode 'dark)
1312 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1313 :type '(radio (const dark)
1315 :group 'wl-highlight)
1317 (defcustom wl-highlight-x-face-func nil
1318 "A function to display X-Face."
1320 :group 'wl-highlight)
1322 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1323 "Location of the qmail-inject program."
1324 :type '(string :tag "Program")
1327 (defcustom wl-qmail-inject-args nil
1328 "Arguments passed to qmail-inject programs.
1329 This should be a list of strings, one string for each argument.
1331 For e.g., if you wish to set the envelope sender address so that bounces
1332 go to the right place or to deal with listserv's usage of that address, you
1333 might set this variable to '(\"-f\" \"you@some.where\")."
1334 :type '(repeat (string :tag "Argument"))
1337 (defcustom wl-rejected-letter-start
1338 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1339 "Regexp specifying the beginning of the wrapper around a returned letter.
1340 This wrapper is generated by the mail system when rejecting a letter."
1344 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1345 "*All headers that match this regexp will be deleted when forwarding a message."
1349 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1350 "*All headers that match this regexp will be deleted when resending a message."
1354 (defcustom wl-refile-default-from-folder "+from"
1355 "*Folder name to refile by `wl-refile-guess-by-from'."
1356 :type '(string :tag "Folder")
1359 (defcustom wl-summary-auto-refile-skip-marks
1360 (list wl-summary-new-mark
1361 wl-summary-unread-uncached-mark
1362 wl-summary-unread-cached-mark)
1363 "Persistent marks to skip auto-refiling."
1364 :type '(repeat (string :tag "Mark"))
1367 (defcustom wl-summary-reserve-mark-list
1369 "If a message is already marked as temporal marks in this list,
1370 the message is not marked by any mark command."
1371 :type '(repeat (string :tag "Temp-Mark"))
1374 (defcustom wl-summary-skip-mark-list
1376 "If a message is already marked as temporal marks in this list,
1377 the message is skipped at cursor move."
1378 :type '(repeat (string :tag "Temp-Mark"))
1381 (defcustom wl-summary-incorporate-marks
1382 (list wl-summary-new-mark
1383 wl-summary-unread-uncached-mark)
1384 "Persistent marks to prefetch at `wl-summary-incorporate'."
1385 :type '(repeat (string :tag "Mark"))
1388 (defcustom wl-refile-rule-alist nil
1393 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1395 (\"^Wanderlust\" . \"+wl\")
1396 (\"^Elips\" . \"+elips\")))"
1397 :type '(repeat (list (string :tag "Field")
1399 (cons (regexp :tag "Value")
1400 (string :tag "Folder")))))
1403 (defcustom wl-strict-diff-folders nil
1404 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1405 :type '(choice (const :tag "Off" nil)
1406 (repeat (regexp :tag "Folder Regexp")))
1409 (defcustom wl-folder-use-server-diff t
1410 "Checked unread message number on IMAP4 server.
1411 Only IMAP4 folders have an effect."
1415 (defcustom wl-force-fetch-folders nil
1416 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1417 :type '(choice (const :tag "off" nil)
1418 (const :menu-tag "on" t)
1419 (repeat (regexp :tag "Folder Regexp")))
1422 (defcustom wl-auto-check-folder-name nil
1423 "*The folder specified by this variable will be automatically checked
1425 :type '(choice (string :tag "Folder")
1426 (repeat (string :tag "Folder"))
1430 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1431 "All folders that match this list won't be checked when group is
1432 automatically checked (or desktop is checked).
1433 This value is preceded by wl-auto-check-folder-list.
1434 Each elements are regexp of folder name."
1435 :type '(repeat (regexp :tag "Folder Regexp"))
1438 (defcustom wl-auto-check-folder-list nil
1439 "All folders that match this list are checked when group is
1440 automatically checked (or desktop is checked).
1441 This value precedes wl-auto-uncheck-folder-list.
1442 Each elements are regexp of folder name."
1443 :type '(repeat (regexp :tag "Folder Regexp"))
1446 (defcustom wl-show-plug-status-on-modeline t
1447 "If it is non-nil, show plugged status in modeline."
1449 :group 'wl-highlight)
1451 (defcustom wl-plug-state-indicator-on " [ON] "
1452 "String used to show plugged status ON."
1454 :group 'wl-highlight)
1456 (defcustom wl-plug-state-indicator-off " [--] "
1457 "String used to show plugged status OFF."
1459 :group 'wl-highlight)
1461 (defcustom wl-biff-check-folder-list nil
1462 "All folders that match this list are automatically checked
1463 every intervals specified by wl-biff-check-interval."
1464 :type '(repeat (regexp :tag "Folder Regexp"))
1465 :group 'wl-highlight)
1467 (defcustom wl-biff-check-interval 40
1468 "Number of seconds between updates of new mails in the mode line."
1470 :group 'wl-highlight)
1472 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
1473 (not (featurep 'mule)))
1475 (decode-coding-string
1477 (read "\"[\e$B\\\")\e(B]\"")
1481 "String used to show biff status ON."
1483 :group 'wl-highlight)
1485 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
1486 (not (featurep 'mule)))
1488 ;; Japanese short hyphen
1490 "String used to show biff status OFF."
1492 :group 'wl-highlight)
1494 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1495 "Displaying order of items to be shown in modeline. The first item will
1496 be placed in the leftmost. The significant items are `biff' and `plug';
1497 otherwise, e.g. `title', corresponds to the things except for the biff
1498 staus nor the plugged status. The default order is '(biff plug title)
1499 even if the value of this option is set to nil. Here are some samples:
1501 ;; Plugged status first:
1502 \(setq wl-mode-line-display-priority-list '(plug))
1504 ;; Biff status, Title of Wanderlust, Plugged status:
1505 \(setq wl-mode-line-display-priority-list '(biff title plug))
1508 :type '(repeat (radio (const :format "%v " biff)
1509 (const :format "%v " plug)
1510 (sexp :tag "Other" :value title)))
1511 :group 'wl-highlight)
1513 (defcustom wl-interactive-send t
1514 "*If non-nil, require your confirmation when sending draft message."
1518 (defcustom wl-interactive-exit t
1519 "*If non-nil, require your confirmation when exiting WL."
1523 (defcustom wl-summary-move-order 'unread
1524 "*The order of priority when move in summary mode.
1525 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1526 If this variable is `new', precede \"N\" mark."
1527 :type '(radio (const new)
1531 (defvar wl-summary-move-direction-downward t)
1533 (defcustom wl-summary-move-direction-toggle t
1534 "*If non-nil, search direction for the next message will be determined
1535 depends on previous search direction.
1536 It uses wl-summary-move-direction-downward as a direction flag."
1540 (defcustom wl-auto-select-first nil
1541 "*If non-nil, display selected first message when enter summary."
1545 (defcustom wl-auto-select-next nil
1546 "*If non-nil, offer to go to the next folder from the end of the previous.
1547 If the value is the symbol `unread', go to the next folder
1548 that no unread message exists. If the value is the symbol `skip-no-unread',
1549 skip the folder that no unread message exists.
1551 See also variable `wl-summary-next-no-unread-command'."
1552 :type '(radio (const :tag "off" nil)
1555 (const skip-no-unread))
1558 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1559 "*All folder types that match this list prefetch next message,
1560 and reserved buffer cache."
1561 :type '(set (const localdir)
1570 (defcustom wl-cache-prefetch-folder-list nil
1571 "*All folders that match this list prefetch next message,
1572 and reserved buffer cache.
1575 :type '(repeat (regexp :tag "Folder Regexp"))
1578 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1579 "*A function to get message number when prefetch next message."
1584 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1585 ; "All folders that match this list won't be cached when reading messages.
1586 ;Each elements are regexp of folder name.")
1588 (defcustom wl-summary-always-sticky-folder-list nil
1589 "All folders that match this list has sticky summary.
1590 Each elements are regexp of folder name."
1591 :type '(radio (const :tag "none" nil)
1592 (const :tag "all" t)
1593 (repeat (regexp :tag "Folder Regexp")))
1596 (defcustom wl-no-save-folder-list '("^/.*$")
1597 "All folders that match this list won't save its msgdb.
1598 Each elements are regexp of folder name."
1599 :type '(repeat (regexp :tag "Folder Regexp"))
1602 (defcustom wl-save-folder-list nil
1603 "All folders that match this list save its msgdb.
1604 Each elements are regexp of folder name."
1605 :type '(repeat (regexp :tag "Folder Regexp"))
1608 (defcustom wl-folder-mime-charset-alist
1609 '(("^-alt\\.chinese" . big5)
1610 ("^-relcom\\." . koi8-r)
1612 ("^-han\\." . euc-kr))
1613 "Charset alist. If no match, `wl-mime-charset' is used."
1614 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1618 (defcustom wl-folder-weekday-name-lang-alist
1619 '(("^-alt\\.chinese" . "en")
1620 ("^-relcom\\." . "en")
1622 ("^-han\\." . "en"))
1623 "Weekday name lang alist.
1624 If no match, `wl-summary-weekday-name-lang' is used.
1626 '((\"xemacs-beta$\" . \"en\")
1627 (\"^-fj\" . \"ja\"))"
1628 :type '(repeat (cons (regexp :tag "Folder Regexp")
1629 (choice (const "ja")
1633 (string :tag "Other"))))
1636 (defcustom wl-folder-thread-indent-set-alist
1637 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1638 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1639 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1640 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1641 "Thread indent set alist.
1642 If no match, following indent set is used.
1643 (wl-thread-indent-level
1644 wl-thread-have-younger-brother-str
1645 wl-thread-youngest-child-str
1646 wl-thread-vertical-str
1647 wl-thread-horizontal-str
1648 wl-thread-space-str)
1650 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1651 :type '(repeat (cons (regexp :tag "Folder Regexp")
1652 (group (integer :tag "Indent")
1653 (string :tag "Yonger Brother")
1654 (string :tag "Yonger Child")
1655 (string :tag "Vertical")
1656 (string :tag "Horizontal")
1657 (string :tag "Space"))))
1660 (defcustom wl-folder-sync-range-alist
1661 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1662 (regexp-quote wl-queue-folder) "$")
1664 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1665 :type '(repeat (cons (regexp :tag "Folder Regexp")
1666 (choice (const "update")
1672 (const :tag "none" nil))))
1675 (defcustom wl-default-sync-range "update"
1676 "*Default sync range."
1677 :type '(choice (const "update")
1683 (const :tag "none" nil))
1686 (defcustom wl-ask-range t
1687 "*If non-nil, ask for a range for summary synchronization.
1688 If nil, always use default."
1692 (defcustom wl-folder-move-cur-folder nil
1693 "*Non-nil, move to current folder on folder-mode when goto folder."
1697 (defcustom wl-folder-check-async (not wl-on-nemacs)
1698 "*Check the folder asynchronous."
1702 (defcustom wl-folder-notify-deleted nil
1703 "*Non-nil, display negative number on folder-mode when message is deleted
1704 in folder. If the value is 'sync, msgdb would be synchronized."
1705 :type '(choice (const :tag "off" nil)
1710 (defcustom wl-summary-exit-next-move t
1711 "*Non-nil, move to next-unsync or next-entity when exit summary."
1715 (defcustom wl-summary-next-no-unread-command
1716 '(wl-summary-read wl-summary-down wl-summary-up)
1717 "*Command list available when the value of `wl-auto-select-next' is 'unread
1718 or 'skip-no-unread."
1719 :type '(repeat function)
1722 (defcustom wl-summary-search-via-nntp 'confirm
1723 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1727 (defcustom wl-summary-keep-cursor-command
1728 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1729 "*Command list to keep cursor position when folder is changed to
1730 already existing summary."
1731 :type '(repeat function)
1734 (defcustom wl-summary-showto-folder-regexp nil
1735 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1736 Sender information in summary mode."
1737 :type '(choice (const :tag "none" nil)
1741 (defcustom wl-folder-removed-mark "#<removed>"
1742 "Mark for removed folder."
1746 (defcustom wl-folder-unsubscribe-mark "#"
1747 "Mark for unsubscribe folder."
1751 (defcustom wl-delete-folder-alist '(("^-" . remove))
1752 "*Alist of folder and delete policy.
1753 Each element is (folder-regexp . policy).
1755 The policy is one of the followings:
1757 'null : remove message.
1758 string : refile to the specified folder.
1760 otherwise : refile to the `wl-trash-folder'.
1762 '((\"^%\" . \"%#mh/trash\")
1764 (\"^\\\\+\" . trash))"
1765 :type '(repeat (cons (regexp :tag "Folder Regexp")
1766 (choice :tag "Policy"
1768 (const :tag "remove(null)" null)
1770 (const :tag "trash(other)" trash)
1771 (string :tag "Folder"))))
1774 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1776 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1777 POLICY is copy or move."
1778 :type '(repeat (cons (regexp :tag "Folder Regexp")
1779 (choice (const copy)
1784 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1785 "*Access group folders to make hierarchy structure."
1786 :type '(repeat (string :tag "Folder"))
1789 (defcustom wl-folder-init-load-access-folders nil
1790 "*Access group folders to load folder list on `wl-folder-init'.
1791 If this variable is non-nil,
1792 `wl-folder-init-no-load-access-folders' will be ignored."
1793 :type '(repeat (regexp :tag "Folder Regexp"))
1796 (defcustom wl-folder-init-no-load-access-folders nil
1797 "*Access group folders to not load folder list on `wl-folder-init'.
1798 If `wl-folder-init-load-access-folders' is non-nil,
1799 this variable will be ignored."
1800 :type '(repeat (regexp :tag "Folder Regexp"))
1803 (defcustom wl-folder-access-subscribe-alist nil
1804 "*Subscribe folders to fetching folder entries.
1805 Each element is (group-regexp (subscribe folder-regexp ...)).
1806 If subscribe is non-nil, subscribe when match folder-regexp.
1807 If subscribe is nil, unsubscribe when match folder-regexp.
1810 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1811 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1812 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
1813 :type '(repeat (cons (regexp :tag "Folder Regexp")
1814 (list (boolean :tag "Subscribed")
1816 (regexp :tag "Folder Regexp")))))
1819 ;;; For Folder Manager
1821 (defcustom wl-interactive-save-folders t
1822 "*Non-nil require your confirmation when save folders."
1826 (defcustom wl-fldmgr-make-backup t
1827 "*Non-nil make backup file when save folders."
1831 (defcustom wl-fldmgr-folders-indent "\t"
1832 "*Indent string for folders file."
1836 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1837 "*A function to sort folder."
1841 (defcustom wl-fldmgr-sort-group-first t
1842 "*Non-nil Group folder is first when sort."
1846 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1847 "*If non-nil, completion for adding folder refers current folder list."
1851 (defcustom wl-fldmgr-make-filter-default "Body"
1852 "*Default filter key while making filter on Folder."
1853 :type '(radio (const "From")
1862 (string :tag "Other"))
1865 ;;; For Expire and Archive
1867 (defcustom wl-expire-alist nil
1868 "Alist to decide a policy for expire.
1869 Each element is (folder-regexp (number or date) policy).
1871 The policy is one of the followings:
1872 'remove : remove messsage.
1873 'trash : refile `wl-trash-folder'.
1874 string : refile string folder.
1875 function : call function.
1878 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
1879 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
1880 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
1881 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
1882 (\"^\\\\+misc$\" (date 14) trash))"
1883 :type '(repeat (choice (list :tag "No-match"
1884 (regexp :tag "Folder Regexp")
1887 (regexp :tag "Folder Regexp")
1888 (list (radio :value number
1893 (repeat :inline t integer)))
1894 (choice :tag "Policy"
1898 (string :tag "folder")
1901 :tag "Arg for function"
1905 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1906 "Alist to decide a policy for archive.
1907 Each element is (folder-regexp policy(function)).
1910 '((\"\\\\+work$\" wl-archive-date)
1911 (\"\\\\+ml/\" wl-archive-number1)
1912 (\".*\" wl-archive-number2))"
1913 :type '(repeat (list (regexp :tag "Folder Regexp")
1916 (sexp :tag "Argument"))))
1919 (defcustom wl-summary-expire-reserve-marks
1920 (list wl-summary-important-mark
1922 wl-summary-unread-mark
1923 wl-summary-unread-uncached-mark
1924 wl-summary-unread-cached-mark)
1925 "Permanent marks of reserved message when expire.
1926 Don't reserve temporary mark message.
1929 'all : reserved all permanent marks.
1930 'none : not reserve permanent marks.
1931 list : reserved specified permanent marks."
1932 :type '(repeat (string :tag "Mark"))
1935 (defcustom wl-expire-number-with-reserve-marks nil
1936 "If non-nil, include reserve message when expire by number."
1940 (defcustom wl-expire-add-seen-list t
1941 "*If non-nil, add seen message list when refile message at expire."
1945 (defcustom wl-expire-use-log nil
1946 "*If non-nil, write a log when expired."
1950 (defcustom wl-expire-folder-update-msgdb t
1951 "*Non-nil update summary msgdb when expire on folder mode."
1955 ;; for wl-expire-archive-{number1|number2}
1956 (defcustom wl-expire-archive-files 100
1957 "*The number of one archive folder."
1961 ;; for wl-expire-archive-{number1|number2|date}
1962 (defcustom wl-expire-archive-get-folder-func
1963 'wl-expire-archive-get-folder
1964 "*A function to get archive folder name."
1968 (defcustom wl-expire-delete-oldmsg-confirm t
1969 "*If non-nil, require your confirmation when delete old message."
1973 ;; for wl-expire-archive-get-folder
1974 (defcustom wl-expire-archive-folder-type 'zip
1975 "*Archiver type of archive folder."
1976 :type '(radio (const zip)
1982 (symbol :tag "Other"))
1985 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1986 "*A format string for archive folder name."
1990 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1991 "*A regexp string for archive folder name."
1995 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1996 ;; $folder-199812;zip
1997 "*A format string for archive date folder name."
2001 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2002 "*A regexp string for archive date folder name."
2006 (defcustom wl-expire-archive-folder-prefix nil
2007 "*Prefix for archive folder."
2008 :type '(radio (const :tag "nothing" nil)
2009 (const :tag "full" t)
2015 ;; highilght about summary
2016 (defcustom wl-highlight-max-summary-lines 10000
2017 "*If the summary is larger than this lines, don't highlight it."
2019 :group 'wl-highlight)
2021 ;; highilght about draft and message
2022 (defcustom wl-highlight-body-too t
2023 "*In addition to header, highlight the body too. if non nil."
2025 :group 'wl-highlight)
2027 (defcustom wl-highlight-message-header-alist
2028 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2029 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2030 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2032 :type '(repeat (cons regexp face))
2033 :group 'wl-highlight)
2035 (defcustom wl-highlight-message-header-button-alist
2036 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):" "<[^>]+>"
2037 0 wl-message-button-refer-article 0)
2038 ("^[^:]+:" "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
2039 1 wl-message-button-refer-article 3)))
2040 "Alist of headers and regexps to match buttons in message headers."
2042 (list (regexp :tag "Header")
2044 (integer :tag "Button")
2045 (function :tag "Callback")
2048 (integer :tag "Regexp group"))))
2049 :group 'wl-highlight)
2051 (defcustom wl-highlight-citation-prefix-regexp
2052 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2053 "All lines that match this regexp will be highlighted with
2054 `wl-highlight-message-cited-text-*' face."
2056 :group 'wl-highlight)
2058 (defcustom wl-highlight-highlight-citation-too nil
2059 "*Whether the whole citation line should go in the
2060 `wl-highlight-citation-face' face.
2061 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2062 default face, and the remainder of the line is in the
2063 wl-highlight-message-cited-text face."
2065 :group 'wl-highlight)
2067 (defcustom wl-highlight-force-citation-header-regexp
2068 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2069 "*The pattern to match the prolog of a cited block.
2070 Text in the body of a message which matches this will be displayed in
2071 the `wl-highlight-message-headers' face."
2073 :group 'wl-highlight)
2075 (defcustom wl-highlight-citation-header-regexp
2076 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2077 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2078 "^.*\\(writes\\|wrote\\|said\\):\n")
2079 "*The pattern to match the prolog of a cited block.
2080 Text in the body of a message which matches this will be displayed in
2081 the `wl-highlight-message-headers' face."
2083 :group 'wl-highlight)
2085 (defcustom wl-highlight-max-header-size nil
2086 "*If the message header is larger than this many chars, don't highlight it.
2087 If this is nil, all headers will be highlighted."
2089 :group 'wl-highlight)
2091 (defcustom wl-highlight-max-message-size 10000
2092 "*If the message body is larger than this many chars, don't highlight it.
2093 This is to prevent us from wasting time trying to fontify things like
2094 uuencoded files and large digests. If this is nil, all messages will
2097 :group 'wl-highlight)
2099 ;; highilght about signature (of draft and message)
2100 (defcustom wl-highlight-signature-separator
2101 '("\n--+\n" "\n\n--+.*\n*\\'")
2102 "List of regexps matching signature separator.
2103 It will be verified from head to tail looking for a separator.
2104 Verification will be done from the end of the buffer.
2105 No need to specify \"^-- $\" in this list,
2106 because it is verified by default.
2107 This variable can also be a regex."
2108 :type '(repeat regexp)
2109 :group 'wl-highlight)
2111 (defcustom wl-max-signature-size 400
2112 "*If the signature is larger than this chars, don't treat it as a signature."
2114 :group 'wl-highlight)
2116 ;; highilght about mouse
2117 (defcustom wl-use-highlight-mouse-line (and window-system
2118 (>= emacs-major-version 19))
2119 "*Highlight mouse line, if non nil."
2121 :group 'wl-highlight)
2123 ;; highilght about folder
2124 (defcustom wl-highlight-folder-with-icon
2125 (or (and (featurep 'xemacs)
2128 "*Highlight folder with icon(XEmacs or Emacs 21)."
2130 :group 'wl-highlight)
2131 (defcustom wl-highlight-folder-by-numbers t
2132 "Highlight folder lines by numbers.
2133 If it is a number, only numbers will be highlighted."
2134 :type '(choice (const :tag "whole line" t)
2135 (const :tag "only numbers" 1)
2136 (const :tag "don't highlight" nil))
2137 :group 'wl-highlight)
2139 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
2140 "Function to search signature area in the message body."
2142 :group 'wl-highlight)
2144 (defcustom wl-use-dnd (and wl-on-xemacs
2145 (featurep 'dragdrop))
2146 "If Non-nil, support dragdrop feature in XEmacs."
2150 (defcustom wl-reset-plugged-alist t
2151 "*If non-nil, reset `elmo-plugged-alist' when startup."
2155 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2156 (module-installed-p 'image)
2157 (module-installed-p 'bitmap))
2159 "If it is T, show graphic logo in the startup screen. You can set it to
2160 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2161 :type '(radio (const :tag "Off" nil)
2162 (const :tag "On (any format)" t)
2165 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2168 ;;; Internal variables
2169 (defvar wl-init nil)
2171 ;; For disconnected operations.
2172 (defvar wl-plugged-hook nil)
2173 (defvar wl-unplugged-hook nil)
2174 (defvar wl-plugged t)
2176 ;; Internal variables used to modeline identifiers.
2177 (defvar wl-modeline-plug-status nil)
2178 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2179 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2180 (defvar wl-modeline-biff-status nil)
2181 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2182 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2184 ;; Advanced thread view.
2185 (defvar wl-thread-indent-level 1
2186 "*Indent level for thread.")
2187 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2188 "*A string for thread branch line. It should contain one character.")
2189 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2190 "*A string for thread branch line. It should contain one character.")
2191 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2192 "*A string for thread branch line. It should contain one character.")
2193 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2194 "*A string for thread branch line. It should contain one character.")
2195 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2196 "*A string for thread branch line. It should contain one character.")
2198 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2199 "* A regexp string for thread indent...for highlight.")
2201 ;; folder icons. filename relative to wl-icon-dir
2202 (defvar wl-opened-group-folder-icon "opened.xpm"
2203 "*Icon file for opened group folder.")
2204 (defvar wl-closed-group-folder-icon "closed.xpm"
2205 "*Icon file for closed group folder.")
2206 (defvar wl-nntp-folder-icon "news.xpm"
2207 "*Icon file for nntp folder.")
2208 (defvar wl-imap-folder-icon "imap.xpm"
2209 "*Icon file for imap folder.")
2210 (defvar wl-pop-folder-icon "pop.xpm"
2211 "*Icon file for pop folder.")
2212 (defvar wl-localdir-folder-icon "local.xpm"
2213 "*Icon file for localdir folder.")
2214 (defvar wl-localnews-folder-icon "localnews.xpm"
2215 "*Icon file for localnews folder.")
2216 (defvar wl-internal-folder-icon "internal.xpm"
2217 "*Icon file for internal folder.")
2218 (defvar wl-multi-folder-icon "multi.xpm"
2219 "*Icon file for multi folder.")
2220 (defvar wl-filter-folder-icon "filter.xpm"
2221 "*Icon file for filter folder.")
2222 (defvar wl-archive-folder-icon "archive.xpm"
2223 "*Icon file for archive folder.")
2224 (defvar wl-pipe-folder-icon "pipe.xpm"
2225 "*Icon file for pipe folder.")
2226 (defvar wl-maildir-folder-icon "maildir.xpm"
2227 "*Icon file for maildir folder.")
2228 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2229 "*Icon file for emptied trash folder.")
2230 (defvar wl-trash-folder-icon "trash.xpm"
2231 "*Icon file for trash folder.")
2232 (defvar wl-draft-folder-icon "draft.xpm"
2233 "*Icon file for draft folder.")
2234 (defvar wl-queue-folder-icon "queue.xpm"
2235 "*Icon file for queue folder.")
2236 (defvar wl-plugged-icon "plugged.xpm"
2237 "*Icon file for plugged state.")
2238 (defvar wl-unplugged-icon "unplugged.xpm"
2239 "*Icon file for unplugged state.")
2240 (defvar wl-biff-mail-icon "letter.xpm"
2241 "*Icon file for mail existed state.")
2242 (defvar wl-biff-nomail-icon "no-letter.xpm"
2243 "*Icon file for no mail existed state.")
2244 (defvar wl-prog-uudecode "uudecode"
2245 "*uudecode program name.")
2246 (defvar wl-prog-uudecode-arg nil
2247 "*Arguments for uudecode program.")
2248 (defvar wl-prog-uudecode-no-stdout-option t
2249 "*If non-nil, uudecode program don't have option for output to stdout.")
2251 ;; Obsolete variables. for compatibility.
2252 (defvar wl-address-filename wl-address-file)
2253 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
2254 (defvar wl-score-default-file-name wl-score-default-file)
2255 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
2256 (defvar wl-draft-prepared-config-alist nil)
2257 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
2258 (defvar wl-score-files-directory wl-score-files-dir)
2259 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
2260 (defvar wl-summary-temp-above wl-summary-target-above)
2261 (make-obsolete-variable 'wl-summary-temp-above 'wl-summary-target-above)
2264 (defvar wl-plugged-plug-on "ON")
2265 (defvar wl-plugged-plug-off "--")
2266 (defvar wl-plugged-auto-off "**")
2267 (defvar wl-plugged-server-indent 2)
2268 (defvar wl-plugged-port-indent 4)
2269 (defvar wl-plugged-queue-status-column 25)
2272 (product-provide (provide 'wl-vars) (require 'wl-version))
2274 ;;; wl-vars.el ends here