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.
38 ;;; Customizable Variables
41 "Wanderlust, a news and mail reading software."
43 :link (` (custom-manual
44 (, (if (and (boundp 'current-language-environment)
45 (string-equal "Japanese"
46 (symbol-value 'current-language-environment)))
53 "Wanderlust, Preferences."
57 (defgroup wl-folder nil
58 "Wanderlust, folder buffer."
62 (defgroup wl-summary nil
63 "Wanderlust, summary buffer."
67 (defgroup wl-summary-marks nil
68 "Wanderlust, marks used in summary buffers."
72 (defgroup wl-expire nil
73 "Wanderlust, Expiring and archiving."
77 (defgroup wl-score nil
78 "Wanderlust, Score file handling."
82 (defgroup wl-highlight nil
83 "Wanderlust, Highlights."
87 (defgroup wl-draft nil
88 "Wanderlust, draft mode."
92 (defgroup wl-setting nil
93 "Wanderlust common settings."
98 (defconst wl-on-xemacs (featurep 'xemacs))
100 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
101 (>= emacs-major-version 21)))
103 (defconst wl-on-mule (featurep 'mule))
105 (defconst wl-on-mule3
106 (and wl-on-mule (or wl-on-xemacs
107 (> emacs-major-version 19))))
109 (defconst wl-on-nemacs nil) ; backward compatibility.
112 (defun-maybe locate-data-directory (a)))
115 (cond (wl-on-mule3 'binary)
116 (wl-on-mule '*noconv*)
119 (defvar wl-cs-autoconv
120 (cond (wl-on-mule3 'undecided)
121 (wl-on-mule '*autoconv*)
125 (cond (wl-on-mule3 'junet)
126 (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."
145 (defcustom wl-user-mail-address-list nil
146 "*A list of user's mail addresses.
147 This list is used to judge whether an address is user's or not.
148 You should set this variable if you use multiple e-mail addresses.
149 If you don't have multiple e-mail addresses, you don't have to set this."
150 :type '(repeat string)
154 (defcustom wl-organization (getenv "ORGANIZATION")
156 :type '(choice (const :tag "none" nil)
161 (defcustom wl-temporary-file-directory "~/tmp/"
162 "*Default temporary directory to save message, part."
166 (defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
167 (locate-data-directory "wl")
168 (let ((icons (expand-file-name "wl/icons/"
170 (if (file-directory-p icons)
172 "*Directory to load the icon files from, or nil if none."
173 :type '(choice (const :tag "none" nil)
177 (defvar wl-summary-mode-line-format-spec-alist
178 '((?f (if (memq 'modeline wl-use-folder-petname)
179 (wl-folder-get-petname (elmo-folder-name-internal
180 wl-summary-buffer-elmo-folder))
181 (elmo-folder-name-internal wl-summary-buffer-elmo-folder)))
182 (?t (if (eq wl-summary-buffer-view 'thread) "T" "S"))
183 (?n wl-summary-buffer-new-count)
184 (?u (+ wl-summary-buffer-new-count
185 wl-summary-buffer-unread-count))
186 (?a (length wl-summary-buffer-number-list)))
187 "An alist of format specifications that can appear in summary mode-lines.
188 Each element is a list of following:
190 SPEC is a character for format specification.
191 STRING-EXP is an expression to get string to insert.")
193 (defcustom wl-summary-mode-line-format "Wanderlust: %f {%t}(%n/%u/%a)"
194 "*A format string for summary mode-line of Wanderlust.
195 It may include any of the following format specifications
196 which are replaced by the given information:
199 %t The thread status of the summary ('T' for thread, 'S' for sequential).
200 %n The number of new messages.
201 %u The number of unread messages (includes new messages).
202 %a The number of all messages."
206 (defvar wl-summary-line-format-spec-alist
207 '((?Y (wl-summary-line-year))
208 (?M (wl-summary-line-month))
209 (?D (wl-summary-line-day))
210 (?W (wl-summary-line-day-of-week))
211 (?h (wl-summary-line-hour))
212 (?m (wl-summary-line-minute))
213 (?\[ (if wl-thr-linked "<" "["))
214 (?\] (if wl-thr-linked ">" "]"))
215 (?t (or wl-thr-indent-string ""))
216 (?s (wl-summary-line-subject))
217 (?S (wl-summary-line-size))
218 (?C (if wl-thr-children-number
219 (concat "[+" (number-to-string wl-thr-children-number) "] ")
220 (if wl-parent-message-entity
221 (if wl-thr-linked ">>" ">")
223 (?~ (if (zerop (length wl-line-string)) "" " "))
224 (?c (if wl-thr-children-number
225 (concat "+" (number-to-string wl-thr-children-number) ":")
227 (?f (wl-summary-line-from))
228 (?# (wl-summary-line-list-info))
229 (?l (wl-summary-line-list-count))
230 (?T (or wl-temp-mark " "))
231 (?P (or wl-persistent-mark " "))
232 (?n (wl-summary-line-number))
233 (?@ (wl-summary-line-attached)))
234 "An alist of format specifications that can appear in summary lines.
235 Each element is a list of following:
237 SPEC is a character for format specification.
238 STRING-EXP is an expression to get string to insert.")
240 (defcustom wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s"
241 "*A default format string for summary line of Wanderlust.
242 It may include any of the following format specifications
243 which are replaced by the given information:
245 %n The number of the message.
246 The width is decided using `wl-summary-default-number-column' and
247 `wl-summary-number-column-alist'.
248 %T The temporal mark (*, D, o, O).
249 %P The persistent mark (status of the message).
250 %Y The year of the date field of the message (zero padded).
251 %M The month of the date field of the message (zero padded).
252 %D The day of the date field of the message (zero padded).
253 %W The weekday name of the date field of the message (zero padded).
254 %h The hour of the date field of the message (zero padded).
255 %m The minute of the date field of the message (zero padded).
256 %[ An open bracket. If the message thread is linked,
257 it is replaced with '<'.
258 %] A close bracket. If the message thread is linked,
259 it is replaced with '>'.
260 %c The children number of the closed message thread.
261 Children number is printed like '+??:'.
262 %C The children number of the closed message thread.
263 Children number is printed like '[+??] '.
264 If the message is opened, '>' or '>>' (linked) is displayed.
265 %f The from: field string of the message.
266 %s The subject: field string of the message.
267 %S The size of the message (if available).
268 %~ If the previous spec is not zero-length, replaced with ' '.
270 If the format string contains the specifiers %( and %), the text between
271 them will have the specified number of columns."
275 (defcustom wl-folder-summary-line-format-alist nil
276 "An alist of folder name and a summary line format.
277 If no match, `wl-summary-line-format' is used.
279 '((\"^%\" . \"%n%T%P%M/%D(%W)%h:%m %t%[%14(%c %f%) %](%S) %s\")
280 (\"^@2ch\" . \"%n%T%P%M%/%D/%h:%m %t[%9(%c %f%) ]%s\")))"
281 :type '(repeat (cons (regexp :tag "Folder Regexp")
282 (string :tag "line format")))
285 (defcustom wl-summary-check-line-format t
286 "*Check summary line format change if non-nil.
287 When summary line format is changed, current summary cache is discarded.
288 It is highly recommended to set this value to t."
292 (defcustom wl-summary-line-format-file ".wl-summary-line-format"
293 "*Cache file for summary line format."
297 (defcustom wl-summary-from-function 'wl-summary-default-from
298 "*A function for displaying sender (From: field) information."
302 (defcustom wl-summary-subject-function 'wl-summary-default-subject
303 "*A function for displaying subject."
307 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
308 "*A filter function for comparing subjects."
312 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
313 "*If message does not have in-reply-to field nor references field and
314 subject matches this regexp, search parent message by subject matching."
319 (defcustom wl-default-folder "%inbox"
320 "*Default folder used in `wl-summary-goto-folder'."
323 (defcustom wl-draft-folder "+draft"
327 (defcustom wl-trash-folder "+trash"
332 (defcustom wl-queue-folder "+queue"
337 (defcustom wl-default-spec "%"
342 (defcustom wl-insert-mail-followup-to nil
343 "*Insert Mail-Followup-To: field if non-nil."
347 (defcustom wl-insert-mail-reply-to nil
348 "*Insert Mail-Reply-To: field if non-nil."
352 (defcustom wl-insert-message-id t
353 "*Insert Message-ID: field if non-nil."
357 (defcustom wl-auto-insert-x-face t
358 "*Insert X-Face: field automatically."
362 (defcustom wl-x-face-file "~/.xface"
363 "*X-Face field is inserted using its contents.
364 If file exists and `wl-auto-insert-x-face' is non-nil."
368 (defcustom wl-subscribed-mailing-list nil
369 "*Subscribed mailing list.
370 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
371 :type '(repeat string)
376 "*Display demo at start time."
380 (defcustom wl-envelope-from nil
381 "*Envelope From used in SMTP.
382 If nil, `wl-from' is used."
383 :type '(choice (const :tag "Same as 'From' field." nil)
388 (defcustom wl-draft-additional-header-alist nil
389 "*Additional headers in the draft."
390 :type '(repeat (cons (symbol :tag "Field Name")
391 (choice (string :tag "String")
392 (function :tag "Function")))))
394 (defcustom wl-draft-add-in-reply-to t
395 "*If non-nil, message-id of the cited message is inserted to the
396 in-reply-to field of the current draft."
400 (defcustom wl-draft-add-references nil
401 "*If non-nil, message-id of the cited message is inserted to the
402 references field of the current draft."
406 (defcustom wl-draft-cite-function 'wl-default-draft-cite
407 "*A function for citation."
411 (defcustom wl-default-draft-cite-decorate-author t
412 "*If non-nil, the author of cited message is arranged by
413 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
417 (defcustom wl-smtp-connection-type nil
418 "*SMTP connection type.
419 If nil, default smtp connection type is used."
420 :type '(choice (const :tag "default" nil)
421 (const :tag "Use STARTTLS" starttls)
425 (defcustom wl-smtp-posting-user nil
426 "*SMTP authentication user."
427 :type '(choice (const :tag "none" nil)
432 (defcustom wl-smtp-posting-server nil
433 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
434 :type '(choice (const :tag "none" nil)
439 (defcustom wl-smtp-posting-port nil
440 "*SMTP port number in `wl-smtp-posting-server'.
441 If nil, default SMTP port number(25) is used."
442 :type '(choice (const :tag "Default (25)" nil)
447 (defcustom wl-smtp-authenticate-type nil
448 "*SMTP Authentication type.
449 If nil, don't authenticate."
450 :type '(choice (const :tag "none" nil)
451 (const :tag "PLAIN" "plain")
452 (const :tag "CRAM-MD5" "cram-md5")
453 (const :tag "LOGIN" "login")
454 (string :tag "Other"))
458 (defcustom wl-pop-before-smtp-user nil
459 "*POP3 user name to send mail using POP-before-SMTP.
460 If nil, `elmo-pop3-default-user' is used.
461 To use POP-before-SMTP,
462 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp\)"
463 :type '(choice (const :tag "none" nil)
468 (defcustom wl-pop-before-smtp-server nil
469 "*POP3 server for POP-before-SMTP.
470 If nil, `elmo-pop3-default-server' is used."
471 :type '(choice (const :tag "none" nil)
476 (defcustom wl-pop-before-smtp-port nil
477 "*POP3 port for POP-before-SMTP.
478 If nil, `elmo-pop3-default-port' is used."
479 :type '(choice (const :tag "none" nil)
484 (defcustom wl-pop-before-smtp-stream-type nil
485 "*Stream type for POP-before-SMTP.
486 If nil, `elmo-pop3-default-stream-type' is used."
490 (defcustom wl-pop-before-smtp-authenticate-type nil
491 "*Default Authentication type for POP-before-SMTP.
492 If nil, `elmo-pop3-default-authenticate-type' is used."
493 :type '(choice (const :tag "none" nil)
494 (const :tag "APOP" 'apop)
495 (const :tag "POP3" 'user))
499 (defcustom wl-nntp-posting-server nil
500 "*NNTP server name to post news.
501 If nil, `elmo-nntp-default-server' is used."
502 :type '(choice (const :tag "none" nil)
506 (defcustom wl-nntp-posting-user nil
507 "*NNTP user name to post news for authinfo.
508 If nil, `elmo-nntp-default-user' is used.
509 If nil, don't authenticate."
510 :type '(choice (const :tag "none" nil)
514 (defcustom wl-nntp-posting-port nil
515 "*NNTP port to post news.
516 If nil, `elmo-nntp-default-port' is used."
517 :type '(choice (const :tag "none" nil)
521 (defcustom wl-nntp-posting-stream-type nil
522 "*Stream type for posting Netnews.
523 If nil, `elmo-nntp-default-stream-type' is used."
526 (defcustom wl-nntp-posting-function 'elmo-nntp-post
527 "A function to post news.
528 Prepared candidate is 'elmo-nntp-post."
529 :type '(radio (function-item elmo-nntp-post)
530 (function :tag "Other"))
532 (defcustom wl-nntp-posting-config-alist nil
533 "*Alist of configuration on nntp posting.
535 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
537 ((server . \"news.media.kyoto-u.ac.jp\")
538 (user . \"newsmaster\")
540 (function . elmo-nntp-post))
541 (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
542 :type '(repeat (cons (sexp :tag "Match")
543 (choice (string :tag "Server")
545 (cons (choice (const server)
550 (sexp :tag "Value"))))))
554 (defcustom wl-prefetch-confirm t
555 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
559 (defcustom wl-prefetch-threshold 30000
560 "*Maximum size of message prefetched without confirmation.
561 If nil, all messages prefetched regardless of its size.
562 If message size is larger than this value, confirm prefetching
563 when `wl-prefetch-confirm' is non-nil."
564 :type '(choice (integer :tag "Threshold (bytes)")
565 (const :tag "No limitation" nil))
569 (defcustom wl-thread-insert-opened nil
570 "*Non-nil forces to insert thread as opened in updating."
575 (defcustom wl-thread-open-reading-thread t
576 "*Non-nil forces to open reading thread."
581 (defvar wl-folder-mode-hook nil
582 "A hook called when wanderlust folder mode is started.
583 This hook may contain the functions `wl-folder-init-icons' and
584 `wl-setup-folder' for reasons of system internal to accord facilities
585 for the Emacs variants.")
586 (defvar wl-summary-toggle-disp-on-hook nil
587 "A hook called when message is toggled.")
588 (defvar wl-summary-toggle-disp-off-hook nil
589 "A hook called when message is disappeared.")
590 (defvar wl-summary-toggle-disp-folder-on-hook nil
591 "A hook called when folder is toggled.")
592 (defvar wl-summary-toggle-disp-folder-off-hook nil
593 "A hook called when folder is disappeared.")
594 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
595 "A hook called when message window is resumed when folder is toggled.")
596 (defvar wl-summary-mode-hook nil
597 "A hook called when summary mode is started.
598 This hook may contain the function `wl-setup-summary' for reasons of
599 system internal to accord facilities for the Emacs variants.")
601 (defvar wl-summary-prepared-pre-hook nil
602 "A hook called before the summary buffer has been generated.")
603 (defvar wl-summary-prepared-hook nil
604 "A hook called after the summary buffer has been generated.")
605 (defvar wl-summary-sync-updated-hook nil
606 "A hook called when update summary buffer.")
607 (defvar wl-summary-unread-message-hook nil
608 "A hook called when unread message is displayed.")
609 (defvar wl-summary-edit-addresses-hook nil
610 "A hook called when address book is edited.")
611 (defvar wl-summary-buffer-message-saved-hook nil
612 "A hook called when msgdb is saved.")
613 (defvar wl-summary-buffer-mark-saved-hook nil
614 "A hook called when mark is saved.")
615 (defvar wl-summary-divide-thread-when-subject-changed nil
616 "Divide thread when subject is changed.")
617 (defvar wl-init-hook nil
618 "A hook called when initialization is finished. This hook may contain
619 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
620 reasons of system internal to accord facilities for the Emacs variants.")
622 "A hook called when Wanderlust is invoked.")
623 (defvar wl-reply-hook nil
624 "A hook called when replied.")
625 (defvar wl-mail-setup-hook nil
626 "A hook called when Draft is prepared.")
627 (defvar wl-draft-reedit-hook nil
628 "A hook called when Draft is re-edited.")
629 (defvar wl-draft-send-hook '(wl-draft-config-exec)
630 "A hook called on the draft editing buffer before sending process starts.")
631 (defvar wl-mail-send-pre-hook nil
632 "A hook called just before the mail sending process starts.")
633 (defvar wl-news-send-pre-hook nil
634 "A hook called just before the news sending process starts.")
635 (defvar wl-message-buffer-created-hook nil
636 "A hook called when Message buffer is prepared.")
637 (defvar wl-message-redisplay-hook nil
638 "A hook called when Message is displayed.")
639 (defvar wl-message-exit-hook nil
640 "A hook called when quit message.")
641 (defvar wl-summary-exit-pre-hook nil
642 "A hook called before exit summary mode.")
643 (defvar wl-summary-exit-hook nil
644 "A hook called when exit summary mode.")
645 (defvar wl-highlight-headers-hook nil
646 "A hook called when header is highlighted.")
647 (defvar wl-highlight-message-hook nil
648 "A hook called when message is highlighted.")
649 (defvar wl-save-hook nil
650 "A hook called when save summary and folder status.")
651 (defvar wl-exit-hook nil
652 "A hook called when exit wanderlust.")
653 (defvar wl-folder-suspend-hook nil
654 "A hook called when suspend wanderlust.")
655 (defvar wl-biff-notify-hook '(ding)
656 "A hook called when a biff-notification is invoked.")
657 (defvar wl-biff-unnotify-hook nil
658 "A hook called when a biff-notification is removed.")
659 (defvar wl-auto-check-folder-pre-hook nil
660 "A hook called before auto check folders.")
661 (defvar wl-auto-check-folder-hook nil
662 "A hook called when auto check folders.")
663 (defvar wl-folder-check-entity-pre-hook nil
664 "A hook called before check entity.")
665 (defvar wl-folder-check-entity-hook nil
666 "A hook called when check entity.")
667 (defvar wl-draft-config-exec-hook nil
668 "A hook called when execute header-config on draft.")
669 (defvar wl-summary-expire-pre-hook nil
670 "A hook called before expire.")
671 (defvar wl-summary-expire-hook nil
672 "A hook called when expired.")
673 (defvar wl-summary-archive-pre-hook nil
674 "A hook called before archive.")
675 (defvar wl-summary-archive-hook nil
676 "A hook called when archived.")
677 (defvar wl-summary-line-inserted-hook nil
678 "A hook called when summary line is inserted.")
679 (defvar wl-summary-insert-headers-hook nil
680 "A hook called when insert header for search header.")
681 (defvar wl-message-display-internal-hook nil
682 "A hook called when message buffer is created and message is displayed.
683 This hook may contain the functions `wl-setup-message' for
684 reasons of system internal to accord facilities for the Emacs variants.")
685 (defvar wl-thread-update-children-number-hook nil
686 "A hook called when children number is updated.")
687 (defvar wl-folder-update-access-group-hook nil
688 "A hook called when update access group folder.")
689 (defvar wl-draft-cited-hook nil
690 "A hook called after a message is cited.")
691 (defvar wl-draft-insert-x-face-field-hook nil
692 "A hook called after a x-face field is inserted.")
693 (defvar wl-template-mode-hook nil
694 "A hook called when template mode is started.")
695 (defvar wl-score-mode-hook nil
696 "A hook called when score mode is started.")
697 (defvar wl-make-plugged-hook nil
698 "A hook called when make plugged alist.")
700 (defvar wl-plugged-exit-hook nil
701 "A hook called when exit plugged mode.")
703 ;;;; functions for draft
704 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
705 "A function to send message."
709 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
710 "A function to send news."
714 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
715 "A function to send mail.
716 Prepared candidates are 'wl-draft-send-mail-with-smtp,
717 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
718 :type '(radio (function-item wl-draft-send-mail-with-smtp)
719 (function-item wl-draft-send-mail-with-qmail)
720 (function-item wl-draft-send-mail-with-pop-before-smtp)
721 (function :tag "Other"))
724 (defcustom wl-draft-reply-with-argument-list
725 '(("Reply-To" . (("Reply-To") nil nil))
726 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
727 ("From" . (("From") nil nil)))
728 "Alist of cons cell of
729 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
730 'field-name' is a string.
731 'fields for ***' is a list of strings.
732 If car of each cons cell exists in original message,
733 cdr of each cons cell is used for draft message.
734 Default is for 'reply-to-author'."
735 :type '(repeat (cons (choice (string :tag "Field Name")
736 (repeat (string :tag "Field Name")))
737 (list (repeat :tag "Fields For To" string)
738 (repeat :tag "Fields For Cc" string)
739 (repeat :tag "Fields For Newsgroups" string))))
742 (defcustom wl-draft-reply-without-argument-list
743 '(("Followup-To" . (nil nil ("Followup-To")))
744 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
745 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
746 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
747 "Alist of cons cell of
748 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
749 'field-name' is a string.
750 'fields for ***' is a list of strings.
751 If car of each cons cell exists in original message,
752 cdr of each cons cell is used for draft message.
753 Default is for 'reply-to-all'."
754 :type '(repeat (cons (choice (string :tag "Field Name")
755 (repeat (string :tag "Field Name")))
756 (list (repeat :tag "Fields For To" string)
757 (repeat :tag "Fields For Cc" string)
758 (repeat :tag "Fields For Newsgroups" string))))
761 (defcustom wl-draft-reply-myself-with-argument-list
762 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
763 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
764 ("From" . (("To") ("Cc") nil)))
765 "Alist of cons cell of
766 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
767 'field-name' is a string.
768 'fields for ***' is a list of strings.
769 If car of each cons cell exists in original message,
770 cdr of each cons cell is used for draft message.
771 Default is for 'reply-to-me'."
772 :type '(repeat (cons (choice (string :tag "Field Name")
773 (repeat (string :tag "Field Name")))
774 (list (repeat :tag "Fields For To" string)
775 (repeat :tag "Fields For Cc" string)
776 (repeat :tag "Fields For Newsgroups" string))))
779 (defcustom wl-draft-reply-myself-without-argument-list
780 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
781 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
782 ("From" . (("To") ("Cc") nil)))
783 "Alist of cons cell of
784 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
785 'field-name' is a string.
786 'fields for ***' is a list of strings.
787 If car of each cons cell exists in original message,
788 cdr of each cons cell is used for draft message.
789 Default is for 'followup-to-me'."
790 :type '(repeat (cons (choice (string :tag "Field Name")
791 (repeat (string :tag "Field Name")))
792 (list (repeat :tag "Fields For To" string)
793 (repeat :tag "Fields For Cc" string)
794 (repeat :tag "Fields For Newsgroups" string))))
797 (defcustom wl-draft-always-delete-myself nil
798 "*Always delete myself from reciepient if non-nil."
802 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
803 "*Do not insert bcc or fcc if To and Cc fields is a member of
804 `wl-subscribed-mailing-list'"
808 (defcustom wl-draft-resume-folder-window t
809 "*Resume folder window in `wl-draft-hide'."
813 (defcustom wl-draft-use-frame nil
814 "*Raise new frame when composing draft."
818 (defcustom wl-draft-qmail-send-plugged nil
819 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
823 (defcustom wl-draft-remove-group-list-contents t
824 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
829 (defcustom wl-init-file "~/.wl"
830 "*User customization setting file."
834 (defcustom wl-folders-file "~/.folders"
839 (defcustom wl-address-file "~/.addresses"
844 (defcustom wl-alias-file "~/.im/Aliases"
845 "*Alias file for completion."
849 (defcustom wl-ldap-server "localhost"
851 :type '(string :tag "Server")
855 (defcustom wl-ldap-port nil
857 :type '(choice (const :tag "Default port" nil)
862 (defcustom wl-ldap-base "c=US"
864 :type '(string :tag "Base")
868 (defcustom wl-ldap-objectclass "person"
874 (defcustom wl-use-ldap nil
875 "*If non-nil, use LDAP for address completion."
880 (defcustom wl-use-acap nil
881 "*If non-nil, use ACAP for configuration."
885 (defcustom wl-folder-info-save t
886 "If non-nil, save elmo-folder-info-alist."
890 (defcustom wl-summary-unread-mark "!"
891 "Mark for unread message."
892 :type '(string :tag "Mark")
893 :group 'wl-summary-marks)
894 (defcustom wl-summary-important-mark "$"
895 "Mark for important message."
896 :type '(string :tag "Mark")
897 :group 'wl-summary-marks)
898 (defcustom wl-summary-new-mark "N"
899 "Mark for new message."
900 :type '(string :tag "Mark")
901 :group 'wl-summary-marks)
902 (defcustom wl-summary-unread-uncached-mark "U"
903 "Mark for unread and uncached message."
904 :type '(string :tag "Mark")
905 :group 'wl-summary-marks)
906 (defcustom wl-summary-unread-cached-mark "!"
907 "Mark for unread but already cached message."
908 :type '(string :tag "Mark")
909 :group 'wl-summary-marks)
910 (defcustom wl-summary-read-uncached-mark "u"
911 "Mark for read but uncached message."
912 :type '(string :tag "Mark")
913 :group 'wl-summary-marks)
914 (defcustom wl-summary-score-over-mark "+"
915 "Score mark used for messages with high scores."
916 :type '(string :tag "Mark")
917 :group 'wl-summary-marks)
918 (defcustom wl-summary-score-below-mark "-"
919 "Score mark used for messages with low scores."
920 :type '(string :tag "Mark")
921 :group 'wl-summary-marks)
923 (defcustom wl-summary-no-mime-folder-list nil
924 "*All folders that match this list don't analysis mime."
925 :type '(repeat string)
928 (defcustom wl-summary-fix-timezone nil
929 "*Time zone of the date string in summary mode.
930 If nil, it is adjust to the default time zone information
931 \(system's default time zone or environment variable TZ\)."
932 :type '(choice (const :tag "Default time zone" nil)
936 (defcustom wl-summary-default-score 0
937 "*Default message score level.
938 All scores generated by the score files will be added to this score.
939 If this variable is nil, scoring will be disabled."
940 :type '(choice (const :tag "disable" nil)
944 (defcustom wl-summary-important-above nil
945 "*Mark all messages with a score above this variable as important.
946 This variable is local to the summary buffers."
947 :type '(choice (const :tag "off" nil)
951 (defcustom wl-summary-target-above nil
952 "*Mark all messages with a score above this variable as target.
953 This variable is local to the summary buffers."
954 :type '(choice (const :tag "off" nil)
958 (defcustom wl-summary-mark-below 0
959 "*Mark all messages with a score below this variable as read.
960 This variable is local to each summary buffer and usually set by the
965 (defcustom wl-summary-expunge-below nil
966 "All messages that have a score less than this variable will be expunged.
967 This variable is local to the summary buffers."
968 :type '(choice (const :tag "off" nil)
972 (defcustom wl-summary-score-marks
973 (list wl-summary-new-mark)
974 "Persistent marks to scoring."
975 :type '(repeat (string :tag "Mark"))
978 (defcustom wl-use-scoring t
979 "*If non-nil, enable scoring."
983 (defcustom wl-summary-rescore-partial-threshold 200
984 "*Summary is not scored entirely if there are messages more than this value.
985 In sync-all or rescan."
989 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
990 "*Name of the directory where score files will be stored.
991 (default \"~/.elmo\")."
995 (defcustom wl-score-interactive-default-score 1000
996 "*Scoring commands will raise/lower the score with this number as the default."
1000 (defcustom wl-score-expiry-days 7
1001 "*Number of days before unused score file entries are expired.
1002 If this variable is nil, no score file entries will be expired."
1003 :type '(choice (const :tag "never" nil)
1007 (defcustom wl-score-update-entry-dates t
1008 "*In non-nil, update matching score entry dates.
1009 If this variable is nil, then score entries that provide matches
1010 will be expired along with non-matching score entries."
1014 (defcustom wl-score-folder-alist nil
1015 "*Alist of folder regexp and score file."
1016 :type '(repeat (list (regexp :tag "Folder Regexp")
1019 (symbol :tag "Variable")))))
1022 (defcustom wl-score-folder-alist-matchone t
1023 "*If non-nil, getting only one element of `wl-score-folder-alist'."
1027 (defcustom wl-score-default-file "all.SCORE"
1028 "*Default score file name."
1032 (defcustom wl-score-simplify-fuzzy-regexp
1033 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1034 "*Strings to be removed when doing fuzzy matches.
1035 This can either be a regular expression or list of regular expressions."
1036 :type '(repeat regexp)
1039 (defcustom wl-score-header-default-entry
1040 '(("number" -1000 perm =)
1041 ("subject" -1000 nil nil)
1042 ("from" -1000 perm s)
1043 ("message-id" -1000 temp e)
1044 ("references" -1000 perm e)
1047 ("date" -1000 temp nil)
1048 ("xref" -1000 perm s)
1049 ("extra" -1000 perm s)
1050 ("chars" -1000 perm >)
1051 ("lines" -1000 perm >)
1052 ("followup" -1000 perm s)
1053 ("thread" -1000 temp s))
1054 "*Default entry when insert score entry."
1055 :type '(repeat (list (string :tag "Header")
1056 (choice (integer :tag "Score")
1057 (const :tag "Ask" nil))
1058 (choice (const :tag "Permanent" perm)
1059 (const :tag "Temporary" temp)
1060 (const :tag "Ask" nil))
1061 (choice (const :tag "Regexp string" r)
1062 (const :tag "Substring" s)
1063 (const :tag "fuzzy string" f)
1064 (const :tag "Exact string" e)
1065 (const :tag "REGEXP STRING" R)
1066 (const :tag "SUBSTRING" S)
1067 (const :tag "FUZZY STRING" F)
1068 (const :tag "EXACT STRING" E)
1069 (const :tag "less than" <)
1070 (const :tag "less equal" <=)
1071 (const :tag "greater than" >)
1072 (const :tag "greater equal" >=)
1073 (const :tag "equal" =)
1074 (const :tag "Ask" nil))))
1077 (defcustom wl-score-mode-mime-charset 'x-ctext
1078 "*MIME Charset for score file."
1082 (defcustom wl-draft-fields
1083 '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1084 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1085 "Fields used in draft mode."
1086 :type '(repeat (string :tag "Field"))
1090 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1091 "Field name for MIME-encapsulated Bcc."
1092 :type '(string :tag "Field Name")
1095 (defcustom wl-draft-mime-bcc-body nil
1096 "Body string for MIME-encapsulated Bcc.
1097 If nil, a string `This is a blind carbon copy.' is used."
1098 :type '(string :tag "Body")
1101 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1102 "Disable Bcc while MIME-encapsulated Bcc."
1106 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1107 "Disable Fcc while MIME-encapsulated Bcc."
1111 (defcustom wl-draft-config-alist nil
1112 "Alist of configuration field on draft.
1114 '((\"^To: .*wl@lists.airs.net\"
1115 (\"From\" . wl-from2)
1116 (\"Organization\" . wl-organization2))
1117 (\"^To: .*hogehoge@\"
1118 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
1119 wl-my-draft-config-func-hoge))"
1120 :type '(repeat (list (sexp :tag "Match")
1123 (choice (cons (sexp :tag "Field(Variable)")
1124 (sexp :tag "Value"))
1125 (sexp :tag "Function")))))
1129 (defcustom wl-draft-config-matchone nil
1130 "*If non-nil, applied only one element of `wl-draft-config-alist'."
1135 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1136 "*The string which is inserted for elided text."
1140 (defcustom wl-template-alist nil
1141 "Alist of template."
1142 :type '(repeat (list (string :tag "Name")
1145 (choice (cons (sexp :tag "Field(Variable)")
1146 (sexp :tag "Value"))
1147 (sexp :tag "Function")))))
1151 (defcustom wl-template-visible-select t
1152 "*If non-nil, select template with visible."
1156 (defcustom wl-template-confirm nil
1157 "*If non-nil, require your confirmation when selected template."
1161 (defcustom wl-template-buffer-lines 7
1162 "*Lines of template buffer."
1167 (defcustom wl-draft-enable-queuing t
1168 "*Non-nil enables queued sending."
1173 (defcustom wl-draft-force-queuing nil
1174 "*Non-nil forces queued sending for mail and news."
1179 (defcustom wl-draft-force-queuing-mail nil
1180 "*Non-nil forces queued sending for mail."
1185 (defcustom wl-draft-force-queuing-news nil
1186 "*Non-nil forces queued sending for news."
1191 (defcustom wl-draft-use-cache nil
1192 "*If non-nil, sending message is cached."
1197 (defcustom wl-auto-flush-queue t
1198 "*If non-nil, sending queue is flushed when network status is toggled."
1203 (defcustom wl-draft-reply-buffer-style 'split
1205 :type '(radio (const split)
1209 (defcustom wl-draft-queue-save-variables
1210 '(wl-envelope-from wl-from
1211 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1212 wl-smtp-authenticate-type wl-smtp-connection-type
1213 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1214 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1215 wl-nntp-posting-server wl-nntp-posting-server
1216 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1217 "*Saving variables in queue info."
1218 :type '(repeat (sexp :tag "Variable"))
1221 (defcustom wl-draft-sendlog t
1222 "*Keep send state in log if non-nil."
1226 (defcustom wl-draft-sendlog-max-size 20000
1227 "*Max file size of sendlog."
1231 (defcustom wl-summary-default-number-column 5
1232 "Number of columns in summary buffer."
1236 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1237 "Alist of folder and its number column.
1238 If no matches, 'wl-summary-default-number-column' is used.
1240 '((\"^%inbox@qmail-maildir\" . 9)
1241 (\"^-.*@news-server\" . 6))"
1242 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1245 (defcustom wl-summary-highlight t
1246 "Non-nil forces Summary buffer to be highlighted."
1249 :group 'wl-highlight)
1251 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1252 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1255 :group 'wl-highlight)
1257 (defcustom wl-summary-highlight-partial-threshold 1000
1258 "Summary is not highlighted entirely if there are lines more than this value.
1259 Available if only `wl-summary-lazy-highlight' is nil."
1262 :group 'wl-highlight)
1264 (defcustom wl-summary-partial-highlight-above-lines 30
1265 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1266 Summary lines are highlighted partialy above current position.
1267 Available if only `wl-summary-lazy-highlight' is nil."
1270 :group 'wl-highlight)
1272 (defcustom wl-summary-cache-use t
1273 "Non-nil forces wl-summary to use cache file."
1277 (defcustom wl-summary-auto-sync-marks t
1278 "Non-nil forces to synchronize unread/important marks."
1282 (defcustom wl-summary-cache-file ".wl-summary-cache"
1283 "*Cache file for summary mode contents."
1286 (defcustom wl-summary-view-file ".wl-summary-view"
1287 "*Current summary view."
1290 (defcustom wl-thread-top-file ".wl-thread-top"
1291 "*Current thread top entity... obsolete."
1294 (defcustom wl-thread-entity-file ".wl-thread-entity"
1298 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1299 "*Thread top entity list."
1303 (defcustom wl-print-buffer-function 'lpr-buffer
1304 "A function to print current buffer."
1308 (defcustom wl-ps-print-buffer-function
1309 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1310 "A function to print current buffer with ps-print."
1315 (defcustom wl-use-petname t
1316 "*Display petname in summary and default citation title."
1320 (defcustom wl-use-folder-petname
1322 "*List of situation using folder petname.
1323 Allowed situations are:
1324 modeline : displayed on modeline.
1325 ask-folder : displayed on minibuffer when ask folder.
1326 read-folder : can used for completion at `wl-summary-read-folder'."
1327 :type '(set (const modeline)
1329 (const read-folder))
1333 (defcustom wl-folder-petname-alist nil
1334 "A list of (realname . petname)."
1335 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1338 (defcustom wl-summary-weekday-name-lang "ja"
1339 "*Language to display week day."
1340 :type '(choice (const "ja")
1344 (string :tag "Other"))
1348 (defcustom wl-message-id-use-wl-from nil
1349 "*Use `wl-from' for domain part of Message-ID if non-nil."
1353 (defcustom wl-local-domain nil
1354 "*Domain part of this client (without hostname).
1355 Set this if (system-name) does not return FQDN."
1356 :type '(choice (const :tag "Use System Name" nil)
1360 (defcustom wl-message-id-domain nil
1361 "*Specific domain part of Message-ID."
1362 :type '(choice (const :tag "Use System Name" nil)
1366 (defcustom wl-unique-id-suffix ".wl"
1367 "*Specific string in generated Message-ID
1368 which appear just before @."
1372 (defcustom wl-break-pages t
1373 "*Break Pages at ^L."
1377 (defcustom wl-message-truncate-lines default-truncate-lines
1378 "*Truncate lines in Message Buffer."
1382 (defcustom wl-draft-truncate-lines default-truncate-lines
1383 "*Truncate lines in Draft Buffer."
1388 (defcustom wl-message-scroll-amount nil
1389 "*Scroll amount by SPC key."
1390 :type '(choice (const :tag "scrolling by screenfuls" nil)
1394 (defcustom wl-message-window-size '(1 . 4)
1395 "*Size of summary and message window. cons cell of (Summary : Message)."
1396 :type '(cons integer integer)
1399 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1400 "Newsgroups" "Subject" "^From")
1401 "*Sort order of header fields. Each elements are regexp of field name."
1402 :type '(repeat (string :tag "Field Regexp"))
1406 (defcustom wl-message-ignored-field-list nil
1407 "All fields that match this list will be hidden in message buffer.
1408 Each elements are regexp of field-name."
1409 :type '(repeat (string :tag "Field Regexp"))
1413 (defcustom wl-message-visible-field-list nil
1414 "All fields that match this list will be displayed in message buffer.
1415 Each elements are regexp of field-name."
1416 :type '(repeat (string :tag "Field Regexp"))
1420 (defcustom wl-message-header-button-alist
1421 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1423 0 wl-message-button-refer-article 0)
1425 "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1426 1 wl-message-button-refer-article 3)))
1427 "Alist of headers and regexps to match buttons in message headers."
1429 (list (regexp :tag "Header")
1431 (integer :tag "Button")
1432 (function :tag "Callback")
1435 (integer :tag "Regexp group"))))
1438 (defcustom wl-message-body-button-alist
1439 '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1440 ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 0 1024))
1441 "Alist of regexps to match buttons in message body."
1444 (integer :tag "Button")
1445 (function :tag "Callback")
1448 (integer :tag "Regexp group"))
1449 (integer :tag "Max Length")))
1452 (defcustom wl-folder-window-width 20
1453 "*Width of folder window."
1458 (defcustom wl-summary-recenter t
1459 "*Recenter on redisplay."
1464 (defcustom wl-folder-use-frame nil
1465 "*Use dedicated frame for folder mode if non-nil."
1469 (defcustom wl-summary-use-frame nil
1470 "*Use dedicated frame for each folder summary if non-nil."
1474 (defcustom wl-stay-folder-window nil
1475 "*Stay folder window when folder is selected if non-nil."
1479 (defcustom wl-reply-subject-prefix "Re: "
1480 "*Prefix of the subject of the replied message."
1485 (defcustom wl-forward-subject-prefix "Forward: "
1486 "*Prefix of the subject of the forwarded message."
1491 (defcustom wl-draft-reply-use-address-with-full-name t
1492 "*Use address with full-name in the draft of replied message."
1497 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1498 "*Regexp matching \"Re: \" in the subject line."
1503 (defcustom wl-folder-many-unsync-threshold 70
1504 "*Folders which contains messages more than this number are highlighted
1505 with wl-highlight-folder-many-face."
1510 (defcustom wl-fcc nil
1511 "*Folder Carbon Copy."
1512 :type '(choice (const :tag "disable" nil)
1517 (defcustom wl-fcc-force-as-read nil
1518 "*If non-nil, mark copied message as read."
1523 (defcustom wl-bcc nil
1524 "*Blind Carbon Copy."
1525 :type '(choice (const :tag "disable" nil)
1530 (defcustom wl-folder-desktop-name "Desktop"
1531 "*An implicit name of the folder top entity."
1536 (defcustom wl-summary-indent-length-limit 46
1537 "*Limit of indent length for thread. Nil means unlimited"
1538 :type '(choice (const :tag "Unlimited" nil)
1543 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1544 "*A string displayed in summary when no from field exists."
1548 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1549 "*A string displayed in summary when no subject field exists."
1553 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1554 "*The body content of a cancel message."
1558 (defcustom wl-summary-width 80
1559 "*Set summary line width if non nil."
1560 :type '(choice (const :tag "Don't truncate" nil)
1565 (defcustom wl-summary-pick-field-default "Body"
1566 "*Default field for pick."
1567 :type '(radio (const "From")
1576 (string :tag "Other"))
1579 (defcustom wl-summary-subject-length-limit nil
1580 "*Set subject width in summary when wl-summary-width is nil.
1581 Nil means unlimited"
1582 :type '(choice (const :tag "Unlimited" nil)
1587 (defcustom wl-mime-charset 'x-ctext
1588 "*MIME Charset for summary and message."
1593 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1594 "A function for creating User-Agent field string."
1598 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1599 (or hilit-background-mode 'dark)
1601 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1602 :type '(radio (const dark)
1604 :group 'wl-highlight)
1606 (defcustom wl-highlight-x-face-function nil
1607 "A function to display X-Face."
1609 :group 'wl-highlight)
1611 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1612 "Location of the qmail-inject program."
1613 :type '(string :tag "Program")
1616 (defcustom wl-qmail-inject-args nil
1617 "Arguments passed to qmail-inject programs.
1618 This should be a list of strings, one string for each argument.
1620 For e.g., if you wish to set the envelope sender address so that bounces
1621 go to the right place or to deal with listserv's usage of that address, you
1622 might set this variable to '(\"-f\" \"you@some.where\")."
1623 :type '(repeat (string :tag "Argument"))
1626 (defcustom wl-rejected-letter-start
1627 "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1628 "Regexp specifying the beginning of the wrapper around a returned letter.
1629 This wrapper is generated by the mail system when rejecting a letter."
1633 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1634 "*All headers that match this regexp will be deleted when forwarding a message."
1638 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1639 "*All headers that match this regexp will be deleted when resending a message."
1643 (defcustom wl-refile-default-from-folder "+from"
1644 "*Folder name to refile by `wl-refile-guess-by-from'."
1645 :type '(string :tag "Folder")
1648 (defcustom wl-summary-auto-refile-skip-marks
1649 (list wl-summary-new-mark
1650 wl-summary-unread-uncached-mark
1651 wl-summary-unread-cached-mark)
1652 "Persistent marks to skip auto-refiling."
1653 :type '(repeat (string :tag "Mark"))
1656 (defcustom wl-summary-reserve-mark-list
1658 "If a message is already marked as temporal marks in this list,
1659 the message is not marked by any mark command."
1660 :type '(repeat (string :tag "Temp-Mark"))
1663 (defcustom wl-summary-skip-mark-list
1665 "If a message is already marked as temporal marks in this list,
1666 the message is skipped at cursor move."
1667 :type '(repeat (string :tag "Temp-Mark"))
1670 (defcustom wl-summary-incorporate-marks
1671 (list wl-summary-new-mark
1672 wl-summary-unread-uncached-mark)
1673 "Persistent marks to prefetch at `wl-summary-incorporate'."
1674 :type '(repeat (string :tag "Mark"))
1677 (defcustom wl-refile-rule-alist nil
1682 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1684 (\"^Wanderlust\" . \"+wl\")
1685 (\"^Elips\" . \"+elips\")))"
1686 :type '(repeat (list (string :tag "Field")
1688 (cons (regexp :tag "Value")
1689 (string :tag "Folder")))))
1692 (defcustom wl-strict-diff-folders nil
1693 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1694 :type '(choice (const :tag "Off" nil)
1695 (repeat (regexp :tag "Folder Regexp")))
1698 (defcustom wl-folder-use-server-diff t
1699 "Checked unread message number on IMAP4 server.
1700 Only IMAP4 folders have an effect."
1704 (defcustom wl-force-fetch-folders nil
1705 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1706 :type '(choice (const :tag "off" nil)
1707 (const :menu-tag "on" t)
1708 (repeat (regexp :tag "Folder Regexp")))
1711 (defcustom wl-auto-check-folder-name nil
1712 "*A folder, a group or a list of folders and groups specified which
1713 will be automatically checked at the startup time."
1714 :type '(choice (string :tag "Folder")
1715 (repeat (string :tag "Folder"))
1719 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1720 "All folders that match this list won't be checked at the startup
1721 time even if they are embedded in some groups specified by
1722 wl-auto-check-folder-name.
1723 Those folders are also skipped when you check on the Desktop.
1724 This value is preceded by wl-auto-check-folder-list.
1725 Each elements are regexp of folder name."
1726 :type '(repeat (regexp :tag "Folder Regexp"))
1729 (defcustom wl-auto-check-folder-list nil
1730 "A list of patterns for exceptional folders against
1731 wl-auto-uncheck-folder-list.
1732 Each elements are regexp of folder name."
1733 :type '(repeat (regexp :tag "Folder Regexp"))
1736 (defcustom wl-show-plug-status-on-modeline t
1737 "If it is non-nil, show plugged status in modeline."
1739 :group 'wl-highlight)
1741 (defcustom wl-plug-state-indicator-on " [ON] "
1742 "String used to show plugged status ON."
1744 :group 'wl-highlight)
1746 (defcustom wl-plug-state-indicator-off " [--] "
1747 "String used to show plugged status OFF."
1749 :group 'wl-highlight)
1751 (defcustom wl-biff-check-folder-list nil
1752 "All folders that match this list are automatically checked
1753 every intervals specified by wl-biff-check-interval."
1754 :type '(repeat (regexp :tag "Folder Regexp"))
1755 :group 'wl-highlight)
1757 (defcustom wl-biff-check-interval 40
1758 "Number of seconds between updates of new mails in the mode line."
1760 :group 'wl-highlight)
1762 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
1763 (not (featurep 'mule)))
1765 (decode-coding-string
1767 (read "\"[\e$B\\\")\e(B]\"")
1771 "String used to show biff status ON."
1773 :group 'wl-highlight)
1775 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
1776 (not (featurep 'mule)))
1778 ;; Japanese short hyphen
1780 "String used to show biff status OFF."
1782 :group 'wl-highlight)
1784 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1785 "Displaying order of items to be shown in modeline. The first item will
1786 be placed in the leftmost. The significant items are `biff' and `plug';
1787 otherwise, e.g. `title', corresponds to the things except for the biff
1788 staus nor the plugged status. The default order is '(biff plug title)
1789 even if the value of this option is set to nil. Here are some samples:
1791 ;; Plugged status first:
1792 \(setq wl-mode-line-display-priority-list '(plug))
1794 ;; Biff status, Title of Wanderlust, Plugged status:
1795 \(setq wl-mode-line-display-priority-list '(biff title plug))
1798 :type '(repeat (radio (const :format "%v " biff)
1799 (const :format "%v " plug)
1800 (sexp :tag "Other" :value title)))
1801 :group 'wl-highlight)
1803 (defcustom wl-interactive-send t
1804 "*If non-nil, require your confirmation when sending draft message."
1809 (defcustom wl-interactive-exit t
1810 "*If non-nil, require your confirmation when exiting WL."
1814 (defcustom wl-summary-move-order 'unread
1815 "*The order of priority when move in summary mode.
1816 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1817 If this variable is `new', precede \"N\" mark."
1818 :type '(radio (const new)
1823 (defvar wl-summary-move-direction-downward t)
1825 (defcustom wl-summary-move-direction-toggle t
1826 "*If non-nil, search direction for the next message will be determined
1827 depends on previous search direction.
1828 It uses wl-summary-move-direction-downward as a direction flag."
1832 (defcustom wl-auto-select-first nil
1833 "*If non-nil, display selected first message when enter summary."
1838 (defcustom wl-auto-prefetch-first nil
1839 "*If non-nil, prefetch selected first message when enter summary."
1844 (defcustom wl-auto-select-next nil
1845 "*If non-nil, offer to go to the next folder from the end of the previous.
1846 If the value is the symbol `unread', go to the next folder
1847 that no unread message exists. If the value is the symbol `skip-no-unread',
1848 skip the folder that no unread message exists.
1850 See also variable `wl-summary-next-no-unread-command'."
1851 :type '(radio (const :tag "off" nil)
1854 (const skip-no-unread))
1858 (defcustom wl-message-buffer-prefetch-folder-type-list t
1859 "*All folder types that match this list prefetch next message,
1860 and reserved buffer cache."
1861 :type `(choice (const :tag "all" t)
1862 (const :tag "never" nil)
1863 (set (const localdir)
1876 (defcustom wl-message-buffer-prefetch-folder-list nil
1877 "*All folders that match this list prefetch next message,
1878 and reserved buffer cache.
1881 :type '(repeat (regexp :tag "Folder Regexp"))
1884 (defcustom wl-message-buffer-prefetch-depth 3
1885 "*Depth of buffer prefetch in summary mode."
1889 (defcustom wl-message-buffer-prefetch-idle-time 0.2
1890 "*Idle time of buffer prefetch."
1894 (defcustom wl-message-buffer-prefetch-threshold 30000
1895 "*Quit forward cache prefetching if message size is larger than this value."
1899 (defcustom wl-summary-always-sticky-folder-list nil
1900 "All folders that match this list has sticky summary.
1901 Each elements are regexp of folder name."
1902 :type '(radio (const :tag "none" nil)
1903 (const :tag "all" t)
1904 (repeat (regexp :tag "Folder Regexp")))
1907 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
1908 "All folders that match this list won't save its msgdb.
1909 Each elements are regexp of folder name."
1910 :type '(repeat (regexp :tag "Folder Regexp"))
1913 (defcustom wl-save-folder-list nil
1914 "All folders that match this list save its msgdb.
1915 Each elements are regexp of folder name."
1916 :type '(repeat (regexp :tag "Folder Regexp"))
1919 (defcustom wl-folder-mime-charset-alist
1920 '(("^-alt\\.chinese" . big5)
1921 ("^-relcom\\." . koi8-r)
1923 ("^-han\\." . euc-kr)
1924 ("@sponichi" . shift_jis)
1925 ("@2ch" . shift_jis))
1926 "Charset alist. If no match, `wl-mime-charset' is used."
1927 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1931 (defcustom wl-folder-weekday-name-lang-alist
1932 '(("^-alt\\.chinese" . "en")
1933 ("^-relcom\\." . "en")
1935 ("^-han\\." . "en"))
1936 "Weekday name lang alist.
1937 If no match, `wl-summary-weekday-name-lang' is used.
1939 '((\"xemacs-beta$\" . \"en\")
1940 (\"^-fj\" . \"ja\"))"
1941 :type '(repeat (cons (regexp :tag "Folder Regexp")
1942 (choice (const "ja")
1946 (string :tag "Other"))))
1949 (defcustom wl-folder-thread-indent-set-alist
1950 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1951 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1952 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1953 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1954 "Thread indent set alist.
1955 If no match, following indent set is used.
1956 (wl-thread-indent-level
1957 wl-thread-have-younger-brother-str
1958 wl-thread-youngest-child-str
1959 wl-thread-vertical-str
1960 wl-thread-horizontal-str
1961 wl-thread-space-str)
1963 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1964 :type '(repeat (cons (regexp :tag "Folder Regexp")
1965 (group (integer :tag "Indent")
1966 (string :tag "Yonger Brother")
1967 (string :tag "Yonger Child")
1968 (string :tag "Vertical")
1969 (string :tag "Horizontal")
1970 (string :tag "Space"))))
1973 (defcustom wl-folder-sync-range-alist
1974 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1975 (regexp-quote wl-queue-folder) "$")
1977 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1978 :type '(repeat (cons (regexp :tag "Folder Regexp")
1979 (choice (const "update")
1985 (const :tag "none" nil))))
1988 (defcustom wl-default-sync-range "update"
1989 "*Default sync range."
1990 :type '(choice (const "update")
1996 (const :tag "none" nil))
1999 (defcustom wl-ask-range t
2000 "*If non-nil, ask for a range for summary synchronization.
2001 If nil, always use default."
2005 (defcustom wl-folder-process-duplicates-alist nil
2006 "Specify process type of duplicated messages.
2007 It should be a list of cons cell like: (REGEXP . TYPE)
2008 REGEXP is a regular expression string of folder name.
2009 TYPE is one of the symbols `hide' or `read'.
2010 `hide' means hide duplicated messages.
2011 `read' means mark as read duplicated messages.
2012 If TYPE is nil, do nothing for duplicated messages."
2013 :type '(repeat (cons (regexp :tag "Folder regexp")
2014 (choice (const :tag "Hide" hide)
2015 (const :tag "Mark as read" read))))
2018 (defcustom wl-folder-move-cur-folder nil
2019 "*Non-nil, move to current folder on folder-mode when goto folder."
2023 (defcustom wl-folder-check-async t
2024 "*Check the folder asynchronous."
2028 (defcustom wl-folder-notify-deleted nil
2029 "*Non-nil, display negative number on folder-mode when message is deleted
2030 in folder. If the value is 'sync, msgdb would be synchronized."
2031 :type '(choice (const :tag "off" nil)
2036 (defcustom wl-summary-exit-next-move t
2037 "*Non-nil, move to next-unsync or next-entity when exit summary."
2041 (defcustom wl-summary-next-no-unread-command
2042 '(wl-summary-read wl-summary-down wl-summary-up)
2043 "*Command list available when the value of `wl-auto-select-next' is 'unread
2044 or 'skip-no-unread."
2045 :type '(repeat function)
2048 (defcustom wl-summary-search-via-nntp 'confirm
2049 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
2053 (defcustom wl-summary-keep-cursor-command
2054 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2055 "*Command list to keep cursor position when folder is changed to
2056 already existing summary."
2057 :type '(repeat function)
2060 (defcustom wl-summary-showto-folder-regexp nil
2061 "Regexp specifying the folder that shows the To (or Newsgroups) field as
2062 Sender information in summary mode."
2063 :type '(choice (const :tag "none" nil)
2067 (defcustom wl-folder-removed-mark "#<removed>"
2068 "Mark for removed folder."
2072 (defcustom wl-folder-unsubscribe-mark "#"
2073 "Mark for unsubscribe folder."
2077 (defcustom wl-delete-folder-alist '(("^-" . remove))
2078 "*Alist of folder and delete policy.
2079 Each element is (folder-regexp . policy).
2081 The policy is one of the followings:
2083 'null : remove message.
2084 string : refile to the specified folder.
2086 otherwise : refile to the `wl-trash-folder'.
2088 '((\"^%\" . \"%#mh/trash\")
2090 (\"^\\\\+\" . trash))"
2091 :type '(repeat (cons (regexp :tag "Folder Regexp")
2092 (choice :tag "Policy"
2094 (const :tag "remove(null)" null)
2096 (const :tag "trash(other)" trash)
2097 (string :tag "Folder"))))
2100 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
2102 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
2103 POLICY is copy or move."
2104 :type '(repeat (cons (regexp :tag "Folder Regexp")
2105 (choice (const copy)
2110 (defcustom wl-folder-hierarchy-access-folders '("^-$" "^-alt$")
2111 "*Access group REGEXPs to make hierarchy structure."
2112 :type '(repeat (string :tag "Folder"))
2115 (defcustom wl-folder-init-load-access-folders nil
2116 "*Access group folders to load folder list on `wl-folder-init'.
2117 If this variable is non-nil,
2118 `wl-folder-init-no-load-access-folders' will be ignored."
2119 :type '(repeat (regexp :tag "Folder Regexp"))
2122 (defcustom wl-folder-init-no-load-access-folders nil
2123 "*Access group folders to not load folder list on `wl-folder-init'.
2124 If `wl-folder-init-load-access-folders' is non-nil,
2125 this variable will be ignored."
2126 :type '(repeat (regexp :tag "Folder Regexp"))
2129 (defcustom wl-folder-access-subscribe-alist nil
2130 "*Subscribe folders to fetching folder entries.
2131 Each element is (group-regexp (subscribe folder-regexp ...)).
2132 If subscribe is non-nil, subscribe when match folder-regexp.
2133 If subscribe is nil, unsubscribe when match folder-regexp.
2136 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2137 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2138 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
2139 :type '(repeat (cons (regexp :tag "Folder Regexp")
2140 (list (boolean :tag "Subscribed")
2142 (regexp :tag "Folder Regexp")))))
2145 ;;; For Folder Manager
2147 (defcustom wl-interactive-save-folders t
2148 "*Non-nil require your confirmation when save folders."
2153 (defcustom wl-fldmgr-make-backup t
2154 "*Non-nil make backup file when save folders."
2158 (defcustom wl-fldmgr-folders-indent "\t"
2159 "*Indent string for folders file."
2163 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2164 "*A function to sort folder."
2168 (defcustom wl-fldmgr-sort-group-first t
2169 "*Non-nil Group folder is first when sort."
2173 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2174 "*If non-nil, completion for adding folder refers current folder list."
2178 (defcustom wl-fldmgr-make-filter-default "Body"
2179 "*Default filter key while making filter on Folder."
2180 :type '(radio (const "From")
2189 (string :tag "Other"))
2192 (defcustom wl-fldmgr-allow-rename-access-group nil
2193 "*If non-nil, allow to rename folder in access group."
2197 ;;; For Expire and Archive
2199 (defcustom wl-expire-alist nil
2200 "Alist to decide a policy for expire.
2201 Each element is (folder-regexp (number or date) policy).
2203 The policy is one of the followings:
2204 'remove : remove messsage.
2205 'trash : refile `wl-trash-folder'.
2206 string : refile string folder.
2207 function : call function.
2210 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
2211 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
2212 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
2213 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
2214 (\"^\\\\+misc$\" (date 14) trash))"
2215 :type '(repeat (choice (list :tag "No-match"
2216 (regexp :tag "Folder Regexp")
2219 (regexp :tag "Folder Regexp")
2220 (list (radio :value number
2225 (repeat :inline t integer)))
2226 (choice :tag "Policy"
2230 (string :tag "folder")
2233 :tag "Arg for function"
2237 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2238 "Alist to decide a policy for archive.
2239 Each element is (folder-regexp policy(function)).
2242 '((\"\\\\+work$\" wl-archive-date)
2243 (\"\\\\+ml/\" wl-archive-number1)
2244 (\".*\" wl-archive-number2))"
2245 :type '(repeat (list (regexp :tag "Folder Regexp")
2248 (sexp :tag "Argument"))))
2251 (defcustom wl-summary-expire-reserve-marks
2252 (list wl-summary-important-mark
2254 wl-summary-unread-mark
2255 wl-summary-unread-uncached-mark
2256 wl-summary-unread-cached-mark)
2257 "Permanent marks of reserved message when expire.
2258 Don't reserve temporary mark message.
2261 'all : reserved all permanent marks.
2262 'none : not reserve permanent marks.
2263 list : reserved specified permanent marks."
2264 :type '(repeat (string :tag "Mark"))
2267 (defcustom wl-expire-number-with-reserve-marks nil
2268 "If non-nil, include reserve message when expire by number."
2272 (defcustom wl-expire-add-seen-list t
2273 "*If non-nil, add seen message list when refile message at expire."
2277 (defcustom wl-expire-use-log nil
2278 "*If non-nil, write a log when expired."
2282 (defcustom wl-expire-folder-update-msgdb t
2283 "*Non-nil update summary msgdb when expire on folder mode."
2287 ;; for wl-expire-archive-{number1|number2}
2288 (defcustom wl-expire-archive-files 100
2289 "*The number of one archive folder."
2293 ;; for wl-expire-archive-{number1|number2|date}
2294 (defcustom wl-expire-archive-get-folder-function
2295 'wl-expire-archive-get-folder
2296 "*A function to get archive folder name."
2300 (defcustom wl-expire-delete-oldmsg-confirm t
2301 "*If non-nil, require your confirmation when delete old message."
2305 ;; for wl-expire-archive-get-folder
2306 (defcustom wl-expire-archive-folder-type 'zip
2307 "*Archiver type of archive folder."
2308 :type '(radio (const zip)
2314 (symbol :tag "Other"))
2317 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2318 "*A format string for archive folder name."
2322 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2323 "*A regexp string for archive folder name."
2327 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2328 ;; $folder-199812;zip
2329 "*A format string for archive date folder name."
2333 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2334 "*A regexp string for archive date folder name."
2338 (defcustom wl-expire-archive-folder-prefix nil
2339 "*Prefix for archive folder."
2340 :type '(radio (const :tag "nothing" nil)
2341 (const :tag "full" t)
2347 ;; highilght about summary
2348 (defcustom wl-highlight-max-summary-lines 10000
2349 "*If the summary is larger than this lines, don't highlight it."
2351 :group 'wl-highlight)
2353 ;; highilght about draft and message
2354 (defcustom wl-highlight-body-too t
2355 "*In addition to header, highlight the body too. if non nil."
2357 :group 'wl-highlight)
2359 (defcustom wl-highlight-message-header-alist
2360 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2361 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2362 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2364 :type '(repeat (cons regexp face))
2365 :group 'wl-highlight)
2367 (defcustom wl-highlight-citation-prefix-regexp
2368 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2369 "All lines that match this regexp will be highlighted with
2370 `wl-highlight-message-cited-text-*' face."
2372 :group 'wl-highlight)
2374 (defcustom wl-highlight-highlight-citation-too nil
2375 "*Whether the whole citation line should go in the
2376 `wl-highlight-citation-face' face.
2377 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2378 default face, and the remainder of the line is in the
2379 wl-highlight-message-cited-text face."
2381 :group 'wl-highlight)
2383 (defcustom wl-highlight-force-citation-header-regexp
2384 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2385 "*The pattern to match the prolog of a cited block.
2386 Text in the body of a message which matches this will be displayed in
2387 the `wl-highlight-message-headers' face."
2389 :group 'wl-highlight)
2391 (defcustom wl-highlight-citation-header-regexp
2392 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2393 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2394 "^.*\\(writes\\|wrote\\|said\\):\n")
2395 "*The pattern to match the prolog of a cited block.
2396 Text in the body of a message which matches this will be displayed in
2397 the `wl-highlight-message-headers' face."
2399 :group 'wl-highlight)
2401 (defcustom wl-highlight-max-header-size nil
2402 "*If the message header is larger than this many chars, don't highlight it.
2403 If this is nil, all headers will be highlighted."
2405 :group 'wl-highlight)
2407 (defcustom wl-highlight-max-message-size 10000
2408 "*If the message body is larger than this many chars, don't highlight it.
2409 This is to prevent us from wasting time trying to fontify things like
2410 uuencoded files and large digests. If this is nil, all messages will
2413 :group 'wl-highlight)
2415 ;; highilght about signature (of draft and message)
2416 (defcustom wl-highlight-signature-separator
2417 '("\n--+\n" "\n\n--+.*\n*\\'")
2418 "List of regexps matching signature separator.
2419 It will be verified from head to tail looking for a separator.
2420 Verification will be done from the end of the buffer.
2421 No need to specify \"^-- $\" in this list,
2422 because it is verified by default.
2423 This variable can also be a regex."
2424 :type '(repeat regexp)
2425 :group 'wl-highlight)
2427 (defcustom wl-max-signature-size 400
2428 "*If the signature is larger than this chars, don't treat it as a signature."
2430 :group 'wl-highlight)
2432 ;; highilght about mouse
2433 (defcustom wl-use-highlight-mouse-line (and window-system
2434 (>= emacs-major-version 19))
2435 "*Highlight mouse line, if non nil."
2437 :group 'wl-highlight)
2439 ;; highilght about folder
2440 (defcustom wl-highlight-folder-with-icon
2441 (or (and (featurep 'xemacs)
2444 "*Highlight folder with icon(XEmacs or Emacs 21)."
2446 :group 'wl-highlight)
2447 (defcustom wl-highlight-folder-by-numbers t
2448 "Highlight folder lines by numbers.
2449 If it is a number, only numbers will be highlighted."
2450 :type '(choice (const :tag "whole line" t)
2451 (const :tag "only numbers" 1)
2452 (const :tag "don't highlight" nil))
2453 :group 'wl-highlight)
2455 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2456 "Function to search signature area in the message body."
2458 :group 'wl-highlight)
2460 (defcustom wl-use-dnd (and wl-on-xemacs
2461 (featurep 'dragdrop))
2462 "If Non-nil, support dragdrop feature in XEmacs."
2466 (defcustom wl-reset-plugged-alist t
2467 "*If non-nil, reset `elmo-plugged-alist' when startup."
2471 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2472 (module-installed-p 'image)
2473 (module-installed-p 'bitmap))
2475 "If it is T, show graphic logo in the startup screen. You can set it to
2476 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2477 :type '(radio (const :tag "Off" nil)
2478 (const :tag "On (any format)" t)
2481 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2484 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2485 "*A string displayed when invalid character exists."
2489 ;;; Internal variables
2490 (defvar wl-init nil)
2492 ;; For disconnected operations.
2493 (defvar wl-plugged-hook nil)
2494 (defvar wl-unplugged-hook nil)
2495 (defcustom wl-plugged t
2496 "*Plugged state at the startup. Nil means off-line."
2501 ;; Internal variables used to modeline identifiers.
2502 (defvar wl-modeline-plug-status nil)
2503 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2504 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2505 (defvar wl-modeline-biff-status nil)
2506 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2507 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2509 ;; Advanced thread view.
2510 (defvar wl-thread-indent-level 1
2511 "*Indent level for thread.")
2512 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2513 "*A string for thread branch line. It should contain one character.")
2514 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2515 "*A string for thread branch line. It should contain one character.")
2516 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2517 "*A string for thread branch line. It should contain one character.")
2518 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2519 "*A string for thread branch line. It should contain one character.")
2520 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2521 "*A string for thread branch line. It should contain one character.")
2523 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2524 "* A regexp string for thread indent...for highlight.")
2526 ;; folder icons. filename relative to wl-icon-directory
2527 (defvar wl-opened-group-folder-icon "opened.xpm"
2528 "*Icon file for opened group folder.")
2529 (defvar wl-closed-group-folder-icon "closed.xpm"
2530 "*Icon file for closed group folder.")
2531 (defvar wl-nntp-folder-icon "news.xpm"
2532 "*Icon file for nntp folder.")
2533 (defvar wl-imap-folder-icon "imap.xpm"
2534 "*Icon file for imap folder.")
2535 (defvar wl-pop-folder-icon "pop.xpm"
2536 "*Icon file for pop folder.")
2537 (defvar wl-localdir-folder-icon "local.xpm"
2538 "*Icon file for localdir folder.")
2539 (defvar wl-localnews-folder-icon "localnews.xpm"
2540 "*Icon file for localnews folder.")
2541 (defvar wl-internal-folder-icon "internal.xpm"
2542 "*Icon file for internal folder.")
2543 (defvar wl-multi-folder-icon "multi.xpm"
2544 "*Icon file for multi folder.")
2545 (defvar wl-filter-folder-icon "filter.xpm"
2546 "*Icon file for filter folder.")
2547 (defvar wl-archive-folder-icon "archive.xpm"
2548 "*Icon file for archive folder.")
2549 (defvar wl-pipe-folder-icon "pipe.xpm"
2550 "*Icon file for pipe folder.")
2551 (defvar wl-nmz-folder-icon "nmz.xpm"
2552 "*Icon file for namazu folder.")
2553 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2554 "*Icon file for shimbun folder.")
2555 (defvar wl-maildir-folder-icon "maildir.xpm"
2556 "*Icon file for maildir folder.")
2557 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2558 "*Icon file for emptied trash folder.")
2559 (defvar wl-trash-folder-icon "trash.xpm"
2560 "*Icon file for trash folder.")
2561 (defvar wl-draft-folder-icon "draft.xpm"
2562 "*Icon file for draft folder.")
2563 (defvar wl-queue-folder-icon "queue.xpm"
2564 "*Icon file for queue folder.")
2565 (defvar wl-plugged-icon "plugged.xpm"
2566 "*Icon file for plugged state.")
2567 (defvar wl-unplugged-icon "unplugged.xpm"
2568 "*Icon file for unplugged state.")
2569 (defvar wl-biff-mail-icon "letter.xpm"
2570 "*Icon file for mail existed state.")
2571 (defvar wl-biff-nomail-icon "no-letter.xpm"
2572 "*Icon file for no mail existed state.")
2573 (defvar wl-prog-uudecode "uudecode"
2574 "*uudecode program name.")
2575 (defvar wl-prog-uudecode-arg nil
2576 "*Arguments for uudecode program.")
2577 (defvar wl-prog-uudecode-no-stdout-option t
2578 "*If non-nil, uudecode program don't have option for output to stdout.")
2581 (defvar wl-plugged-plug-on "ON")
2582 (defvar wl-plugged-plug-off "--")
2583 (defvar wl-plugged-auto-off "**")
2584 (defvar wl-plugged-server-indent 2)
2585 (defvar wl-plugged-port-indent 4)
2586 (defvar wl-plugged-queue-status-column 25)
2588 ;;;; Obsolete variables.
2590 ;; 2001-12-11: *-dir -> *-directory
2591 (elmo-define-obsolete-variable 'wl-icon-dir
2593 (elmo-define-obsolete-variable 'wl-mime-save-dir
2594 'wl-mime-save-directory)
2595 (elmo-define-obsolete-variable 'wl-score-files-dir
2596 'wl-score-files-directory)
2597 (elmo-define-obsolete-variable 'wl-tmp-dir
2598 'wl-temporary-file-directory)
2601 (elmo-define-obsolete-variable 'wl-subject-length-limit
2602 'wl-summary-subject-length-limit)
2605 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
2606 'elmo-folder-update-threshold)
2607 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
2608 'elmo-message-fetch-threshold)
2610 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
2611 'wl-message-buffer-prefetch-folder-type-list)
2612 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
2613 'wl-message-buffer-prefetch-folder-list)
2615 ;; 2001-02-27: *-func -> *-function
2616 (elmo-define-obsolete-variable 'wl-summary-from-func
2617 'wl-summary-from-function)
2618 (elmo-define-obsolete-variable 'wl-summary-subject-func
2619 'wl-summary-subject-function)
2620 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
2621 'wl-summary-subject-filter-function)
2622 (elmo-define-obsolete-variable 'wl-draft-send-func
2623 'wl-draft-send-function)
2624 (elmo-define-obsolete-variable 'wl-draft-send-news-func
2625 'wl-draft-send-news-function)
2626 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
2627 'wl-draft-send-mail-function)
2628 (elmo-define-obsolete-variable 'wl-print-buffer-func
2629 'wl-print-buffer-function)
2630 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
2631 'wl-ps-print-buffer-function)
2632 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
2633 'wl-generate-mailer-string-function)
2634 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
2635 'wl-highlight-x-face-function)
2636 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
2637 'wl-fldmgr-sort-function)
2638 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
2639 'wl-expire-archive-get-folder-function)
2640 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
2641 'wl-highlight-signature-search-function)
2643 ;; 2000-01-25: temp mark -> target mark
2644 (elmo-define-obsolete-variable 'wl-summary-temp-above
2645 'wl-summary-target-above)
2647 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
2648 (defvar wl-draft-prepared-config-alist nil)
2649 (make-obsolete-variable 'wl-draft-prepared-config-alist
2650 'wl-draft-config-alist)
2653 (elmo-define-obsolete-variable 'wl-address-filename
2655 (elmo-define-obsolete-variable 'wl-score-default-file-name
2656 'wl-score-default-file)
2660 (product-provide (provide 'wl-vars) (require 'wl-version))
2662 ;;; wl-vars.el ends here