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.
39 ;;; Customizable Variables
42 "Wanderlust, a news and mail reading software."
44 :link (` (custom-manual
45 (, (if (and (boundp 'current-language-environment)
46 (string-equal "Japanese"
47 (symbol-value 'current-language-environment)))
54 "Wanderlust, Preferences."
58 (defgroup wl-folder nil
59 "Wanderlust, folder buffer."
63 (defgroup wl-summary nil
64 "Wanderlust, summary buffer."
68 (defgroup wl-summary-marks nil
69 "Wanderlust, marks used in summary buffers."
73 (defgroup wl-expire nil
74 "Wanderlust, Expiring and archiving."
78 (defgroup wl-score nil
79 "Wanderlust, Score file handling."
83 (defgroup wl-highlight nil
84 "Wanderlust, Highlights."
88 (defgroup wl-draft nil
89 "Wanderlust, draft mode."
93 (defgroup wl-setting nil
94 "Wanderlust common settings."
99 (defconst wl-on-xemacs (featurep 'xemacs))
101 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
102 (>= emacs-major-version 21)))
104 (defconst wl-on-mule (featurep 'mule))
106 (defconst wl-on-mule3
107 (and wl-on-mule (or wl-on-xemacs
108 (> emacs-major-version 19))))
110 (defconst wl-on-nemacs nil) ; backward compatibility.
113 (defun-maybe locate-data-directory (a)))
116 (cond (wl-on-mule3 'binary)
117 (wl-on-mule '*noconv*)
120 (defvar wl-cs-autoconv
121 (cond (wl-on-mule3 'undecided)
122 (wl-on-mule '*autoconv*)
126 (cond (wl-on-mule3 'junet)
127 (wl-on-mule '*junet*)
130 (defvar wl-cs-cache wl-cs-local)
132 (defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
135 (defcustom wl-from (and user-mail-address
136 (concat (and (user-full-name)
137 (concat (elmo-address-quote-specials
140 "<" user-mail-address ">"))
141 "*From string used in draft."
146 (defcustom wl-user-mail-address-list nil
147 "*A list of user's mail addresses.
148 This list is used to judge whether an address is user's or not.
149 You should set this variable if you use multiple e-mail addresses.
150 If you don't have multiple e-mail addresses, you don't have to set this."
151 :type '(repeat string)
155 (defcustom wl-organization (getenv "ORGANIZATION")
157 :type '(choice (const :tag "none" nil)
162 (defcustom wl-temporary-file-directory "~/tmp/"
163 "*Default temporary directory to save message, part."
167 (defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
168 (locate-data-directory "wl")
169 (let ((icons (expand-file-name "wl/icons/"
171 (if (file-directory-p icons)
173 "*Directory to load the icon files from, or nil if none."
174 :type '(choice (const :tag "none" nil)
178 (defcustom wl-summary-default-view 'thread
179 "Default status of summary view, thread or sequential view."
180 :type '(choice (const :tag "Thread" thread)
181 (const :tag "Sequential" sequence))
184 (defcustom wl-summary-default-view-alist nil
185 "An alist of regexp for folder name and summary default view.
186 If no match, `wl-summary-default-view' is used."
187 :type '(repeat (cons (regexp :tag "Folder Regexp")
188 (choice (const :tag "Thread" thread)
189 (const :tag "Sequential" sequence))))
192 (defvar wl-summary-mode-line-format-spec-alist
193 '((?f (if (memq 'modeline wl-use-folder-petname)
194 (wl-folder-get-petname (elmo-folder-name-internal
195 wl-summary-buffer-elmo-folder))
196 (elmo-folder-name-internal wl-summary-buffer-elmo-folder)))
197 (?t (if (eq wl-summary-buffer-view 'thread) "T" "S"))
198 (?n wl-summary-buffer-new-count)
199 (?u (+ wl-summary-buffer-new-count
200 wl-summary-buffer-unread-count))
201 (?a (length wl-summary-buffer-number-list)))
202 "An alist of format specifications that can appear in summary mode-lines.
203 Each element is a list of following:
205 SPEC is a character for format specification.
206 STRING-EXP is an expression to get string to insert.")
208 (defcustom wl-summary-mode-line-format "Wanderlust: %f {%t}(%n/%u/%a)"
209 "*A format string for summary mode-line of Wanderlust.
210 It may include any of the following format specifications
211 which are replaced by the given information:
214 %t The thread status of the summary ('T' for thread, 'S' for sequential).
215 %n The number of new messages.
216 %u The number of unread messages (includes new messages).
217 %a The number of all messages."
221 (defvar wl-summary-line-format-spec-alist
222 '((?Y (wl-summary-line-year))
223 (?M (wl-summary-line-month))
224 (?D (wl-summary-line-day))
225 (?W (wl-summary-line-day-of-week))
226 (?h (wl-summary-line-hour))
227 (?m (wl-summary-line-minute))
228 (?\[ (if wl-thr-linked "<" "["))
229 (?\] (if wl-thr-linked ">" "]"))
230 (?t (or wl-thr-indent-string ""))
231 (?s (wl-summary-line-subject))
232 (?S (wl-summary-line-size))
233 (?C (if wl-thr-children-number
234 (concat "[+" (number-to-string wl-thr-children-number) "] ")
235 (if wl-parent-message-entity
236 (if wl-thr-linked ">>" ">")
238 (?~ (if (zerop (length wl-line-string)) "" " "))
239 (?c (if wl-thr-children-number
240 (concat "+" (number-to-string wl-thr-children-number) ":")
242 (?f (wl-summary-line-from))
243 (?# (wl-summary-line-list-info))
244 (?l (wl-summary-line-list-count))
245 (?T (or wl-temp-mark " "))
246 (?P (or wl-persistent-mark " "))
247 (?n (wl-summary-line-number))
248 (?@ (wl-summary-line-attached)))
249 "An alist of format specifications that can appear in summary lines.
250 Each element is a list of following:
252 SPEC is a character for format specification.
253 STRING-EXP is an expression to get string to insert.")
255 (defcustom wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s"
256 "*A default format string for summary line of Wanderlust.
257 It may include any of the following format specifications
258 which are replaced by the given information:
260 %n The number of the message.
261 The width is decided using `wl-summary-default-number-column' and
262 `wl-summary-number-column-alist'.
263 %T The temporal mark (*, D, o, O).
264 %P The persistent mark (status of the message).
265 %Y The year of the date field of the message (zero padded).
266 %M The month of the date field of the message (zero padded).
267 %D The day of the date field of the message (zero padded).
268 %W The weekday name of the date field of the message (zero padded).
269 %h The hour of the date field of the message (zero padded).
270 %m The minute of the date field of the message (zero padded).
271 %[ An open bracket. If the message thread is linked,
272 it is replaced with '<'.
273 %] A close bracket. If the message thread is linked,
274 it is replaced with '>'.
275 %c The children number of the closed message thread.
276 Children number is printed like '+??:'.
277 %C The children number of the closed message thread.
278 Children number is printed like '[+??] '.
279 If the message is opened, '>' or '>>' (linked) is displayed.
280 %f The from: field string of the message.
281 %s The subject: field string of the message.
282 %S The size of the message (if available).
283 %~ If the previous spec is not zero-length, replaced with ' '.
285 If the format string contains the specifiers %( and %), the text between
286 them will have the specified number of columns."
290 (defcustom wl-folder-summary-line-format-alist nil
291 "An alist of folder name and a summary line format.
292 If no match, `wl-summary-line-format' is used.
294 '((\"^%\" . \"%n%T%P%M/%D(%W)%h:%m %t%[%14(%c %f%) %](%S) %s\")
295 (\"^@2ch\" . \"%n%T%P%M%/%D/%h:%m %t[%9(%c %f%) ]%s\")))"
296 :type '(repeat (cons (regexp :tag "Folder Regexp")
297 (string :tag "line format")))
300 (defcustom wl-summary-check-line-format t
301 "*Check summary line format change if non-nil.
302 When summary line format is changed, current summary cache is discarded.
303 It is highly recommended to set this value to t."
307 (defcustom wl-summary-line-format-file ".wl-summary-line-format"
308 "*Cache file for summary line format."
312 (defcustom wl-summary-from-function 'wl-summary-default-from
313 "*A function for displaying sender (From: field) information."
317 (defcustom wl-summary-subject-function 'wl-summary-default-subject
318 "*A function for displaying subject."
322 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
323 "*A filter function for comparing subjects."
327 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
328 "*If message does not have in-reply-to field nor references field and
329 subject matches this regexp, search parent message by subject matching.
330 If nil, never search search parent by subject."
331 :type '(choice string
332 (const :tag "Don't search parent" nil))
336 (defcustom wl-summary-mark-action-list
340 wl-summary-register-target-mark
342 wl-highlight-summary-temp-face
347 wl-summary-register-temp-mark
348 wl-summary-exec-action-dispose
349 wl-highlight-summary-disposed-face
350 "Dispose messages according to `wl-dispose-folder-alist'.")
354 wl-summary-register-temp-mark
355 wl-summary-exec-action-delete
356 wl-highlight-summary-deleted-face
357 "Delete messages immediately.")
360 wl-summary-get-refile-destination
361 wl-summary-set-action-refile
362 wl-summary-exec-action-refile
363 wl-highlight-summary-refiled-face
364 "Refile messages to the other folder.")
367 wl-summary-get-copy-destination
368 wl-summary-register-temp-mark
369 wl-summary-exec-action-copy
370 wl-highlight-summary-copied-face
371 "Copy messages to the other folder.")
375 wl-summary-register-temp-mark
376 wl-summary-exec-action-prefetch
377 wl-highlight-summary-prefetch-face
378 "Prefetch messages.")
381 wl-summary-get-resend-address
382 wl-summary-register-temp-mark
383 wl-summary-exec-action-resend
384 wl-highlight-summary-resend-face
386 "A variable to define Mark & Action.
387 Each element of the list should be a list of
396 MARK is a temporal mark string to define.
397 SYMBOL is an action name to define.
398 ARGUMENT-FUNCTION is a function called to set the argument data for
400 Its argument is (ACTION NUMBER).
401 ACTION is same as the SYMBOL.
402 NUMBER is the message number to determine the argument data.
403 SET-MARK-FUNCTION is a function called to set the mark.
404 Its argument is (NUMBER MARK DATA).
405 NUMBER is the target message number.
406 MARK is the temporary mark string.
407 DATA is given by ARGUMENT-FUNCTION.
408 EXEC-FUNCTION is a function called to execute the action.
409 Its argument is a list of MARK-INFO.
410 MARK-INFO is a list of (NUMBER MARK DATA).
411 FACE is a face for highlighting."
412 :type '(repeat (string :tag "Temporary mark")
413 (symbol :tag "Set mark function")
414 (symbol :tag "Unset mark function")
415 (symbol :tag "Exec function")
416 (symbol :tag "Face symbol"))
420 (defcustom wl-default-folder "%inbox"
421 "*Default folder used in `wl-summary-goto-folder'."
424 (defcustom wl-draft-folder "+draft"
428 (defcustom wl-trash-folder "+trash"
433 (defcustom wl-queue-folder "+queue"
438 (defcustom wl-default-spec "%"
443 (defcustom wl-insert-mail-followup-to nil
444 "*Insert Mail-Followup-To: field if non-nil."
448 (defcustom wl-insert-mail-reply-to nil
449 "*Insert Mail-Reply-To: field if non-nil."
453 (defcustom wl-insert-message-id t
454 "*Insert Message-ID: field if non-nil."
458 (defcustom wl-auto-insert-x-face t
459 "*Insert X-Face: field automatically."
463 (defcustom wl-x-face-file "~/.xface"
464 "*X-Face field is inserted using its contents.
465 If file exists and `wl-auto-insert-x-face' is non-nil."
469 (defcustom wl-draft-write-file-function 'wl-draft-save
470 "Save function for draft message."
474 (defcustom wl-subscribed-mailing-list nil
475 "*Subscribed mailing list.
476 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
477 :type '(repeat string)
482 "*Display demo at start time."
486 (defcustom wl-envelope-from nil
487 "*Envelope From used in SMTP.
488 If nil, `wl-from' is used."
489 :type '(choice (const :tag "Same as 'From' field." nil)
494 (defcustom wl-draft-additional-header-alist nil
495 "*Additional headers in the draft."
496 :type '(repeat (cons (symbol :tag "Field Name")
497 (choice (string :tag "String")
498 (function :tag "Function")))))
500 (defcustom wl-draft-add-in-reply-to t
501 "*If non-nil, message-id of the cited message is inserted to the
502 in-reply-to field of the current draft."
506 (defcustom wl-draft-add-references nil
507 "*If non-nil, message-id of the cited message is inserted to the
508 references field of the current draft."
512 (defcustom wl-draft-cite-function 'wl-default-draft-cite
513 "*A function for citation."
517 (defcustom wl-default-draft-cite-decorate-author t
518 "*If non-nil, the author of cited message is arranged by
519 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
523 (defcustom wl-smtp-connection-type nil
524 "*SMTP connection type.
525 If nil, default smtp connection type is used."
526 :type '(choice (const :tag "default" nil)
527 (const :tag "Use STARTTLS" starttls)
531 (defcustom wl-smtp-posting-user nil
532 "*SMTP authentication user."
533 :type '(choice (const :tag "none" nil)
538 (defcustom wl-smtp-posting-server nil
539 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
540 :type '(choice (const :tag "none" nil)
545 (defcustom wl-smtp-posting-port nil
546 "*SMTP port number in `wl-smtp-posting-server'.
547 If nil, default SMTP port number(25) is used."
548 :type '(choice (const :tag "Default (25)" nil)
553 (defcustom wl-smtp-authenticate-type nil
554 "*SMTP Authentication type.
555 If nil, don't authenticate."
556 :type '(choice (const :tag "none" nil)
557 (const :tag "PLAIN" "plain")
558 (const :tag "CRAM-MD5" "cram-md5")
559 (const :tag "LOGIN" "login")
560 (string :tag "Other"))
564 (defcustom wl-pop-before-smtp-user nil
565 "*POP3 user name to send mail using POP-before-SMTP.
566 If nil, `elmo-pop3-default-user' is used.
567 To use POP-before-SMTP,
568 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
569 :type '(choice (const :tag "none" nil)
574 (defcustom wl-pop-before-smtp-server nil
575 "*POP3 server for POP-before-SMTP.
576 If nil, `elmo-pop3-default-server' is used."
577 :type '(choice (const :tag "none" nil)
582 (defcustom wl-pop-before-smtp-port nil
583 "*POP3 port for POP-before-SMTP.
584 If nil, `elmo-pop3-default-port' is used."
585 :type '(choice (const :tag "none" nil)
590 (defcustom wl-pop-before-smtp-stream-type nil
591 "*Stream type for POP-before-SMTP.
592 If nil, `elmo-pop3-default-stream-type' is used."
596 (defcustom wl-pop-before-smtp-authenticate-type nil
597 "*Default Authentication type for POP-before-SMTP.
598 If nil, `elmo-pop3-default-authenticate-type' is used."
599 :type '(choice (const :tag "none" nil)
600 (const :tag "APOP" 'apop)
601 (const :tag "POP3" 'user))
605 (defcustom wl-nntp-posting-server nil
606 "*NNTP server name to post news.
607 If nil, `elmo-nntp-default-server' is used."
608 :type '(choice (const :tag "none" nil)
612 (defcustom wl-nntp-posting-user nil
613 "*NNTP user name to post news for authinfo.
614 If nil, `elmo-nntp-default-user' is used.
615 If nil, don't authenticate."
616 :type '(choice (const :tag "none" nil)
620 (defcustom wl-nntp-posting-port nil
621 "*NNTP port to post news.
622 If nil, `elmo-nntp-default-port' is used."
623 :type '(choice (const :tag "none" nil)
627 (defcustom wl-nntp-posting-stream-type nil
628 "*Stream type for posting Netnews.
629 If nil, `elmo-nntp-default-stream-type' is used."
632 (defcustom wl-nntp-posting-function 'elmo-nntp-post
633 "A function to post news.
634 Prepared candidate is 'elmo-nntp-post."
635 :type '(radio (function-item elmo-nntp-post)
636 (function :tag "Other"))
638 (defcustom wl-nntp-posting-config-alist nil
639 "*Alist of configuration on nntp posting.
641 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
643 ((server . \"news.media.kyoto-u.ac.jp\")
644 (user . \"newsmaster\")
646 (function . elmo-nntp-post))
647 (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
648 :type '(repeat (cons (sexp :tag "Match")
649 (choice (string :tag "Server")
651 (cons (choice (const server)
656 (sexp :tag "Value"))))))
660 (defcustom wl-prefetch-confirm t
661 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
665 (defcustom wl-prefetch-threshold 30000
666 "*Maximum size of message prefetched without confirmation.
667 If nil, all messages prefetched regardless of its size.
668 If message size is larger than this value, confirm prefetching
669 when `wl-prefetch-confirm' is non-nil."
670 :type '(choice (integer :tag "Threshold (bytes)")
671 (const :tag "No limitation" nil))
675 (defcustom wl-thread-insert-opened nil
676 "*Non-nil forces to insert thread as opened in updating."
681 (defcustom wl-thread-open-reading-thread t
682 "*Non-nil forces to open reading thread."
687 (defvar wl-folder-mode-hook nil
688 "A hook called when wanderlust folder mode is started.
689 This hook may contain the functions `wl-folder-init-icons' and
690 `wl-setup-folder' for reasons of system internal to accord facilities
691 for the Emacs variants.")
692 (defvar wl-summary-toggle-disp-on-hook nil
693 "A hook called when message is toggled.")
694 (defvar wl-summary-toggle-disp-off-hook nil
695 "A hook called when message is disappeared.")
696 (defvar wl-summary-toggle-disp-folder-on-hook nil
697 "A hook called when folder is toggled.")
698 (defvar wl-summary-toggle-disp-folder-off-hook nil
699 "A hook called when folder is disappeared.")
700 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
701 "A hook called when message window is resumed when folder is toggled.")
702 (defvar wl-summary-mode-hook nil
703 "A hook called when summary mode is started.
704 This hook may contain the function `wl-setup-summary' for reasons of
705 system internal to accord facilities for the Emacs variants.")
707 (defvar wl-summary-prepared-pre-hook nil
708 "A hook called before the summary buffer has been generated.")
709 (defvar wl-summary-prepared-hook nil
710 "A hook called after the summary buffer has been generated.")
711 (defvar wl-summary-sync-updated-hook nil
712 "A hook called when update summary buffer.")
713 (defvar wl-summary-unread-message-hook nil
714 "A hook called when unread message is displayed.")
715 (defvar wl-summary-edit-addresses-hook nil
716 "A hook called when address book is edited.")
717 (defvar wl-summary-buffer-message-saved-hook nil
718 "A hook called when msgdb is saved.")
719 (defvar wl-summary-buffer-mark-saved-hook nil
720 "A hook called when mark is saved.")
721 (defvar wl-summary-divide-thread-when-subject-changed nil
722 "Divide thread when subject is changed.")
723 (defvar wl-init-hook nil
724 "A hook called when initialization is finished. This hook may contain
725 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
726 reasons of system internal to accord facilities for the Emacs variants.")
728 "A hook called when Wanderlust is invoked.")
729 (defvar wl-reply-hook nil
730 "A hook called when replied.")
731 (defvar wl-mail-setup-hook nil
732 "A hook called when Draft is prepared.")
733 (defvar wl-draft-reedit-hook '(wl-draft-remove-text-plain-tag)
734 "A hook called when Draft is re-edited.
735 The cursor point is located at top of the body.")
736 (defvar wl-draft-send-hook '(wl-draft-config-exec)
737 "A hook called on the draft editing buffer before sending process starts.")
738 (defvar wl-mail-send-pre-hook nil
739 "A hook called just before the mail sending process starts.")
740 (defvar wl-news-send-pre-hook nil
741 "A hook called just before the news sending process starts.")
742 (defvar wl-message-buffer-created-hook nil
743 "A hook called when Message buffer is prepared.")
744 (defvar wl-message-redisplay-hook nil
745 "A hook called when Message is displayed.")
746 (defvar wl-message-exit-hook nil
747 "A hook called when quit message.")
748 (defvar wl-summary-exit-pre-hook nil
749 "A hook called before exit summary mode.")
750 (defvar wl-summary-exit-hook nil
751 "A hook called when exit summary mode.")
752 (defvar wl-highlight-headers-hook nil
753 "A hook called when header is highlighted.")
754 (defvar wl-highlight-message-hook nil
755 "A hook called when message is highlighted.")
756 (defvar wl-save-hook nil
757 "A hook called when save summary and folder status.")
758 (defvar wl-exit-hook nil
759 "A hook called when exit wanderlust.")
760 (defvar wl-folder-suspend-hook nil
761 "A hook called when suspend wanderlust.")
762 (defvar wl-biff-notify-hook '(ding)
763 "A hook called when a biff-notification is invoked.")
764 (defvar wl-biff-unnotify-hook nil
765 "A hook called when a biff-notification is removed.")
766 (defvar wl-auto-check-folder-pre-hook nil
767 "A hook called before auto check folders.")
768 (defvar wl-auto-check-folder-hook nil
769 "A hook called when auto check folders.")
770 (defvar wl-folder-check-entity-pre-hook nil
771 "A hook called before check entity.")
772 (defvar wl-folder-check-entity-hook nil
773 "A hook called when check entity.")
774 (defvar wl-draft-config-exec-hook nil
775 "A hook called when execute header-config on draft.")
776 (defvar wl-summary-expire-pre-hook nil
777 "A hook called before expire.")
778 (defvar wl-summary-expire-hook nil
779 "A hook called when expired.")
780 (defvar wl-summary-archive-pre-hook nil
781 "A hook called before archive.")
782 (defvar wl-summary-archive-hook nil
783 "A hook called when archived.")
784 (defvar wl-summary-line-inserted-hook nil
785 "A hook called when summary line is inserted.")
786 (defvar wl-summary-insert-headers-hook nil
787 "A hook called when insert header for search header.")
788 (defvar wl-message-display-internal-hook nil
789 "A hook called when message buffer is created and message is displayed.
790 This hook may contain the functions `wl-setup-message' for
791 reasons of system internal to accord facilities for the Emacs variants.")
792 (defvar wl-thread-update-children-number-hook nil
793 "A hook called when children number is updated.")
794 (defvar wl-folder-update-access-group-hook nil
795 "A hook called when update access group folder.")
796 (defvar wl-draft-cited-hook nil
797 "A hook called after a message is cited.")
798 (defvar wl-draft-insert-x-face-field-hook nil
799 "A hook called after a x-face field is inserted.")
800 (defvar wl-template-mode-hook nil
801 "A hook called when template mode is started.")
802 (defvar wl-score-mode-hook nil
803 "A hook called when score mode is started.")
804 (defvar wl-make-plugged-hook nil
805 "A hook called when make plugged alist.")
807 (defvar wl-plugged-exit-hook nil
808 "A hook called when exit plugged mode.")
810 ;;;; functions for draft
811 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
812 "A function to send message."
816 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
817 "A function to send news."
821 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
822 "A function to send mail.
823 Prepared candidates are 'wl-draft-send-mail-with-smtp,
824 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
825 :type '(radio (function-item wl-draft-send-mail-with-smtp)
826 (function-item wl-draft-send-mail-with-qmail)
827 (function-item wl-draft-send-mail-with-pop-before-smtp)
828 (function :tag "Other"))
831 (defcustom wl-draft-reply-with-argument-list
832 '(("From" . (("Reply-To" "Mail-Reply-To" "From")
833 ("Mail-Followup-To" "To" "Cc")
834 ("Followup-To" "Newsgroups"))))
835 "Alist of cons cell of
836 \('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
837 'field-name' is a string.
838 'fields for ***' is a list of strings.
839 If car of each cons cell exists in original message,
840 cdr of each cons cell is used for draft message.
841 Default is for 'reply-to-all'."
842 :type '(repeat (cons (choice (string :tag "Field Name")
843 (repeat (string :tag "Field Name")))
844 (list (repeat :tag "Fields For To" string)
845 (repeat :tag "Fields For Cc" string)
846 (repeat :tag "Fields For Newsgroups" string))))
849 (defcustom wl-draft-reply-without-argument-list
850 '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
851 ("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
852 ("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
853 ("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
854 ("Reply-To" . (("Reply-To") ("To" "Cc") nil))
855 (wl-draft-self-reply-p . (("To") ("Cc") nil))
856 ("From" . (("From") ("To" "Cc") nil)))
857 "Alist of cons cell of
858 \('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
859 'field-name' is a string.
860 'fields for ***' is a list of strings.
861 If car of each cons cell exists in original message,
862 cdr of each cons cell is used for draft message."
863 :type '(repeat (cons (choice (string :tag "Field Name")
864 (repeat (string :tag "Field Name")))
865 (list (repeat :tag "Fields For To" string)
866 (repeat :tag "Fields For Cc" string)
867 (repeat :tag "Fields For Newsgroups" string))))
870 (defcustom wl-draft-always-delete-myself nil
871 "*Always delete myself from reciepient if non-nil."
875 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
876 "*Do not insert bcc or fcc if To and Cc fields is a member of
877 `wl-subscribed-mailing-list'"
881 (defcustom wl-draft-resume-folder-window t
882 "*Resume folder window in `wl-draft-hide'."
886 (defcustom wl-draft-use-frame nil
887 "*Raise new frame when composing draft."
891 (defcustom wl-draft-qmail-send-plugged nil
892 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
896 (defcustom wl-draft-remove-group-list-contents t
897 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
902 (defcustom wl-init-file "~/.wl"
903 "*User customization setting file."
907 (defcustom wl-folders-file "~/.folders"
912 (defcustom wl-address-file "~/.addresses"
917 (defcustom wl-alias-file "~/.im/Aliases"
918 "*Alias file for completion."
922 (defcustom wl-ldap-server nil
924 :type '(choice (const :tag "Default server(localhost)" nil)
925 (string :tag "Server"))
929 (defcustom wl-ldap-port nil
931 :type '(choice (const :tag "Default port" nil)
936 (defcustom wl-ldap-base nil
938 :type '(choice (const :tag "Default base" nil)
939 (string :tag "Base"))
943 (defcustom wl-use-ldap nil
944 "*If non-nil, use LDAP for address completion."
949 (defcustom wl-use-acap nil
950 "*If non-nil, use ACAP for configuration."
954 (defcustom wl-folder-info-save t
955 "If non-nil, save elmo-folder-info-alist."
959 (defcustom wl-summary-score-over-mark "+"
960 "Score mark used for messages with high scores."
961 :type '(string :tag "Mark")
962 :group 'wl-summary-marks)
964 (defcustom wl-summary-score-below-mark "-"
965 "Score mark used for messages with low scores."
966 :type '(string :tag "Mark")
967 :group 'wl-summary-marks)
969 (defcustom wl-summary-no-mime-folder-list nil
970 "*All folders that match this list don't analysis mime."
971 :type '(repeat string)
974 (defcustom wl-summary-fix-timezone nil
975 "*Time zone of the date string in summary mode.
976 If nil, it is adjust to the default time zone information
977 \(system's default time zone or environment variable TZ)."
978 :type '(choice (const :tag "Default time zone" nil)
982 (defcustom wl-summary-default-score 0
983 "*Default message score level.
984 All scores generated by the score files will be added to this score.
985 If this variable is nil, scoring will be disabled."
986 :type '(choice (const :tag "disable" nil)
990 (defcustom wl-summary-important-above nil
991 "*Mark all messages with a score above this variable as important.
992 This variable is local to the summary buffers."
993 :type '(choice (const :tag "off" nil)
997 (defcustom wl-summary-target-above nil
998 "*Mark all messages with a score above this variable as target.
999 This variable is local to the summary buffers."
1000 :type '(choice (const :tag "off" nil)
1004 (defcustom wl-summary-mark-below 0
1005 "*Mark all messages with a score below this variable as read.
1006 This variable is local to each summary buffer and usually set by the
1011 (defcustom wl-summary-expunge-below nil
1012 "All messages that have a score less than this variable will be expunged.
1013 This variable is local to the summary buffers."
1014 :type '(choice (const :tag "off" nil)
1018 (defcustom wl-summary-score-marks
1019 (list elmo-msgdb-new-mark)
1020 "Persistent marks to scoring."
1021 :type '(repeat (string :tag "Mark"))
1024 (defcustom wl-use-scoring t
1025 "*If non-nil, enable scoring."
1029 (defcustom wl-summary-rescore-partial-threshold 200
1030 "*Summary is not scored entirely if there are messages more than this value.
1031 In sync-all or rescan."
1035 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
1036 "*Name of the directory where score files will be stored.
1037 (default \"~/.elmo\")."
1041 (defcustom wl-score-interactive-default-score 1000
1042 "*Scoring commands will raise/lower the score with this number as the default."
1046 (defcustom wl-score-expiry-days 7
1047 "*Number of days before unused score file entries are expired.
1048 If this variable is nil, no score file entries will be expired."
1049 :type '(choice (const :tag "never" nil)
1053 (defcustom wl-score-update-entry-dates t
1054 "*In non-nil, update matching score entry dates.
1055 If this variable is nil, then score entries that provide matches
1056 will be expired along with non-matching score entries."
1060 (defcustom wl-score-folder-alist nil
1061 "*Alist of folder regexp and score file."
1062 :type '(repeat (list (regexp :tag "Folder Regexp")
1065 (symbol :tag "Variable")))))
1068 (defcustom wl-score-folder-alist-matchone t
1069 "*If non-nil, getting only one element of `wl-score-folder-alist'."
1073 (defcustom wl-score-default-file "all.SCORE"
1074 "*Default score file name."
1078 (defcustom wl-score-simplify-fuzzy-regexp
1079 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1080 "*Strings to be removed when doing fuzzy matches.
1081 This can either be a regular expression or list of regular expressions."
1082 :type '(repeat regexp)
1085 (defcustom wl-score-header-default-entry
1086 '(("number" -1000 perm =)
1087 ("subject" -1000 nil nil)
1088 ("from" -1000 perm s)
1089 ("message-id" -1000 temp e)
1090 ("references" -1000 perm e)
1093 ("date" -1000 temp nil)
1094 ("xref" -1000 perm s)
1095 ("extra" -1000 perm s)
1096 ("chars" -1000 perm >)
1097 ("lines" -1000 perm >)
1098 ("followup" -1000 perm s)
1099 ("thread" -1000 temp s))
1100 "*Default entry when insert score entry."
1101 :type '(repeat (list (string :tag "Header")
1102 (choice (integer :tag "Score")
1103 (const :tag "Ask" nil))
1104 (choice (const :tag "Permanent" perm)
1105 (const :tag "Temporary" temp)
1106 (const :tag "Ask" nil))
1107 (choice (const :tag "Regexp string" r)
1108 (const :tag "Substring" s)
1109 (const :tag "fuzzy string" f)
1110 (const :tag "Exact string" e)
1111 (const :tag "REGEXP STRING" R)
1112 (const :tag "SUBSTRING" S)
1113 (const :tag "FUZZY STRING" F)
1114 (const :tag "EXACT STRING" E)
1115 (const :tag "less than" <)
1116 (const :tag "less equal" <=)
1117 (const :tag "greater than" >)
1118 (const :tag "greater equal" >=)
1119 (const :tag "equal" =)
1120 (const :tag "Ask" nil))))
1123 (defcustom wl-score-mode-mime-charset 'x-ctext
1124 "*MIME Charset for score file."
1128 (defcustom wl-draft-fields
1129 '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1130 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1131 "Fields used in draft mode."
1132 :type '(repeat (string :tag "Field"))
1136 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1137 "Field name for MIME-encapsulated Bcc."
1138 :type '(string :tag "Field Name")
1141 (defcustom wl-draft-mime-bcc-body nil
1142 "Body string for MIME-encapsulated Bcc.
1143 If nil, a string `This is a blind carbon copy.' is used."
1144 :type '(string :tag "Body")
1147 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1148 "Disable Bcc while MIME-encapsulated Bcc."
1152 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1153 "Disable Fcc while MIME-encapsulated Bcc."
1157 (defcustom wl-draft-config-alist nil
1158 "Alist of condition and actions for dynamical draft modification.
1159 First element of each list is some condition for the draft buffer (regular
1160 expression for header or elisp expression) and remaining elements indicate
1162 If the first element is `reply' keyword, the next element be the condition
1163 for the message being replied, and remaining elements are actions.
1165 The configuration is applied when `wl-draft-config-exec' is called, or
1166 applied automatically before sending message.
1169 '((\"^To: .*wl@lists.airs.net\"
1170 (\"From\" . my-from-address-for-wl-list)
1171 (\"Organization\" . my-organization-for-wl-list))
1173 \"^To: .*hogehoge@aaa.ne.jp\"
1174 (\"From\" . \"Alternative Address <hogehoge@aaa.ne.jp>\")
1175 my-draft-config-function-hogehoge))
1177 See also variable `wl-draft-parent-folder'."
1178 :type '(repeat (list (sexp :tag "Match")
1181 (choice (cons (sexp :tag "Field(Variable)")
1182 (sexp :tag "Value"))
1183 (sexp :tag "Function")))))
1187 (defcustom wl-draft-config-matchone nil
1188 "*If non-nil, applied only one element of `wl-draft-config-alist'."
1193 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1194 "*The string which is inserted for elided text."
1198 (defcustom wl-template-alist nil
1199 "Alist of template."
1200 :type '(repeat (list (string :tag "Name")
1203 (choice (cons (sexp :tag "Field(Variable)")
1204 (sexp :tag "Value"))
1205 (sexp :tag "Function")))))
1209 (defcustom wl-template-visible-select t
1210 "*If non-nil, select template with visible."
1214 (defcustom wl-template-confirm nil
1215 "*If non-nil, require your confirmation when selected template."
1219 (defcustom wl-template-buffer-lines 7
1220 "*Lines of template buffer."
1225 (defcustom wl-draft-enable-queuing t
1226 "*Non-nil enables queued sending."
1231 (defcustom wl-draft-force-queuing nil
1232 "*Non-nil forces queued sending for mail and news."
1237 (defcustom wl-draft-force-queuing-mail nil
1238 "*Non-nil forces queued sending for mail."
1243 (defcustom wl-draft-force-queuing-news nil
1244 "*Non-nil forces queued sending for news."
1249 (defcustom wl-draft-use-cache nil
1250 "*If non-nil, sending message is cached."
1255 (defcustom wl-auto-flush-queue t
1256 "*If non-nil, sending queue is flushed when network status is toggled."
1261 (defcustom wl-draft-buffer-style 'full
1262 "Style of draft buffer except for `wl-summary-reply' and `wl-summary-forward'
1263 'keep is to use current window, 'full is to use full frame window and
1264 'split is to split current window.
1265 If it is a function, it is called with the draft buffer as an argument."
1266 :type '(choice (const :tag "Keep window" keep)
1267 (const :tag "Split window" split)
1268 (const :tag "Full window" full)
1269 (sexp :tag "Use Function"))
1272 (defcustom wl-draft-reply-buffer-style 'split
1273 "Style of draft buffer for `wl-summary-reply' and `wl-summary-forward'
1274 'keep is to use message buffer window, 'full is to use full frame window and
1275 'split is to split message buffer window.
1276 If it is a function, it is called with the draft buffer as an argument."
1277 :type '(choice (const :tag "Keep window" keep)
1278 (const :tag "Split window" split)
1279 (const :tag "Full window" full)
1280 (sexp :tag "Use Function"))
1283 (defcustom wl-draft-reply-default-position 'body
1284 "Begining position of reply buffer.
1285 'body means the top of body.
1286 'bottom means the bottom of body.
1287 'top means the top of header.
1288 \"To\", \"Newsgroups\", \"Subject\" means the position of the header field.
1289 You can also set it to a list of setting.
1291 :type '(choice (repeat
1293 (const :tag "Top of body" body)
1294 (const :tag "Bottom of body" bottom)
1295 (const :tag "Top of header" top)
1297 (const "Newsgroups")
1299 (string :tag "Header Name")))
1301 (const "Newsgroups")
1303 (string :tag "Header Name"))
1306 (defcustom wl-draft-queue-save-variables
1307 '(wl-envelope-from wl-from
1308 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1309 wl-smtp-authenticate-type wl-smtp-connection-type
1310 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1311 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1312 wl-nntp-posting-server wl-nntp-posting-server
1313 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1314 "*Saving variables in queue info."
1315 :type '(repeat (sexp :tag "Variable"))
1318 (defcustom wl-draft-sendlog t
1319 "*Keep send state in log if non-nil."
1323 (defcustom wl-draft-sendlog-max-size 20000
1324 "*Max file size of sendlog."
1328 (defcustom wl-summary-default-number-column 5
1329 "Number of columns in summary buffer."
1333 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1334 "Alist of folder and its number column.
1335 If no matches, 'wl-summary-default-number-column' is used.
1337 '((\"^%inbox@qmail-maildir\" . 9)
1338 (\"^-.*@news-server\" . 6))"
1339 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1342 (defcustom wl-summary-highlight t
1343 "Non-nil forces Summary buffer to be highlighted."
1346 :group 'wl-highlight)
1348 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1349 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1352 :group 'wl-highlight)
1354 (defcustom wl-summary-highlight-partial-threshold 1000
1355 "Summary is not highlighted entirely if there are lines more than this value.
1356 Available if only `wl-summary-lazy-highlight' is nil."
1359 :group 'wl-highlight)
1361 (defcustom wl-summary-partial-highlight-above-lines 30
1362 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1363 Summary lines are highlighted partialy above current position.
1364 Available if only `wl-summary-lazy-highlight' is nil."
1367 :group 'wl-highlight)
1369 (defcustom wl-summary-cache-use t
1370 "Non-nil forces wl-summary to use cache file."
1374 (defcustom wl-summary-auto-sync-marks t
1375 "Non-nil forces to synchronize unread/important marks."
1379 (defcustom wl-summary-cache-file ".wl-summary-cache"
1380 "*Cache file for summary mode contents."
1383 (defcustom wl-summary-view-file ".wl-summary-view"
1384 "*Current summary view."
1387 (defcustom wl-thread-top-file ".wl-thread-top"
1388 "*Current thread top entity... obsolete."
1391 (defcustom wl-thread-entity-file ".wl-thread-entity"
1395 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1396 "*Thread top entity list."
1400 (defcustom wl-print-buffer-function 'lpr-buffer
1401 "A function to print current buffer."
1405 (defcustom wl-ps-print-buffer-function
1406 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1407 "A function to print current buffer with ps-print."
1412 (defcustom wl-use-petname t
1413 "*Display petname in summary and default citation title."
1417 (defcustom wl-use-folder-petname
1419 "*List of situation using folder petname.
1420 Allowed situations are:
1421 modeline : displayed on modeline.
1422 ask-folder : displayed on minibuffer when ask folder.
1423 read-folder : can used for completion at `wl-summary-read-folder'."
1424 :type '(set (const modeline)
1426 (const read-folder))
1430 (defcustom wl-folder-petname-alist nil
1431 "A list of (realname . petname)."
1432 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1435 (defcustom wl-summary-weekday-name-lang
1436 (if (and (boundp 'current-language-environment)
1437 (string-equal "Japanese"
1438 (symbol-value 'current-language-environment)))
1440 "*Language to display week day."
1441 :type '(choice (const "ja")
1445 (string :tag "Other"))
1449 (defcustom wl-message-id-use-wl-from t
1450 "*Use `wl-from' for domain part of Message-ID if non-nil."
1454 (defcustom wl-local-domain nil
1455 "*Domain part of this client (without hostname).
1456 Set this if (system-name) does not return FQDN."
1457 :type '(choice (const :tag "Use System Name" nil)
1461 (defcustom wl-message-id-domain nil
1462 "*Specific domain part of Message-ID."
1463 :type '(choice (const :tag "Use System Name" nil)
1467 (defcustom wl-unique-id-suffix ".wl"
1468 "*Specific string in generated Message-ID
1469 which appear just before @."
1473 (defcustom wl-break-pages t
1474 "*Break Pages at ^L."
1478 (defvar wl-message-mode-line-format-spec-alist
1479 '((?f (if (memq 'modeline wl-use-folder-petname)
1480 (wl-folder-get-petname wl-message-buffer-cur-folder)
1481 wl-message-buffer-cur-folder))
1482 (?n wl-message-buffer-cur-number))
1483 "An alist of format specifications for message buffer's mode-lines.
1484 Each element is a list of following:
1486 SPEC is a character for format specification.
1487 STRING-EXP is an expression to get string to insert.")
1489 (defcustom wl-message-mode-line-format "Wanderlust: << %f / %n >>"
1490 "*A format string for message buffer's mode-line of Wanderlust.
1491 It may include any of the following format specifications
1492 which are replaced by the given information:
1495 %n The number of the message."
1499 (defcustom wl-message-truncate-lines default-truncate-lines
1500 "*Truncate lines in Message Buffer."
1504 (defcustom wl-draft-truncate-lines default-truncate-lines
1505 "*Truncate lines in Draft Buffer."
1510 (defcustom wl-message-scroll-amount nil
1511 "*Scroll amount by SPC key."
1512 :type '(choice (const :tag "scrolling by screenfuls" nil)
1516 (defcustom wl-message-window-size '(1 . 4)
1517 "*Size of summary and message window. cons cell of (Summary : Message)."
1518 :type '(cons integer integer)
1521 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1522 "Newsgroups" "Subject" "^From")
1523 "*Sort order of header fields. Each elements are regexp of field name."
1524 :type '(repeat (string :tag "Field Regexp"))
1528 (defcustom wl-message-ignored-field-list nil
1529 "All fields that match this list will be hidden in message buffer.
1530 Each elements are regexp of field-name."
1531 :type '(repeat (string :tag "Field Regexp"))
1535 (defcustom wl-message-visible-field-list nil
1536 "All fields that match this list will be displayed in message buffer.
1537 Each elements are regexp of field-name."
1538 :type '(repeat (string :tag "Field Regexp"))
1542 (defcustom wl-message-header-button-alist
1543 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1545 0 wl-message-button-refer-article 0)
1547 "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1548 1 wl-message-button-refer-article 3)))
1549 "Alist of headers and regexps to match buttons in message headers."
1551 (list (regexp :tag "Header")
1553 (integer :tag "Button")
1554 (function :tag "Callback")
1557 (integer :tag "Regexp group"))))
1560 (defcustom wl-message-body-button-alist
1561 '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1562 ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 0 1024))
1563 "Alist of regexps to match buttons in message body."
1566 (integer :tag "Button")
1567 (function :tag "Callback")
1570 (integer :tag "Regexp group"))
1571 (integer :tag "Max Length")))
1574 (defcustom wl-folder-window-width 20
1575 "*Width of folder window."
1580 (defcustom wl-summary-recenter t
1581 "*Recenter on redisplay."
1586 (defcustom wl-folder-use-frame nil
1587 "*Use dedicated frame for folder mode if non-nil."
1591 (defcustom wl-summary-use-frame nil
1592 "*Use dedicated frame for each folder summary if non-nil."
1596 (defcustom wl-stay-folder-window nil
1597 "*Stay folder window when folder is selected if non-nil."
1601 (defcustom wl-reply-subject-prefix "Re: "
1602 "*Prefix of the subject of the replied message."
1607 (defcustom wl-forward-subject-prefix "Forward: "
1608 "*Prefix of the subject of the forwarded message."
1613 (defcustom wl-draft-reply-use-address-with-full-name t
1614 "*Use address with full-name in the draft of replied message."
1619 (defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1620 "*Regexp matching \"Re: \" in the subject line."
1625 (defcustom wl-folder-many-unsync-threshold 70
1626 "*Folders which contains messages more than this number are highlighted
1627 with wl-highlight-folder-many-face."
1632 (defcustom wl-fcc nil
1633 "*Folder Carbon Copy."
1634 :type '(choice (const :tag "disable" nil)
1639 (defcustom wl-fcc-force-as-read nil
1640 "*If non-nil, mark copied message as read."
1645 (defcustom wl-bcc nil
1646 "*Blind Carbon Copy."
1647 :type '(choice (const :tag "disable" nil)
1652 (defcustom wl-folder-desktop-name "Desktop"
1653 "*An implicit name of the folder top entity."
1658 (defcustom wl-summary-indent-length-limit 46
1659 "*Limit of indent length for thread. Nil means unlimited"
1660 :type '(choice (const :tag "Unlimited" nil)
1665 (defcustom wl-summary-max-thread-depth 30
1666 "*If thread depth of the message is larger than this value, divide it."
1667 :type '(choice (const :tag "Unlimited" nil)
1672 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1673 "*A string displayed in summary when no from field exists."
1677 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1678 "*A string displayed in summary when no subject field exists."
1682 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1683 "*The body content of a cancel message."
1687 (defcustom wl-summary-width 80
1688 "*Set summary line width if non nil."
1689 :type '(choice (const :tag "Don't truncate" nil)
1694 (defcustom wl-summary-print-argument-within-window nil
1695 "*If non-nil, always print argument right side of window."
1700 (defcustom wl-summary-pick-field-default "Body"
1701 "*Default field for pick."
1702 :type '(radio (const "From")
1711 (string :tag "Other"))
1714 (defcustom wl-mime-charset 'x-ctext
1715 "*MIME Charset for summary and message."
1720 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1721 "A function for creating User-Agent field string."
1725 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1726 (or hilit-background-mode 'dark)
1728 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1729 :type '(radio (const dark)
1731 :group 'wl-highlight)
1733 (defcustom wl-highlight-x-face-function nil
1734 "A function to display X-Face."
1736 :group 'wl-highlight)
1738 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1739 "Location of the qmail-inject program."
1740 :type '(string :tag "Program")
1743 (defcustom wl-qmail-inject-args nil
1744 "Arguments passed to qmail-inject programs.
1745 This should be a list of strings, one string for each argument.
1747 For e.g., if you wish to set the envelope sender address so that bounces
1748 go to the right place or to deal with listserv's usage of that address, you
1749 might set this variable to '(\"-f\" \"you@some.where\")."
1750 :type '(repeat (string :tag "Argument"))
1753 (defcustom wl-rejected-letter-start
1754 "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1755 "Regexp specifying the beginning of the wrapper around a returned letter.
1756 This wrapper is generated by the mail system when rejecting a letter."
1760 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1761 "*All headers that match this regexp will be deleted when forwarding a message."
1765 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1766 "*All headers that match this regexp will be deleted when resending a message."
1770 (defcustom wl-refile-default-from-folder "+from"
1771 "*Folder name to refile by `wl-refile-guess-by-from'."
1772 :type '(string :tag "Folder")
1775 (defcustom wl-summary-auto-refile-skip-marks
1776 (list elmo-msgdb-new-mark
1777 elmo-msgdb-unread-uncached-mark
1778 elmo-msgdb-unread-cached-mark)
1779 "Persistent marks to skip auto-refiling."
1780 :type '(repeat (string :tag "Mark"))
1783 (defcustom wl-summary-reserve-mark-list
1784 (list "o" "O" "D" "d" "i")
1785 "If a message is already marked as temporal marks in this list,
1786 the message is not marked by any mark command."
1787 :type '(repeat (string :tag "Temp-Mark"))
1790 (defcustom wl-summary-skip-mark-list
1792 "If a message is already marked as temporal marks in this list,
1793 the message is skipped at cursor move."
1794 :type '(repeat (string :tag "Temp-Mark"))
1797 (defcustom wl-summary-incorporate-marks
1798 (list elmo-msgdb-new-mark
1799 elmo-msgdb-unread-uncached-mark)
1800 "Persistent marks to prefetch at `wl-summary-incorporate'."
1801 :type '(repeat (string :tag "Mark"))
1804 (defcustom wl-refile-rule-alist nil
1809 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1811 (\"^Wanderlust\" . \"+wl\")
1812 (\"^Elips\" . \"+elips\")))"
1813 :type '(repeat (list (string :tag "Field")
1815 (cons (regexp :tag "Value")
1816 (string :tag "Folder")))))
1819 (defcustom wl-strict-diff-folders nil
1820 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
1821 :type '(choice (const :tag "Off" nil)
1822 (repeat (regexp :tag "Folder Regexp")))
1825 (defcustom wl-folder-use-server-diff t
1826 "Checked unread message number on IMAP4 server.
1827 Only IMAP4 folders have an effect."
1831 (defcustom wl-force-fetch-folders nil
1832 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
1833 :type '(choice (const :tag "off" nil)
1834 (const :menu-tag "on" t)
1835 (repeat (regexp :tag "Folder Regexp")))
1838 (defcustom wl-auto-check-folder-name nil
1839 "*A folder, a group or a list of folders and groups specified which
1840 will be automatically checked at the startup time."
1841 :type '(choice (string :tag "Folder")
1842 (repeat (string :tag "Folder"))
1846 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
1847 "All folders that match this list won't be checked at the startup
1848 time even if they are embedded in some groups specified by
1849 wl-auto-check-folder-name.
1850 Those folders are also skipped when you check on the Desktop.
1851 This value is preceded by wl-auto-check-folder-list.
1852 Each elements are regexp of folder name."
1853 :type '(repeat (regexp :tag "Folder Regexp"))
1856 (defcustom wl-auto-check-folder-list nil
1857 "A list of patterns for exceptional folders against
1858 wl-auto-uncheck-folder-list.
1859 Each elements are regexp of folder name."
1860 :type '(repeat (regexp :tag "Folder Regexp"))
1863 (defcustom wl-show-plug-status-on-modeline t
1864 "If it is non-nil, show plugged status in modeline."
1866 :group 'wl-highlight)
1868 (defcustom wl-plug-state-indicator-on " [ON] "
1869 "String used to show plugged status ON."
1871 :group 'wl-highlight)
1873 (defcustom wl-plug-state-indicator-off " [--] "
1874 "String used to show plugged status OFF."
1876 :group 'wl-highlight)
1878 (defcustom wl-biff-check-folder-list nil
1879 "All folders that match this list are automatically checked
1880 every intervals specified by wl-biff-check-interval."
1881 :type '(repeat (regexp :tag "Folder Regexp"))
1882 :group 'wl-highlight)
1884 (defcustom wl-biff-check-interval 40
1885 "Number of seconds between updates of new mails in the mode line."
1887 :group 'wl-highlight)
1889 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
1890 (not (featurep 'mule)))
1892 (decode-coding-string
1894 (read "\"[\e$B\\\")\e(B]\"")
1898 "String used to show biff status ON."
1900 :group 'wl-highlight)
1902 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
1903 (not (featurep 'mule)))
1905 ;; Japanese short hyphen
1907 "String used to show biff status OFF."
1909 :group 'wl-highlight)
1911 (defcustom wl-mode-line-display-priority-list '(biff plug title)
1912 "Displaying order of items to be shown in modeline. The first item will
1913 be placed in the leftmost. The significant items are `biff' and `plug';
1914 otherwise, e.g. `title', corresponds to the things except for the biff
1915 staus nor the plugged status. The default order is '(biff plug title)
1916 even if the value of this option is set to nil. Here are some samples:
1918 ;; Plugged status first:
1919 \(setq wl-mode-line-display-priority-list '(plug))
1921 ;; Biff status, Title of Wanderlust, Plugged status:
1922 \(setq wl-mode-line-display-priority-list '(biff title plug))
1925 :type '(repeat (radio (const :format "%v " biff)
1926 (const :format "%v " plug)
1927 (sexp :tag "Other" :value title)))
1928 :group 'wl-highlight)
1930 (defcustom wl-interactive-send t
1931 "*If non-nil, require your confirmation when sending draft message."
1936 (defcustom wl-interactive-exit t
1937 "*If non-nil, require your confirmation when exiting WL."
1941 (defcustom wl-summary-move-order 'unread
1942 "*The order of priority when move in summary mode.
1943 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
1944 If this variable is `new', precede \"N\" mark."
1945 :type '(radio (const new)
1950 (defvar wl-summary-move-direction-downward t)
1952 (defcustom wl-summary-move-direction-toggle t
1953 "*If non-nil, search direction for the next message will be determined
1954 depends on previous search direction.
1955 It uses wl-summary-move-direction-downward as a direction flag."
1959 (defcustom wl-auto-select-first nil
1960 "*If non-nil, display selected first message when enter summary."
1965 (defcustom wl-auto-prefetch-first nil
1966 "*If non-nil, prefetch selected first message when enter summary."
1971 (defcustom wl-auto-select-next nil
1972 "*If non-nil, offer to go to the next folder from the end of the previous.
1973 If the value is the symbol `unread', go to the next folder
1974 that no unread message exists. If the value is the symbol `skip-no-unread',
1975 skip the folder that no unread message exists.
1977 See also variable `wl-summary-next-no-unread-command'."
1978 :type '(radio (const :tag "off" nil)
1981 (const skip-no-unread))
1985 (defcustom wl-message-buffer-name " *WL:Message*"
1986 "*Buffer name for message buffers."
1990 (defcustom wl-message-buffer-prefetch-folder-type-list '(imap4 nntp)
1991 "*All folder types that match this list prefetch next message,
1992 and reserved buffer cache."
1993 :type `(choice (const :tag "all" t)
1994 (const :tag "never" nil)
1995 (set (const localdir)
2008 (defcustom wl-message-buffer-prefetch-folder-list nil
2009 "*All folders that match this list prefetch next message,
2010 and reserved buffer cache.
2013 :type '(repeat (regexp :tag "Folder Regexp"))
2016 (defcustom wl-message-buffer-prefetch-depth 1
2017 "*Depth of buffer prefetch in summary mode."
2021 (defcustom wl-message-buffer-prefetch-idle-time 1
2022 "*Idle time of buffer prefetch."
2026 (defcustom wl-message-buffer-prefetch-threshold 30000
2027 "*Quit forward cache prefetching if message size is larger than this value."
2031 (defcustom wl-summary-always-sticky-folder-list nil
2032 "All folders that match this list has sticky summary.
2033 Each elements are regexp of folder name."
2034 :type '(radio (const :tag "none" nil)
2035 (const :tag "all" t)
2036 (repeat (regexp :tag "Folder Regexp")))
2039 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
2040 "All folders that match this list won't save its msgdb.
2041 Each elements are regexp of folder name."
2042 :type '(repeat (regexp :tag "Folder Regexp"))
2045 (defcustom wl-save-folder-list nil
2046 "All folders that match this list save its msgdb.
2047 Each elements are regexp of folder name."
2048 :type '(repeat (regexp :tag "Folder Regexp"))
2051 (defcustom wl-folder-mime-charset-alist
2052 '(("^-alt\\.chinese" . big5)
2053 ("^-relcom\\." . koi8-r)
2055 ("^-han\\." . euc-kr)
2056 ("@sponichi" . shift_jis)
2057 ("@2ch" . shift_jis))
2058 "Charset alist. If no match, `wl-mime-charset' is used."
2059 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
2063 (defcustom wl-folder-weekday-name-lang-alist
2064 '(("^-alt\\.chinese" . "en")
2065 ("^-relcom\\." . "en")
2067 ("^-han\\." . "en"))
2068 "Weekday name lang alist.
2069 If no match, `wl-summary-weekday-name-lang' is used.
2071 '((\"xemacs-beta$\" . \"en\")
2072 (\"^-fj\" . \"ja\"))"
2073 :type '(repeat (cons (regexp :tag "Folder Regexp")
2074 (choice (const "ja")
2078 (string :tag "Other"))))
2081 (defcustom wl-folder-thread-indent-set-alist
2082 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
2083 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
2084 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
2085 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
2086 "Thread indent set alist.
2087 If no match, following indent set is used.
2088 \(wl-thread-indent-level
2089 wl-thread-have-younger-brother-str
2090 wl-thread-youngest-child-str
2091 wl-thread-vertical-str
2092 wl-thread-horizontal-str
2093 wl-thread-space-str)
2095 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
2096 :type '(repeat (cons (regexp :tag "Folder Regexp")
2097 (group (integer :tag "Indent")
2098 (string :tag "Yonger Brother")
2099 (string :tag "Yonger Child")
2100 (string :tag "Vertical")
2101 (string :tag "Horizontal")
2102 (string :tag "Space"))))
2105 (defcustom wl-folder-sync-range-alist
2106 (list (cons (concat "^" (regexp-quote wl-draft-folder) "$\\|^"
2107 (regexp-quote wl-queue-folder) "$")
2109 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
2110 :type '(repeat (cons (regexp :tag "Folder Regexp")
2111 (choice (const "update")
2115 (const :tag "none" nil))))
2118 (defcustom wl-default-sync-range "update"
2119 "*Default sync range."
2120 :type '(choice (const "update")
2124 (const :tag "none" nil))
2127 (defcustom wl-ask-range t
2128 "*If non-nil, ask for a range for summary synchronization.
2129 If nil, always use default."
2133 (defcustom wl-folder-process-duplicates-alist nil
2134 "Specify process type of duplicated messages.
2135 It should be a list of cons cell like: (REGEXP . TYPE)
2136 REGEXP is a regular expression string of folder name.
2137 TYPE is one of the symbols `hide' or `read'.
2138 `hide' means hide duplicated messages.
2139 `read' means mark as read duplicated messages.
2140 If TYPE is nil, do nothing for duplicated messages."
2141 :type '(repeat (cons (regexp :tag "Folder regexp")
2142 (choice (const :tag "Hide" hide)
2143 (const :tag "Mark as read" read))))
2146 (defcustom wl-folder-move-cur-folder nil
2147 "*Non-nil, move cursor to current folder on folder buffer when goto folder."
2151 (defcustom wl-folder-check-async t
2152 "*Check the folder asynchronous."
2156 (defcustom wl-folder-notify-deleted nil
2157 "*Non-nil, display negative number on folder-mode when message is deleted
2158 in folder. If the value is 'sync, msgdb would be synchronized."
2159 :type '(choice (const :tag "off" nil)
2164 (defcustom wl-summary-exit-next-move t
2165 "*Non-nil, move to next-unsync or next-entity when exit summary."
2169 (defcustom wl-summary-next-no-unread-command
2170 '(wl-summary-read wl-summary-down wl-summary-up)
2171 "*Command list available when the value of `wl-auto-select-next' is 'unread
2172 or 'skip-no-unread."
2173 :type '(repeat function)
2176 (defcustom wl-summary-search-via-nntp 'confirm
2177 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'.
2178 If the value is 'confirm, confirm before search, 'force to search via nntp
2179 regardless of current folder type."
2180 :type '(choice (const :tag "confirm" confirm)
2181 (const :tag "always" force)
2182 (const :tag "in nntp folder" t)
2183 (const :tag "never" nil))
2186 (defcustom wl-summary-keep-cursor-command
2187 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2188 "*Command list to keep cursor position when folder is changed to
2189 already existing summary."
2190 :type '(repeat function)
2193 (defcustom wl-summary-showto-folder-regexp nil
2194 "Regexp specifying the folder that shows the To (or Newsgroups) field as
2195 Sender information in summary mode."
2196 :type '(choice (const :tag "none" nil)
2200 (defcustom wl-folder-removed-mark "#<removed>"
2201 "Mark for removed folder."
2205 (defcustom wl-folder-unsubscribe-mark "#"
2206 "Mark for unsubscribe folder."
2210 (defcustom wl-dispose-folder-alist '(("^-" . remove)
2212 "*Alist of folder and dispose policy.
2213 Each element is (folder-regexp . policy).
2215 The policy is one of the followings:
2217 'null : remove message.
2218 string : refile to the specified folder.
2220 otherwise : refile to the `wl-trash-folder'.
2222 '((\"^%\" . \"%#mh/trash\")
2224 (\"^\\\\+\" . trash))"
2225 :type '(repeat (cons (regexp :tag "Folder Regexp")
2226 (choice :tag "Policy"
2228 (const :tag "remove(null)" null)
2230 (const :tag "trash(other)" trash)
2231 (string :tag "Folder"))))
2234 (defcustom wl-refile-policy-alist '(("^[-=']" . copy)
2236 "*List of refile policy. Each element is (FOLDER-REGEXP . POLICY).
2237 POLICY is copy or move."
2238 :type '(repeat (cons (regexp :tag "Folder Regexp")
2239 (choice (const copy)
2244 (defcustom wl-folder-hierarchy-access-folders '("^-[^\\.]*\\(:\\|@\\|$\\)"
2246 "*Access group REGEXPs to make hierarchy structure."
2247 :type '(repeat (string :tag "Regexp"))
2250 (defcustom wl-folder-init-load-access-folders nil
2251 "*Access group folders to load folder list on `wl-folder-init'.
2252 If this variable is non-nil,
2253 `wl-folder-init-no-load-access-folders' will be ignored."
2254 :type '(repeat (regexp :tag "Folder Regexp"))
2257 (defcustom wl-folder-init-no-load-access-folders nil
2258 "*Access group folders to not load folder list on `wl-folder-init'.
2259 If `wl-folder-init-load-access-folders' is non-nil,
2260 this variable will be ignored."
2261 :type '(repeat (regexp :tag "Folder Regexp"))
2264 (defcustom wl-folder-access-subscribe-alist nil
2265 "*Subscribe folders to fetching folder entries.
2266 Each element is (group-regexp (subscribe folder-regexp ...)).
2267 If subscribe is non-nil, subscribe when match folder-regexp.
2268 If subscribe is nil, unsubscribe when match folder-regexp.
2271 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2272 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2273 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
2274 :type '(repeat (cons (regexp :tag "Folder Regexp")
2275 (list (boolean :tag "Subscribed")
2277 (regexp :tag "Folder Regexp")))))
2280 ;;; For Folder Manager
2282 (defcustom wl-interactive-save-folders t
2283 "*Non-nil require your confirmation when save folders."
2288 (defcustom wl-fldmgr-make-backup t
2289 "*Non-nil make backup file when save folders."
2293 (defcustom wl-fldmgr-folders-indent "\t"
2294 "*Indent string for folders file."
2298 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2299 "*A function to sort folder."
2303 (defcustom wl-fldmgr-sort-group-first t
2304 "*Non-nil Group folder is first when sort."
2308 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2309 "*If non-nil, completion for adding folder refers current folder list."
2313 (defcustom wl-fldmgr-make-filter-default "Body"
2314 "*Default filter key while making filter on Folder."
2315 :type '(radio (const "From")
2324 (string :tag "Other"))
2327 (defcustom wl-fldmgr-allow-rename-access-group nil
2328 "*If non-nil, allow to rename folder in access group."
2332 ;;; For Expire and Archive
2334 (defcustom wl-expire-alist nil
2335 "Alist to decide a policy for expire.
2336 Each element is (folder-regexp (number or date) policy).
2338 The policy is one of the followings:
2339 'remove : remove messsage.
2340 'trash : refile `wl-trash-folder'.
2341 string : refile string folder.
2342 function : call function.
2345 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
2346 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
2347 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
2348 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
2349 (\"^\\\\+misc$\" (date 14) trash))"
2350 :type '(repeat (choice (list :tag "No-match"
2351 (regexp :tag "Folder Regexp")
2354 (regexp :tag "Folder Regexp")
2355 (list (radio :value number
2360 (repeat :inline t integer)))
2361 (choice :tag "Policy"
2365 (string :tag "folder")
2368 :tag "Arg for function"
2372 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2373 "Alist to decide a policy for archive.
2374 Each element is (folder-regexp policy(function)).
2377 '((\"\\\\+work$\" wl-archive-date)
2378 (\"\\\\+ml/\" wl-archive-number1)
2379 (\".*\" wl-archive-number2))"
2380 :type '(repeat (list (regexp :tag "Folder Regexp")
2383 (sexp :tag "Argument"))))
2386 (defcustom wl-summary-expire-reserve-marks
2387 (list elmo-msgdb-important-mark
2389 elmo-msgdb-unread-uncached-mark
2390 elmo-msgdb-unread-cached-mark)
2391 "Permanent marks of reserved message when expire.
2392 Don't reserve temporary mark message.
2395 'all : reserved all permanent marks.
2396 'none : not reserve permanent marks.
2397 list : reserved specified permanent marks."
2398 :type '(repeat (string :tag "Mark"))
2401 (defcustom wl-expire-number-with-reserve-marks nil
2402 "If non-nil, include reserve message when expire by number."
2406 (defcustom wl-expire-add-seen-list t
2407 "*If non-nil, add seen message list when refile message at expire."
2411 (defcustom wl-expire-use-log nil
2412 "*If non-nil, write a log when expired."
2416 (defcustom wl-expire-folder-update-msgdb t
2417 "*Non-nil update summary msgdb when expire on folder mode."
2421 ;; for wl-expire-archive-{number1|number2}
2422 (defcustom wl-expire-archive-files 100
2423 "*The number of one archive folder."
2427 ;; for wl-expire-archive-{number1|number2|date}
2428 (defcustom wl-expire-archive-get-folder-function
2429 'wl-expire-archive-get-folder
2430 "*A function to get archive folder name."
2434 (defcustom wl-expire-delete-oldmsg-confirm t
2435 "*If non-nil, require your confirmation when delete old message."
2439 ;; for wl-expire-archive-get-folder
2440 (defcustom wl-expire-archive-folder-type 'zip
2441 "*Archiver type of archive folder."
2442 :type '(radio (const zip)
2448 (symbol :tag "Other"))
2451 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2452 "*A format string for archive folder name."
2456 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2457 "*A regexp string for archive folder name."
2461 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2462 ;; $folder-199812;zip
2463 "*A format string for archive date folder name."
2467 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2468 "*A regexp string for archive date folder name."
2472 (defcustom wl-expire-archive-folder-prefix nil
2473 "*Prefix for archive folder."
2474 :type '(radio (const :tag "nothing" nil)
2475 (const :tag "full" t)
2481 ;; highilght about summary
2482 (defcustom wl-highlight-max-summary-lines 10000
2483 "*If the summary is larger than this lines, don't highlight it."
2485 :group 'wl-highlight)
2487 ;; highilght about draft and message
2488 (defcustom wl-highlight-body-too t
2489 "*In addition to header, highlight the body too. if non nil."
2491 :group 'wl-highlight)
2493 (defcustom wl-highlight-message-header-alist
2494 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2495 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2496 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2498 :type '(repeat (cons regexp face))
2499 :group 'wl-highlight)
2501 (defcustom wl-highlight-citation-prefix-regexp
2502 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2503 "All lines that match this regexp will be highlighted with
2504 `wl-highlight-message-cited-text-*' face."
2506 :group 'wl-highlight)
2508 (defcustom wl-highlight-highlight-citation-too nil
2509 "*Whether the whole citation line should go in the
2510 `wl-highlight-citation-face' face.
2511 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2512 default face, and the remainder of the line is in the
2513 wl-highlight-message-cited-text face."
2515 :group 'wl-highlight)
2517 (defcustom wl-highlight-force-citation-header-regexp
2518 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2519 "*The pattern to match the prolog of a cited block.
2520 Text in the body of a message which matches this will be displayed in
2521 the `wl-highlight-message-headers' face."
2523 :group 'wl-highlight)
2525 (defcustom wl-highlight-citation-header-regexp
2526 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2527 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2528 "^.*\\(writes\\|wrote\\|said\\):\n")
2529 "*The pattern to match the prolog of a cited block.
2530 Text in the body of a message which matches this will be displayed in
2531 the `wl-highlight-message-headers' face."
2533 :group 'wl-highlight)
2535 (defcustom wl-highlight-max-header-size nil
2536 "*If the message header is larger than this many chars, don't highlight it.
2537 If this is nil, all headers will be highlighted."
2539 :group 'wl-highlight)
2541 (defcustom wl-highlight-max-message-size 10000
2542 "*If the message body is larger than this many chars, don't highlight it.
2543 This is to prevent us from wasting time trying to fontify things like
2544 uuencoded files and large digests. If this is nil, all messages will
2547 :group 'wl-highlight)
2549 ;; highilght about signature (of draft and message)
2550 (defcustom wl-highlight-signature-separator
2551 '("\n--+\n" "\n\n--+.*\n*\\'")
2552 "List of regexps matching signature separator.
2553 It will be verified from head to tail looking for a separator.
2554 Verification will be done from the end of the buffer.
2555 No need to specify \"^-- $\" in this list,
2556 because it is verified by default.
2557 This variable can also be a regex."
2558 :type '(repeat regexp)
2559 :group 'wl-highlight)
2561 (defcustom wl-max-signature-size 400
2562 "*If the signature is larger than this chars, don't treat it as a signature."
2564 :group 'wl-highlight)
2566 ;; highilght about mouse
2567 (defcustom wl-use-highlight-mouse-line (and window-system
2568 (>= emacs-major-version 19))
2569 "*Highlight mouse line, if non nil."
2571 :group 'wl-highlight)
2573 ;; highilght about folder
2574 (defcustom wl-highlight-folder-with-icon
2575 (or (and (featurep 'xemacs)
2578 "*Highlight folder with icon(XEmacs or Emacs 21)."
2580 :group 'wl-highlight)
2581 (defcustom wl-highlight-folder-by-numbers t
2582 "Highlight folder lines by numbers.
2583 If it is a number, only numbers will be highlighted."
2584 :type '(choice (const :tag "whole line" t)
2585 (const :tag "only numbers" 1)
2586 (const :tag "don't highlight" nil))
2587 :group 'wl-highlight)
2589 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2590 "Function to search signature area in the message body."
2592 :group 'wl-highlight)
2594 (defcustom wl-use-dnd (and wl-on-xemacs
2595 (featurep 'dragdrop))
2596 "If Non-nil, support dragdrop feature in XEmacs."
2600 (defcustom wl-reset-plugged-alist t
2601 "*If non-nil, reset `elmo-plugged-alist' when startup."
2605 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2606 (module-installed-p 'image)
2607 (module-installed-p 'bitmap))
2609 "If it is T, show graphic logo in the startup screen. You can set it to
2610 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2611 :type '(radio (const :tag "Off" nil)
2612 (const :tag "On (any format)" t)
2615 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2618 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2619 "*A string displayed when invalid character exists."
2623 ;;; Internal variables
2624 (defvar wl-init nil)
2626 ;; For disconnected operations.
2627 (defvar wl-plugged-hook nil)
2628 (defvar wl-unplugged-hook nil)
2629 (defcustom wl-plugged t
2630 "*Plugged state at the startup. Nil means off-line."
2635 ;; Internal variables used to modeline identifiers.
2636 (defvar wl-modeline-plug-status nil)
2637 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2638 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2639 (defvar wl-modeline-biff-status nil)
2640 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2641 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2643 ;; Advanced thread view.
2644 (defvar wl-thread-indent-level (if wl-on-mule 1 2)
2645 "*Indent level for thread.")
2646 (defvar wl-thread-have-younger-brother-str (if wl-on-mule "
\e$B(2
\e(B" "+")
2647 "*A string for thread branch line. It should contain one character.")
2648 (defvar wl-thread-youngest-child-str (if wl-on-mule "
\e$B(1
\e(B" "+")
2649 "*A string for thread branch line. It should contain one character.")
2650 (defvar wl-thread-vertical-str (if wl-on-mule "
\e$B(-
\e(B" "|")
2651 "*A string for thread branch line. It should contain one character.")
2652 (defvar wl-thread-horizontal-str (if wl-on-mule "
\e$B(,
\e(B" "-")
2653 "*A string for thread branch line. It should contain one character.")
2654 (defvar wl-thread-space-str (if wl-on-mule "
\e$B!!
\e(B" " ")
2655 "*A string for thread branch line. It should contain one character.")
2657 ;; folder icons. filename relative to wl-icon-directory
2658 (defvar wl-opened-group-folder-icon "opened.xpm"
2659 "*Icon file for opened group folder.")
2660 (defvar wl-closed-group-folder-icon "closed.xpm"
2661 "*Icon file for closed group folder.")
2662 (defvar wl-nntp-folder-icon "news.xpm"
2663 "*Icon file for nntp folder.")
2664 (defvar wl-imap-folder-icon "imap.xpm"
2665 "*Icon file for imap folder.")
2666 (defvar wl-pop-folder-icon "pop.xpm"
2667 "*Icon file for pop folder.")
2668 (defvar wl-localdir-folder-icon "local.xpm"
2669 "*Icon file for localdir folder.")
2670 (defvar wl-localnews-folder-icon "localnews.xpm"
2671 "*Icon file for localnews folder.")
2672 (defvar wl-internal-folder-icon "internal.xpm"
2673 "*Icon file for internal folder.")
2674 (defvar wl-multi-folder-icon "multi.xpm"
2675 "*Icon file for multi folder.")
2676 (defvar wl-filter-folder-icon "filter.xpm"
2677 "*Icon file for filter folder.")
2678 (defvar wl-archive-folder-icon "archive.xpm"
2679 "*Icon file for archive folder.")
2680 (defvar wl-pipe-folder-icon "pipe.xpm"
2681 "*Icon file for pipe folder.")
2682 (defvar wl-nmz-folder-icon "nmz.xpm"
2683 "*Icon file for namazu folder.")
2684 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2685 "*Icon file for shimbun folder.")
2686 (defvar wl-maildir-folder-icon "maildir.xpm"
2687 "*Icon file for maildir folder.")
2688 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2689 "*Icon file for emptied trash folder.")
2690 (defvar wl-trash-folder-icon "trash.xpm"
2691 "*Icon file for trash folder.")
2692 (defvar wl-draft-folder-icon "draft.xpm"
2693 "*Icon file for draft folder.")
2694 (defvar wl-queue-folder-icon "queue.xpm"
2695 "*Icon file for queue folder.")
2696 (defvar wl-plugged-icon "plugged.xpm"
2697 "*Icon file for plugged state.")
2698 (defvar wl-unplugged-icon "unplugged.xpm"
2699 "*Icon file for unplugged state.")
2700 (defvar wl-biff-mail-icon "letter.xpm"
2701 "*Icon file for mail existed state.")
2702 (defvar wl-biff-nomail-icon "no-letter.xpm"
2703 "*Icon file for no mail existed state.")
2704 (defvar wl-prog-uudecode "uudecode"
2705 "*uudecode program name.")
2706 (defvar wl-prog-uudecode-arg nil
2707 "*Arguments for uudecode program.")
2708 (defvar wl-prog-uudecode-no-stdout-option t
2709 "*If non-nil, uudecode program don't have option for output to stdout.")
2712 (defvar wl-plugged-plug-on "ON")
2713 (defvar wl-plugged-plug-off "--")
2714 (defvar wl-plugged-auto-off "**")
2715 (defvar wl-plugged-server-indent 2)
2716 (defvar wl-plugged-port-indent 4)
2717 (defvar wl-plugged-queue-status-column 25)
2719 ;;;; Obsolete variables.
2721 ;; 2003-07-15 delete -> dispose
2722 (elmo-define-obsolete-variable 'wl-delete-folder-alist
2723 'wl-dispose-folder-alist)
2726 (elmo-define-obsolete-variable 'wl-draft-reply-myself-with-argument-list
2727 'wl-draft-reply-with-argument-list)
2728 (elmo-define-obsolete-variable 'wl-draft-reply-myself-without-argument-list
2729 'wl-draft-reply-without-argument-list)
2731 ;; 2001-12-11: *-dir -> *-directory
2732 (elmo-define-obsolete-variable 'wl-icon-dir
2734 (elmo-define-obsolete-variable 'wl-mime-save-dir
2735 'wl-mime-save-directory)
2736 (elmo-define-obsolete-variable 'wl-score-files-dir
2737 'wl-score-files-directory)
2738 (elmo-define-obsolete-variable 'wl-tmp-dir
2739 'wl-temporary-file-directory)
2742 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
2743 'elmo-folder-update-threshold)
2744 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
2745 'elmo-message-fetch-threshold)
2747 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
2748 'wl-message-buffer-prefetch-folder-type-list)
2749 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
2750 'wl-message-buffer-prefetch-folder-list)
2752 ;; 2001-02-27: *-func -> *-function
2753 (elmo-define-obsolete-variable 'wl-summary-from-func
2754 'wl-summary-from-function)
2755 (elmo-define-obsolete-variable 'wl-summary-subject-func
2756 'wl-summary-subject-function)
2757 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
2758 'wl-summary-subject-filter-function)
2759 (elmo-define-obsolete-variable 'wl-draft-send-func
2760 'wl-draft-send-function)
2761 (elmo-define-obsolete-variable 'wl-draft-send-news-func
2762 'wl-draft-send-news-function)
2763 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
2764 'wl-draft-send-mail-function)
2765 (elmo-define-obsolete-variable 'wl-print-buffer-func
2766 'wl-print-buffer-function)
2767 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
2768 'wl-ps-print-buffer-function)
2769 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
2770 'wl-generate-mailer-string-function)
2771 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
2772 'wl-highlight-x-face-function)
2773 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
2774 'wl-fldmgr-sort-function)
2775 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
2776 'wl-expire-archive-get-folder-function)
2777 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
2778 'wl-highlight-signature-search-function)
2780 ;; 2000-01-25: temp mark -> target mark
2781 (elmo-define-obsolete-variable 'wl-summary-temp-above
2782 'wl-summary-target-above)
2784 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
2785 (defvar wl-draft-prepared-config-alist nil)
2786 (make-obsolete-variable 'wl-draft-prepared-config-alist
2787 'wl-draft-config-alist)
2790 (elmo-define-obsolete-variable 'wl-address-filename
2792 (elmo-define-obsolete-variable 'wl-score-default-file-name
2793 'wl-score-default-file)
2797 (product-provide (provide 'wl-vars) (require 'wl-version))
2799 ;;; wl-vars.el ends here