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-from-function 'wl-summary-default-from
286 "*A function for displaying sender (From: field) information."
290 (defcustom wl-summary-subject-function 'wl-summary-default-subject
291 "*A function for displaying subject."
295 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
296 "*A filter function for comparing subjects."
300 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
301 "*If message does not have in-reply-to field nor references field and
302 subject matches this regexp, search parent message by subject matching."
307 (defcustom wl-default-folder "%inbox"
308 "*Default folder used in `wl-summary-goto-folder'."
311 (defcustom wl-draft-folder "+draft"
315 (defcustom wl-trash-folder "+trash"
320 (defcustom wl-queue-folder "+queue"
325 (defcustom wl-default-spec "%"
330 (defcustom wl-insert-mail-followup-to nil
331 "*Insert Mail-Followup-To: field if non-nil."
335 (defcustom wl-insert-mail-reply-to nil
336 "*Insert Mail-Reply-To: field if non-nil."
340 (defcustom wl-insert-message-id t
341 "*Insert Message-ID: field if non-nil."
345 (defcustom wl-auto-insert-x-face t
346 "*Insert X-Face: field automatically."
350 (defcustom wl-x-face-file "~/.xface"
351 "*X-Face field is inserted using its contents.
352 If file exists and `wl-auto-insert-x-face' is non-nil."
356 (defcustom wl-subscribed-mailing-list nil
357 "*Subscribed mailing list.
358 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
359 :type '(repeat string)
364 "*Display demo at start time."
368 (defcustom wl-envelope-from nil
369 "*Envelope From used in SMTP.
370 If nil, `wl-from' is used."
371 :type '(choice (const :tag "Same as 'From' field." nil)
376 (defcustom wl-draft-additional-header-alist nil
377 "*Additional headers in the draft."
378 :type '(repeat (cons (symbol :tag "Field Name")
379 (choice (string :tag "String")
380 (function :tag "Function")))))
382 (defcustom wl-draft-add-in-reply-to t
383 "*If non-nil, message-id of the cited message is inserted to the
384 in-reply-to field of the current draft."
388 (defcustom wl-draft-add-references nil
389 "*If non-nil, message-id of the cited message is inserted to the
390 references field of the current draft."
394 (defcustom wl-draft-cite-function 'wl-default-draft-cite
395 "*A function for citation."
399 (defcustom wl-default-draft-cite-decorate-author t
400 "*If non-nil, the author of cited message is arranged by
401 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
405 (defcustom wl-smtp-connection-type nil
406 "*SMTP connection type.
407 If nil, default smtp connection type is used."
408 :type '(choice (const :tag "default" nil)
409 (const :tag "Use STARTTLS" starttls)
413 (defcustom wl-smtp-posting-user nil
414 "*SMTP authentication user."
415 :type '(choice (const :tag "none" nil)
420 (defcustom wl-smtp-posting-server nil
421 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
422 :type '(choice (const :tag "none" nil)
427 (defcustom wl-smtp-posting-port nil
428 "*SMTP port number in `wl-smtp-posting-server'.
429 If nil, default SMTP port number(25) is used."
430 :type '(choice (const :tag "Default (25)" nil)
435 (defcustom wl-smtp-authenticate-type nil
436 "*SMTP Authentication type.
437 If nil, don't authenticate."
438 :type '(choice (const :tag "none" nil)
439 (const :tag "PLAIN" "plain")
440 (const :tag "CRAM-MD5" "cram-md5")
441 (const :tag "LOGIN" "login")
442 (string :tag "Other"))
446 (defcustom wl-pop-before-smtp-user nil
447 "*POP3 user name to send mail using POP-before-SMTP.
448 If nil, `elmo-pop3-default-user' is used.
449 To use POP-before-SMTP,
450 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp\)"
451 :type '(choice (const :tag "none" nil)
456 (defcustom wl-pop-before-smtp-server nil
457 "*POP3 server for POP-before-SMTP.
458 If nil, `elmo-pop3-default-server' is used."
459 :type '(choice (const :tag "none" nil)
464 (defcustom wl-pop-before-smtp-port nil
465 "*POP3 port for POP-before-SMTP.
466 If nil, `elmo-pop3-default-port' is used."
467 :type '(choice (const :tag "none" nil)
472 (defcustom wl-pop-before-smtp-stream-type nil
473 "*Stream type for POP-before-SMTP.
474 If nil, `elmo-pop3-default-stream-type' is used."
478 (defcustom wl-pop-before-smtp-authenticate-type nil
479 "*Default Authentication type for POP-before-SMTP.
480 If nil, `elmo-pop3-default-authenticate-type' is used."
481 :type '(choice (const :tag "none" nil)
482 (const :tag "APOP" 'apop)
483 (const :tag "POP3" 'user))
487 (defcustom wl-nntp-posting-server nil
488 "*NNTP server name to post news.
489 If nil, `elmo-nntp-default-server' is used."
490 :type '(choice (const :tag "none" nil)
494 (defcustom wl-nntp-posting-user nil
495 "*NNTP user name to post news for authinfo.
496 If nil, `elmo-nntp-default-user' is used.
497 If nil, don't authenticate."
498 :type '(choice (const :tag "none" nil)
502 (defcustom wl-nntp-posting-port nil
503 "*NNTP port to post news.
504 If nil, `elmo-nntp-default-port' is used."
505 :type '(choice (const :tag "none" nil)
509 (defcustom wl-nntp-posting-stream-type nil
510 "*Stream type for posting Netnews.
511 If nil, `elmo-nntp-default-stream-type' is used."
515 (defcustom wl-prefetch-confirm t
516 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
520 (defcustom wl-prefetch-threshold 30000
521 "*Maximum size of message prefetched without confirmation.
522 If nil, all messages prefetched regardless of its size.
523 If message size is larger than this value, confirm prefetching
524 when `wl-prefetch-confirm' is non-nil."
525 :type '(choice (integer :tag "Threshold (bytes)")
526 (const :tag "No limitation" nil))
530 (defcustom wl-thread-insert-opened nil
531 "*Non-nil forces to insert thread as opened in updating."
536 (defcustom wl-thread-open-reading-thread t
537 "*Non-nil forces to open reading thread."
542 (defvar wl-folder-mode-hook nil
543 "A hook called when wanderlust folder mode is started.
544 This hook may contain the functions `wl-folder-init-icons' and
545 `wl-setup-folder' for reasons of system internal to accord facilities
546 for the Emacs variants.")
547 (defvar wl-summary-toggle-disp-on-hook nil
548 "A hook called when message is toggled.")
549 (defvar wl-summary-toggle-disp-off-hook nil
550 "A hook called when message is disappeared.")
551 (defvar wl-summary-toggle-disp-folder-on-hook nil
552 "A hook called when folder is toggled.")
553 (defvar wl-summary-toggle-disp-folder-off-hook nil
554 "A hook called when folder is disappeared.")
555 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
556 "A hook called when message window is resumed when folder is toggled.")
557 (defvar wl-summary-mode-hook nil
558 "A hook called when summary mode is started.
559 This hook may contain the function `wl-setup-summary' for reasons of
560 system internal to accord facilities for the Emacs variants.")
562 (defvar wl-summary-prepared-pre-hook nil
563 "A hook called before the summary buffer has been generated.")
564 (defvar wl-summary-prepared-hook nil
565 "A hook called after the summary buffer has been generated.")
566 (defvar wl-summary-sync-updated-hook nil
567 "A hook called when update summary buffer.")
568 (defvar wl-summary-unread-message-hook nil
569 "A hook called when unread message is displayed.")
570 (defvar wl-summary-edit-addresses-hook nil
571 "A hook called when address book is edited.")
572 (defvar wl-summary-buffer-message-saved-hook nil
573 "A hook called when msgdb is saved.")
574 (defvar wl-summary-buffer-mark-saved-hook nil
575 "A hook called when mark is saved.")
576 (defvar wl-summary-divide-thread-when-subject-changed nil
577 "Divide thread when subject is changed.")
578 (defvar wl-init-hook nil
579 "A hook called when initialization is finished. This hook may contain
580 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
581 reasons of system internal to accord facilities for the Emacs variants.")
583 "A hook called when Wanderlust is invoked.")
584 (defvar wl-reply-hook nil
585 "A hook called when replied.")
586 (defvar wl-mail-setup-hook nil
587 "A hook called when Draft is prepared.")
588 (defvar wl-draft-reedit-hook nil
589 "A hook called when Draft is re-edited.")
590 (defvar wl-draft-send-hook '(wl-draft-config-exec)
591 "A hook called on the draft editing buffer before sending process starts.")
592 (defvar wl-mail-send-pre-hook nil
593 "A hook called just before the mail sending process starts.")
594 (defvar wl-news-send-pre-hook nil
595 "A hook called just before the news sending process starts.")
596 (defvar wl-message-buffer-created-hook nil
597 "A hook called when Message buffer is prepared.")
598 (defvar wl-message-redisplay-hook nil
599 "A hook called when Message is displayed.")
600 (defvar wl-message-exit-hook nil
601 "A hook called when quit message.")
602 (defvar wl-summary-exit-pre-hook nil
603 "A hook called before exit summary mode.")
604 (defvar wl-summary-exit-hook nil
605 "A hook called when exit summary mode.")
606 (defvar wl-highlight-headers-hook nil
607 "A hook called when header is highlighted.")
608 (defvar wl-highlight-message-hook nil
609 "A hook called when message is highlighted.")
610 (defvar wl-save-hook nil
611 "A hook called when save summary and folder status.")
612 (defvar wl-exit-hook nil
613 "A hook called when exit wanderlust.")
614 (defvar wl-folder-suspend-hook nil
615 "A hook called when suspend wanderlust.")
616 (defvar wl-biff-notify-hook '(ding)
617 "A hook called when a biff-notification is invoked.")
618 (defvar wl-biff-unnotify-hook nil
619 "A hook called when a biff-notification is removed.")
620 (defvar wl-auto-check-folder-pre-hook nil
621 "A hook called before auto check folders.")
622 (defvar wl-auto-check-folder-hook nil
623 "A hook called when auto check folders.")
624 (defvar wl-folder-check-entity-pre-hook nil
625 "A hook called before check entity.")
626 (defvar wl-folder-check-entity-hook nil
627 "A hook called when check entity.")
628 (defvar wl-draft-config-exec-hook nil
629 "A hook called when execute header-config on draft.")
630 (defvar wl-summary-expire-pre-hook nil
631 "A hook called before expire.")
632 (defvar wl-summary-expire-hook nil
633 "A hook called when expired.")
634 (defvar wl-summary-archive-pre-hook nil
635 "A hook called before archive.")
636 (defvar wl-summary-archive-hook nil
637 "A hook called when archived.")
638 (defvar wl-summary-line-inserted-hook nil
639 "A hook called when summary line is inserted.")
640 (defvar wl-summary-insert-headers-hook nil
641 "A hook called when insert header for search header.")
642 (defvar wl-message-display-internal-hook nil
643 "A hook called when message buffer is created and message is displayed.
644 This hook may contain the functions `wl-setup-message' for
645 reasons of system internal to accord facilities for the Emacs variants.")
646 (defvar wl-thread-update-children-number-hook nil
647 "A hook called when children number is updated.")
648 (defvar wl-folder-update-access-group-hook nil
649 "A hook called when update access group folder.")
650 (defvar wl-draft-cited-hook nil
651 "A hook called after a message is cited.")
652 (defvar wl-draft-insert-x-face-field-hook nil
653 "A hook called after a x-face field is inserted.")
654 (defvar wl-template-mode-hook nil
655 "A hook called when template mode is started.")
656 (defvar wl-score-mode-hook nil
657 "A hook called when score mode is started.")
658 (defvar wl-make-plugged-hook nil
659 "A hook called when make plugged alist.")
661 (defvar wl-plugged-exit-hook nil
662 "A hook called when exit plugged mode.")
664 ;;;; functions for draft
665 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
666 "A function to send message."
670 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
671 "A function to send news."
675 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
676 "A function to send mail.
677 Prepared candidates are 'wl-draft-send-mail-with-smtp,
678 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
679 :type '(radio (function-item wl-draft-send-mail-with-smtp)
680 (function-item wl-draft-send-mail-with-qmail)
681 (function-item wl-draft-send-mail-with-pop-before-smtp)
682 (function :tag "Other"))
685 (defcustom wl-draft-reply-with-argument-list
686 '(("Reply-To" . (("Reply-To") nil nil))
687 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
688 ("From" . (("From") nil nil)))
689 "Alist of cons cell of
690 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
691 'field-name' is a string.
692 'fields for ***' is a list of strings.
693 If car of each cons cell exists in original message,
694 cdr of each cons cell is used for draft message.
695 Default is for 'reply-to-author'."
696 :type '(repeat (cons (choice (string :tag "Field Name")
697 (repeat (string :tag "Field Name")))
698 (list (repeat :tag "Fields For To" string)
699 (repeat :tag "Fields For Cc" string)
700 (repeat :tag "Fields For Newsgroups" string))))
703 (defcustom wl-draft-reply-without-argument-list
704 '(("Followup-To" . (nil nil ("Followup-To")))
705 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
706 ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
707 ("From" . (("From") ("To" "Cc") ("Newsgroups"))))
708 "Alist of cons cell of
709 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
710 'field-name' is a string.
711 'fields for ***' is a list of strings.
712 If car of each cons cell exists in original message,
713 cdr of each cons cell is used for draft message.
714 Default is for 'reply-to-all'."
715 :type '(repeat (cons (choice (string :tag "Field Name")
716 (repeat (string :tag "Field Name")))
717 (list (repeat :tag "Fields For To" string)
718 (repeat :tag "Fields For Cc" string)
719 (repeat :tag "Fields For Newsgroups" string))))
722 (defcustom wl-draft-reply-myself-with-argument-list
723 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
724 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
725 ("From" . (("To") ("Cc") nil)))
726 "Alist of cons cell of
727 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
728 'field-name' is a string.
729 'fields for ***' is a list of strings.
730 If car of each cons cell exists in original message,
731 cdr of each cons cell is used for draft message.
732 Default is for 'reply-to-me'."
733 :type '(repeat (cons (choice (string :tag "Field Name")
734 (repeat (string :tag "Field Name")))
735 (list (repeat :tag "Fields For To" string)
736 (repeat :tag "Fields For Cc" string)
737 (repeat :tag "Fields For Newsgroups" string))))
740 (defcustom wl-draft-reply-myself-without-argument-list
741 '(("Followup-To" . (("To") ("Cc") ("Followup-To")))
742 ("Newsgroups" . (("To") ("Cc") ("Newsgroups")))
743 ("From" . (("To") ("Cc") nil)))
744 "Alist of cons cell of
745 ('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
746 'field-name' is a string.
747 'fields for ***' is a list of strings.
748 If car of each cons cell exists in original message,
749 cdr of each cons cell is used for draft message.
750 Default is for 'followup-to-me'."
751 :type '(repeat (cons (choice (string :tag "Field Name")
752 (repeat (string :tag "Field Name")))
753 (list (repeat :tag "Fields For To" string)
754 (repeat :tag "Fields For Cc" string)
755 (repeat :tag "Fields For Newsgroups" string))))
758 (defcustom wl-draft-always-delete-myself nil
759 "*Always delete myself from reciepient if non-nil."
763 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
764 "*Do not insert bcc or fcc if To and Cc fields is a member of
765 `wl-subscribed-mailing-list'"
769 (defcustom wl-draft-resume-folder-window t
770 "*Resume folder window in `wl-draft-hide'."
774 (defcustom wl-draft-use-frame nil
775 "*Raise new frame when composing draft."
779 (defcustom wl-draft-qmail-send-plugged nil
780 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
784 (defcustom wl-draft-remove-group-list-contents t
785 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
790 (defcustom wl-init-file "~/.wl"
791 "*User customization setting file."
795 (defcustom wl-folders-file "~/.folders"
800 (defcustom wl-address-file "~/.addresses"
805 (defcustom wl-alias-file "~/.im/Aliases"
806 "*Alias file for completion."
810 (defcustom wl-ldap-server "localhost"
812 :type '(string :tag "Server")
816 (defcustom wl-ldap-port nil
818 :type '(choice (const :tag "Default port" nil)
823 (defcustom wl-ldap-base "c=US"
825 :type '(string :tag "Base")
829 (defcustom wl-ldap-objectclass "person"
835 (defcustom wl-use-ldap nil
836 "*If non-nil, use LDAP for address completion."
841 (defcustom wl-use-acap nil
842 "*If non-nil, use ACAP for configuration."
846 (defcustom wl-folder-info-save t
847 "If non-nil, save elmo-folder-info-alist."
851 (defcustom wl-summary-unread-mark "!"
852 "Mark for unread message."
853 :type '(string :tag "Mark")
854 :group 'wl-summary-marks)
855 (defcustom wl-summary-important-mark "$"
856 "Mark for important message."
857 :type '(string :tag "Mark")
858 :group 'wl-summary-marks)
859 (defcustom wl-summary-new-mark "N"
860 "Mark for new message."
861 :type '(string :tag "Mark")
862 :group 'wl-summary-marks)
863 (defcustom wl-summary-unread-uncached-mark "U"
864 "Mark for unread and uncached message."
865 :type '(string :tag "Mark")
866 :group 'wl-summary-marks)
867 (defcustom wl-summary-unread-cached-mark "!"
868 "Mark for unread but already cached message."
869 :type '(string :tag "Mark")
870 :group 'wl-summary-marks)
871 (defcustom wl-summary-read-uncached-mark "u"
872 "Mark for read but uncached message."
873 :type '(string :tag "Mark")
874 :group 'wl-summary-marks)
875 (defcustom wl-summary-score-over-mark "+"
876 "Score mark used for messages with high scores."
877 :type '(string :tag "Mark")
878 :group 'wl-summary-marks)
879 (defcustom wl-summary-score-below-mark "-"
880 "Score mark used for messages with low scores."
881 :type '(string :tag "Mark")
882 :group 'wl-summary-marks)
884 (defcustom wl-summary-no-mime-folder-list nil
885 "*All folders that match this list don't analysis mime."
886 :type '(repeat string)
889 (defcustom wl-summary-fix-timezone nil
890 "*Time zone of the date string in summary mode.
891 If nil, it is adjust to the default time zone information
892 \(system's default time zone or environment variable TZ\)."
893 :type '(choice (const :tag "Default time zone" nil)
897 (defcustom wl-summary-default-score 0
898 "*Default message score level.
899 All scores generated by the score files will be added to this score.
900 If this variable is nil, scoring will be disabled."
901 :type '(choice (const :tag "disable" nil)
905 (defcustom wl-summary-important-above nil
906 "*Mark all messages with a score above this variable as important.
907 This variable is local to the summary buffers."
908 :type '(choice (const :tag "off" nil)
912 (defcustom wl-summary-target-above nil
913 "*Mark all messages with a score above this variable as target.
914 This variable is local to the summary buffers."
915 :type '(choice (const :tag "off" nil)
919 (defcustom wl-summary-mark-below 0
920 "*Mark all messages with a score below this variable as read.
921 This variable is local to each summary buffer and usually set by the
926 (defcustom wl-summary-expunge-below nil
927 "All messages that have a score less than this variable will be expunged.
928 This variable is local to the summary buffers."
929 :type '(choice (const :tag "off" nil)
933 (defcustom wl-summary-score-marks
934 (list wl-summary-new-mark)
935 "Persistent marks to scoring."
936 :type '(repeat (string :tag "Mark"))
939 (defcustom wl-use-scoring t
940 "*If non-nil, enable scoring."
944 (defcustom wl-summary-rescore-partial-threshold 200
945 "*Summary is not scored entirely if there are messages more than this value.
946 In sync-all or rescan."
950 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
951 "*Name of the directory where score files will be stored.
952 (default \"~/.elmo\")."
956 (defcustom wl-score-interactive-default-score 1000
957 "*Scoring commands will raise/lower the score with this number as the default."
961 (defcustom wl-score-expiry-days 7
962 "*Number of days before unused score file entries are expired.
963 If this variable is nil, no score file entries will be expired."
964 :type '(choice (const :tag "never" nil)
968 (defcustom wl-score-update-entry-dates t
969 "*In non-nil, update matching score entry dates.
970 If this variable is nil, then score entries that provide matches
971 will be expired along with non-matching score entries."
975 (defcustom wl-score-folder-alist nil
976 "*Alist of folder regexp and score file."
977 :type '(repeat (list (regexp :tag "Folder Regexp")
980 (symbol :tag "Variable")))))
983 (defcustom wl-score-folder-alist-matchone t
984 "*If non-nil, getting only one element of `wl-score-folder-alist'."
988 (defcustom wl-score-default-file "all.SCORE"
989 "*Default score file name."
993 (defcustom wl-score-simplify-fuzzy-regexp
994 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
995 "*Strings to be removed when doing fuzzy matches.
996 This can either be a regular expression or list of regular expressions."
997 :type '(repeat regexp)
1000 (defcustom wl-score-header-default-entry
1001 '(("number" -1000 perm =)
1002 ("subject" -1000 nil nil)
1003 ("from" -1000 perm s)
1004 ("message-id" -1000 temp e)
1005 ("references" -1000 perm e)
1008 ("date" -1000 temp nil)
1009 ("xref" -1000 perm s)
1010 ("extra" -1000 perm s)
1011 ("chars" -1000 perm >)
1012 ("lines" -1000 perm >)
1013 ("followup" -1000 perm s)
1014 ("thread" -1000 temp s))
1015 "*Default entry when insert score entry."
1016 :type '(repeat (list (string :tag "Header")
1017 (choice (integer :tag "Score")
1018 (const :tag "Ask" nil))
1019 (choice (const :tag "Permanent" perm)
1020 (const :tag "Temporary" temp)
1021 (const :tag "Ask" nil))
1022 (choice (const :tag "Regexp string" r)
1023 (const :tag "Substring" s)
1024 (const :tag "fuzzy string" f)
1025 (const :tag "Exact string" e)
1026 (const :tag "REGEXP STRING" R)
1027 (const :tag "SUBSTRING" S)
1028 (const :tag "FUZZY STRING" F)
1029 (const :tag "EXACT STRING" E)
1030 (const :tag "less than" <)
1031 (const :tag "less equal" <=)
1032 (const :tag "greater than" >)
1033 (const :tag "greater equal" >=)
1034 (const :tag "equal" =)
1035 (const :tag "Ask" nil))))
1038 (defcustom wl-score-mode-mime-charset 'x-ctext
1039 "*MIME Charset for score file."
1043 (defcustom wl-draft-fields
1044 '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1045 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1046 "Fields used in draft mode."
1047 :type '(repeat (string :tag "Field"))
1050 (defcustom wl-draft-config-alist nil
1051 "Alist of configuration field on draft.
1053 '((\"^To: .*wl@lists.airs.net\"
1054 (\"From\" . wl-from2)
1055 (\"Organization\" . wl-organization2))
1056 (\"^To: .*hogehoge@\"
1057 (\"From\" . \"Anonymous <hogehoge@aaa.ne.jp>\")
1058 wl-my-draft-config-func-hoge))"
1059 :type '(repeat (list (sexp :tag "Match")
1062 (choice (cons (sexp :tag "Field(Variable)")
1063 (sexp :tag "Value"))
1064 (sexp :tag "Function")))))
1068 (defcustom wl-draft-config-matchone nil
1069 "*If non-nil, applied only one element of `wl-draft-config-alist'."
1074 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1075 "*The string which is inserted for elided text."
1079 (defcustom wl-template-alist nil
1080 "Alist of template."
1081 :type '(repeat (list (string :tag "Name")
1084 (choice (cons (sexp :tag "Field(Variable)")
1085 (sexp :tag "Value"))
1086 (sexp :tag "Function")))))
1090 (defcustom wl-template-visible-select t
1091 "*If non-nil, select template with visible."
1095 (defcustom wl-template-confirm nil
1096 "*If non-nil, require your confirmation when selected template."
1100 (defcustom wl-template-buffer-lines 7
1101 "*Lines of template buffer."
1106 (defcustom wl-draft-enable-queuing t
1107 "*Non-nil enables queued sending."
1112 (defcustom wl-draft-force-queuing nil
1113 "*Non-nil forces queued sending for mail and news."
1118 (defcustom wl-draft-force-queuing-mail nil
1119 "*Non-nil forces queued sending for mail."
1124 (defcustom wl-draft-force-queuing-news nil
1125 "*Non-nil forces queued sending for news."
1130 (defcustom wl-draft-use-cache nil
1131 "*If non-nil, sending message is cached."
1136 (defcustom wl-auto-flush-queue t
1137 "*If non-nil, sending queue is flushed when network status is toggled."
1142 (defcustom wl-draft-reply-buffer-style 'split
1144 :type '(radio (const split)
1148 (defcustom wl-draft-queue-save-variables
1149 '(wl-envelope-from wl-from
1150 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1151 wl-smtp-authenticate-type wl-smtp-connection-type
1152 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1153 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1154 wl-nntp-posting-server wl-nntp-posting-server
1155 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1156 "*Saving variables in queue info."
1157 :type '(repeat (sexp :tag "Variable"))
1160 (defcustom wl-draft-sendlog t
1161 "*Keep send state in log if non-nil."
1165 (defcustom wl-draft-sendlog-max-size 20000
1166 "*Max file size of sendlog."
1170 (defcustom wl-summary-default-number-column 5
1171 "Number of columns in summary buffer."
1175 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1176 "Alist of folder and its number column.
1177 If no matches, 'wl-summary-default-number-column' is used.
1179 '((\"^%inbox@qmail-maildir\" . 9)
1180 (\"^-.*@news-server\" . 6))"
1181 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1184 (defcustom wl-summary-highlight t
1185 "Non-nil forces Summary buffer to be highlighted."
1188 :group 'wl-highlight)
1190 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1191 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1194 :group 'wl-highlight)
1196 (defcustom wl-summary-highlight-partial-threshold 1000
1197 "Summary is not highlighted entirely if there are lines more than this value.
1198 Available if only `wl-summary-lazy-highlight' is nil."
1201 :group 'wl-highlight)
1203 (defcustom wl-summary-partial-highlight-above-lines 30
1204 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1205 Summary lines are highlighted partialy above current position.
1206 Available if only `wl-summary-lazy-highlight' is nil."
1209 :group 'wl-highlight)
1211 (defcustom wl-summary-cache-use t
1212 "Non-nil forces wl-summary to use cache file."
1216 (defcustom wl-summary-auto-sync-marks t
1217 "Non-nil forces to synchronize unread/important marks."
1221 (defcustom wl-summary-cache-file ".wl-summary-cache"
1222 "*Cache file for summary mode contents."
1225 (defcustom wl-summary-view-file ".wl-summary-view"
1226 "*Current summary view."
1229 (defcustom wl-thread-top-file ".wl-thread-top"
1230 "*Current thread top entity... obsolete."
1233 (defcustom wl-thread-entity-file ".wl-thread-entity"
1237 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1238 "*Thread top entity list."
1242 (defcustom wl-print-buffer-function 'lpr-buffer
1243 "A function to print current buffer."
1247 (defcustom wl-ps-print-buffer-function
1248 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1249 "A function to print current buffer with ps-print."
1254 (defcustom wl-use-petname t
1255 "*Display petname in summary and default citation title."
1259 (defcustom wl-use-folder-petname
1261 "*List of situation using folder petname.
1262 Allowed situations are:
1263 modeline : displayed on modeline.
1264 ask-folder : displayed on minibuffer when ask folder.
1265 read-folder : can used for completion at `wl-summary-read-folder'."
1266 :type '(set (const modeline)
1268 (const read-folder))
1272 (defcustom wl-folder-petname-alist nil
1273 "A list of (realname . petname)."
1274 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1277 (defcustom wl-summary-weekday-name-lang "ja"
1278 "*Language to display week day."
1279 :type '(choice (const "ja")
1283 (string :tag "Other"))
1287 (defcustom wl-message-id-use-wl-from nil
1288 "*Use `wl-from' for domain part of Message-ID if non-nil."
1292 (defcustom wl-local-domain nil
1293 "*Domain part of this client (without hostname).
1294 Set this if (system-name) does not return FQDN."
1295 :type '(choice (const :tag "Use System Name" nil)
1299 (defcustom wl-message-id-domain nil
1300 "*Specific domain part of Message-ID."
1301 :type '(choice (const :tag "Use System Name" nil)
1305 (defcustom wl-unique-id-suffix ".wl"
1306 "*Specific string in generated Message-ID
1307 which appear just before @."
1311 (defcustom wl-break-pages t
1312 "*Break Pages at ^L."
1316 (defcustom wl-message-truncate-lines default-truncate-lines
1317 "*Truncate lines in Message Buffer."
1321 (defcustom wl-draft-truncate-lines default-truncate-lines
1322 "*Truncate lines in Draft Buffer."
1327 (defcustom wl-message-scroll-amount 5
1328 "*Scroll amount by SPC key."
1332 (defcustom wl-message-window-size '(1 . 4)
1333 "*Size of summary and message window. cons cell of (Summary : Message)."
1334 :type '(cons integer integer)
1337 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1338 "Newsgroups" "Subject" "^From")
1339 "*Sort order of header fields. Each elements are regexp of field name."
1340 :type '(repeat (string :tag "Field Regexp"))
1344 (defcustom wl-message-ignored-field-list nil
1345 "All fields that match this list will be hidden in message buffer.
1346 Each elements are regexp of field-name."
1347 :type '(repeat (string :tag "Field Regexp"))
1351 (defcustom wl-message-visible-field-list nil
1352 "All fields that match this list will be displayed in message buffer.
1353 Each elements are regexp of field-name."
1354 :type '(repeat (string :tag "Field Regexp"))
1358 (defcustom wl-message-header-button-alist
1359 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1361 0 wl-message-button-refer-article 0)
1363 "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1364 1 wl-message-button-refer-article 3)))
1365 "Alist of headers and regexps to match buttons in message headers."
1367 (list (regexp :tag "Header")
1369 (integer :tag "Button")
1370 (function :tag "Callback")
1373 (integer :tag "Regexp group"))))
1376 (defcustom wl-message-body-button-alist
1377 '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1378 ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 0 1024))
1379 "Alist of regexps to match buttons in message body."
1382 (integer :tag "Button")
1383 (function :tag "Callback")
1386 (integer :tag "Regexp group"))
1387 (integer :tag "Max Length")))
1390 (defcustom wl-folder-window-width 20
1391 "*Width of folder window."
1396 (defcustom wl-summary-recenter t
1397 "*Recenter on redisplay."
1402 (defcustom wl-folder-use-frame nil
1403 "*Use dedicated frame for folder mode if non-nil."
1407 (defcustom wl-summary-use-frame nil
1408 "*Use dedicated frame for each folder summary if non-nil."
1412 (defcustom wl-stay-folder-window nil
1413 "*Stay folder window when folder is selected if non-nil."
1417 (defcustom wl-reply-subject-prefix "Re: "
1418 "*Prefix of the subject of the replied message."
1423 (defcustom wl-draft-reply-use-address-with-full-name t
1424 "*Use address with full-name in the draft of replied message."
1429 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1430 "*Regexp matching \"Re: \" in the subject line."
1435 (defcustom wl-folder-many-unsync-threshold 70
1436 "*Folders which contains messages more than this number are highlighted
1437 with wl-highlight-folder-many-face."
1442 (defcustom wl-fcc nil
1443 "*Folder Carbon Copy."
1444 :type '(choice (const :tag "disable" nil)
1449 (defcustom wl-fcc-force-as-read nil
1450 "*If non-nil, mark copied message as read."
1455 (defcustom wl-bcc nil
1456 "*Blind Carbon Copy."
1457 :type '(choice (const :tag "disable" nil)
1462 (defcustom wl-folder-desktop-name "Desktop"
1463 "*An implicit name of the folder top entity."
1468 (defcustom wl-summary-indent-length-limit 46
1469 "*Limit of indent length for thread. Nil means unlimited"
1470 :type '(choice (const :tag "Unlimited" nil)
1475 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1476 "*A string displayed in summary when no from field exists."
1480 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1481 "*A string displayed in summary when no subject field exists."
1485 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1486 "*The body content of a cancel message."
1490 (defcustom wl-summary-width 80
1491 "*Set summary line width if non nil."
1492 :type '(choice (const :tag "Don't truncate" nil)
1497 (defcustom wl-summary-pick-field-default "Body"
1498 "*Default field for pick."
1499 :type '(radio (const "From")
1508 (string :tag "Other"))
1511 (defcustom wl-summary-subject-length-limit nil
1512 "*Set subject width in summary when wl-summary-width is nil.
1513 Nil means unlimited"
1514 :type '(choice (const :tag "Unlimited" nil)
1519 (defcustom wl-mime-charset 'x-ctext
1520 "*MIME Charset for summary and message."
1525 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1526 "A function for creating User-Agent field string."
1530 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1531 (or hilit-background-mode 'dark)
1533 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1534 :type '(radio (const dark)
1536 :group 'wl-highlight)
1538 (defcustom wl-highlight-x-face-function nil
1539 "A function to display X-Face."
1541 :group 'wl-highlight)
1543 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1544 "Location of the qmail-inject program."
1545 :type '(string :tag "Program")
1548 (defcustom wl-qmail-inject-args nil
1549 "Arguments passed to qmail-inject programs.
1550 This should be a list of strings, one string for each argument.
1552 For e.g., if you wish to set the envelope sender address so that bounces
1553 go to the right place or to deal with listserv's usage of that address, you
1554 might set this variable to '(\"-f\" \"you@some.where\")."
1555 :type '(repeat (string :tag "Argument"))
1558 (defcustom wl-rejected-letter-start
1559 "^[\t ]*-+[\t ]+\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*$"
1560 "Regexp specifying the beginning of the wrapper around a returned letter.
1561 This wrapper is generated by the mail system when rejecting a letter."
1565 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1566 "*All headers that match this regexp will be deleted when forwarding a message."
1570 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1571 "*All headers that match this regexp will be deleted when resending a message."
1575 (defcustom wl-refile-default-from-folder "+from"
1576 "*Folder name to refile by `wl-refile-guess-by-from'."
1577 :type '(string :tag "Folder")
1580 (defcustom wl-summary-auto-refile-skip-marks
1581 (list wl-summary-new-mark
1582 wl-summary-unread-uncached-mark
1583 wl-summary-unread-cached-mark)
1584 "Persistent marks to skip auto-refiling."
1585 :type '(repeat (string :tag "Mark"))
1588 (defcustom wl-summary-reserve-mark-list
1590 "If a message is already marked as temporal marks in this list,
1591 the message is not marked by any mark command."
1592 :type '(repeat (string :tag "Temp-Mark"))
1595 (defcustom wl-summary-skip-mark-list
1597 "If a message is already marked as temporal marks in this list,
1598 the message is skipped at cursor move."
1599 :type '(repeat (string :tag "Temp-Mark"))
1602 (defcustom wl-summary-incorporate-marks
1603 (list wl-summary-new-mark
1604 wl-summary-unread-uncached-mark)
1605 "Persistent marks to prefetch at `wl-summary-incorporate'."
1606 :type '(repeat (string :tag "Mark"))
1609 (defcustom wl-refile-rule-alist nil
1614 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1616 (\"^Wanderlust\" . \"+wl\")
1617 (\"^Elips\" . \"+elips\")))"
1618 :type '(repeat (list (string :tag "Field")
1620 (cons (regexp :tag "Value")
1621 (string :tag "Folder")))))
1624 (defcustom wl-strict-diff-folders nil
1625 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1626 :type '(choice (const :tag "Off" nil)
1627 (repeat (regexp :tag "Folder Regexp")))
1630 (defcustom wl-folder-use-server-diff t
1631 "Checked unread message number on IMAP4 server.
1632 Only IMAP4 folders have an effect."
1636 (defcustom wl-force-fetch-folders nil
1637 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1638 :type '(choice (const :tag "off" nil)
1639 (const :menu-tag "on" t)
1640 (repeat (regexp :tag "Folder Regexp")))
1643 (defcustom wl-auto-check-folder-name nil
1644 "*A folder, a group or a list of folders and groups specified which
1645 will be automatically checked at the startup time."
1646 :type '(choice (string :tag "Folder")
1647 (repeat (string :tag "Folder"))
1651 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1652 "All folders that match this list won't be checked at the startup
1653 time even if they are embedded in some groups specified by
1654 wl-auto-check-folder-name.
1655 Those folders are also skipped when you check on the Desktop.
1656 This value is preceded by wl-auto-check-folder-list.
1657 Each elements are regexp of folder name."
1658 :type '(repeat (regexp :tag "Folder Regexp"))
1661 (defcustom wl-auto-check-folder-list nil
1662 "A list of patterns for exceptional folders against
1663 wl-auto-uncheck-folder-list.
1664 Each elements are regexp of folder name."
1665 :type '(repeat (regexp :tag "Folder Regexp"))
1668 (defcustom wl-show-plug-status-on-modeline t
1669 "If it is non-nil, show plugged status in modeline."
1671 :group 'wl-highlight)
1673 (defcustom wl-plug-state-indicator-on " [ON] "
1674 "String used to show plugged status ON."
1676 :group 'wl-highlight)
1678 (defcustom wl-plug-state-indicator-off " [--] "
1679 "String used to show plugged status OFF."
1681 :group 'wl-highlight)
1683 (defcustom wl-biff-check-folder-list nil
1684 "All folders that match this list are automatically checked
1685 every intervals specified by wl-biff-check-interval."
1686 :type '(repeat (regexp :tag "Folder Regexp"))
1687 :group 'wl-highlight)
1689 (defcustom wl-biff-check-interval 40
1690 "Number of seconds between updates of new mails in the mode line."
1692 :group 'wl-highlight)
1694 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
1695 (not (featurep 'mule)))
1697 (decode-coding-string
1699 (read "\"[\e$B\\\")\e(B]\"")
1703 "String used to show biff status ON."
1705 :group 'wl-highlight)
1707 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
1708 (not (featurep 'mule)))
1710 ;; Japanese short hyphen
1712 "String used to show biff status OFF."
1714 :group 'wl-highlight)
1716 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1717 "Displaying order of items to be shown in modeline. The first item will
1718 be placed in the leftmost. The significant items are `biff' and `plug';
1719 otherwise, e.g. `title', corresponds to the things except for the biff
1720 staus nor the plugged status. The default order is '(biff plug title)
1721 even if the value of this option is set to nil. Here are some samples:
1723 ;; Plugged status first:
1724 \(setq wl-mode-line-display-priority-list '(plug))
1726 ;; Biff status, Title of Wanderlust, Plugged status:
1727 \(setq wl-mode-line-display-priority-list '(biff title plug))
1730 :type '(repeat (radio (const :format "%v " biff)
1731 (const :format "%v " plug)
1732 (sexp :tag "Other" :value title)))
1733 :group 'wl-highlight)
1735 (defcustom wl-interactive-send t
1736 "*If non-nil, require your confirmation when sending draft message."
1741 (defcustom wl-interactive-exit t
1742 "*If non-nil, require your confirmation when exiting WL."
1746 (defcustom wl-summary-move-order 'unread
1747 "*The order of priority when move in summary mode.
1748 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1749 If this variable is `new', precede \"N\" mark."
1750 :type '(radio (const new)
1755 (defvar wl-summary-move-direction-downward t)
1757 (defcustom wl-summary-move-direction-toggle t
1758 "*If non-nil, search direction for the next message will be determined
1759 depends on previous search direction.
1760 It uses wl-summary-move-direction-downward as a direction flag."
1764 (defcustom wl-auto-select-first nil
1765 "*If non-nil, display selected first message when enter summary."
1770 (defcustom wl-auto-prefetch-first nil
1771 "*If non-nil, prefetch selected first message when enter summary."
1776 (defcustom wl-auto-select-next nil
1777 "*If non-nil, offer to go to the next folder from the end of the previous.
1778 If the value is the symbol `unread', go to the next folder
1779 that no unread message exists. If the value is the symbol `skip-no-unread',
1780 skip the folder that no unread message exists.
1782 See also variable `wl-summary-next-no-unread-command'."
1783 :type '(radio (const :tag "off" nil)
1786 (const skip-no-unread))
1790 (defcustom wl-message-buffer-prefetch-folder-type-list t
1791 "*All folder types that match this list prefetch next message,
1792 and reserved buffer cache."
1793 :type `(choice (const :tag "all" t)
1794 (const :tag "never" nil)
1795 (set (const localdir)
1808 (defcustom wl-message-buffer-prefetch-folder-list nil
1809 "*All folders that match this list prefetch next message,
1810 and reserved buffer cache.
1813 :type '(repeat (regexp :tag "Folder Regexp"))
1816 (defcustom wl-message-buffer-prefetch-depth 3
1817 "*Depth of buffer prefetch in summary mode."
1821 (defcustom wl-message-buffer-prefetch-idle-time 0.2
1822 "*Idle time of buffer prefetch."
1826 (defcustom wl-message-buffer-prefetch-threshold 30000
1827 "*Quit forward cache prefetching if message size is larger than this value."
1831 (defcustom wl-summary-always-sticky-folder-list nil
1832 "All folders that match this list has sticky summary.
1833 Each elements are regexp of folder name."
1834 :type '(radio (const :tag "none" nil)
1835 (const :tag "all" t)
1836 (repeat (regexp :tag "Folder Regexp")))
1839 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
1840 "All folders that match this list won't save its msgdb.
1841 Each elements are regexp of folder name."
1842 :type '(repeat (regexp :tag "Folder Regexp"))
1845 (defcustom wl-save-folder-list nil
1846 "All folders that match this list save its msgdb.
1847 Each elements are regexp of folder name."
1848 :type '(repeat (regexp :tag "Folder Regexp"))
1851 (defcustom wl-folder-mime-charset-alist
1852 '(("^-alt\\.chinese" . big5)
1853 ("^-relcom\\." . koi8-r)
1855 ("^-han\\." . euc-kr)
1856 ("@sponichi" . shift_jis)
1857 ("@2ch" . shift_jis))
1858 "Charset alist. If no match, `wl-mime-charset' is used."
1859 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
1863 (defcustom wl-folder-weekday-name-lang-alist
1864 '(("^-alt\\.chinese" . "en")
1865 ("^-relcom\\." . "en")
1867 ("^-han\\." . "en"))
1868 "Weekday name lang alist.
1869 If no match, `wl-summary-weekday-name-lang' is used.
1871 '((\"xemacs-beta$\" . \"en\")
1872 (\"^-fj\" . \"ja\"))"
1873 :type '(repeat (cons (regexp :tag "Folder Regexp")
1874 (choice (const "ja")
1878 (string :tag "Other"))))
1881 (defcustom wl-folder-thread-indent-set-alist
1882 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
1883 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
1884 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
1885 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
1886 "Thread indent set alist.
1887 If no match, following indent set is used.
1888 (wl-thread-indent-level
1889 wl-thread-have-younger-brother-str
1890 wl-thread-youngest-child-str
1891 wl-thread-vertical-str
1892 wl-thread-horizontal-str
1893 wl-thread-space-str)
1895 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
1896 :type '(repeat (cons (regexp :tag "Folder Regexp")
1897 (group (integer :tag "Indent")
1898 (string :tag "Yonger Brother")
1899 (string :tag "Yonger Child")
1900 (string :tag "Vertical")
1901 (string :tag "Horizontal")
1902 (string :tag "Space"))))
1905 (defcustom wl-folder-sync-range-alist
1906 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
1907 (regexp-quote wl-queue-folder) "$")
1909 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
1910 :type '(repeat (cons (regexp :tag "Folder Regexp")
1911 (choice (const "update")
1917 (const :tag "none" nil))))
1920 (defcustom wl-default-sync-range "update"
1921 "*Default sync range."
1922 :type '(choice (const "update")
1928 (const :tag "none" nil))
1931 (defcustom wl-ask-range t
1932 "*If non-nil, ask for a range for summary synchronization.
1933 If nil, always use default."
1937 (defcustom wl-folder-process-duplicates-alist nil
1938 "Specify process type of duplicated messages.
1939 It should be a list of cons cell like: (REGEXP . TYPE)
1940 REGEXP is a regular expression string of folder name.
1941 TYPE is one of the symbols `hide' or `read'.
1942 `hide' means hide duplicated messages.
1943 `read' means mark as read duplicated messages.
1944 If TYPE is nil, do nothing for duplicated messages."
1945 :type '(repeat (cons (regexp :tag "Folder regexp")
1946 (choice (const :tag "Hide" hide)
1947 (const :tag "Mark as read" read))))
1950 (defcustom wl-folder-move-cur-folder nil
1951 "*Non-nil, move to current folder on folder-mode when goto folder."
1955 (defcustom wl-folder-check-async t
1956 "*Check the folder asynchronous."
1960 (defcustom wl-folder-notify-deleted nil
1961 "*Non-nil, display negative number on folder-mode when message is deleted
1962 in folder. If the value is 'sync, msgdb would be synchronized."
1963 :type '(choice (const :tag "off" nil)
1968 (defcustom wl-summary-exit-next-move t
1969 "*Non-nil, move to next-unsync or next-entity when exit summary."
1973 (defcustom wl-summary-next-no-unread-command
1974 '(wl-summary-read wl-summary-down wl-summary-up)
1975 "*Command list available when the value of `wl-auto-select-next' is 'unread
1976 or 'skip-no-unread."
1977 :type '(repeat function)
1980 (defcustom wl-summary-search-via-nntp 'confirm
1981 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'. If the value is 'confirm, confirm before search."
1985 (defcustom wl-summary-keep-cursor-command
1986 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
1987 "*Command list to keep cursor position when folder is changed to
1988 already existing summary."
1989 :type '(repeat function)
1992 (defcustom wl-summary-showto-folder-regexp nil
1993 "Regexp specifying the folder that shows the To (or Newsgroups) field as
1994 Sender information in summary mode."
1995 :type '(choice (const :tag "none" nil)
1999 (defcustom wl-folder-removed-mark "#<removed>"
2000 "Mark for removed folder."
2004 (defcustom wl-folder-unsubscribe-mark "#"
2005 "Mark for unsubscribe folder."
2009 (defcustom wl-delete-folder-alist '(("^-" . remove))
2010 "*Alist of folder and delete policy.
2011 Each element is (folder-regexp . policy).
2013 The policy is one of the followings:
2015 'null : remove message.
2016 string : refile to the specified folder.
2018 otherwise : refile to the `wl-trash-folder'.
2020 '((\"^%\" . \"%#mh/trash\")
2022 (\"^\\\\+\" . trash))"
2023 :type '(repeat (cons (regexp :tag "Folder Regexp")
2024 (choice :tag "Policy"
2026 (const :tag "remove(null)" null)
2028 (const :tag "trash(other)" trash)
2029 (string :tag "Folder"))))
2032 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
2034 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
2035 POLICY is copy or move."
2036 :type '(repeat (cons (regexp :tag "Folder Regexp")
2037 (choice (const copy)
2042 (defcustom wl-folder-hierarchy-access-folders '("^-$" "^-alt$")
2043 "*Access group REGEXPs to make hierarchy structure."
2044 :type '(repeat (string :tag "Folder"))
2047 (defcustom wl-folder-init-load-access-folders nil
2048 "*Access group folders to load folder list on `wl-folder-init'.
2049 If this variable is non-nil,
2050 `wl-folder-init-no-load-access-folders' will be ignored."
2051 :type '(repeat (regexp :tag "Folder Regexp"))
2054 (defcustom wl-folder-init-no-load-access-folders nil
2055 "*Access group folders to not load folder list on `wl-folder-init'.
2056 If `wl-folder-init-load-access-folders' is non-nil,
2057 this variable will be ignored."
2058 :type '(repeat (regexp :tag "Folder Regexp"))
2061 (defcustom wl-folder-access-subscribe-alist nil
2062 "*Subscribe folders to fetching folder entries.
2063 Each element is (group-regexp (subscribe folder-regexp ...)).
2064 If subscribe is non-nil, subscribe when match folder-regexp.
2065 If subscribe is nil, unsubscribe when match folder-regexp.
2068 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2069 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2070 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
2071 :type '(repeat (cons (regexp :tag "Folder Regexp")
2072 (list (boolean :tag "Subscribed")
2074 (regexp :tag "Folder Regexp")))))
2077 ;;; For Folder Manager
2079 (defcustom wl-interactive-save-folders t
2080 "*Non-nil require your confirmation when save folders."
2085 (defcustom wl-fldmgr-make-backup t
2086 "*Non-nil make backup file when save folders."
2090 (defcustom wl-fldmgr-folders-indent "\t"
2091 "*Indent string for folders file."
2095 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2096 "*A function to sort folder."
2100 (defcustom wl-fldmgr-sort-group-first t
2101 "*Non-nil Group folder is first when sort."
2105 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2106 "*If non-nil, completion for adding folder refers current folder list."
2110 (defcustom wl-fldmgr-make-filter-default "Body"
2111 "*Default filter key while making filter on Folder."
2112 :type '(radio (const "From")
2121 (string :tag "Other"))
2124 (defcustom wl-fldmgr-allow-rename-access-group nil
2125 "*If non-nil, allow to rename folder in access group."
2129 ;;; For Expire and Archive
2131 (defcustom wl-expire-alist nil
2132 "Alist to decide a policy for expire.
2133 Each element is (folder-regexp (number or date) policy).
2135 The policy is one of the followings:
2136 'remove : remove messsage.
2137 'trash : refile `wl-trash-folder'.
2138 string : refile string folder.
2139 function : call function.
2142 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
2143 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
2144 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
2145 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
2146 (\"^\\\\+misc$\" (date 14) trash))"
2147 :type '(repeat (choice (list :tag "No-match"
2148 (regexp :tag "Folder Regexp")
2151 (regexp :tag "Folder Regexp")
2152 (list (radio :value number
2157 (repeat :inline t integer)))
2158 (choice :tag "Policy"
2162 (string :tag "folder")
2165 :tag "Arg for function"
2169 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2170 "Alist to decide a policy for archive.
2171 Each element is (folder-regexp policy(function)).
2174 '((\"\\\\+work$\" wl-archive-date)
2175 (\"\\\\+ml/\" wl-archive-number1)
2176 (\".*\" wl-archive-number2))"
2177 :type '(repeat (list (regexp :tag "Folder Regexp")
2180 (sexp :tag "Argument"))))
2183 (defcustom wl-summary-expire-reserve-marks
2184 (list wl-summary-important-mark
2186 wl-summary-unread-mark
2187 wl-summary-unread-uncached-mark
2188 wl-summary-unread-cached-mark)
2189 "Permanent marks of reserved message when expire.
2190 Don't reserve temporary mark message.
2193 'all : reserved all permanent marks.
2194 'none : not reserve permanent marks.
2195 list : reserved specified permanent marks."
2196 :type '(repeat (string :tag "Mark"))
2199 (defcustom wl-expire-number-with-reserve-marks nil
2200 "If non-nil, include reserve message when expire by number."
2204 (defcustom wl-expire-add-seen-list t
2205 "*If non-nil, add seen message list when refile message at expire."
2209 (defcustom wl-expire-use-log nil
2210 "*If non-nil, write a log when expired."
2214 (defcustom wl-expire-folder-update-msgdb t
2215 "*Non-nil update summary msgdb when expire on folder mode."
2219 ;; for wl-expire-archive-{number1|number2}
2220 (defcustom wl-expire-archive-files 100
2221 "*The number of one archive folder."
2225 ;; for wl-expire-archive-{number1|number2|date}
2226 (defcustom wl-expire-archive-get-folder-function
2227 'wl-expire-archive-get-folder
2228 "*A function to get archive folder name."
2232 (defcustom wl-expire-delete-oldmsg-confirm t
2233 "*If non-nil, require your confirmation when delete old message."
2237 ;; for wl-expire-archive-get-folder
2238 (defcustom wl-expire-archive-folder-type 'zip
2239 "*Archiver type of archive folder."
2240 :type '(radio (const zip)
2246 (symbol :tag "Other"))
2249 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2250 "*A format string for archive folder name."
2254 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2255 "*A regexp string for archive folder name."
2259 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2260 ;; $folder-199812;zip
2261 "*A format string for archive date folder name."
2265 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2266 "*A regexp string for archive date folder name."
2270 (defcustom wl-expire-archive-folder-prefix nil
2271 "*Prefix for archive folder."
2272 :type '(radio (const :tag "nothing" nil)
2273 (const :tag "full" t)
2279 ;; highilght about summary
2280 (defcustom wl-highlight-max-summary-lines 10000
2281 "*If the summary is larger than this lines, don't highlight it."
2283 :group 'wl-highlight)
2285 ;; highilght about draft and message
2286 (defcustom wl-highlight-body-too t
2287 "*In addition to header, highlight the body too. if non nil."
2289 :group 'wl-highlight)
2291 (defcustom wl-highlight-message-header-alist
2292 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2293 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2294 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2296 :type '(repeat (cons regexp face))
2297 :group 'wl-highlight)
2299 (defcustom wl-highlight-citation-prefix-regexp
2300 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2301 "All lines that match this regexp will be highlighted with
2302 `wl-highlight-message-cited-text-*' face."
2304 :group 'wl-highlight)
2306 (defcustom wl-highlight-highlight-citation-too nil
2307 "*Whether the whole citation line should go in the
2308 `wl-highlight-citation-face' face.
2309 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2310 default face, and the remainder of the line is in the
2311 wl-highlight-message-cited-text face."
2313 :group 'wl-highlight)
2315 (defcustom wl-highlight-force-citation-header-regexp
2316 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2317 "*The pattern to match the prolog of a cited block.
2318 Text in the body of a message which matches this will be displayed in
2319 the `wl-highlight-message-headers' face."
2321 :group 'wl-highlight)
2323 (defcustom wl-highlight-citation-header-regexp
2324 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2325 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2326 "^.*\\(writes\\|wrote\\|said\\):\n")
2327 "*The pattern to match the prolog of a cited block.
2328 Text in the body of a message which matches this will be displayed in
2329 the `wl-highlight-message-headers' face."
2331 :group 'wl-highlight)
2333 (defcustom wl-highlight-max-header-size nil
2334 "*If the message header is larger than this many chars, don't highlight it.
2335 If this is nil, all headers will be highlighted."
2337 :group 'wl-highlight)
2339 (defcustom wl-highlight-max-message-size 10000
2340 "*If the message body is larger than this many chars, don't highlight it.
2341 This is to prevent us from wasting time trying to fontify things like
2342 uuencoded files and large digests. If this is nil, all messages will
2345 :group 'wl-highlight)
2347 ;; highilght about signature (of draft and message)
2348 (defcustom wl-highlight-signature-separator
2349 '("\n--+\n" "\n\n--+.*\n*\\'")
2350 "List of regexps matching signature separator.
2351 It will be verified from head to tail looking for a separator.
2352 Verification will be done from the end of the buffer.
2353 No need to specify \"^-- $\" in this list,
2354 because it is verified by default.
2355 This variable can also be a regex."
2356 :type '(repeat regexp)
2357 :group 'wl-highlight)
2359 (defcustom wl-max-signature-size 400
2360 "*If the signature is larger than this chars, don't treat it as a signature."
2362 :group 'wl-highlight)
2364 ;; highilght about mouse
2365 (defcustom wl-use-highlight-mouse-line (and window-system
2366 (>= emacs-major-version 19))
2367 "*Highlight mouse line, if non nil."
2369 :group 'wl-highlight)
2371 ;; highilght about folder
2372 (defcustom wl-highlight-folder-with-icon
2373 (or (and (featurep 'xemacs)
2376 "*Highlight folder with icon(XEmacs or Emacs 21)."
2378 :group 'wl-highlight)
2379 (defcustom wl-highlight-folder-by-numbers t
2380 "Highlight folder lines by numbers.
2381 If it is a number, only numbers will be highlighted."
2382 :type '(choice (const :tag "whole line" t)
2383 (const :tag "only numbers" 1)
2384 (const :tag "don't highlight" nil))
2385 :group 'wl-highlight)
2387 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2388 "Function to search signature area in the message body."
2390 :group 'wl-highlight)
2392 (defcustom wl-use-dnd (and wl-on-xemacs
2393 (featurep 'dragdrop))
2394 "If Non-nil, support dragdrop feature in XEmacs."
2398 (defcustom wl-reset-plugged-alist t
2399 "*If non-nil, reset `elmo-plugged-alist' when startup."
2403 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2404 (module-installed-p 'image)
2405 (module-installed-p 'bitmap))
2407 "If it is T, show graphic logo in the startup screen. You can set it to
2408 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2409 :type '(radio (const :tag "Off" nil)
2410 (const :tag "On (any format)" t)
2413 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2416 ;;; Internal variables
2417 (defvar wl-init nil)
2419 ;; For disconnected operations.
2420 (defvar wl-plugged-hook nil)
2421 (defvar wl-unplugged-hook nil)
2422 (defcustom wl-plugged t
2423 "*Plugged state at the startup. Nil means off-line."
2428 ;; Internal variables used to modeline identifiers.
2429 (defvar wl-modeline-plug-status nil)
2430 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2431 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2432 (defvar wl-modeline-biff-status nil)
2433 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2434 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2436 ;; Advanced thread view.
2437 (defvar wl-thread-indent-level 1
2438 "*Indent level for thread.")
2439 (defvar wl-thread-have-younger-brother-str "
\e$B(2
\e(B"
2440 "*A string for thread branch line. It should contain one character.")
2441 (defvar wl-thread-youngest-child-str "
\e$B(1
\e(B"
2442 "*A string for thread branch line. It should contain one character.")
2443 (defvar wl-thread-vertical-str "
\e$B(-
\e(B"
2444 "*A string for thread branch line. It should contain one character.")
2445 (defvar wl-thread-horizontal-str "
\e$B(,
\e(B"
2446 "*A string for thread branch line. It should contain one character.")
2447 (defvar wl-thread-space-str "
\e$B!!
\e(B"
2448 "*A string for thread branch line. It should contain one character.")
2450 (defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
2451 "* A regexp string for thread indent...for highlight.")
2453 ;; folder icons. filename relative to wl-icon-directory
2454 (defvar wl-opened-group-folder-icon "opened.xpm"
2455 "*Icon file for opened group folder.")
2456 (defvar wl-closed-group-folder-icon "closed.xpm"
2457 "*Icon file for closed group folder.")
2458 (defvar wl-nntp-folder-icon "news.xpm"
2459 "*Icon file for nntp folder.")
2460 (defvar wl-imap-folder-icon "imap.xpm"
2461 "*Icon file for imap folder.")
2462 (defvar wl-pop-folder-icon "pop.xpm"
2463 "*Icon file for pop folder.")
2464 (defvar wl-localdir-folder-icon "local.xpm"
2465 "*Icon file for localdir folder.")
2466 (defvar wl-localnews-folder-icon "localnews.xpm"
2467 "*Icon file for localnews folder.")
2468 (defvar wl-internal-folder-icon "internal.xpm"
2469 "*Icon file for internal folder.")
2470 (defvar wl-multi-folder-icon "multi.xpm"
2471 "*Icon file for multi folder.")
2472 (defvar wl-filter-folder-icon "filter.xpm"
2473 "*Icon file for filter folder.")
2474 (defvar wl-archive-folder-icon "archive.xpm"
2475 "*Icon file for archive folder.")
2476 (defvar wl-pipe-folder-icon "pipe.xpm"
2477 "*Icon file for pipe folder.")
2478 (defvar wl-nmz-folder-icon "nmz.xpm"
2479 "*Icon file for namazu folder.")
2480 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2481 "*Icon file for shimbun folder.")
2482 (defvar wl-maildir-folder-icon "maildir.xpm"
2483 "*Icon file for maildir folder.")
2484 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2485 "*Icon file for emptied trash folder.")
2486 (defvar wl-trash-folder-icon "trash.xpm"
2487 "*Icon file for trash folder.")
2488 (defvar wl-draft-folder-icon "draft.xpm"
2489 "*Icon file for draft folder.")
2490 (defvar wl-queue-folder-icon "queue.xpm"
2491 "*Icon file for queue folder.")
2492 (defvar wl-plugged-icon "plugged.xpm"
2493 "*Icon file for plugged state.")
2494 (defvar wl-unplugged-icon "unplugged.xpm"
2495 "*Icon file for unplugged state.")
2496 (defvar wl-biff-mail-icon "letter.xpm"
2497 "*Icon file for mail existed state.")
2498 (defvar wl-biff-nomail-icon "no-letter.xpm"
2499 "*Icon file for no mail existed state.")
2500 (defvar wl-prog-uudecode "uudecode"
2501 "*uudecode program name.")
2502 (defvar wl-prog-uudecode-arg nil
2503 "*Arguments for uudecode program.")
2504 (defvar wl-prog-uudecode-no-stdout-option t
2505 "*If non-nil, uudecode program don't have option for output to stdout.")
2508 (defvar wl-plugged-plug-on "ON")
2509 (defvar wl-plugged-plug-off "--")
2510 (defvar wl-plugged-auto-off "**")
2511 (defvar wl-plugged-server-indent 2)
2512 (defvar wl-plugged-port-indent 4)
2513 (defvar wl-plugged-queue-status-column 25)
2515 ;;;; Obsolete variables.
2517 ;; 2001-12-11: *-dir -> *-directory
2518 (elmo-define-obsolete-variable 'wl-icon-dir
2520 (elmo-define-obsolete-variable 'wl-mime-save-dir
2521 'wl-mime-save-directory)
2522 (elmo-define-obsolete-variable 'wl-score-files-dir
2523 'wl-score-files-directory)
2524 (elmo-define-obsolete-variable 'wl-tmp-dir
2525 'wl-temporary-file-directory)
2528 (elmo-define-obsolete-variable 'wl-subject-length-limit
2529 'wl-summary-subject-length-limit)
2532 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
2533 'elmo-folder-update-threshold)
2534 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
2535 'elmo-message-fetch-threshold)
2537 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
2538 'wl-message-buffer-prefetch-folder-type-list)
2539 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
2540 'wl-message-buffer-prefetch-folder-list)
2542 ;; 2001-02-27: *-func -> *-function
2543 (elmo-define-obsolete-variable 'wl-summary-from-func
2544 'wl-summary-from-function)
2545 (elmo-define-obsolete-variable 'wl-summary-subject-func
2546 'wl-summary-subject-function)
2547 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
2548 'wl-summary-subject-filter-function)
2549 (elmo-define-obsolete-variable 'wl-draft-send-func
2550 'wl-draft-send-function)
2551 (elmo-define-obsolete-variable 'wl-draft-send-news-func
2552 'wl-draft-send-news-function)
2553 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
2554 'wl-draft-send-mail-function)
2555 (elmo-define-obsolete-variable 'wl-print-buffer-func
2556 'wl-print-buffer-function)
2557 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
2558 'wl-ps-print-buffer-function)
2559 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
2560 'wl-generate-mailer-string-function)
2561 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
2562 'wl-highlight-x-face-function)
2563 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
2564 'wl-fldmgr-sort-function)
2565 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
2566 'wl-expire-archive-get-folder-function)
2567 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
2568 'wl-highlight-signature-search-function)
2570 ;; 2000-01-25: temp mark -> target mark
2571 (elmo-define-obsolete-variable 'wl-summary-temp-above
2572 'wl-summary-target-above)
2574 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
2575 (defvar wl-draft-prepared-config-alist nil)
2576 (make-obsolete-variable 'wl-draft-prepared-config-alist
2577 'wl-draft-config-alist)
2580 (elmo-define-obsolete-variable 'wl-address-filename
2582 (elmo-define-obsolete-variable 'wl-score-default-file-name
2583 'wl-score-default-file)
2587 (product-provide (provide 'wl-vars) (require 'wl-version))
2589 ;;; wl-vars.el ends here