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
45 (, (if (and (boundp 'current-language-environment)
46 (string-equal "Japanese"
47 (symbol-value 'current-language-environment)))
54 "Wanderlust, Preferences."
58 (defgroup wl-folder nil
59 "Wanderlust, folder buffer."
63 (defgroup wl-summary nil
64 "Wanderlust, summary buffer."
68 (defgroup wl-summary-marks nil
69 "Wanderlust, marks used in summary buffers."
73 (defgroup wl-expire nil
74 "Wanderlust, Expiring and archiving."
78 (defgroup wl-score nil
79 "Wanderlust, Score file handling."
83 (defgroup wl-highlight nil
84 "Wanderlust, Highlights."
88 (defgroup wl-draft nil
89 "Wanderlust, draft mode."
94 (defconst wl-on-xemacs (featurep 'xemacs))
96 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
97 (>= emacs-major-version 21)))
99 (defconst wl-on-nemacs (fboundp 'nemacs-version))
101 (defconst wl-on-mule (featurep 'mule))
103 (defconst wl-on-mule3
104 (and wl-on-mule (or wl-on-xemacs
105 (> emacs-major-version 19))))
108 (defun-maybe locate-data-directory (a)))
111 (cond (wl-on-mule3 'binary)
112 (wl-on-mule '*noconv*)
116 (defvar wl-cs-autoconv
117 (cond (wl-on-mule3 'undecided)
118 (wl-on-mule '*autoconv*)
119 (wl-on-nemacs 2) ; junet...
123 (cond (wl-on-mule3 'junet)
124 (wl-on-mule '*junet*)
128 (defvar wl-cs-cache wl-cs-local)
130 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
133 (defcustom wl-from (if (boundp 'user-mail-address)
135 "*From string used in draft."
139 (defcustom wl-user-mail-address-list nil
140 "*A list of user's mail addresses.
141 This list is used to judge whether an address is user's or not.
142 You should set this variable if you use multiple e-mail addresses.
143 If you don't have multiple e-mail addresses, you don't have to set this."
144 :type '(repeat string)
147 (defcustom wl-organization nil
149 :type '(choice (const :tag "none" nil)
153 (defcustom wl-tmp-dir "~/tmp/"
154 "*Default temporary directory to save message, part."
158 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
159 (locate-data-directory "wl")
160 (let ((icons (expand-file-name "wl/icons/"
162 (if (file-directory-p icons)
164 "*Icon directory (XEmacs or Emacs 21)."
165 :type '(choice (const :tag "none" nil)
169 (defcustom wl-summary-from-func 'wl-summary-default-from
170 "*A function for displaying sender (From: field) information."
174 (defcustom wl-summary-subject-func 'wl-summary-default-subject
175 "*A function for displaying subject."
179 (defcustom wl-summary-subject-filter-func 'wl-summary-default-subject-filter
180 "*A filter function for comparing subjects."
184 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
185 "*If message does not have in-reply-to field nor references field and
186 subject matches this regexp, search parent message by subject matching."
190 (defcustom wl-summary-update-confirm-threshold 500
191 "*Confirm updating summary if message number is larger than this value."
196 (defcustom wl-default-folder "%inbox"
197 "*Default folder used in `wl-summary-goto-folder'."
200 (defcustom wl-draft-folder "+draft"
204 (defcustom wl-trash-folder "+trash"
208 (defcustom wl-queue-folder "+queue"
213 (defcustom wl-default-spec "%"
218 (defcustom wl-insert-mail-followup-to nil
219 "*Insert Mail-Followup-To: field if non-nil."
223 (defcustom wl-insert-mail-reply-to nil
224 "*Insert Mail-Reply-To: field if non-nil."
228 (defcustom wl-insert-message-id t
229 "*Insert Message-ID: field if non-nil."
233 (defcustom wl-auto-insert-x-face t
234 "*Insert X-Face: field automatically."
238 (defcustom wl-x-face-file "~/.xface"
239 "*X-Face field is inserted using its contents.
240 If file exists and `wl-auto-insert-x-face' is non-nil."
244 (defcustom wl-subscribed-mailing-list nil
245 "*Subscribed mailing list.
246 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
247 :type '(repeat string)
251 "*Display demo at start time."
255 (defcustom wl-envelope-from nil
256 "*Envelope From used in SMTP.
257 If nil, `wl-from' is used."
258 :type '(choice (const :tag "Same as 'From' field." nil)
262 (defcustom wl-draft-add-references t
263 "*If non-nil, message-id of the cited message is inserted to the
264 references field of the current draft."
268 (defcustom wl-smtp-connection-type nil
269 "*SMTP connection type.
270 If nil, default smtp connection type is used."
271 :type '(choice (const :tag "default" nil)
272 (const :tag "Use STARTTLS" starttls)
276 (defcustom wl-smtp-posting-user nil
277 "*SMTP authentication user."
278 :type '(choice (const :tag "none" nil)
282 (defcustom wl-smtp-posting-server nil
283 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
284 :type '(choice (const :tag "none" nil)
288 (defcustom wl-smtp-posting-port nil
289 "*SMTP port number in `wl-smtp-posting-server'.
290 If nil, default SMTP port number(25) is used."
291 :type '(choice (const :tag "Default (25)" nil)
295 (defcustom wl-smtp-authenticate-type nil
296 "*SMTP Authentication type.
297 If nil, don't authenticate."
298 :type '(choice (const :tag "none" nil)
299 (const :tag "PLAIN" "plain")
300 (const :tag "CRAM-MD5" "cram-md5")
301 (const :tag "LOGIN" "login")
302 (string :tag "Other"))
305 (defcustom wl-pop-before-smtp-user nil
306 "*POP3 user name to send mail using POP-before-SMTP.
307 If nil, `elmo-default-pop3-user' is used.
308 To use POP-before-SMTP,
309 (setq wl-draft-send-mail-func 'wl-draft-send-mail-with-pop-before-smtp)"
310 :type '(choice (const :tag "none" nil)
314 (defcustom wl-pop-before-smtp-server nil
315 "*POP3 server for POP-before-SMTP.
316 If nil, `elmo-default-pop3-server' is used."
317 :type '(choice (const :tag "none" nil)
321 (defcustom wl-pop-before-smtp-port nil
322 "*POP3 port for POP-before-SMTP.
323 If nil, `elmo-default-pop3-port' is used."
324 :type '(choice (const :tag "none" nil)
328 (defcustom wl-pop-before-smtp-stream-type nil
329 "*Stream type for POP-before-SMTP.
330 If nil, `elmo-default-pop3-stream-type' is used."
334 (defcustom wl-pop-before-smtp-authenticate-type nil
335 "*Default Authentication type for POP-before-SMTP.
336 If nil, `elmo-default-pop3-authenticate-type' is used."
337 :type '(choice (const :tag "none" nil)
338 (const :tag "APOP" "apop")
339 (const :tag "POP3" "user"))
342 (defcustom wl-nntp-posting-server nil
343 "*NNTP server name to post news.
344 If nil, `elmo-default-nntp-server' is used."
345 :type '(choice (const :tag "none" nil)
348 (defcustom wl-nntp-posting-user nil
349 "*NNTP user name to post news for authinfo.
350 If nil, `elmo-default-nntp-user' is used.
351 If nil, don't authenticate."
352 :type '(choice (const :tag "none" nil)
355 (defcustom wl-nntp-posting-port nil
356 "*NNTP port to post news.
357 If nil, `elmo-default-nntp-port' is used."
358 :type '(choice (const :tag "none" nil)
361 (defcustom wl-nntp-posting-stream-type nil
362 "*Stream type for posting Netnews.
363 If nil, `elmo-default-nntp-stream-type' is used."
367 (defcustom wl-fetch-confirm-threshold 30000
368 "*Confirm fetching if message size is larger than this value."
372 (defcustom wl-prefetch-confirm t
373 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
377 (defcustom wl-prefetch-threshold 30000
378 "*Maximum size of message prefetched without confirmation.
379 If nil, all messages prefetched regardless of its size.
380 If message size is larger than this value, confirm prefetching
381 when `wl-prefetch-confirm' is non-nil."
382 :type '(choice (integer :tag "Threshold (bytes)")
383 (const :tag "No limitation" nil))
386 (defcustom wl-cache-prefetch-threshold 30000
387 "*Quit forward cache prefetching if message size is larger than this value."
391 (defcustom wl-thread-insert-opened nil
392 "*Non-nil forces to insert thread as opened in updating."
396 (defcustom wl-thread-open-reading-thread t
397 "*Non-nil forces to open reading thread."
402 (defvar wl-folder-mode-hook nil
403 "A hook called when wanderlust folder mode is started.
404 This hook may contain the functions `wl-folder-init-icons' and
405 `wl-setup-folder' for reasons of system internal to accord facilities
406 for the Emacs variants.")
407 (defvar wl-summary-toggle-disp-on-hook nil
408 "A hook called when message is toggled.")
409 (defvar wl-summary-toggle-disp-off-hook nil
410 "A hook called when message is disappeared.")
411 (defvar wl-summary-toggle-disp-folder-on-hook nil
412 "A hook called when folder is toggled.")
413 (defvar wl-summary-toggle-disp-folder-off-hook nil
414 "A hook called when folder is disappeared.")
415 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
416 "A hook called when message window is resumed when folder is toggled.")
417 (defvar wl-summary-mode-hook nil
418 "A hook called when summary mode is started.
419 This hook may contain the function `wl-setup-summary' for reasons of
420 system internal to accord facilities for the Emacs variants.")
422 (defvar wl-summary-prepared-pre-hook nil
423 "A hook called before the summary buffer has been generated.")
424 (defvar wl-summary-prepared-hook nil
425 "A hook called after the summary buffer has been generated.")
426 (defvar wl-summary-sync-updated-hook nil
427 "A hook called when update summary buffer.")
428 (defvar wl-summary-unread-message-hook nil
429 "A hook called when unread message is displayed.")
430 (defvar wl-summary-edit-addresses-hook nil
431 "A hook called when address book is edited.")
432 (defvar wl-summary-buffer-message-saved-hook nil
433 "A hook called when msgdb is saved.")
434 (defvar wl-summary-buffer-mark-saved-hook nil
435 "A hook called when mark is saved.")
436 (defvar wl-summary-divide-thread-when-subject-changed nil
437 "Divide thread when subject is changed.")
438 (defvar wl-init-hook nil
439 "A hook called when initialization is finished. This hook may contain
440 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
441 reasons of system internal to accord facilities for the Emacs variants.")
443 "A hook called when Wanderlust is invoked.")
444 (defvar wl-reply-hook nil
445 "A hook called when replied.")
446 (defvar wl-mail-setup-hook nil
447 "A hook called when Draft is prepared.")
448 (defvar wl-draft-reedit-hook nil
449 "A hook called when Draft is re-edited.")
450 (defvar wl-draft-send-hook '(wl-draft-config-exec)
451 "A hook called on the draft editing buffer before sending process starts.")
452 (defvar wl-mail-send-pre-hook nil
453 "A hook called just before the mail sending process starts.")
454 (defvar wl-news-send-pre-hook nil
455 "A hook called just before the news sending process starts.")
456 (defvar wl-message-buffer-created-hook nil
457 "A hook called when Message buffer is prepared.")
458 (defvar wl-message-redisplay-hook nil
459 "A hook called when Message is displayed.")
460 (defvar wl-message-exit-hook nil
461 "A hook called when quit message.")
462 (defvar wl-summary-exit-hook nil
463 "A hook called when exit summary mode.")
464 (defvar wl-highlight-headers-hook nil
465 "A hook called when header is highlighted.")
466 (defvar wl-highlight-message-hook nil
467 "A hook called when message is highlighted.")
468 (defvar wl-save-hook nil
469 "A hook called when save summary and folder status.")
470 (defvar wl-exit-hook nil
471 "A hook called when exit wanderlust.")
472 (defvar wl-folder-suspend-hook nil
473 "A hook called when suspend wanderlust.")
474 (defvar wl-biff-notify-hook nil
475 "A hook called when a biff-notification is invoked.")
476 (defvar wl-biff-unnotify-hook nil
477 "A hook called when a biff-notification is removed.")
478 (defvar wl-auto-check-folder-pre-hook nil
479 "A hook called before auto check folders.")
480 (defvar wl-auto-check-folder-hook nil
481 "A hook called when auto check folders.")
482 (defvar wl-folder-check-entity-pre-hook nil
483 "A hook called before check entity.")
484 (defvar wl-folder-check-entity-hook nil
485 "A hook called when check entity.")
486 (defvar wl-draft-config-exec-hook nil
487 "A hook called when execute header-config on draft.")
488 (defvar wl-summary-expire-pre-hook nil
489 "A hook called before expire.")
490 (defvar wl-summary-expire-hook nil
491 "A hook called when expired.")
492 (defvar wl-summary-archive-pre-hook nil
493 "A hook called before archive.")
494 (defvar wl-summary-archive-hook nil
495 "A hook called when archived.")
496 (defvar wl-summary-line-inserted-hook nil
497 "A hook called when summary line is inserted.")
498 (defvar wl-summary-insert-headers-hook nil
499 "A hook called when insert header for search header.")
500 (defvar wl-thread-update-children-number-hook nil
501 "A hook called when children number is updated.")
502 (defvar wl-folder-update-access-group-hook nil
503 "A hook called when update access group folder.")
504 (defvar wl-draft-cited-hook nil
505 "A hook called after a message is cited.")
506 (defvar wl-draft-insert-x-face-field-hook nil
507 "A hook called after a x-face field is inserted.")
508 (defvar wl-template-mode-hook nil
509 "A hook called when template mode is started.")
510 (defvar wl-score-mode-hook nil
511 "A hook called when score mode is started.")
512 (defvar wl-make-plugged-hook nil
513 "A hook called when make plugged alist.")
515 (defvar wl-plugged-exit-hook nil
516 "A hook called when exit plugged mode.")
518 ;;;; functions for draft
519 (defcustom wl-draft-send-func 'wl-draft-normal-send-func
520 "A function to send message."
524 (defcustom wl-draft-send-news-func 'wl-draft-elmo-nntp-send
525 "A function to send news."
529 (defcustom wl-draft-send-mail-func 'wl-draft-send-mail-with-smtp
530 "A function to send mail.
531 Prepared candidates are 'wl-draft-send-mail-with-smtp,
532 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
533 :type '(radio (function-item wl-draft-send-mail-with-smtp)
534 (function-item wl-draft-send-mail-with-qmail)
535 (function-item wl-draft-send-mail-with-pop-before-smtp)
536 (function :tag "Other"))
539 (defcustom wl-draft-reply-with-argument-list
540 '(("Reply-To" . (("Reply-To") nil nil))
541 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
542 ("From" . (("From") nil nil)))
543 "Alist of cons cell of
544 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
545 'field-name' is a string.
546 'fields for ***' is a list of strings.
547 If car of each cons cell exists in original message,
548 cdr of each cons cell is used for draft message.
549 Default is for 'reply-to-author'."
550 :type '(repeat (cons (choice (string :tag "Field Name")
551 (repeat (string :tag "Field Name")))
552 (list (repeat :tag "Fields For To" string)
553 (repeat :tag "Fields For Cc" string)
554 (repeat :tag "Fields For Newsgroups" string))))
557 (defcustom wl-draft-reply-without-argument-list
558 '(("Followup-To" . (nil nil ("Followup-To")))
559 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
560 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
561 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
562 "Alist of cons cell of
563 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
564 'field-name' is a string.
565 'fields for ***' is a list of strings.
566 If car of each cons cell exists in original message,
567 cdr of each cons cell is used for draft message.
568 Default is for 'reply-to-all'."
569 :type '(repeat (cons (choice (string :tag "Field Name")
570 (repeat (string :tag "Field Name")))
571 (list (repeat :tag "Fields For To" string)
572 (repeat :tag "Fields For Cc" string)
573 (repeat :tag "Fields For Newsgroups" string))))
576 (defcustom wl-draft-reply-myself-with-argument-list
577 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
578 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
579 ("From" . (("To") ("Cc") nil)))
580 "Alist of cons cell of
581 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
582 'field-name' is a string.
583 'fields for ***' is a list of strings.
584 If car of each cons cell exists in original message,
585 cdr of each cons cell is used for draft message.
586 Default is for 'reply-to-me'."
587 :type '(repeat (cons (choice (string :tag "Field Name")
588 (repeat (string :tag "Field Name")))
589 (list (repeat :tag "Fields For To" string)
590 (repeat :tag "Fields For Cc" string)
591 (repeat :tag "Fields For Newsgroups" string))))
594 (defcustom wl-draft-reply-myself-without-argument-list
595 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
596 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
597 ("From" . (("To") ("Cc") nil)))
598 "Alist of cons cell of
599 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
600 'field-name' is a string.
601 'fields for ***' is a list of strings.
602 If car of each cons cell exists in original message,
603 cdr of each cons cell is used for draft message.
604 Default is for 'followup-to-me'."
605 :type '(repeat (cons (choice (string :tag "Field Name")
606 (repeat (string :tag "Field Name")))
607 (list (repeat :tag "Fields For To" string)
608 (repeat :tag "Fields For Cc" string)
609 (repeat :tag "Fields For Newsgroups" string))))
612 (defcustom wl-draft-always-delete-myself nil
613 "*Always delete myself from reciepient if non-nil."
617 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
618 "*Do not insert bcc or fcc if To and Cc fields is a member of
619 `wl-subscribed-mailing-list'"
623 (defcustom wl-draft-resume-folder-window t
624 "*Resume folder window in `wl-draft-hide'."
628 (defcustom wl-draft-use-frame nil
629 "*Raise new frame when composing draft."
633 (defcustom wl-draft-qmail-send-plugged nil
634 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
638 (defcustom wl-draft-remove-group-list-contents t
639 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
644 (defcustom wl-init-file "~/.wl"
645 "*User customization setting file."
649 (defcustom wl-folders-file "~/.folders"
654 (defcustom wl-address-file "~/.addresses"
659 (defcustom wl-alias-file "~/.im/Aliases"
660 "*Alias file for completion."
664 (defcustom wl-ldap-server "localhost"
666 :type '(string :tag "Server")
669 (defcustom wl-ldap-port nil
671 :type '(choice (const :tag "Default port" nil)
675 (defcustom wl-ldap-base "c=US"
677 :type '(string :tag "Base")
680 (defcustom wl-ldap-objectclass "person"
685 (defcustom wl-use-ldap nil
686 "*If non-nil, use LDAP for address completion."
690 (defcustom wl-folder-info-save t
691 "If non-nil, save elmo-folder-info-alist."
695 (defcustom wl-summary-unread-mark "!"
696 "Mark for unread message."
697 :type '(string :tag "Mark")
698 :group 'wl-summary-marks)
699 (defcustom wl-summary-important-mark "$"
700 "Mark for important message."
701 :type '(string :tag "Mark")
702 :group 'wl-summary-marks)
703 (defcustom wl-summary-new-mark "N"
704 "Mark for new message."
705 :type '(string :tag "Mark")
706 :group 'wl-summary-marks)
707 (defcustom wl-summary-unread-uncached-mark "U"
708 "Mark for unread and uncached message."
709 :type '(string :tag "Mark")
710 :group 'wl-summary-marks)
711 (defcustom wl-summary-unread-cached-mark "!"
712 "Mark for unread but already cached message."
713 :type '(string :tag "Mark")
714 :group 'wl-summary-marks)
715 (defcustom wl-summary-read-uncached-mark "u"
716 "Mark for read but uncached message."
717 :type '(string :tag "Mark")
718 :group 'wl-summary-marks)
719 (defcustom wl-summary-score-over-mark "+"
720 "Score mark used for messages with high scores."
721 :type '(string :tag "Mark")
722 :group 'wl-summary-marks)
723 (defcustom wl-summary-score-below-mark "-"
724 "Score mark used for messages with low scores."
725 :type '(string :tag "Mark")
726 :group 'wl-summary-marks)
728 (defcustom wl-summary-no-mime-folder-list
729 (list (concat "^" (regexp-quote wl-draft-folder) "$"))
730 "*All folders that match this list don't analysis mime."
731 :type '(repeat string)
734 (defcustom wl-summary-fix-timezone nil
735 "*Time zone of the date string in summary mode.
736 If nil, it is adjust to the default time zone information
737 \(system's default time zone or environment variable TZ\)."
738 :type '(choice (const :tag "Default time zone" nil)
742 (defcustom wl-summary-default-score 0
743 "*Default message score level.
744 All scores generated by the score files will be added to this score.
745 If this variable is nil, scoring will be disabled."
746 :type '(choice (const :tag "disable" nil)
750 (defcustom wl-summary-important-above nil
751 "*Mark all messages with a score above this variable as important.
752 This variable is local to the summary buffers."
753 :type '(choice (const :tag "off" nil)
757 (defcustom wl-summary-target-above nil
758 "*Mark all messages with a score above this variable as target.
759 This variable is local to the summary buffers."
760 :type '(choice (const :tag "off" nil)
764 (defcustom wl-summary-mark-below 0
765 "*Mark all messages with a score below this variable as read.
766 This variable is local to each summary buffer and usually set by the
771 (defcustom wl-summary-expunge-below nil
772 "All messages that have a score less than this variable will be expunged.
773 This variable is local to the summary buffers."
774 :type '(choice (const :tag "off" nil)
778 (defcustom wl-summary-score-marks
779 (list wl-summary-new-mark)
780 "Persistent marks to scoring."
781 :type '(repeat (string :tag "Mark"))
784 (defcustom wl-use-scoring (not wl-on-nemacs)
785 "*If non-nil, enable scoring."
789 (defcustom wl-summary-rescore-partial-threshold 200
790 "*Summary is not scored entirely if there are messages more than this value.
791 In sync-all or rescan."
795 (defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
796 "*Name of the directory where score files will be stored.
797 (default \"~/.elmo\")."
801 (defcustom wl-score-interactive-default-score 1000
802 "*Scoring commands will raise/lower the score with this number as the default."
806 (defcustom wl-score-expiry-days 7
807 "*Number of days before unused score file entries are expired.
808 If this variable is nil, no score file entries will be expired."
809 :type '(choice (const :tag "never" nil)
813 (defcustom wl-score-update-entry-dates t
814 "*In non-nil, update matching score entry dates.
815 If this variable is nil, then score entries that provide matches
816 will be expired along with non-matching score entries."
820 (defcustom wl-score-folder-alist nil
821 "*Alist of folder regexp and score file."
822 :type '(repeat (list (regexp :tag "Folder Regexp")
825 (symbol :tag "Variable")))))
828 (defcustom wl-score-folder-alist-matchone t
829 "*If non-nil, getting only one element of `wl-score-folder-alist'."
833 (defcustom wl-score-default-file "all.SCORE"
834 "*Default score file name."
838 (defcustom wl-score-simplify-fuzzy-regexp
839 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
840 "*Strings to be removed when doing fuzzy matches.
841 This can either be a regular expression or list of regular expressions."
842 :type '(repeat regexp)
845 (defcustom wl-score-header-default-entry
846 '(("number" -1000 perm =)
847 ("subject" -1000 nil nil)
848 ("from" -1000 perm s)
849 ("message-id" -1000 temp e)
850 ("references" -1000 perm e)
853 ("date" -1000 temp nil)
854 ("xref" -1000 perm s)
855 ("extra" -1000 perm s)
856 ("chars" -1000 perm >)
857 ("lines" -1000 perm >)
858 ("followup" -1000 perm s)
859 ("thread" -1000 temp s))
860 "*Default entry when insert score entry."
861 :type '(repeat (list (string :tag "Header")
862 (choice (integer :tag "Score")
863 (const :tag "Ask" nil))
864 (choice (const :tag "Permanent" perm)
865 (const :tag "Temporary" temp)
866 (const :tag "Ask" nil))
867 (choice (const :tag "Regexp string" r)
868 (const :tag "Substring" s)
869 (const :tag "fuzzy string" f)
870 (const :tag "Exact string" e)
871 (const :tag "REGEXP STRING" R)
872 (const :tag "SUBSTRING" S)
873 (const :tag "FUZZY STRING" F)
874 (const :tag "EXACT STRING" E)
875 (const :tag "less than" <)
876 (const :tag "less equal" <=)
877 (const :tag "greater than" >)
878 (const :tag "greater equal" >=)
879 (const :tag "equal" =)
880 (const :tag "Ask" nil))))
883 (defcustom wl-score-mode-mime-charset 'x-ctext
884 "*MIME Charset for score file."
888 (defcustom wl-draft-fields
889 '("To:" "Cc:" "Bcc:" "FCC:" "Distribution:" "Organization:"
890 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
891 "Fields used in draft mode."
892 :type '(repeat (string :tag "Field"))
895 (defcustom wl-draft-config-alist nil
896 "Alist of configuration field on draft.
898 '((\"^To: .*wl@lists.airs.net\"
899 (\"From\" . wl-from2)
900 (\"Organization\" . wl-organization2))
901 (\"^To: .*hogehoge@\"
902 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
903 wl-my-draft-config-func-hoge))"
904 :type '(repeat (list (sexp :tag "Match")
907 (choice (cons (sexp :tag "Field(Variable)")
909 (sexp :tag "Function")))))
912 (defcustom wl-draft-config-matchone nil
913 "*If non-nil, applied only one element of `wl-draft-config-alist'."
917 (defcustom wl-template-alist nil
919 :type '(repeat (list (string :tag "Name")
922 (choice (cons (sexp :tag "Field(Variable)")
924 (sexp :tag "Function")))))
927 (defcustom wl-template-visible-select t
928 "*If non-nil, select template with visible."
932 (defcustom wl-template-confirm nil
933 "*If non-nil, require your confirmation when selected template."
937 (defcustom wl-template-buffer-lines 7
938 "*Lines of template buffer."
943 (defcustom wl-draft-enable-queuing t
944 "*Non-nil enables queued sending."
949 (defcustom wl-draft-use-cache nil
950 "*If non-nil, sending message is cached."
955 (defcustom wl-auto-flush-queue t
956 "*If non-nil, sending queue is flushed when network status is toggled."
961 (defcustom wl-draft-reply-buffer-style 'split
963 :type '(radio (const split)
967 (defcustom wl-draft-queue-save-variables
968 '(wl-envelope-from wl-from
969 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
970 wl-smtp-authenticate-type wl-smtp-connection-type
971 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
972 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
973 wl-nntp-posting-server wl-nntp-posting-server
974 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
975 "*Saving variables in queue info."
976 :type '(repeat (sexp :tag "Variable"))
979 (defcustom wl-draft-sendlog t
980 "*Keep send state in log if non-nil."
984 (defcustom wl-draft-sendlog-max-size 20000
985 "*Max file size of sendlog."
989 (defcustom wl-summary-default-number-column 5
990 "Number of columns in summary buffer."
994 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
995 "Alist of folder and its number column.
996 If no matches, 'wl-summary-default-number-column' is used.
998 '((\"^%inbox@qmail-maildir\" . 9)
999 (\"^-.*@news-server\" . 6))"
1000 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1003 (defcustom wl-summary-highlight t
1004 "Non-nil forces Summary buffer to be highlighted."
1007 :group 'wl-highlight)
1009 (defcustom wl-summary-lazy-highlight (and (boundp 'window-scroll-functions)
1011 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1014 :group 'wl-highlight)
1016 (defcustom wl-summary-highlight-partial-threshold 1000
1017 "Summary is not highlighted entirely if there are lines more than this value.
1018 Available if only `wl-summary-lazy-highlight' is nil."
1021 :group 'wl-highlight)
1023 (defcustom wl-summary-partial-highlight-above-lines 30
1024 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1025 Summary lines are highlighted partialy above current position.
1026 Available if only `wl-summary-lazy-highlight' is nil."
1029 :group 'wl-highlight)
1031 (defcustom wl-summary-cache-use t
1032 "Non-nil forces wl-summary to use cache file."
1036 (defcustom wl-summary-auto-sync-marks t
1037 "Non-nil forces to synchronize unread/important marks."
1041 (defcustom wl-summary-cache-file ".wl-summary-cache"
1042 "*Cache file for summary mode contents."
1045 (defcustom wl-summary-view-file ".wl-summary-view"
1046 "*Current summary view."
1049 (defcustom wl-thread-top-file ".wl-thread-top"
1050 "*Current thread top entity... obsolete."
1053 (defcustom wl-thread-entity-file ".wl-thread-entity"
1057 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1058 "*Thread top entity list."
1062 (defcustom wl-print-buffer-func 'lpr-buffer
1063 "A function to print current buffer."
1067 (defcustom wl-ps-print-buffer-func
1068 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1069 "A function to print current buffer with ps-print."
1074 (defcustom wl-use-petname t
1075 "*Display petname in summary and default citation title."
1079 (defcustom wl-use-folder-petname
1081 "*List of situation using folder petname.
1082 Allowed situations are:
1083 modeline : displayed on modeline.
1084 ask-folder : displayed on minibuffer when ask folder.
1085 read-folder : can used for completion at `wl-summary-read-folder'."
1086 :type '(set (const modeline)
1088 (const read-folder))
1092 (defcustom wl-folder-petname-alist nil
1093 "A list of (realname . petname)."
1094 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1097 (defcustom wl-summary-weekday-name-lang "ja"
1098 "*Language to display week day."
1099 :type '(choice (const "ja")
1103 (string :tag "Other"))
1107 (defcustom wl-local-domain nil
1108 "*Domain part of this client (without hostname).
1109 Set this if (system-name) does not return FQDN."
1110 :type '(choice (const :tag "Use System Name" nil)
1114 (defcustom wl-message-id-domain nil
1115 "*Specific domain part of Message-ID."
1116 :type '(choice (const :tag "Use System Name" nil)
1120 (defcustom wl-break-pages t
1121 "*Break Pages at ^L."
1125 (defcustom wl-message-scroll-amount 5
1126 "*Scroll amount by SPC key."
1130 (defcustom wl-message-window-size '(1 . 4)
1131 "*Size of summary and message window. cons cell of (Summary : Message)."
1132 :type '(cons integer integer)
1135 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1136 "Newsgroups" "Subject" "^From")
1137 "*Sort order of header fields. Each elements are regexp of field name.
1139 :type '(repeat (string :tag "Field Regexp"))
1142 (defcustom wl-message-ignored-field-list nil
1143 "All fields that match this list will be hidden in message buffer.
1144 Each elements are regexp of field-name."
1145 :type '(repeat (string :tag "Field Regexp"))
1148 (defcustom wl-message-visible-field-list nil
1149 "All fields that match this list will be displayed in message buffer.
1150 Each elements are regexp of field-name."
1151 :type '(repeat (string :tag "Field Regexp"))
1154 (defcustom wl-folder-window-width 20
1155 "*Width of folder window."
1160 (defcustom wl-summary-recenter t
1161 "*Recenter on redisplay."
1166 (defcustom wl-folder-use-frame nil
1167 "*Use dedicated frame for folder mode if non-nil."
1171 (defcustom wl-summary-use-frame nil
1172 "*Use dedicated frame for each folder summary if non-nil."
1176 (defcustom wl-stay-folder-window nil
1177 "*Stay folder window when folder is selected if non-nil."
1181 (defcustom wl-reply-subject-prefix "Re: "
1182 "*Prefix of the subject of the replied message."
1187 (defcustom wl-draft-reply-use-address-with-full-name t
1188 "*Use address with full-name in the draft of replied message."
1193 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1194 "*Regexp matching \"Re: \" in the subject line."
1199 (defcustom wl-folder-many-unsync-threshold 70
1200 "*Folders which contains messages more than this number are highlighted
1201 with wl-highlight-folder-many-face."
1206 (defcustom wl-fcc nil
1207 "*Folder Carbon Copy."
1208 :type '(choice (const :tag "disable" nil)
1213 (defcustom wl-bcc nil
1214 "*Blind Carbon Copy."
1215 :type '(choice (const :tag "disable" nil)
1220 (defcustom wl-folder-desktop-name "Desktop"
1221 "*An implicit name of the folder top entity."
1226 (defcustom wl-summary-indent-length-limit 46
1227 "*Limit of indent length for thread."
1232 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1233 "*A string displayed in summary when no from field exists."
1237 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1238 "*A string displayed in summary when no subject field exists."
1242 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1243 "*The body content of a cancel message."
1247 (defcustom wl-summary-width 80
1248 "*Set summary line width if non nil."
1249 :type '(choice (const :tag "Don't truncate" nil)
1254 (defcustom wl-summary-pick-field-default "Body"
1255 "*Default field for pick."
1256 :type '(radio (const "From")
1265 (string :tag "Other"))
1268 (defcustom wl-from-width 17
1269 "*From width in summary."
1274 (defcustom wl-subject-length-limit 35
1275 "*Subject width in summary."
1280 (defcustom wl-mime-charset (if wl-on-nemacs
1283 "*MIME Charset for summary and message."
1288 (defcustom wl-generate-mailer-string-func 'wl-generate-user-agent-string
1289 "A function to create X-Mailer field string ."
1293 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1294 (or hilit-background-mode 'dark)
1296 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1297 :type '(radio (const dark)
1299 :group 'wl-highlight)
1301 (defcustom wl-highlight-x-face-func nil
1302 "A function to display X-Face."
1304 :group 'wl-highlight)
1306 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1307 "Location of the qmail-inject program."
1308 :type '(string :tag "Program")
1311 (defcustom wl-qmail-inject-args nil
1312 "Arguments passed to qmail-inject programs.
1313 This should be a list of strings, one string for each argument.
1315 For e.g., if you wish to set the envelope sender address so that bounces
1316 go to the right place or to deal with listserv's usage of that address, you
1317 might set this variable to '(\"-f\" \"you@some.where\")."
1318 :type '(repeat (string :tag "Argument"))
1321 (defcustom wl-rejected-letter-start
1322 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1323 "Regexp specifying the beginning of the wrapper around a returned letter.
1324 This wrapper is generated by the mail system when rejecting a letter."
1328 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1329 "*All headers that match this regexp will be deleted when forwarding a message."
1333 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1334 "*All headers that match this regexp will be deleted when resending a message."
1338 (defcustom wl-refile-default-from-folder "+from"
1339 "*Folder name to refile by `wl-refile-guess-by-from'."
1340 :type '(string :tag "Folder")
1343 (defcustom wl-summary-auto-refile-skip-marks
1344 (list wl-summary-new-mark
1345 wl-summary-unread-uncached-mark
1346 wl-summary-unread-cached-mark)
1347 "Persistent marks to skip auto-refiling."
1348 :type '(repeat (string :tag "Mark"))
1351 (defcustom wl-summary-reserve-mark-list
1353 "If a message is already marked as temporal marks in this list,
1354 the message is not marked by any mark command."
1355 :type '(repeat (string :tag "Temp-Mark"))
1358 (defcustom wl-summary-skip-mark-list
1360 "If a message is already marked as temporal marks in this list,
1361 the message is skipped at cursor move."
1362 :type '(repeat (string :tag "Temp-Mark"))
1365 (defcustom wl-summary-incorporate-marks
1366 (list wl-summary-new-mark
1367 wl-summary-unread-uncached-mark)
1368 "Persistent marks to prefetch at `wl-summary-incorporate'."
1369 :type '(repeat (string :tag "Mark"))
1372 (defcustom wl-refile-rule-alist nil
1377 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1379 (\"^Wanderlust\" . \"+wl\")
1380 (\"^Elips\" . \"+elips\")))"
1381 :type '(repeat (list (string :tag "Field")
1383 (cons (regexp :tag "Value")
1384 (string :tag "Folder")))))
1387 (defcustom wl-strict-diff-folders nil
1388 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1389 :type '(choice (const :tag "Off" nil)
1390 (repeat (regexp :tag "Folder Regexp")))
1393 (defcustom wl-folder-use-server-diff t
1394 "Checked unread message number on IMAP4 server.
1395 Only IMAP4 folders have an effect."
1399 (defcustom wl-force-fetch-folders nil
1400 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1401 :type '(choice (const :tag "off" nil)
1402 (const :menu-tag "on" t)
1403 (repeat (regexp :tag "Folder Regexp")))
1406 (defcustom wl-auto-check-folder-name nil
1407 "*The folder specified by this variable will be automatically checked
1409 :type '(choice (string :tag "Folder")
1410 (repeat (string :tag "Folder"))
1414 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1415 "All folders that match this list won't be checked when group is
1416 automatically checked (or desktop is checked).
1417 This value is preceded by wl-auto-check-folder-list.
1418 Each elements are regexp of folder name."
1419 :type '(repeat (regexp :tag "Folder Regexp"))
1422 (defcustom wl-auto-check-folder-list nil
1423 "All folders that match this list are checked when group is
1424 automatically checked (or desktop is checked).
1425 This value precedes wl-auto-uncheck-folder-list.
1426 Each elements are regexp of folder name."
1427 :type '(repeat (regexp :tag "Folder Regexp"))
1430 (defcustom wl-show-plug-status-on-modeline t
1431 "If it is non-nil, show plugged status in modeline."
1433 :group 'wl-highlight)
1435 (defcustom wl-plug-state-indicator-on " [ON] "
1436 "String used to show plugged status ON."
1438 :group 'wl-highlight)
1440 (defcustom wl-plug-state-indicator-off " [--] "
1441 "String used to show plugged status OFF."
1443 :group 'wl-highlight)
1445 (defcustom wl-biff-check-folder-list nil
1446 "All folders that match this list are automatically checked
1447 every intervals specified by wl-biff-check-interval."
1448 :type '(repeat (regexp :tag "Folder Regexp"))
1449 :group 'wl-highlight)
1451 (defcustom wl-biff-check-interval 40
1452 "Number of seconds between updates of new mails in the mode line."
1454 :group 'wl-highlight)
1456 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
1457 (not (featurep 'mule)))
1459 (decode-coding-string
1461 (read "\"[\e$B\\\")\e(B]\"")
1465 "String used to show biff status ON."
1467 :group 'wl-highlight)
1469 (defcustom wl-biff-state-indicator-off "[
\e$B!>
\e(B]"
1470 "String used to show biff status OFF."
1472 :group 'wl-highlight)
1474 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1475 "Displaying order of items to be shown in modeline. The first item will
1476 be placed in the leftmost. The significant items are `biff' and `plug';
1477 otherwise, e.g. `title', corresponds to the things except for the biff
1478 staus nor the plugged status. The default order is '(biff plug title)
1479 even if the value of this option is set to nil. Here are some samples:
1481 ;; Plugged status first:
1482 \(setq wl-mode-line-display-priority-list '(plug))
1484 ;; Biff status, Title of Wanderlust, Plugged status:
1485 \(setq wl-mode-line-display-priority-list '(biff title plug))
1488 :type '(repeat (radio (const :format "%v " biff)
1489 (const :format "%v " plug)
1490 (sexp :tag "Other" :value title)))
1491 :group 'wl-highlight)
1493 (defcustom wl-interactive-send nil
1494 "*If non-nil, require your confirmation when sending draft message."
1498 (defcustom wl-interactive-exit t
1499 "*If non-nil, require your confirmation when exiting WL."
1503 (defcustom wl-summary-move-order 'unread
1504 "*The order of priority when move in summary mode.
1505 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1506 If this variable is `new', precede \"N\" mark."
1507 :type '(radio (const new)
1511 (defvar wl-summary-move-direction-downward t)
1513 (defcustom wl-summary-move-direction-toggle t
1514 "*If non-nil, search direction for the next message will be determined
1515 depends on previous search direction.
1516 It uses wl-summary-move-direction-downward as a direction flag."
1520 (defcustom wl-auto-select-first nil
1521 "*If non-nil, display selected first message when enter summary."
1525 (defcustom wl-auto-select-next nil
1526 "*If non-nil, offer to go to the next folder from the end of the previous.
1527 If the value is the symbol `unread', go to the next folder
1528 that no unread message exists. If the value is the symbol `skip-no-unread',
1529 skip the folder that no unread message exists.
1531 See also variable `wl-summary-next-no-unread-command'."
1532 :type '(radio (const :tag "off" nil)
1535 (const skip-no-unread))
1538 (defcustom wl-cache-prefetch-folder-type-list '(imap4 nntp)
1539 "*All folder types that match this list prefetch next message,
1540 and reserved buffer cache."
1541 :type '(set (const localdir)
1550 (defcustom wl-cache-prefetch-folder-list nil
1551 "*All folders that match this list prefetch next message,
1552 and reserved buffer cache.
1555 :type '(repeat (regexp :tag "Folder Regexp"))
1558 (defcustom wl-cache-prefetch-get-next-func 'wl-summary-default-get-next-msg
1559 "*A function to get message number when prefetch next message."
1564 ;(defvar wl-no-cache-folder-list '("^\\$.*")
1565 ; "All folders that match this list won't be cached when reading messages.
1566 ;Each elements are regexp of folder name.")
1568 (defcustom wl-summary-always-sticky-folder-list nil
1569 "All folders that match this list has sticky summary.
1570 Each elements are regexp of folder name."
1571 :type '(radio (const :tag "none" nil)
1572 (const :tag "all" t)
1573 (repeat (regexp :tag "Folder Regexp")))
1576 (defcustom wl-no-save-folder-list '("^/.*$")
1577 "All folders that match this list won't save its msgdb.
1578 Each elements are regexp of folder name."
1579 :type '(repeat (regexp :tag "Folder Regexp"))
1582 (defcustom wl-save-folder-list nil
1583 "All folders that match this list save its msgdb.
1584 Each elements are regexp of folder name."
1585 :type '(repeat (regexp :tag "Folder Regexp"))
1588 (defcustom wl-folder-mime-charset-alist
1589 '(("^-alt\\.chinese" . big5)
1590 ("^-relcom\\." . koi8-r)
1592 ("^-han\\." . euc-kr))
1593 "Charset alist. If no match, `wl-mime-charset' is used."
1594 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1598 (defcustom wl-folder-weekday-name-lang-alist
1599 '(("^-alt\\.chinese" . "en")
1600 ("^-relcom\\." . "en")
1602 ("^-han\\." . "en"))
1603 "Weekday name lang alist.
1604 If no match, `wl-summary-weekday-name-lang' is used.
1606 '((\"xemacs-beta$\" . \"en\")
1607 (\"^-fj\" . \"ja\"))"
1608 :type '(repeat (cons (regexp :tag "Folder Regexp")
1609 (choice (const "ja")
1613 (string :tag "Other"))))
1616 (defcustom wl-folder-thread-indent-set-alist
1617 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1618 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1619 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1620 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1621 "Thread indent set alist.
1622 If no match, following indent set is used.
1623 (wl-thread-indent-level
1624 wl-thread-have-younger-brother-str
1625 wl-thread-youngest-child-str
1626 wl-thread-vertical-str
1627 wl-thread-horizontal-str
1628 wl-thread-space-str)
1630 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1631 :type '(repeat (cons (regexp :tag "Folder Regexp")
1632 (group (integer :tag "Indent")
1633 (string :tag "Yonger Brother")
1634 (string :tag "Yonger Child")
1635 (string :tag "Vertical")
1636 (string :tag "Horizontal")
1637 (string :tag "Space"))))
1640 (defcustom wl-folder-sync-range-alist
1641 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1642 (regexp-quote wl-queue-folder) "$")
1644 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1645 :type '(repeat (cons (regexp :tag "Folder Regexp")
1646 (choice (const "update")
1652 (const :tag "none" nil))))
1655 (defcustom wl-default-sync-range "update"
1656 "*Default sync range."
1657 :type '(choice (const "update")
1663 (const :tag "none" nil))
1666 (defcustom wl-ask-range t
1667 "*If non-nil, ask for a range for summary synchronization.
1668 If nil, always use default."
1672 (defcustom wl-folder-move-cur-folder nil
1673 "*Non-nil, move to current folder on folder-mode when goto folder."
1677 (defcustom wl-folder-check-async (not wl-on-nemacs)
1678 "*Check the folder asynchronous."
1682 (defcustom wl-folder-notify-deleted nil
1683 "*Non-nil, display negative number on folder-mode when message is deleted
1684 in folder. If the value is 'sync, msgdb would be synchronized."
1685 :type '(choice (const :tag "off" nil)
1690 (defcustom wl-summary-exit-next-move t
1691 "*Non-nil, move to next-unsync or next-entity when exit summary."
1695 (defcustom wl-summary-next-no-unread-command
1696 '(wl-summary-read wl-summary-down wl-summary-up)
1697 "*Command list available when the value of `wl-auto-select-next' is 'unread
1698 or 'skip-no-unread."
1699 :type '(repeat function)
1702 (defcustom wl-summary-search-via-nntp 'confirm
1703 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1707 (defcustom wl-summary-keep-cursor-command
1708 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1709 "*Command list to keep cursor position when folder is changed to
1710 already existing summary."
1711 :type '(repeat function)
1714 (defcustom wl-summary-showto-folder-regexp nil
1715 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1716 Sender information in summary mode."
1717 :type '(choice (const :tag "none" nil)
1721 (defcustom wl-folder-removed-mark "#<removed>"
1722 "Mark for removed folder."
1726 (defcustom wl-folder-unsubscribe-mark "#"
1727 "Mark for unsubscribe folder."
1731 (defcustom wl-delete-folder-alist '(("^-" . remove))
1732 "*Alist of folder and delete policy.
1733 Each element is (folder-regexp . policy).
1735 The policy is one of the followings:
1737 'null : remove message.
1738 string : refile to the specified folder.
1740 otherwise : refile to the `wl-trash-folder'.
1742 '((\"^%\" . \"%#mh/trash\")
1744 (\"^\\\\+\" . trash))"
1745 :type '(repeat (cons (regexp :tag "Folder Regexp")
1746 (choice :tag "Policy"
1748 (const :tag "remove(null)" null)
1750 (const :tag "trash(other)" trash)
1751 (string :tag "Folder"))))
1754 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
1756 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
1757 POLICY is copy or move."
1758 :type '(repeat (cons (regexp :tag "Folder Regexp")
1759 (choice (const copy)
1764 (defcustom wl-folder-hierarchy-access-folders '("-" "-alt")
1765 "*Access group folders to make hierarchy structure."
1766 :type '(repeat (string :tag "Folder"))
1769 (defcustom wl-folder-init-load-access-folders nil
1770 "*Access group folders to load folder list on `wl-folder-init'.
1771 If this variable is non-nil,
1772 `wl-folder-init-no-load-access-folders' will be ignored."
1773 :type '(repeat (regexp :tag "Folder Regexp"))
1776 (defcustom wl-folder-init-no-load-access-folders nil
1777 "*Access group folders to not load folder list on `wl-folder-init'.
1778 If `wl-folder-init-load-access-folders' is non-nil,
1779 this variable will be ignored."
1780 :type '(repeat (regexp :tag "Folder Regexp"))
1783 (defcustom wl-folder-access-subscribe-alist nil
1784 "*Subscribe folders to fetching folder entries.
1785 Each element is (group-regexp (subscribe folder-regexp ...)).
1786 If subscribe is non-nil, subscribe when match folder-regexp.
1787 If subscribe is nil, unsubscribe when match folder-regexp.
1790 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
1791 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
1792 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
1793 :type '(repeat (cons (regexp :tag "Folder Regexp")
1794 (list (boolean :tag "Subscribed")
1796 (regexp :tag "Folder Regexp")))))
1799 ;;; For Folder Manager
1801 (defcustom wl-interactive-save-folders t
1802 "*Non-nil require your confirmation when save folders."
1806 (defcustom wl-fldmgr-make-backup t
1807 "*Non-nil make backup file when save folders."
1811 (defcustom wl-fldmgr-folders-indent "\t"
1812 "*Indent string for folders file."
1816 (defcustom wl-fldmgr-sort-func 'wl-fldmgr-sort-standard
1817 "*A function to sort folder."
1821 (defcustom wl-fldmgr-sort-group-first t
1822 "*Non-nil Group folder is first when sort."
1826 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
1827 "*If non-nil, completion for adding folder refers current folder list."
1831 (defcustom wl-fldmgr-make-filter-default "Body"
1832 "*Default filter key while making filter on Folder."
1833 :type '(radio (const "From")
1842 (string :tag "Other"))
1845 ;;; For Expire and Archive
1847 (defcustom wl-expire-alist nil
1848 "Alist to decide a policy for expire.
1849 Each element is (folder-regexp (number or date) policy).
1851 The policy is one of the followings:
1852 'remove : remove messsage.
1853 'trash : refile `wl-trash-folder'.
1854 string : refile string folder.
1855 function : call function.
1858 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
1859 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
1860 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
1861 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
1862 (\"^\\\\+misc$\" (date 14) trash))"
1863 :type '(repeat (choice (list :tag "No-match"
1864 (regexp :tag "Folder Regexp")
1867 (regexp :tag "Folder Regexp")
1868 (list (radio :value number
1873 (repeat :inline t integer)))
1874 (choice :tag "Policy"
1878 (string :tag "folder")
1881 :tag "Arg for function"
1885 (defcustom wl-archive-alist '((".*" wl-archive-number1))
1886 "Alist to decide a policy for archive.
1887 Each element is (folder-regexp policy(function)).
1890 '((\"\\\\+work$\" wl-archive-date)
1891 (\"\\\\+ml/\" wl-archive-number1)
1892 (\".*\" wl-archive-number2))"
1893 :type '(repeat (list (regexp :tag "Folder Regexp")
1896 (sexp :tag "Argument"))))
1899 (defcustom wl-summary-expire-reserve-marks
1900 (list wl-summary-important-mark
1902 wl-summary-unread-mark
1903 wl-summary-unread-uncached-mark
1904 wl-summary-unread-cached-mark)
1905 "Permanent marks of reserved message when expire.
1906 Don't reserve temporary mark message.
1909 'all : reserved all permanent marks.
1910 'none : not reserve permanent marks.
1911 list : reserved specified permanent marks."
1912 :type '(repeat (string :tag "Mark"))
1915 (defcustom wl-expire-number-with-reserve-marks nil
1916 "If non-nil, include reserve message when expire by number."
1920 (defcustom wl-expire-add-seen-list t
1921 "*If non-nil, add seen message list when refile message at expire."
1925 (defcustom wl-expire-use-log nil
1926 "*If non-nil, write a log when expired."
1930 (defcustom wl-expire-folder-update-msgdb t
1931 "*Non-nil update summary msgdb when expire on folder mode."
1935 ;; for wl-expire-archive-{number1|number2}
1936 (defcustom wl-expire-archive-files 100
1937 "*The number of one archive folder."
1941 ;; for wl-expire-archive-{number1|number2|date}
1942 (defcustom wl-expire-archive-get-folder-func
1943 'wl-expire-archive-get-folder
1944 "*A function to get archive folder name."
1948 (defcustom wl-expire-delete-oldmsg-confirm t
1949 "*If non-nil, require your confirmation when delete old message."
1953 ;; for wl-expire-archive-get-folder
1954 (defcustom wl-expire-archive-folder-type 'zip
1955 "*Archiver type of archive folder."
1956 :type '(radio (const zip)
1962 (symbol :tag "Other"))
1965 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
1966 "*A format string for archive folder name."
1970 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
1971 "*A regexp string for archive folder name."
1975 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
1976 ;; $folder-199812;zip
1977 "*A format string for archive date folder name."
1981 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
1982 "*A regexp string for archive date folder name."
1986 (defcustom wl-expire-archive-folder-prefix nil
1987 "*Prefix for archive folder."
1988 :type '(radio (const :tag "nothing" nil)
1989 (const :tag "full" t)
1995 ;; highilght about summary
1996 (defcustom wl-highlight-max-summary-lines 10000
1997 "*If the summary is larger than this lines, don't highlight it."
1999 :group 'wl-highlight)
2001 ;; highilght about draft and message
2002 (defcustom wl-highlight-body-too t
2003 "*In addition to header, highlight the body too. if non nil."
2005 :group 'wl-highlight)
2007 (defcustom wl-highlight-message-header-alist
2008 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2009 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2010 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2012 :type '(repeat (cons regexp face))
2013 :group 'wl-highlight)
2015 (defcustom wl-highlight-message-header-button-alist
2016 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):" "<[^>]+>"
2017 0 wl-message-button-refer-article 0)
2018 ("^[^:]+:" "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
2019 1 wl-message-button-refer-article 3)))
2020 "Alist of headers and regexps to match buttons in message headers."
2022 (list (regexp :tag "Header")
2024 (integer :tag "Button")
2025 (function :tag "Callback")
2028 (integer :tag "Regexp group"))))
2029 :group 'wl-highlight)
2031 (defcustom wl-highlight-citation-prefix-regexp
2032 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2033 "All lines that match this regexp will be highlighted with
2034 `wl-highlight-message-cited-text-*' face."
2036 :group 'wl-highlight)
2038 (defcustom wl-highlight-highlight-citation-too nil
2039 "*Whether the whole citation line should go in the
2040 `wl-highlight-citation-face' face.
2041 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2042 default face, and the remainder of the line is in the
2043 wl-highlight-message-cited-text face."
2045 :group 'wl-highlight)
2047 (defcustom wl-highlight-force-citation-header-regexp
2048 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2049 "*The pattern to match the prolog of a cited block.
2050 Text in the body of a message which matches this will be displayed in
2051 the `wl-highlight-message-headers' face."
2053 :group 'wl-highlight)
2055 (defcustom wl-highlight-citation-header-regexp
2056 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2057 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2058 "^.*\\(writes\\|wrote\\|said\\):\n")
2059 "*The pattern to match the prolog of a cited block.
2060 Text in the body of a message which matches this will be displayed in
2061 the `wl-highlight-message-headers' face."
2063 :group 'wl-highlight)
2065 (defcustom wl-highlight-max-header-size nil
2066 "*If the message header is larger than this many chars, don't highlight it.
2067 If this is nil, all headers will be highlighted."
2069 :group 'wl-highlight)
2071 (defcustom wl-highlight-max-message-size 10000
2072 "*If the message body is larger than this many chars, don't highlight it.
2073 This is to prevent us from wasting time trying to fontify things like
2074 uuencoded files and large digests. If this is nil, all messages will
2077 :group 'wl-highlight)
2079 ;; highilght about signature (of draft and message)
2080 (defcustom wl-highlight-signature-separator
2081 '("\n--+\n" "\n\n--+.*\n*\\'")
2082 "List of regexps matching signature separator.
2083 It will be verified from head to tail looking for a separator.
2084 Verification will be done from the end of the buffer.
2085 No need to specify \"^-- $\" in this list,
2086 because it is verified by default.
2087 This variable can also be a regex."
2088 :type '(repeat regexp)
2089 :group 'wl-highlight)
2091 (defcustom wl-max-signature-size 400
2092 "*If the signature is larger than this chars, don't treat it as a signature."
2094 :group 'wl-highlight)
2096 ;; highilght about mouse
2097 (defcustom wl-use-highlight-mouse-line (and window-system
2098 (>= emacs-major-version 19))
2099 "*Highlight mouse line, if non nil."
2101 :group 'wl-highlight)
2103 ;; highilght about folder
2104 (defcustom wl-highlight-folder-with-icon
2105 (or (and (featurep 'xemacs)
2108 "*Highlight folder with icon(XEmacs or Emacs 21)."
2110 :group 'wl-highlight)
2111 (defcustom wl-highlight-folder-by-numbers t
2112 "Highlight folder lines by numbers.
2113 If it is a number, only numbers will be highlighted."
2114 :type '(choice (const :tag "whole line" t)
2115 (const :tag "only numbers" 1)
2116 (const :tag "don't highlight" nil))
2117 :group 'wl-highlight)
2119 (defcustom wl-highlight-signature-search-func 'wl-highlight-signature-search
2120 "Function to search signature area in the message body."
2122 :group 'wl-highlight)
2124 (defcustom wl-use-dnd (and wl-on-xemacs
2125 (featurep 'dragdrop))
2126 "If Non-nil, support dragdrop feature in XEmacs."
2130 (defcustom wl-reset-plugged-alist t
2131 "*If non-nil, reset `elmo-plugged-alist' when startup."
2135 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2136 (module-installed-p 'image)
2137 (module-installed-p 'bitmap))
2139 "If it is T, show graphic logo in the startup screen. You can set it to
2140 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2141 :type '(radio (const :tag "Off" nil)
2142 (const :tag "On (any format)" t)
2145 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2148 ;;; Internal variables
2149 (defvar wl-init nil)
2151 ;; For disconnected operations.
2152 (defvar wl-plugged-hook nil)
2153 (defvar wl-unplugged-hook nil)
2154 (defvar wl-plugged t)
2156 ;; Internal variables used to modeline identifiers.
2157 (defvar wl-modeline-plug-status nil)
2158 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2159 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2160 (defvar wl-modeline-biff-status nil)
2161 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2162 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2164 ;; Advanced thread view.
2165 (defvar wl-thread-indent-level 1
2166 "*Indent level for thread.")
2167 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2168 "*A string for thread branch line. It should contain one character.")
2169 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2170 "*A string for thread branch line. It should contain one character.")
2171 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2172 "*A string for thread branch line. It should contain one character.")
2173 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2174 "*A string for thread branch line. It should contain one character.")
2175 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2176 "*A string for thread branch line. It should contain one character.")
2178 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2179 "* A regexp string for thread indent...for highlight.")
2181 ;; folder icons. filename relative to wl-icon-dir
2182 (defvar wl-opened-group-folder-icon "opened.xpm"
2183 "*Icon file for opened group folder.")
2184 (defvar wl-closed-group-folder-icon "closed.xpm"
2185 "*Icon file for closed group folder.")
2186 (defvar wl-nntp-folder-icon "news.xpm"
2187 "*Icon file for nntp folder.")
2188 (defvar wl-imap-folder-icon "imap.xpm"
2189 "*Icon file for imap folder.")
2190 (defvar wl-pop-folder-icon "pop.xpm"
2191 "*Icon file for pop folder.")
2192 (defvar wl-localdir-folder-icon "local.xpm"
2193 "*Icon file for localdir folder.")
2194 (defvar wl-localnews-folder-icon "localnews.xpm"
2195 "*Icon file for localnews folder.")
2196 (defvar wl-internal-folder-icon "internal.xpm"
2197 "*Icon file for internal folder.")
2198 (defvar wl-multi-folder-icon "multi.xpm"
2199 "*Icon file for multi folder.")
2200 (defvar wl-filter-folder-icon "filter.xpm"
2201 "*Icon file for filter folder.")
2202 (defvar wl-archive-folder-icon "archive.xpm"
2203 "*Icon file for archive folder.")
2204 (defvar wl-pipe-folder-icon "pipe.xpm"
2205 "*Icon file for pipe folder.")
2206 (defvar wl-maildir-folder-icon "maildir.xpm"
2207 "*Icon file for maildir folder.")
2208 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2209 "*Icon file for emptied trash folder.")
2210 (defvar wl-trash-folder-icon "trash.xpm"
2211 "*Icon file for trash folder.")
2212 (defvar wl-draft-folder-icon "draft.xpm"
2213 "*Icon file for draft folder.")
2214 (defvar wl-queue-folder-icon "queue.xpm"
2215 "*Icon file for queue folder.")
2216 (defvar wl-plugged-icon "plugged.xpm"
2217 "*Icon file for plugged state.")
2218 (defvar wl-unplugged-icon "unplugged.xpm"
2219 "*Icon file for unplugged state.")
2220 (defvar wl-biff-mail-icon "letter.xpm"
2221 "*Icon file for mail existed state.")
2222 (defvar wl-biff-nomail-icon "no-letter.xpm"
2223 "*Icon file for no mail existed state.")
2224 (defvar wl-prog-uudecode "uudecode"
2225 "*uudecode program name.")
2226 (defvar wl-prog-uudecode-arg nil
2227 "*Arguments for uudecode program.")
2228 (defvar wl-prog-uudecode-no-stdout-option t
2229 "*If non-nil, uudecode program don't have option for output to stdout.")
2231 ;; Obsolete variables. for compatibility.
2232 (defvar wl-address-filename wl-address-file)
2233 (make-obsolete-variable 'wl-address-filename 'wl-address-file)
2234 (defvar wl-score-default-file-name wl-score-default-file)
2235 (make-obsolete-variable 'wl-score-default-file-name 'wl-score-default-file)
2236 (defvar wl-draft-prepared-config-alist nil)
2237 (make-obsolete-variable 'wl-draft-prepared-config-alist 'wl-draft-config-alist)
2238 (defvar wl-score-files-directory wl-score-files-dir)
2239 (make-obsolete-variable 'wl-score-files-directory 'wl-score-files-dir)
2240 (defvar wl-summary-temp-above wl-summary-target-above)
2241 (make-obsolete-variable 'wl-summary-temp-above 'wl-summary-target-above)
2244 (defvar wl-plugged-plug-on "ON")
2245 (defvar wl-plugged-plug-off "--")
2246 (defvar wl-plugged-auto-off "**")
2247 (defvar wl-plugged-server-indent 2)
2248 (defvar wl-plugged-port-indent 4)
2249 (defvar wl-plugged-queue-status-column 25)
2252 (product-provide (provide 'wl-vars) (require 'wl-version))
2254 ;;; wl-vars.el ends here