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 (defcustom wl-from (and user-mail-address
133 (concat (and (user-full-name)
134 (concat (elmo-address-quote-specials
137 "<" user-mail-address ">"))
138 "*From string used in draft."
143 (defcustom wl-user-mail-address-list nil
144 "*A list of user's mail addresses.
145 This list is used to judge whether an address is user's or not.
146 You should set this variable if you use multiple e-mail addresses.
147 If you don't have multiple e-mail addresses, you don't have to set this.
148 NOTE: Non-nil value of `wl-user-mail-address-regexp' supersede this."
149 :type '(repeat string)
153 (defcustom wl-user-mail-address-regexp nil
154 "*A regexp for user's mail addresses.
155 Supersede `wl-user-mail-address-list'."
156 :type '(choice (const :tag "Use wl-user-mail-address-list" nil)
161 (defcustom wl-organization (getenv "ORGANIZATION")
163 :type '(choice (const :tag "none" nil)
168 (defcustom wl-temporary-file-directory "~/tmp/"
169 "*Default temporary directory to save message, part."
173 (defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
174 (locate-data-directory "wl")
175 (let ((icons (expand-file-name "wl/icons/"
177 (if (file-directory-p icons)
179 "*Directory to load the icon files from, or nil if none."
180 :type '(choice (const :tag "none" nil)
184 (defcustom wl-summary-default-view 'thread
185 "Default status of summary view, thread or sequential view."
186 :type '(choice (const :tag "Thread" thread)
187 (const :tag "Sequential" sequence))
190 (defcustom wl-summary-default-view-alist nil
191 "An alist of regexp for folder name and summary default view.
192 If no match, `wl-summary-default-view' is used."
193 :type '(repeat (cons (regexp :tag "Folder Regexp")
194 (choice (const :tag "Thread" thread)
195 (const :tag "Sequential" sequence))))
198 (defvar wl-summary-mode-line-format-spec-alist
199 '((?f (if (memq 'modeline wl-use-folder-petname)
200 (wl-folder-get-petname (elmo-folder-name-internal
201 wl-summary-buffer-elmo-folder))
202 (elmo-folder-name-internal wl-summary-buffer-elmo-folder)))
203 (?t (if (eq wl-summary-buffer-view 'thread) "T" "S"))
204 (?n wl-summary-buffer-new-count)
205 (?u (+ wl-summary-buffer-new-count
206 wl-summary-buffer-unread-count))
207 (?a (length wl-summary-buffer-number-list)))
208 "An alist of format specifications that can appear in summary mode-lines.
209 Each element is a list of following:
211 SPEC is a character for format specification.
212 STRING-EXP is an expression to get string to insert.")
214 (defcustom wl-summary-mode-line-format "Wanderlust: %f {%t}(%n/%u/%a)"
215 "*A format string for summary mode-line of Wanderlust.
216 It may include any of the following format specifications
217 which are replaced by the given information:
220 %t The thread status of the summary ('T' for thread, 'S' for sequential).
221 %n The number of new messages.
222 %u The number of unread messages (includes new messages).
223 %a The number of all messages."
227 (defvar wl-summary-line-format-spec-alist
228 '((?Y (wl-summary-line-year))
229 (?M (wl-summary-line-month))
230 (?D (wl-summary-line-day))
231 (?W (wl-summary-line-day-of-week))
232 (?h (wl-summary-line-hour))
233 (?m (wl-summary-line-minute))
234 (?\[ (if wl-thr-linked "<" "["))
235 (?\] (if wl-thr-linked ">" "]"))
236 (?t (or wl-thr-indent-string ""))
237 (?s (wl-summary-line-subject))
238 (?S (wl-summary-line-size))
239 (?C (if wl-thr-children-number
240 (concat "[+" (number-to-string wl-thr-children-number) "] ")
241 (if wl-parent-message-entity
242 (if wl-thr-linked ">>" ">")
244 (?~ (if (zerop (length wl-line-string)) "" " "))
245 (?c (if wl-thr-children-number
246 (concat "+" (number-to-string wl-thr-children-number) ":")
248 (?f (wl-summary-line-from))
249 (?# (wl-summary-line-list-info))
250 (?l (wl-summary-line-list-count))
251 (?T (or wl-temp-mark " "))
252 (?P (or wl-persistent-mark " "))
253 (?n (wl-summary-line-number))
254 (?@ (wl-summary-line-attached)))
255 "An alist of format specifications that can appear in summary lines.
256 Each element is a list of following:
258 SPEC is a character for format specification.
259 STRING-EXP is an expression to get string to insert.")
261 (defcustom wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s"
262 "*A default format string for summary line of Wanderlust.
263 It may include any of the following format specifications
264 which are replaced by the given information:
266 %n The number of the message.
267 The width is decided using `wl-summary-default-number-column' and
268 `wl-summary-number-column-alist'.
269 %T The temporal mark (*, D, o, O).
270 %P The persistent mark (status of the message).
271 %Y The year of the date field of the message (zero padded).
272 %M The month of the date field of the message (zero padded).
273 %D The day of the date field of the message (zero padded).
274 %W The weekday name of the date field of the message (zero padded).
275 %h The hour of the date field of the message (zero padded).
276 %m The minute of the date field of the message (zero padded).
277 %[ An open bracket. If the message thread is linked,
278 it is replaced with '<'.
279 %] A close bracket. If the message thread is linked,
280 it is replaced with '>'.
281 %c The children number of the closed message thread.
282 Children number is printed like '+??:'.
283 %C The children number of the closed message thread.
284 Children number is printed like '[+??] '.
285 If the message is opened, '>' or '>>' (linked) is displayed.
286 %f The from: field string of the message.
287 %s The subject: field string of the message.
288 %S The size of the message (if available).
289 %~ If the previous spec is not zero-length, replaced with ' '.
291 If the format string contains the specifiers %( and %), the text between
292 them will have the specified number of columns."
296 (defcustom wl-folder-summary-line-format-alist nil
297 "An alist of folder name and a summary line format.
298 If no match, `wl-summary-line-format' is used.
300 '((\"^%\" . \"%n%T%P%M/%D(%W)%h:%m %t%[%14(%c %f%) %](%S) %s\")
301 (\"^@2ch\" . \"%n%T%P%M%/%D/%h:%m %t[%9(%c %f%) ]%s\")))"
302 :type '(repeat (cons (regexp :tag "Folder Regexp")
303 (string :tag "line format")))
306 (defcustom wl-summary-check-line-format t
307 "*Check summary line format change if non-nil.
308 When summary line format is changed, current summary cache is discarded.
309 It is highly recommended to set this value to t."
313 (defcustom wl-summary-line-format-file ".wl-summary-line-format"
314 "*Cache file for summary line format."
318 (defcustom wl-summary-from-function 'wl-summary-default-from
319 "*A function for displaying sender (From: field) information."
323 (defcustom wl-summary-subject-function 'wl-summary-default-subject
324 "*A function for displaying subject."
328 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
329 "*A filter function for comparing subjects."
333 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
334 "*If message does not have in-reply-to field nor references field and
335 subject matches this regexp, search parent message by subject matching.
336 If nil, never search search parent by subject."
337 :type '(choice string
338 (const :tag "Don't search parent" nil))
342 (defcustom wl-summary-mark-action-list
346 wl-summary-register-target-mark
348 wl-highlight-summary-temp-face
353 wl-summary-register-temp-mark
354 wl-summary-exec-action-dispose
355 wl-highlight-summary-disposed-face
356 "Dispose messages according to `wl-dispose-folder-alist'.")
360 wl-summary-register-temp-mark
361 wl-summary-exec-action-delete
362 wl-highlight-summary-deleted-face
363 "Delete messages immediately.")
366 wl-summary-get-refile-destination
367 wl-summary-set-action-refile
368 wl-summary-exec-action-refile
369 wl-highlight-summary-refiled-face
370 "Refile messages to the other folder.")
373 wl-summary-get-copy-destination
374 wl-summary-register-temp-mark
375 wl-summary-exec-action-copy
376 wl-highlight-summary-copied-face
377 "Copy messages to the other folder.")
381 wl-summary-register-temp-mark
382 wl-summary-exec-action-prefetch
383 wl-highlight-summary-prefetch-face
384 "Prefetch messages.")
387 wl-summary-get-resend-address
388 wl-summary-register-temp-mark
389 wl-summary-exec-action-resend
390 wl-highlight-summary-resend-face
392 "A variable to define Mark & Action.
393 Each element of the list should be a list of
402 MARK is a temporal mark string to define.
403 SYMBOL is an action name to define.
404 ARGUMENT-FUNCTION is a function called to set the argument data for
406 Its argument is (ACTION NUMBER).
407 ACTION is same as the SYMBOL.
408 NUMBER is the message number to determine the argument data.
409 SET-MARK-FUNCTION is a function called to set the mark.
410 Its argument is (NUMBER MARK DATA).
411 NUMBER is the target message number.
412 MARK is the temporary mark string.
413 DATA is given by ARGUMENT-FUNCTION.
414 EXEC-FUNCTION is a function called to execute the action.
415 Its argument is a list of MARK-INFO.
416 MARK-INFO is a list of (NUMBER MARK DATA).
417 FACE is a face for highlighting."
419 (string :tag "Temporary mark")
420 (symbol :tag "Action name")
421 (symbol :tag "Argument function")
422 (symbol :tag "Set mark function")
423 (symbol :tag "Exec function")
424 (symbol :tag "Face symbol")
425 (string :tag "Document string")))
429 (defcustom wl-default-folder "%inbox"
430 "*Default folder used in `wl-summary-goto-folder'."
433 (defcustom wl-draft-folder "+draft"
437 (defcustom wl-trash-folder "+trash"
442 (defcustom wl-queue-folder "+queue"
447 (defcustom wl-default-spec "%"
448 "*Default prefix for folder name initially added in minibuffer"
452 (defcustom wl-insert-mail-followup-to nil
453 "*Insert Mail-Followup-To: field if non-nil."
457 (defcustom wl-insert-mail-reply-to nil
458 "*Insert Mail-Reply-To: field if non-nil."
462 (defcustom wl-insert-message-id t
463 "*Insert Message-ID: field if non-nil."
467 (defcustom wl-auto-insert-x-face t
468 "*Insert X-Face: field automatically."
472 (defcustom wl-x-face-file "~/.xface"
473 "*X-Face field is inserted using its contents.
474 If file exists and `wl-auto-insert-x-face' is non-nil."
478 (defcustom wl-draft-write-file-function 'wl-draft-save
479 "Save function for draft message."
483 (defcustom wl-subscribed-mailing-list nil
484 "*Subscribed mailing list.
485 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
486 :type '(repeat string)
491 "*Display demo at start time."
495 (defcustom wl-demo-icon-name-alist
496 '(((string-match "^... Dec \\([ 01][0-9]\\|2[0-5]\\)" (current-time-string))
498 (concat "wl-" (wl-version-status) "-xmas-logo"))
501 (concat "wl-" (wl-version-status) "-logo")))
502 "An alist to determine the basename of the logo file."
503 :type '(repeat (cons (symbol :tag "condition")
504 (symbol :tag "file name")))
507 (defcustom wl-demo-image-filter-alist nil
508 "An alist of image type and filter function."
509 :type '(repeat (cons symbol function))
512 (defcustom wl-envelope-from nil
513 "*Envelope From used in SMTP.
514 If nil, `wl-from' is used."
515 :type '(choice (const :tag "Same as 'From' field." nil)
520 (defcustom wl-draft-additional-header-alist nil
521 "*Additional headers in the draft."
522 :type '(repeat (cons (symbol :tag "Field Name")
523 (choice (string :tag "String")
524 (function :tag "Function")))))
526 (defcustom wl-draft-add-in-reply-to t
527 "*If non-nil, message-id of the cited message is inserted to the
528 in-reply-to field of the current draft."
532 (defcustom wl-draft-add-references nil
533 "*If non-nil, message-id of the cited message is inserted to the
534 references field of the current draft."
538 (defcustom wl-draft-cite-function 'wl-default-draft-cite
539 "*A function for citation."
543 (defcustom wl-default-draft-cite-decorate-author t
544 "*If non-nil, the author of cited message is arranged by
545 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
549 (defcustom wl-smtp-connection-type nil
550 "*SMTP connection type.
551 If nil, default smtp connection type is used."
552 :type '(choice (const :tag "default" nil)
553 (const :tag "Use STARTTLS" starttls)
554 (const :tag "SMTP over SSL" ssl)
558 (defcustom wl-smtp-posting-user nil
559 "*SMTP authentication user."
560 :type '(choice (const :tag "none" nil)
565 (defcustom wl-smtp-posting-server nil
566 "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
567 :type '(choice (const :tag "none" nil)
572 (defcustom wl-smtp-posting-port nil
573 "*SMTP port number in `wl-smtp-posting-server'.
574 If nil, default SMTP port number(25) is used."
575 :type '(choice (const :tag "Default (25)" nil)
580 (defcustom wl-smtp-authenticate-type nil
581 "*SMTP Authentication type.
582 If nil, don't authenticate."
583 :type '(choice (const :tag "none" nil)
584 (const :tag "PLAIN" "plain")
585 (const :tag "CRAM-MD5" "cram-md5")
586 (const :tag "DIGEST-MD5" "digest-md5")
587 (const :tag "LOGIN" "login")
588 (string :tag "Other"))
592 (defcustom wl-pop-before-smtp-user nil
593 "*POP3 user name to send mail using POP-before-SMTP.
594 If nil, `elmo-pop3-default-user' is used.
595 To use POP-before-SMTP,
596 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
597 :type '(choice (const :tag "none" nil)
602 (defcustom wl-pop-before-smtp-server nil
603 "*POP3 server for POP-before-SMTP.
604 If nil, `elmo-pop3-default-server' is used."
605 :type '(choice (const :tag "none" nil)
610 (defcustom wl-pop-before-smtp-port nil
611 "*POP3 port for POP-before-SMTP.
612 If nil, `elmo-pop3-default-port' is used."
613 :type '(choice (const :tag "none" nil)
618 (defcustom wl-pop-before-smtp-stream-type nil
619 "*Stream type for POP-before-SMTP.
620 If nil, `elmo-pop3-default-stream-type' is used."
624 (defcustom wl-pop-before-smtp-authenticate-type nil
625 "*Default Authentication type for POP-before-SMTP.
626 If nil, `elmo-pop3-default-authenticate-type' is used."
627 :type '(choice (const :tag "none" nil)
628 (const :tag "APOP" 'apop)
629 (const :tag "POP3" 'user))
633 (defcustom wl-nntp-posting-server nil
634 "*NNTP server name to post news.
635 If nil, `elmo-nntp-default-server' is used."
636 :type '(choice (const :tag "none" nil)
640 (defcustom wl-nntp-posting-user nil
641 "*NNTP user name to post news for authinfo.
642 If nil, `elmo-nntp-default-user' is used.
643 If nil, don't authenticate."
644 :type '(choice (const :tag "none" nil)
648 (defcustom wl-nntp-posting-port nil
649 "*NNTP port to post news.
650 If nil, `elmo-nntp-default-port' is used."
651 :type '(choice (const :tag "none" nil)
655 (defcustom wl-nntp-posting-stream-type nil
656 "*Stream type for posting Netnews.
657 If nil, `elmo-nntp-default-stream-type' is used."
660 (defcustom wl-nntp-posting-function 'elmo-nntp-post
661 "A function to post news.
662 Prepared candidate is 'elmo-nntp-post."
663 :type '(radio (function-item elmo-nntp-post)
664 (function :tag "Other"))
666 (defcustom wl-nntp-posting-config-alist nil
667 "*Alist of configuration on nntp posting.
669 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
671 ((server . \"news.media.kyoto-u.ac.jp\")
672 (user . \"newsmaster\")
674 (function . elmo-nntp-post))
675 (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
676 :type '(repeat (cons (sexp :tag "Match")
677 (choice (string :tag "Server")
679 (cons (choice (const server)
684 (sexp :tag "Value"))))))
688 (defcustom wl-prefetch-confirm t
689 "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
693 (defcustom wl-prefetch-threshold 30000
694 "*Maximum size of message prefetched without confirmation.
695 If nil, all messages prefetched regardless of its size.
696 If message size is larger than this value, confirm prefetching
697 when `wl-prefetch-confirm' is non-nil."
698 :type '(choice (integer :tag "Threshold (bytes)")
699 (const :tag "No limitation" nil))
703 (defcustom wl-thread-insert-opened nil
704 "*Non-nil forces to insert thread as opened in updating."
709 (defcustom wl-thread-open-reading-thread t
710 "*Non-nil forces to open reading thread."
715 (defvar wl-folder-mode-hook nil
716 "A hook called when wanderlust folder mode is started.
717 This hook may contain the functions `wl-folder-init-icons' and
718 `wl-setup-folder' for reasons of system internal to accord facilities
719 for the Emacs variants.")
720 (defvar wl-summary-toggle-disp-on-hook nil
721 "A hook called when message is toggled.")
722 (defvar wl-summary-toggle-disp-off-hook nil
723 "A hook called when message is disappeared.")
724 (defvar wl-summary-toggle-disp-folder-on-hook nil
725 "A hook called when folder is toggled.")
726 (defvar wl-summary-toggle-disp-folder-off-hook nil
727 "A hook called when folder is disappeared.")
728 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
729 "A hook called when message window is resumed when folder is toggled.")
730 (defvar wl-summary-mode-hook nil
731 "A hook called when summary mode is started.
732 This hook may contain the function `wl-setup-summary' for reasons of
733 system internal to accord facilities for the Emacs variants.")
735 (defvar wl-summary-prepared-pre-hook nil
736 "A hook called before the summary buffer has been generated.")
737 (defvar wl-summary-prepared-hook nil
738 "A hook called after the summary buffer has been generated.")
739 (defvar wl-summary-sync-updated-hook nil
740 "A hook called when update summary buffer.")
741 (defvar wl-summary-unread-message-hook nil
742 "A hook called when unread message is displayed.")
743 (defvar wl-summary-edit-addresses-hook nil
744 "A hook called when address book is edited.")
745 (defvar wl-summary-buffer-message-saved-hook nil
746 "A hook called when msgdb is saved.")
747 (defvar wl-summary-buffer-mark-saved-hook nil
748 "A hook called when mark is saved.")
749 (defvar wl-summary-divide-thread-when-subject-changed nil
750 "Divide thread when subject is changed.")
751 (defvar wl-init-hook nil
752 "A hook called when initialization is finished. This hook may contain
753 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
754 reasons of system internal to accord facilities for the Emacs variants.")
756 "A hook called when Wanderlust is invoked.")
757 (defvar wl-reply-hook nil
758 "A hook called when replied.")
759 (defvar wl-mail-setup-hook nil
760 "A hook called when Draft is prepared.")
761 (defvar wl-draft-reedit-hook '(wl-draft-remove-text-plain-tag)
762 "A hook called when Draft is re-edited.
763 The cursor point is located at top of the body.")
764 (defvar wl-draft-send-hook '(wl-draft-config-exec)
765 "A hook called on the draft editing buffer before sending process starts.")
766 (defvar wl-mail-send-pre-hook nil
767 "A hook called just before the mail sending process starts.")
768 (defvar wl-news-send-pre-hook nil
769 "A hook called just before the news sending process starts.")
770 (defvar wl-message-buffer-created-hook nil
771 "A hook called when Message buffer is prepared.")
772 (defvar wl-message-redisplay-hook nil
773 "A hook called when Message is displayed.")
774 (defvar wl-message-exit-hook nil
775 "A hook called when quit message.")
776 (defvar wl-summary-exit-pre-hook nil
777 "A hook called before exit summary mode.")
778 (defvar wl-summary-exit-hook nil
779 "A hook called when exit summary mode.")
780 (defvar wl-highlight-headers-hook nil
781 "A hook called when header is highlighted.")
782 (defvar wl-highlight-message-hook nil
783 "A hook called when message is highlighted.")
784 (defvar wl-save-hook nil
785 "A hook called when save summary and folder status.")
786 (defvar wl-exit-hook nil
787 "A hook called when exit wanderlust.")
788 (defvar wl-folder-suspend-hook nil
789 "A hook called when suspend wanderlust.")
790 (defvar wl-biff-notify-hook '(ding)
791 "A hook called when a biff-notification is invoked.")
792 (defvar wl-biff-unnotify-hook nil
793 "A hook called when a biff-notification is removed.")
794 (defvar wl-auto-check-folder-pre-hook nil
795 "A hook called before auto check folders.")
796 (defvar wl-auto-check-folder-hook nil
797 "A hook called when auto check folders.")
798 (defvar wl-folder-check-entity-pre-hook nil
799 "A hook called before check entity.")
800 (defvar wl-folder-check-entity-hook nil
801 "A hook called when check entity.")
802 (defvar wl-draft-config-exec-hook nil
803 "A hook called when execute header-config on draft.")
804 (defvar wl-summary-expire-pre-hook nil
805 "A hook called before expire.")
806 (defvar wl-summary-expire-hook nil
807 "A hook called when expired.")
808 (defvar wl-summary-archive-pre-hook nil
809 "A hook called before archive.")
810 (defvar wl-summary-archive-hook nil
811 "A hook called when archived.")
812 (defvar wl-summary-line-inserted-hook nil
813 "A hook called when summary line is inserted.")
814 (defvar wl-summary-insert-headers-hook nil
815 "A hook called when insert header for search header.")
816 (defvar wl-message-display-internal-hook nil
817 "A hook called when message buffer is created and message is displayed.
818 This hook may contain the functions `wl-setup-message' for
819 reasons of system internal to accord facilities for the Emacs variants.")
820 (defvar wl-thread-update-children-number-hook nil
821 "A hook called when children number is updated.")
822 (defvar wl-folder-update-access-group-hook nil
823 "A hook called when update access group folder.")
824 (defvar wl-draft-cited-hook nil
825 "A hook called after a message is cited.")
826 (defvar wl-draft-insert-x-face-field-hook nil
827 "A hook called after a x-face field is inserted.")
828 (defvar wl-template-mode-hook nil
829 "A hook called when template mode is started.")
830 (defvar wl-score-mode-hook nil
831 "A hook called when score mode is started.")
832 (defvar wl-make-plugged-hook nil
833 "A hook called when make plugged alist.")
835 (defvar wl-plugged-exit-hook nil
836 "A hook called when exit plugged mode.")
838 ;;;; functions for draft
839 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
840 "A function to send message."
844 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
845 "A function to send news."
849 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
850 "A function to send mail.
851 Prepared candidates are 'wl-draft-send-mail-with-smtp,
852 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
853 :type '(radio (function-item wl-draft-send-mail-with-smtp)
854 (function-item wl-draft-send-mail-with-qmail)
855 (function-item wl-draft-send-mail-with-pop-before-smtp)
856 (function :tag "Other"))
859 (defcustom wl-draft-reply-with-argument-list
860 '(("From" . (("Reply-To" "Mail-Reply-To" "From")
861 ("Mail-Followup-To" "To" "Cc")
862 ("Followup-To" "Newsgroups"))))
863 "Alist of cons cell of
864 \('condition' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
865 'condition' is a header name string (non-nil if the header exists in original
866 message), a function (evaluated in original message buffer) or a list of those
867 \(means 'AND' condition).
868 'fields for ***' is a list of strings.
869 If car of each cons cell returns non-nil value,
870 cdr of each cons cell is used for preparing headers of draft message.
871 Default is for 'reply-to-all'."
872 :type '(repeat (cons (choice (string :tag "Field Name")
873 (symbol :tag "Function")
874 (const :tag "Replying to self" wl-draft-self-reply-p)
876 (choice (string :tag "Field Name")
877 (symbol :tag "Function")
878 (const :tag "Replying to self" wl-draft-self-reply-p))))
879 (list (repeat :tag "Fields For To" string)
880 (repeat :tag "Fields For Cc" string)
881 (repeat :tag "Fields For Newsgroups" string))))
884 (defcustom wl-draft-reply-without-argument-list
885 '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
886 ("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
887 ("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
888 ("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
889 ("Reply-To" . (("Reply-To") ("To" "Cc") nil))
890 (wl-draft-self-reply-p . (("To") ("Cc") nil))
891 ("From" . (("From") ("To" "Cc") nil)))
892 "Alist of cons cell of
893 \('condition' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
894 'condition' is a header name string (non-nil if the header exists in original
895 message), a function (evaluated in original message buffer) or a list of those
896 \(means 'AND' condition).
897 'fields for ***' is a list of strings.
898 If car of each cons cell returns non-nil value,
899 cdr of each cons cell is used for preparing headers of draft message."
900 :type '(repeat (cons (choice (string :tag "Field Name")
901 (symbol :tag "Function")
902 (const :tag "Replying to self" wl-draft-self-reply-p)
904 (choice (string :tag "Field Name")
905 (symbol :tag "Function")
906 (const :tag "Replying to self" wl-draft-self-reply-p))))
907 (list (repeat :tag "Fields For To" string)
908 (repeat :tag "Fields For Cc" string)
909 (repeat :tag "Fields For Newsgroups" string))))
912 (defcustom wl-draft-always-delete-myself nil
913 "*Always delete myself from recipient if non-nil."
917 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
918 "*Do not insert bcc or fcc if To and Cc fields is a member of
919 `wl-subscribed-mailing-list'"
923 (defcustom wl-draft-resume-folder-window t
924 "*Resume folder window in `wl-draft-hide'."
928 (defcustom wl-draft-use-frame nil
929 "*Raise new frame when composing draft."
933 (defcustom wl-draft-qmail-send-plugged nil
934 "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
938 (defcustom wl-draft-remove-group-list-contents t
939 "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
944 (defcustom wl-init-file "~/.wl"
945 "*User customization setting file."
949 (defcustom wl-folders-file "~/.folders"
954 (defcustom wl-address-file "~/.addresses"
959 (defcustom wl-alias-file "~/.im/Aliases"
960 "*Alias file for completion."
964 (defcustom wl-ldap-server nil
966 :type '(choice (const :tag "Default server(localhost)" nil)
967 (string :tag "Server"))
971 (defcustom wl-ldap-port nil
973 :type '(choice (const :tag "Default port" nil)
978 (defcustom wl-ldap-base nil
980 :type '(choice (const :tag "Default base" nil)
981 (string :tag "Base"))
985 (defcustom wl-use-ldap nil
986 "*If non-nil, use LDAP for address completion."
991 (defcustom wl-use-acap nil
992 "*If non-nil, use ACAP for configuration."
996 (defcustom wl-folder-info-save t
997 "If non-nil, save elmo-folder-info-alist."
1001 (defcustom wl-summary-persistent-mark-priority-list '(flag
1005 "List of flags reflected with the priority to persistent marks and faces."
1006 :type '(repeat (radio (const :format "%v " new)
1007 (const :format "%v " flag)
1008 (const :format "%v " answered)
1009 (const :format "%v " unread)))
1012 (defcustom wl-summary-flag-alist
1013 '((important "orange"))
1014 "An alist to define the flags for the summary mode.
1015 Each element is a form like:
1016 \(SYMBOL-OF-FLAG COLOR [MARK]\)
1018 \((important \"orange\"\)
1019 \(todo \"red\" \"T\"\)
1020 \(business \"green\" \"B\"\)
1021 \(private \"blue\"\)\)"
1022 :type '(repeat (list (symbol :tag "flag")
1023 (string :tag "color")
1024 (choice (string :tag "mark")
1025 (const :tag "Default mark" nil))))
1028 (defcustom wl-summary-new-uncached-mark "N"
1029 "Mark for new and uncached message."
1030 :type '(string :tag "Mark")
1031 :group 'wl-summary-marks)
1033 (defcustom wl-summary-new-cached-mark "?"
1034 "Mark for new but already cached message."
1035 :type '(string :tag "Mark")
1036 :group 'wl-summary-marks)
1038 (defcustom wl-summary-unread-uncached-mark "U"
1039 "Mark for unread and uncached message."
1040 :type '(string :tag "Mark")
1041 :group 'wl-summary-marks)
1043 (defcustom wl-summary-unread-cached-mark "!"
1044 "Mark for unread but already cached message."
1045 :type '(string :tag "Mark")
1046 :group 'wl-summary-marks)
1048 (defcustom wl-summary-read-uncached-mark "u"
1049 "Mark for read but uncached message."
1050 :type '(string :tag "Mark")
1051 :group 'wl-summary-marks)
1053 (defcustom wl-summary-answered-cached-mark "&"
1054 "Mark for answered and cached message."
1055 :type '(string :tag "Mark")
1056 :group 'wl-summary-marks)
1058 (defcustom wl-summary-answered-uncached-mark "A"
1059 "Mark for answered but uncached message."
1060 :type '(string :tag "Mark")
1061 :group 'wl-summary-marks)
1063 (defcustom wl-summary-flag-mark "$"
1064 "Mark for the messages which have tags."
1065 :type '(string :tag "Mark")
1066 :group 'wl-summary-marks)
1068 (defcustom wl-summary-score-over-mark "+"
1069 "Score mark used for messages with high scores."
1070 :type '(string :tag "Mark")
1071 :group 'wl-summary-marks)
1073 (defcustom wl-summary-score-below-mark "-"
1074 "Score mark used for messages with low scores."
1075 :type '(string :tag "Mark")
1076 :group 'wl-summary-marks)
1078 (defcustom wl-summary-no-mime-folder-list nil
1079 "*All folders that match this list don't analysis mime."
1080 :type '(repeat string)
1083 (defcustom wl-summary-fix-timezone nil
1084 "*Time zone of the date string in summary mode.
1085 If nil, it is adjust to the default time zone information
1086 \(system's default time zone or environment variable TZ)."
1087 :type '(choice (const :tag "Default time zone" nil)
1091 (defcustom wl-summary-default-score 0
1092 "*Default message score level.
1093 All scores generated by the score files will be added to this score.
1094 If this variable is nil, scoring will be disabled."
1095 :type '(choice (const :tag "disable" nil)
1099 (defcustom wl-summary-important-above nil
1100 "*Mark all messages with a score above this variable as important.
1101 This variable is local to the summary buffers."
1102 :type '(choice (const :tag "off" nil)
1106 (defcustom wl-summary-target-above nil
1107 "*Mark all messages with a score above this variable as target.
1108 This variable is local to the summary buffers."
1109 :type '(choice (const :tag "off" nil)
1113 (defcustom wl-summary-mark-below 0
1114 "*Mark all messages with a score below this variable as read.
1115 This variable is local to each summary buffer and usually set by the
1120 (defcustom wl-summary-expunge-below nil
1121 "All messages that have a score less than this variable will be expunged.
1122 This variable is local to the summary buffers."
1123 :type '(choice (const :tag "off" nil)
1127 (defcustom wl-summary-score-marks
1128 (list wl-summary-new-uncached-mark wl-summary-new-cached-mark)
1129 "Persistent marks to scoring."
1130 :type '(repeat (string :tag "Mark"))
1133 (defcustom wl-use-scoring t
1134 "*If non-nil, enable scoring."
1138 (defcustom wl-summary-rescore-partial-threshold 200
1139 "*Summary is not scored entirely if there are messages more than this value.
1140 In sync-all or rescan."
1144 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
1145 "*Name of the directory where score files will be stored.
1146 (default \"~/.elmo\")."
1150 (defcustom wl-score-interactive-default-score 1000
1151 "*Scoring commands will raise/lower the score with this number as the default."
1155 (defcustom wl-score-expiry-days 7
1156 "*Number of days before unused score file entries are expired.
1157 If this variable is nil, no score file entries will be expired."
1158 :type '(choice (const :tag "never" nil)
1162 (defcustom wl-score-update-entry-dates t
1163 "*In non-nil, update matching score entry dates.
1164 If this variable is nil, then score entries that provide matches
1165 will be expired along with non-matching score entries."
1169 (defcustom wl-score-folder-alist nil
1170 "*Alist of folder regexp and score file."
1171 :type '(repeat (list (regexp :tag "Folder Regexp")
1174 (symbol :tag "Variable")))))
1177 (defcustom wl-score-folder-alist-matchone t
1178 "*If non-nil, getting only one element of `wl-score-folder-alist'."
1182 (defcustom wl-score-default-file "all.SCORE"
1183 "*Default score file name."
1187 (defcustom wl-score-simplify-fuzzy-regexp
1188 '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1189 "*Strings to be removed when doing fuzzy matches.
1190 This can either be a regular expression or list of regular expressions."
1191 :type '(repeat regexp)
1194 (defcustom wl-score-header-default-entry
1195 '(("number" -1000 perm =)
1196 ("subject" -1000 nil nil)
1197 ("from" -1000 perm s)
1198 ("message-id" -1000 temp e)
1199 ("references" -1000 perm e)
1202 ("date" -1000 temp nil)
1203 ("xref" -1000 perm s)
1204 ("extra" -1000 perm s)
1205 ("chars" -1000 perm >)
1206 ("lines" -1000 perm >)
1207 ("followup" -1000 perm s)
1208 ("thread" -1000 temp s))
1209 "*Default entry when insert score entry."
1210 :type '(repeat (list (string :tag "Header")
1211 (choice (integer :tag "Score")
1212 (const :tag "Ask" nil))
1213 (choice (const :tag "Permanent" perm)
1214 (const :tag "Temporary" temp)
1215 (const :tag "Ask" nil))
1216 (choice (const :tag "Regexp string" r)
1217 (const :tag "Substring" s)
1218 (const :tag "fuzzy string" f)
1219 (const :tag "Exact string" e)
1220 (const :tag "REGEXP STRING" R)
1221 (const :tag "SUBSTRING" S)
1222 (const :tag "FUZZY STRING" F)
1223 (const :tag "EXACT STRING" E)
1224 (const :tag "less than" <)
1225 (const :tag "less equal" <=)
1226 (const :tag "greater than" >)
1227 (const :tag "greater equal" >=)
1228 (const :tag "equal" =)
1229 (const :tag "Ask" nil))))
1232 (defcustom wl-score-mode-mime-charset 'x-ctext
1233 "*MIME Charset for score file."
1237 (defcustom wl-draft-fields
1238 '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1239 "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1240 "Fields used in draft mode."
1241 :type '(repeat (string :tag "Field"))
1245 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1246 "Field name for MIME-encapsulated Bcc."
1247 :type '(string :tag "Field Name")
1250 (defcustom wl-draft-mime-bcc-body nil
1251 "Body string for MIME-encapsulated Bcc.
1252 If nil, a string `This is a blind carbon copy.' is used."
1253 :type '(choice (const :tag "default" nil)
1254 (string :tag "Body"))
1257 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1258 "Disable Bcc while MIME-encapsulated Bcc."
1262 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1263 "Disable Fcc while MIME-encapsulated Bcc."
1267 (defcustom wl-draft-config-alist nil
1268 "Alist of condition and actions for dynamical draft modification.
1269 First element of each list is some condition for the draft buffer (regular
1270 expression for header or elisp expression) and remaining elements indicate
1272 If the first element is `reply' keyword, the next element be the condition
1273 for the message being replied, and remaining elements are actions.
1275 The configuration is applied when `wl-draft-config-exec' is called, or
1276 applied automatically before sending message.
1279 '((\"^To: .*wl@lists.airs.net\"
1280 (\"From\" . my-from-address-for-wl-list)
1281 (\"Organization\" . my-organization-for-wl-list))
1283 \"^To: .*hogehoge@aaa.ne.jp\"
1284 (\"From\" . \"Alternative Address <hogehoge@aaa.ne.jp>\")
1285 my-draft-config-function-hogehoge))
1287 See also variable `wl-draft-parent-folder'."
1288 :type '(repeat (list (sexp :tag "Match")
1291 (choice (cons (sexp :tag "Field(Variable)")
1292 (sexp :tag "Value"))
1293 (sexp :tag "Function")))))
1297 (defcustom wl-draft-config-matchone nil
1298 "*If non-nil, applied only one element of `wl-draft-config-alist'."
1303 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1304 "*The string which is inserted for elided text."
1308 (defcustom wl-template-alist nil
1310 First element of each list is a string specifies the name of the template.
1311 Remaining elements indicate actions. The format of actions is same as that
1312 of `wl-draft-config-alist'."
1313 :type '(repeat (list (string :tag "Name")
1316 (choice (cons (sexp :tag "Field(Variable)")
1317 (sexp :tag "Value"))
1318 (sexp :tag "Function")))))
1322 (defcustom wl-template-visible-select t
1323 "*If non-nil, select template with visible."
1327 (defcustom wl-template-confirm nil
1328 "*If non-nil, require your confirmation when selected template."
1332 (defcustom wl-template-buffer-lines 7
1333 "*Lines of template buffer."
1338 (defcustom wl-draft-enable-queuing t
1339 "*Non-nil enables queued sending."
1344 (defcustom wl-draft-force-queuing nil
1345 "*Non-nil forces queued sending for mail and news."
1350 (defcustom wl-draft-force-queuing-mail nil
1351 "*Non-nil forces queued sending for mail."
1356 (defcustom wl-draft-force-queuing-news nil
1357 "*Non-nil forces queued sending for news."
1362 (defcustom wl-draft-use-cache nil
1363 "*If non-nil, sending message is cached."
1368 (defcustom wl-auto-flush-queue t
1369 "*If non-nil, sending queue is flushed when network status is toggled."
1374 (defcustom wl-draft-buffer-style 'full
1375 "Style of draft buffer except for `wl-summary-reply' and `wl-summary-forward'
1376 'keep is to use current window, 'full is to use full frame window and
1377 'split is to split current window.
1378 If it is a function, it is called with the draft buffer as an argument."
1379 :type '(choice (const :tag "Keep window" keep)
1380 (const :tag "Split window" split)
1381 (const :tag "Full window" full)
1382 (sexp :tag "Use Function"))
1385 (defcustom wl-draft-reply-buffer-style 'split
1386 "Style of draft buffer for `wl-summary-reply' and `wl-summary-forward'
1387 'keep is to use message buffer window, 'full is to use full frame window and
1388 'split is to split message buffer window.
1389 If it is a function, it is called with the draft buffer as an argument."
1390 :type '(choice (const :tag "Keep window" keep)
1391 (const :tag "Split window" split)
1392 (const :tag "Full window" full)
1393 (sexp :tag "Use Function"))
1396 (defcustom wl-draft-reply-default-position 'body
1397 "Begining position of reply buffer.
1398 'body means the top of body.
1399 'bottom means the bottom of body.
1400 'top means the top of header.
1401 \"To\", \"Newsgroups\", \"Subject\" means the position of the header field.
1402 You can also set it to a list of setting.
1404 :type '(choice (repeat
1406 (const :tag "Top of body" body)
1407 (const :tag "Bottom of body" bottom)
1408 (const :tag "Top of header" top)
1410 (const "Newsgroups")
1412 (string :tag "Header Name")))
1414 (const "Newsgroups")
1416 (string :tag "Header Name"))
1419 (defcustom wl-draft-queue-save-variables
1420 '(wl-envelope-from wl-from
1421 wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1422 wl-smtp-authenticate-type wl-smtp-connection-type
1423 wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1424 wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1425 wl-nntp-posting-server wl-nntp-posting-server
1426 wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1427 "*Saving variables in queue info."
1428 :type '(repeat (sexp :tag "Variable"))
1431 (defcustom wl-draft-sendlog t
1432 "*Keep send state in log if non-nil."
1436 (defcustom wl-draft-sendlog-max-size 20000
1437 "*Max file size of sendlog."
1438 :type '(choice (const :tag "Unlimited" nil)
1442 (defcustom wl-summary-default-number-column 5
1443 "Number of columns in summary buffer."
1447 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1448 "Alist of folder and its number column.
1449 If no matches, 'wl-summary-default-number-column' is used.
1451 '((\"^%inbox@qmail-maildir\" . 9)
1452 (\"^-.*@news-server\" . 6))"
1453 :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1456 (defcustom wl-summary-highlight t
1457 "Non-nil forces Summary buffer to be highlighted."
1460 :group 'wl-highlight)
1462 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1463 "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1466 :group 'wl-highlight)
1468 (defcustom wl-summary-highlight-partial-threshold 1000
1469 "Summary is not highlighted entirely if there are lines more than this value.
1470 Available if only `wl-summary-lazy-highlight' is nil."
1473 :group 'wl-highlight)
1475 (defcustom wl-summary-partial-highlight-above-lines 30
1476 "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1477 Summary lines are highlighted partialy above current position.
1478 Available if only `wl-summary-lazy-highlight' is nil."
1481 :group 'wl-highlight)
1483 (defcustom wl-summary-lazy-update-mark (boundp 'window-scroll-functions)
1484 "Non-nil forces lazy update mark using `window-scroll-functions'."
1488 (defcustom wl-summary-cache-use t
1489 "Non-nil forces wl-summary to use cache file."
1493 (defcustom wl-summary-auto-sync-marks t
1494 "Non-nil forces to synchronize unread/important marks."
1498 (defcustom wl-summary-cache-file ".wl-summary-cache"
1499 "*Cache file for summary mode contents."
1502 (defcustom wl-summary-view-file ".wl-summary-view"
1503 "*Current summary view."
1506 (defcustom wl-thread-top-file ".wl-thread-top"
1507 "*Current thread top entity... obsolete."
1510 (defcustom wl-thread-entity-file ".wl-thread-entity"
1514 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1515 "*Thread top entity list."
1519 (defcustom wl-print-buffer-function 'lpr-buffer
1520 "A function to print current buffer."
1524 (defcustom wl-ps-print-buffer-function
1525 (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1526 "A function to print current buffer with ps-print."
1531 (defcustom wl-use-petname t
1532 "*Display petname in summary and default citation title."
1536 (defcustom wl-use-folder-petname
1538 "*List of situation using folder petname.
1539 Allowed situations are:
1540 modeline : displayed on modeline.
1541 ask-folder : displayed on minibuffer when ask folder.
1542 read-folder : can used for completion at `wl-summary-read-folder'."
1543 :type '(set (const modeline)
1545 (const read-folder))
1549 (defcustom wl-folder-petname-alist nil
1550 "A list of (realname . petname)."
1551 :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1554 (defcustom wl-summary-weekday-name-lang
1555 (if (and (boundp 'current-language-environment)
1556 (string-equal "Japanese"
1557 (symbol-value 'current-language-environment)))
1559 "*Language to display week day."
1560 :type '(choice (const "ja")
1564 (string :tag "Other"))
1568 (defcustom wl-message-id-use-wl-from t
1569 "*Use `wl-from' for domain part of Message-ID if non-nil."
1573 (defcustom wl-local-domain nil
1574 "*Domain part of this client (without hostname).
1575 Set this if (system-name) does not return FQDN."
1576 :type '(choice (const :tag "Use System Name" nil)
1580 (defcustom wl-message-id-domain nil
1581 "*Specific domain part of Message-ID."
1582 :type '(choice (const :tag "Use System Name" nil)
1586 (defcustom wl-unique-id-suffix ".wl"
1587 "*Specific string in generated Message-ID
1588 which appear just before @."
1592 (defcustom wl-break-pages t
1593 "*Break Pages at ^L."
1597 (defcustom wl-message-use-header-narrowing t
1598 "Use header narrowing when non-nil."
1602 (defcustom wl-message-header-narrowing-fields '("to" "cc")
1603 "A list of field name to enable header narrowing."
1604 :type '(repeat string)
1607 (defcustom wl-message-header-narrowing-lines 4
1608 "Line number to enable the header narrowing."
1612 (defcustom wl-message-header-narrowing-string "..."
1613 "A string used for header narrowing truncation."
1617 (defvar wl-message-mode-line-format-spec-alist
1618 '((?f (if (memq 'modeline wl-use-folder-petname)
1619 (wl-folder-get-petname wl-message-buffer-cur-folder)
1620 wl-message-buffer-cur-folder))
1621 (?F wl-message-buffer-flag-indicator)
1622 (?n wl-message-buffer-cur-number))
1623 "An alist of format specifications for message buffer's mode-lines.
1624 Each element is a list of following:
1626 SPEC is a character for format specification.
1627 STRING-EXP is an expression to get string to insert.")
1629 (defcustom wl-message-mode-line-format "Wanderlust: << %f / %n %F>>"
1630 "*A format string for message buffer's mode-line of Wanderlust.
1631 It may include any of the following format specifications
1632 which are replaced by the given information:
1635 %n The number of the message.
1636 %F The global flag indicator."
1640 (defcustom wl-message-truncate-lines default-truncate-lines
1641 "*Truncate lines in Message Buffer."
1645 (defcustom wl-draft-truncate-lines default-truncate-lines
1646 "*Truncate lines in Draft Buffer."
1651 (defcustom wl-message-scroll-amount nil
1652 "*Scroll amount by SPC key."
1653 :type '(choice (const :tag "scrolling by screenfuls" nil)
1657 (defcustom wl-message-window-size '(1 . 4)
1658 "*Size of summary and message window. cons cell of (Summary : Message)."
1659 :type '(cons integer integer)
1662 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1663 "Newsgroups" "Subject" "^From")
1664 "*Sort order of header fields. Each elements are regexp of field name."
1665 :type '(repeat (string :tag "Field Regexp"))
1669 (defcustom wl-message-ignored-field-list nil
1670 "All fields that match this list will be hidden in message buffer.
1671 Each elements are regexp of field-name.
1672 You can specify exceptions by `wl-message-visible-field-list'."
1673 :type '(repeat (string :tag "Field Regexp"))
1677 (defcustom wl-message-visible-field-list nil
1678 "All fields that match this list will be displayed in message buffer.
1679 Each elements are regexp of field-name.
1680 This variable overwhelm `wl-message-ignored-field-list' settings."
1681 :type '(repeat (string :tag "Field Regexp"))
1685 (defcustom wl-message-header-button-alist
1686 (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1688 0 wl-message-button-refer-article 0)
1690 "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1691 1 wl-message-button-refer-article 3)))
1692 "Alist of headers and regexps to match buttons in message headers."
1694 (list (regexp :tag "Header")
1696 (integer :tag "Button")
1697 (function :tag "Callback")
1700 (integer :tag "Regexp group"))))
1703 (defcustom wl-message-body-button-alist
1704 '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1705 ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 0 1024))
1706 "Alist of regexps to match buttons in message body."
1709 (integer :tag "Button")
1710 (function :tag "Callback")
1713 (integer :tag "Regexp group"))
1714 (integer :tag "Max Length")))
1717 (defcustom wl-folder-window-width 20
1718 "*Width of folder window."
1723 (defcustom wl-summary-recenter t
1724 "*Recenter on redisplay."
1729 (defcustom wl-folder-use-frame nil
1730 "*Use dedicated frame for folder mode if non-nil."
1734 (defcustom wl-summary-use-frame nil
1735 "*Use dedicated frame for each folder summary if non-nil."
1739 (defcustom wl-stay-folder-window nil
1740 "*Stay folder window when folder is selected if non-nil."
1744 (defcustom wl-reply-subject-prefix "Re: "
1745 "*Prefix of the subject of the replied message.
1746 The value is string or string valued function to be evalueted in the target
1748 :type '(choice string function)
1752 (defcustom wl-forward-subject-prefix "Forward: "
1753 "*Prefix of the subject of the forwarded message.
1754 The value is string or string valued function to be evalueted in the target
1756 :type '(choice string function)
1760 (defcustom wl-draft-reply-use-address-with-full-name t
1761 "*Use address with full-name in the draft of replied message."
1766 (defcustom wl-subject-re-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1767 "*Regexp matching \"Re: \" in the subject line."
1772 (defcustom wl-subject-forward-prefix-regexp "^[ \t]*\\(\\([Ff][Oo][Rr][Ww][Aa][Rr][Dd]\\|[Ff][Ww][Dd]\\|[Ff][Ww]\\)[:>][ \t]*\\)*[ \t]*"
1773 "*Regexp matching \"Forward: \", \"Fwd: \", or \"Fw: \" in the subject line."
1778 (defcustom wl-folder-many-unsync-threshold 70
1779 "*Folders which contains messages more than this number are highlighted
1780 with wl-highlight-folder-many-face."
1785 (defcustom wl-fcc nil
1786 "*Folder Carbon Copy target initially added at creating draft buffer."
1787 :type '(choice (const :tag "disable" nil)
1792 (defcustom wl-fcc-force-as-read nil
1793 "*If non-nil, mark copied message as read."
1798 (defcustom wl-bcc nil
1799 "*Blind Carbon Copy target initially added at creating draft buffer."
1800 :type '(choice (const :tag "disable" nil)
1805 (defcustom wl-folder-desktop-name "Desktop"
1806 "*An implicit name of the folder top entity."
1811 (defcustom wl-summary-indent-length-limit 46
1812 "*Limit of indent length for thread. Nil means unlimited"
1813 :type '(choice (const :tag "Unlimited" nil)
1818 (defcustom wl-summary-max-thread-depth 30
1819 "*If thread depth of the message is larger than this value, divide it."
1820 :type '(choice (const :tag "Unlimited" nil)
1825 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1826 "*A string displayed in summary when no from field exists."
1830 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1831 "*A string displayed in summary when no subject field exists."
1835 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1836 "*The body content of a cancel message."
1840 (defcustom wl-summary-width 80
1841 "*Set summary line width if non nil."
1842 :type '(choice (const :tag "Don't truncate" nil)
1847 (defcustom wl-summary-print-argument-within-window nil
1848 "*If non-nil, always print argument right side of window."
1853 (defcustom wl-summary-pick-field-default "Body"
1854 "*Default field for pick."
1855 :type '(radio (const "From")
1864 (string :tag "Other"))
1867 (defcustom wl-mime-charset 'x-ctext
1868 "*MIME Charset for summary and message."
1873 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1874 "A function for creating User-Agent field string."
1878 (defcustom wl-highlight-background-mode (if (boundp 'hilit-background-mode)
1879 (or hilit-background-mode 'dark)
1881 "*Background mode of highlight (for Old Emacsen). 'dark or 'light."
1882 :type '(radio (const dark)
1884 :group 'wl-highlight)
1886 (defcustom wl-highlight-x-face-function nil
1887 "A function to display X-Face."
1889 :group 'wl-highlight)
1891 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1892 "Location of the qmail-inject program."
1893 :type '(string :tag "Program")
1896 (defcustom wl-qmail-inject-args nil
1897 "Arguments passed to qmail-inject programs.
1898 This should be a list of strings, one string for each argument.
1900 For e.g., if you wish to set the envelope sender address so that bounces
1901 go to the right place or to deal with listserv's usage of that address, you
1902 might set this variable to '(\"-f\" \"you@some.where\")."
1903 :type '(repeat (string :tag "Argument"))
1906 (defcustom wl-rejected-letter-start
1907 "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1908 "Regexp specifying the beginning of the wrapper around a returned letter.
1909 This wrapper is generated by the mail system when rejecting a letter."
1913 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1914 "*All headers that match this regexp will be deleted when forwarding a message."
1918 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1919 "*All headers that match this regexp will be deleted when resending a message."
1923 (defcustom wl-draft-preview-attributes t
1924 "Non-nil forces to preview the attributes in the `wl-draft-preview-message'.
1925 Attributes specified in the `wl-draft-preview-attributes-list' are displayed."
1929 (defcustom wl-draft-preview-attributes-list '(recipients
1933 "*Attribute symbols to display in the draft preview.
1934 Candidates are following:
1937 `smtp-posting-server'
1939 `nntp-posting-server'
1941 Also variables which begin with `wl-' can be specified
1942 \(`wl-' have to be removed\)"
1943 :type '(repeat symbol)
1946 (defcustom wl-draft-preview-attributes-buffer-lines 5
1947 "*Buffer height for the draft attribute preview."
1951 (defcustom wl-draft-preview-attributes-buffer-name "*Preview Attributes*"
1952 "*Buffer name for the draft attribute preview."
1956 (defcustom wl-refile-default-from-folder "+from"
1957 "*Folder name to refile by `wl-refile-guess-by-from'."
1958 :type '(string :tag "Folder")
1961 (defcustom wl-summary-auto-refile-skip-marks
1962 (list wl-summary-new-uncached-mark
1963 wl-summary-new-cached-mark
1964 wl-summary-unread-uncached-mark
1965 wl-summary-unread-cached-mark)
1966 "Persistent marks to skip auto-refiling."
1967 :type '(repeat (string :tag "Mark"))
1970 (defcustom wl-summary-reserve-mark-list
1971 (list "o" "O" "D" "d" "i")
1972 "If a message is already marked as temporal marks in this list,
1973 the message is not marked by any mark command."
1974 :type '(repeat (string :tag "Temp-Mark"))
1977 (defcustom wl-summary-skip-mark-list
1979 "If a message is already marked as temporal marks in this list,
1980 the message is skipped at cursor move."
1981 :type '(repeat (string :tag "Temp-Mark"))
1984 (defcustom wl-summary-incorporate-marks
1985 (list wl-summary-new-uncached-mark
1986 wl-summary-unread-uncached-mark)
1987 "Persistent marks to prefetch at `wl-summary-incorporate'."
1988 :type '(repeat (string :tag "Mark"))
1991 (defcustom wl-refile-rule-alist nil
1995 (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
1997 (\"^Wanderlust\" . \"+wl\")
1998 (\"^Elips\" . \"+elips\")))"
1999 :type '(repeat (list (string :tag "Field")
2001 (cons (regexp :tag "Value")
2002 (string :tag "Folder")))))
2005 (defcustom wl-strict-diff-folders nil
2006 "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
2007 :type '(choice (const :tag "Off" nil)
2008 (repeat (regexp :tag "Folder Regexp")))
2011 (defcustom wl-folder-use-server-diff t
2012 "Checked unread message number on IMAP4 server.
2013 Only IMAP4 folders have an effect."
2017 (defcustom wl-force-fetch-folders nil
2018 "Non-nil forces to fetch subfolders when user opened an 'access' folder."
2019 :type '(choice (const :tag "off" nil)
2020 (const :menu-tag "on" t)
2021 (repeat (regexp :tag "Folder Regexp")))
2024 (defcustom wl-auto-check-folder-name nil
2025 "*A folder, a group or a list of folders and groups specified which
2026 will be automatically checked at the startup time."
2027 :type '(choice (string :tag "Folder")
2028 (repeat (string :tag "Folder"))
2032 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
2033 "All folders that match this list won't be checked at the startup
2034 time even if they are embedded in some groups specified by
2035 wl-auto-check-folder-name.
2036 Those folders are also skipped when you check on the Desktop.
2037 This value is preceded by wl-auto-check-folder-list.
2038 Each elements are regexp of folder name."
2039 :type '(repeat (regexp :tag "Folder Regexp"))
2042 (defcustom wl-auto-check-folder-list nil
2043 "A list of patterns for exceptional folders against
2044 wl-auto-uncheck-folder-list.
2045 Each elements are regexp of folder name."
2046 :type '(repeat (regexp :tag "Folder Regexp"))
2049 (defcustom wl-show-plug-status-on-modeline t
2050 "If it is non-nil, show plugged status in modeline."
2052 :group 'wl-highlight)
2054 (defcustom wl-plug-state-indicator-on " [ON] "
2055 "String used to show plugged status ON."
2057 :group 'wl-highlight)
2059 (defcustom wl-plug-state-indicator-off " [--] "
2060 "String used to show plugged status OFF."
2062 :group 'wl-highlight)
2064 (defcustom wl-biff-check-folder-list nil
2065 "All folders that match this list are automatically checked
2066 every intervals specified by wl-biff-check-interval."
2067 :type '(repeat (regexp :tag "Folder Regexp"))
2068 :group 'wl-highlight)
2070 (defcustom wl-biff-check-interval 40
2071 "Number of seconds between updates of new mails in the mode line."
2073 :group 'wl-highlight)
2075 (defcustom wl-biff-use-idle-timer nil
2076 "Non-nil to use idle timer instead of strict timer for wl-biff"
2078 :group 'wl-highlight)
2080 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
2081 (not (featurep 'mule)))
2083 (decode-coding-string
2085 (read "\"[\e$B\\\")\e(B]\"")
2089 "String used to show biff status ON."
2091 :group 'wl-highlight)
2093 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
2094 (not (featurep 'mule)))
2096 ;; Japanese short hyphen
2098 "String used to show biff status OFF."
2100 :group 'wl-highlight)
2102 (defcustom wl-mode-line-display-priority-list '(biff plug title)
2103 "Displaying order of items to be shown in modeline. The first item will
2104 be placed in the leftmost. The significant items are `biff' and `plug';
2105 otherwise, e.g. `title', corresponds to the things except for the biff
2106 staus nor the plugged status. The default order is '(biff plug title)
2107 even if the value of this option is set to nil. Here are some samples:
2109 ;; Plugged status first:
2110 \(setq wl-mode-line-display-priority-list '(plug))
2112 ;; Biff status, Title of Wanderlust, Plugged status:
2113 \(setq wl-mode-line-display-priority-list '(biff title plug))
2116 :type '(repeat (radio (const :format "%v " biff)
2117 (const :format "%v " plug)
2118 (sexp :tag "Other" :value title)))
2119 :group 'wl-highlight)
2121 (defcustom wl-interactive-send t
2122 "*If non-nil, require your confirmation when sending draft message."
2127 (defcustom wl-interactive-exit t
2128 "*If non-nil, require your confirmation when exiting WL."
2132 (defcustom wl-summary-move-order 'unread
2133 "*The order of priority when move in summary mode.
2134 If this variable is `unread', precede \"U\", \"!\", \"N\" mark.
2135 If this variable is `new', precede \"N\" mark."
2136 :type '(radio (const new)
2141 (defvar wl-summary-move-direction-downward t)
2143 (defcustom wl-summary-move-direction-toggle t
2144 "*If non-nil, search direction for the next message will be determined
2145 depends on previous search direction.
2146 It uses wl-summary-move-direction-downward as a direction flag."
2150 (defcustom wl-auto-select-first nil
2151 "*If non-nil, display selected first message when enter summary."
2156 (defcustom wl-auto-prefetch-first nil
2157 "*If non-nil, prefetch selected first message when enter summary."
2162 (defcustom wl-auto-select-next nil
2163 "*If non-nil, offer to go to the next folder from the end of the previous.
2164 If the value is the symbol `unread', go to the next folder
2165 that no unread message exists. If the value is the symbol `skip-no-unread',
2166 skip the folder that no unread message exists.
2168 See also variable `wl-summary-next-no-unread-command'."
2169 :type '(radio (const :tag "off" nil)
2172 (const skip-no-unread))
2176 (defcustom wl-message-buffer-name " *WL:Message*"
2177 "*Buffer name for message buffers."
2181 (defcustom wl-message-buffer-prefetch-folder-type-list '(imap4 nntp)
2182 "*All folder types that match this list prefetch next message,
2183 and reserved buffer cache."
2184 :type `(choice (const :tag "all" t)
2185 (const :tag "never" nil)
2186 (set (const localdir)
2199 (defcustom wl-message-buffer-prefetch-folder-list nil
2200 "*All folders that match this list prefetch next message,
2201 and reserved buffer cache.
2204 :type '(repeat (regexp :tag "Folder Regexp"))
2207 (defcustom wl-message-buffer-prefetch-depth 1
2208 "*Depth of buffer prefetch in summary mode."
2212 (defcustom wl-message-buffer-prefetch-idle-time 1
2213 "*Idle time of buffer prefetch."
2217 (defcustom wl-message-buffer-prefetch-threshold 30000
2218 "*Quit forward cache prefetching if message size is larger than this value."
2222 (defcustom wl-summary-always-sticky-folder-list nil
2223 "All folders that match this list has sticky summary.
2224 Each elements are regexp of folder name."
2225 :type '(radio (const :tag "none" nil)
2226 (const :tag "all" t)
2227 (repeat (regexp :tag "Folder Regexp")))
2230 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
2231 "All folders that match this list won't save its msgdb.
2232 Each elements are regexp of folder name."
2233 :type '(repeat (regexp :tag "Folder Regexp"))
2236 (defcustom wl-save-folder-list nil
2237 "All folders that match this list save its msgdb.
2238 Each elements are regexp of folder name."
2239 :type '(repeat (regexp :tag "Folder Regexp"))
2242 (defcustom wl-folder-mime-charset-alist
2243 '(("^-alt\\.chinese" . big5)
2244 ("^-relcom\\." . koi8-r)
2246 ("^-han\\." . euc-kr)
2247 ("@sponichi" . shift_jis)
2248 ("@2ch" . shift_jis))
2249 "Charset alist. If no match, `wl-mime-charset' is used."
2250 :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
2254 (defcustom wl-folder-weekday-name-lang-alist
2255 '(("^-alt\\.chinese" . "en")
2256 ("^-relcom\\." . "en")
2258 ("^-han\\." . "en"))
2259 "Weekday name lang alist.
2260 If no match, `wl-summary-weekday-name-lang' is used.
2262 '((\"xemacs-beta$\" . \"en\")
2263 (\"^-fj\" . \"ja\"))"
2264 :type '(repeat (cons (regexp :tag "Folder Regexp")
2265 (choice (const "ja")
2269 (string :tag "Other"))))
2272 (defcustom wl-folder-thread-indent-set-alist
2273 '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
2274 ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
2275 ("^-tw\\." . (2 "+" "+" "|" "-" " "))
2276 ("^-han\\." . (2 "+" "+" "|" "-" " ")))
2277 "Thread indent set alist.
2278 If no match, following indent set is used.
2279 \(wl-thread-indent-level
2280 wl-thread-have-younger-brother-str
2281 wl-thread-youngest-child-str
2282 wl-thread-vertical-str
2283 wl-thread-horizontal-str
2284 wl-thread-space-str)
2286 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
2287 :type '(repeat (cons (regexp :tag "Folder Regexp")
2288 (group (integer :tag "Indent")
2289 (string :tag "Yonger Brother")
2290 (string :tag "Yonger Child")
2291 (string :tag "Vertical")
2292 (string :tag "Horizontal")
2293 (string :tag "Space"))))
2296 (defcustom wl-folder-sync-range-alist
2297 (list (cons 'wl-require-update-all-folder-p "all")
2298 (cons "^'flag" "all"))
2299 "*Default sync range alist. If no matches, `wl-default-sync-range' is used."
2300 :type '(repeat (cons (choice (regexp :tag "Folder Regexp")
2301 (symbol :tag "A function"))
2302 (choice (const "update")
2306 (const :tag "none" nil))))
2309 (defcustom wl-default-sync-range "update"
2310 "*Default sync range."
2311 :type '(choice (const "update")
2315 (const :tag "none" nil))
2318 (defcustom wl-ask-range t
2319 "*If non-nil, ask for a range for summary synchronization.
2320 If nil, always use default."
2324 (defcustom wl-folder-process-duplicates-alist nil
2325 "Specify process type of duplicated messages.
2326 It should be a list of cons cell like: (REGEXP . TYPE)
2327 REGEXP is a regular expression string of folder name.
2328 TYPE is one of the symbols `hide' or `read'.
2329 `hide' means hide duplicated messages.
2330 `read' means mark as read duplicated messages.
2331 If TYPE is nil, do nothing for duplicated messages."
2332 :type '(repeat (cons (regexp :tag "Folder regexp")
2333 (choice (const :tag "Hide" hide)
2334 (const :tag "Mark as read" read))))
2337 (defcustom wl-folder-move-cur-folder nil
2338 "*Non-nil, move cursor to current folder on folder buffer when goto folder."
2342 (defcustom wl-folder-check-async t
2343 "*Check the folder asynchronous."
2347 (defcustom wl-folder-notify-deleted nil
2348 "*Non-nil, display negative number on folder-mode when message is deleted
2349 in folder. If the value is 'sync, msgdb would be synchronized."
2350 :type '(choice (const :tag "off" nil)
2355 (defcustom wl-summary-exit-next-move t
2356 "*Non-nil, move to next-unsync or next-entity when exit summary."
2360 (defcustom wl-summary-next-no-unread-command
2361 '(wl-summary-read wl-summary-down wl-summary-up)
2362 "*Command list available when the value of `wl-auto-select-next' is 'unread
2363 or 'skip-no-unread."
2364 :type '(repeat function)
2367 (defcustom wl-summary-search-via-nntp 'confirm
2368 "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'.
2369 If the value is 'confirm, confirm before search, 'force to search via nntp
2370 regardless of current folder type."
2371 :type '(choice (const :tag "confirm" confirm)
2372 (const :tag "always" force)
2373 (const :tag "in nntp folder" t)
2374 (const :tag "never" nil))
2377 (defcustom wl-summary-keep-cursor-command
2378 '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2379 "*Command list to keep cursor position when folder is changed to
2380 already existing summary."
2381 :type '(repeat function)
2384 (defcustom wl-summary-showto-folder-regexp nil
2385 "Regexp specifying the folder that shows the To (or Newsgroups) field as
2386 Sender information in summary mode."
2387 :type '(choice (const :tag "none" nil)
2391 (defcustom wl-summary-save-file-suffix ".eml"
2392 "Suffix for the saved file name."
2396 (defcustom wl-folder-removed-mark "#<removed>"
2397 "Mark for removed folder."
2401 (defcustom wl-folder-unsubscribe-mark "#"
2402 "Mark for unsubscribe folder."
2406 (defcustom wl-dispose-folder-alist '(("^-" . remove)
2408 "*Alist of folder and dispose policy.
2409 Each element is (folder-regexp . policy).
2411 The policy is one of the followings:
2413 'null : remove message.
2414 string : refile to the specified folder.
2416 otherwise : refile to the `wl-trash-folder'.
2418 '((\"^%\" . \"%#mh/trash\")
2420 (\"^\\\\+\" . trash))"
2421 :type '(repeat (cons (regexp :tag "Folder Regexp")
2422 (choice :tag "Policy"
2424 (const :tag "remove(null)" null)
2426 (const :tag "trash(other)" trash)
2427 (string :tag "Folder"))))
2430 (defcustom wl-folder-hierarchy-access-folders '("^-[^\\.]*\\(:\\|@\\|$\\)"
2432 "*Access group REGEXPs to make hierarchy structure."
2433 :type '(repeat (string :tag "Regexp"))
2436 (defcustom wl-folder-init-load-access-folders nil
2437 "*Access group folders to load folder list on `wl-folder-init'.
2438 If this variable is non-nil,
2439 `wl-folder-init-no-load-access-folders' will be ignored."
2440 :type '(repeat (regexp :tag "Folder Regexp"))
2443 (defcustom wl-folder-init-no-load-access-folders nil
2444 "*Access group folders to not load folder list on `wl-folder-init'.
2445 If `wl-folder-init-load-access-folders' is non-nil,
2446 this variable will be ignored."
2447 :type '(repeat (regexp :tag "Folder Regexp"))
2450 (defcustom wl-folder-access-subscribe-alist nil
2451 "*Subscribe folders to fetching folder entries.
2452 Each element is (group-regexp (subscribe folder-regexp ...)).
2453 If subscribe is non-nil, subscribe when match folder-regexp.
2454 If subscribe is nil, unsubscribe when match folder-regexp.
2457 '((\"^-fj$\" . (t \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2458 (\"^-comp$\" . (t \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2459 (\"^-$\" . (nil \"^-alt\" \"^-rec\")))"
2460 :type '(repeat (cons (regexp :tag "Folder Regexp")
2461 (list (boolean :tag "Subscribed")
2463 (regexp :tag "Folder Regexp")))))
2466 ;;; For Folder Manager
2468 (defcustom wl-interactive-save-folders t
2469 "*Non-nil require your confirmation when save folders."
2474 (defcustom wl-fldmgr-make-backup t
2475 "*Non-nil make backup file when save folders."
2479 (defcustom wl-fldmgr-folders-indent "\t"
2480 "*Indent string for folders file."
2484 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2485 "*A function to sort folder."
2489 (defcustom wl-fldmgr-sort-group-first t
2490 "*Non-nil Group folder is first when sort."
2494 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2495 "*If non-nil, completion for adding folder refers current folder list."
2499 (defcustom wl-fldmgr-make-filter-default "Body"
2500 "*Default filter key while making filter on Folder."
2501 :type '(radio (const "From")
2510 (string :tag "Other"))
2513 (defcustom wl-fldmgr-allow-rename-access-group nil
2514 "*If non-nil, allow to rename folder in access group."
2518 ;;; For Expire and Archive
2520 (defcustom wl-expire-alist nil
2521 "Alist to decide a policy for expire.
2522 Each element is (folder-regexp (number or date) policy).
2524 The policy is one of the followings:
2525 'remove : remove messsage.
2526 'trash : refile `wl-trash-folder'.
2527 string : refile string folder.
2528 function : call function.
2531 '((\"^\\\\+ml/wl$\" (number 500 510) wl-expire-archive-number1 t)
2532 (\"^\\\\+ml/\" (number 300 305) wl-expire-archive-number2)
2533 (\"^\\\\+outbox$\" (number 300) \"$outbox;lha\")
2534 (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\" (date 7) remove)
2535 (\"^\\\\+misc$\" (date 14) trash))"
2536 :type '(repeat (choice (list :tag "No-match"
2537 (regexp :tag "Folder Regexp")
2540 (regexp :tag "Folder Regexp")
2541 (list (radio :value number
2546 (repeat :inline t integer)))
2547 (choice :tag "Policy"
2551 (string :tag "folder")
2554 :tag "Arg for function"
2558 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2559 "Alist to decide a policy for archive.
2560 Each element is (folder-regexp policy(function)).
2563 '((\"\\\\+work$\" wl-archive-date)
2564 (\"\\\\+ml/\" wl-archive-number1)
2565 (\".*\" wl-archive-number2))"
2566 :type '(repeat (list (regexp :tag "Folder Regexp")
2569 (sexp :tag "Argument"))))
2572 (defcustom wl-summary-expire-reserve-marks
2573 (list wl-summary-flag-mark
2574 wl-summary-new-uncached-mark
2575 wl-summary-new-cached-mark
2576 wl-summary-unread-uncached-mark
2577 wl-summary-unread-cached-mark)
2578 "Permanent marks of reserved message when expire.
2579 Don't reserve temporary mark message.
2582 'all : reserved all permanent marks.
2583 'none : not reserve permanent marks.
2584 list : reserved specified permanent marks."
2585 :type '(repeat (string :tag "Mark"))
2588 (defcustom wl-expire-number-with-reserve-marks nil
2589 "If non-nil, include reserve message when expire by number."
2593 (defcustom wl-expire-add-seen-list t
2594 "*If non-nil, add seen message list when refile message at expire."
2598 (defcustom wl-expire-use-log nil
2599 "*If non-nil, write a log when expired."
2603 (defcustom wl-expire-folder-update-msgdb t
2604 "*Non-nil update summary msgdb when expire on folder mode."
2608 ;; for wl-expire-archive-{number1|number2}
2609 (defcustom wl-expire-archive-files 100
2610 "*The number of one archive folder."
2614 ;; for wl-expire-archive-{number1|number2|date}
2615 (defcustom wl-expire-archive-get-folder-function
2616 'wl-expire-archive-get-folder
2617 "*A function to get archive folder name."
2621 (defcustom wl-expire-delete-oldmsg-confirm t
2622 "*If non-nil, require your confirmation when delete old message."
2626 ;; for wl-expire-archive-get-folder
2627 (defcustom wl-expire-archive-folder-type 'zip
2628 "*Archiver type of archive folder."
2629 :type '(radio (const zip)
2635 (symbol :tag "Other"))
2638 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2639 "*A format string for archive folder name."
2643 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2644 "*A regexp string for archive folder name."
2648 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2649 ;; $folder-199812;zip
2650 "*A format string for archive date folder name."
2654 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2655 "*A regexp string for archive date folder name."
2659 (defcustom wl-expire-archive-folder-prefix nil
2660 "*Prefix for archive folder."
2661 :type '(radio (const :tag "nothing" nil)
2662 (const :tag "full" t)
2668 ;; highilght about summary
2669 (defcustom wl-highlight-max-summary-lines 10000
2670 "*If the summary is larger than this lines, don't highlight it."
2672 :group 'wl-highlight)
2674 ;; highilght about draft and message
2675 (defcustom wl-highlight-body-too t
2676 "*In addition to header, highlight the body too. if non nil."
2678 :group 'wl-highlight)
2680 (defcustom wl-highlight-message-header-alist
2681 '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2682 ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2683 ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2685 :type '(repeat (cons regexp face))
2686 :group 'wl-highlight)
2688 (defcustom wl-highlight-citation-prefix-regexp
2689 "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2690 "All lines that match this regexp will be highlighted with
2691 `wl-highlight-message-cited-text-*' face."
2693 :group 'wl-highlight)
2695 (defcustom wl-highlight-highlight-citation-too nil
2696 "*Whether the whole citation line should go in the
2697 `wl-highlight-citation-face' face.
2698 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2699 default face, and the remainder of the line is in the
2700 wl-highlight-message-cited-text face."
2702 :group 'wl-highlight)
2704 (defcustom wl-highlight-force-citation-header-regexp
2705 "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2706 "*The pattern to match the prolog of a cited block.
2707 Text in the body of a message which matches this will be displayed in
2708 the `wl-highlight-message-headers' face."
2710 :group 'wl-highlight)
2712 (defcustom wl-highlight-citation-header-regexp
2713 (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2714 "^At[^\n]+\n[^\n]+wrote:\n\\|"
2715 "^.*\\(writes\\|wrote\\|said\\):\n")
2716 "*The pattern to match the prolog of a cited block.
2717 Text in the body of a message which matches this will be displayed in
2718 the `wl-highlight-message-headers' face."
2720 :group 'wl-highlight)
2722 (defcustom wl-highlight-max-header-size nil
2723 "*If the message header is larger than this many chars, don't highlight it.
2724 If this is nil, all headers will be highlighted."
2726 :group 'wl-highlight)
2728 (defcustom wl-highlight-max-message-size 10000
2729 "*If the message body is larger than this many chars, don't highlight it.
2730 This is to prevent us from wasting time trying to fontify things like
2731 uuencoded files and large digests. If this is nil, all messages will
2734 :group 'wl-highlight)
2736 ;; highilght about signature (of draft and message)
2737 (defcustom wl-highlight-signature-separator
2738 '("\n--+\n" "\n\n--+.*\n*\\'")
2739 "List of regexps matching signature separator.
2740 It will be verified from head to tail looking for a separator.
2741 Verification will be done from the end of the buffer.
2742 No need to specify \"^-- $\" in this list,
2743 because it is verified by default.
2744 This variable can also be a regex."
2745 :type '(repeat regexp)
2746 :group 'wl-highlight)
2748 (defcustom wl-max-signature-size 400
2749 "*If the signature is larger than this chars, don't treat it as a signature."
2751 :group 'wl-highlight)
2753 ;; highilght about mouse
2754 (defcustom wl-use-highlight-mouse-line (and window-system
2755 (>= emacs-major-version 19))
2756 "*Highlight mouse line, if non-nil."
2758 :group 'wl-highlight)
2760 (defcustom wl-highlight-summary-line-help-echo-alist
2761 '((flag wl-highlight-flag-folder-help-echo)
2762 (nmz elmo-message-file-name))
2763 "*Alist to display help-echo in summary buffer.
2764 Each element is (folder-type handler(function)).
2765 Handler take two arguments elmo-folder and message number and return string."
2767 :group 'wl-highlight)
2769 ;; highilght about folder
2770 (defcustom wl-highlight-folder-with-icon
2771 (or (and (featurep 'xemacs)
2774 "*Highlight folder with icon(XEmacs or Emacs 21)."
2776 :group 'wl-highlight)
2778 (defcustom wl-highlight-folder-by-numbers t
2779 "Highlight folder lines by numbers.
2780 If it is a number, only numbers will be highlighted."
2781 :type '(choice (const :tag "whole line" t)
2782 (const :tag "only numbers" 1)
2783 (const :tag "don't highlight" nil))
2784 :group 'wl-highlight)
2786 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2787 "Function to search signature area in the message body."
2789 :group 'wl-highlight)
2791 (defcustom wl-use-dnd (and wl-on-xemacs
2792 (featurep 'dragdrop))
2793 "If Non-nil, support dragdrop feature in XEmacs."
2797 (defcustom wl-reset-plugged-alist t
2798 "*If non-nil, reset `elmo-plugged-alist' when startup."
2802 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2803 (module-installed-p 'image)
2804 (module-installed-p 'bitmap))
2806 "If it is T, show graphic logo in the startup screen. You can set it to
2807 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2808 :type '(radio (const :tag "Off" nil)
2809 (const :tag "On (any format)" t)
2812 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2815 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2816 "*A string displayed when invalid character exists."
2820 ;;; Internal variables
2821 (defvar wl-init nil)
2823 ;; For disconnected operations.
2824 (defvar wl-plugged-hook nil)
2825 (defvar wl-unplugged-hook nil)
2826 (defcustom wl-plugged t
2827 "*Plugged state at the startup. Nil means off-line."
2832 ;; Internal variables used to modeline identifiers.
2833 (defvar wl-modeline-plug-status nil)
2834 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2835 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2836 (defvar wl-modeline-biff-status nil)
2837 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2838 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2840 ;; Advanced thread view.
2841 (defvar wl-thread-indent-level (if wl-on-mule 1 2)
2842 "*Indent level for thread.")
2843 (defvar wl-thread-have-younger-brother-str (if wl-on-mule "
\e$B(2
\e(B" "+")
2844 "*A string for thread branch line. It should contain one character.")
2845 (defvar wl-thread-youngest-child-str (if wl-on-mule "
\e$B(1
\e(B" "+")
2846 "*A string for thread branch line. It should contain one character.")
2847 (defvar wl-thread-vertical-str (if wl-on-mule "
\e$B(-
\e(B" "|")
2848 "*A string for thread branch line. It should contain one character.")
2849 (defvar wl-thread-horizontal-str (if wl-on-mule "
\e$B(,
\e(B" "-")
2850 "*A string for thread branch line. It should contain one character.")
2851 (defvar wl-thread-space-str (if wl-on-mule "
\e$B!!
\e(B" " ")
2852 "*A string for thread branch line. It should contain one character.")
2854 ;; folder icons. filename relative to wl-icon-directory
2855 (defvar wl-opened-group-folder-icon "opened.xpm"
2856 "*Icon file for opened group folder.")
2857 (defvar wl-closed-group-folder-icon "closed.xpm"
2858 "*Icon file for closed group folder.")
2859 (defvar wl-nntp-folder-icon "news.xpm"
2860 "*Icon file for nntp folder.")
2861 (defvar wl-imap-folder-icon "imap.xpm"
2862 "*Icon file for imap folder.")
2863 (defvar wl-pop-folder-icon "pop.xpm"
2864 "*Icon file for pop folder.")
2865 (defvar wl-localdir-folder-icon "local.xpm"
2866 "*Icon file for localdir folder.")
2867 (defvar wl-localnews-folder-icon "localnews.xpm"
2868 "*Icon file for localnews folder.")
2869 (defvar wl-internal-folder-icon "internal.xpm"
2870 "*Icon file for internal folder.")
2871 (defvar wl-multi-folder-icon "multi.xpm"
2872 "*Icon file for multi folder.")
2873 (defvar wl-filter-folder-icon "filter.xpm"
2874 "*Icon file for filter folder.")
2875 (defvar wl-archive-folder-icon "archive.xpm"
2876 "*Icon file for archive folder.")
2877 (defvar wl-pipe-folder-icon "pipe.xpm"
2878 "*Icon file for pipe folder.")
2879 (defvar wl-nmz-folder-icon "nmz.xpm"
2880 "*Icon file for namazu folder.")
2881 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2882 "*Icon file for shimbun folder.")
2883 (defvar wl-file-folder-icon "file.xpm"
2884 "*Icon file for file folder.")
2885 (defvar wl-maildir-folder-icon "maildir.xpm"
2886 "*Icon file for maildir folder.")
2887 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2888 "*Icon file for emptied trash folder.")
2889 (defvar wl-trash-folder-icon "trash.xpm"
2890 "*Icon file for trash folder.")
2891 (defvar wl-draft-folder-icon "draft.xpm"
2892 "*Icon file for draft folder.")
2893 (defvar wl-queue-folder-icon "queue.xpm"
2894 "*Icon file for queue folder.")
2895 (defvar wl-plugged-icon "plugged.xpm"
2896 "*Icon file for plugged state.")
2897 (defvar wl-unplugged-icon "unplugged.xpm"
2898 "*Icon file for unplugged state.")
2899 (defvar wl-biff-mail-icon "letter.xpm"
2900 "*Icon file for mail existed state.")
2901 (defvar wl-biff-nomail-icon "no-letter.xpm"
2902 "*Icon file for no mail existed state.")
2903 (defvar wl-prog-uudecode "uudecode"
2904 "*uudecode program name.")
2905 (defvar wl-prog-uudecode-arg nil
2906 "*Arguments for uudecode program.")
2907 (defvar wl-prog-uudecode-no-stdout-option t
2908 "*If non-nil, uudecode program don't have option for output to stdout.")
2911 (defvar wl-plugged-plug-on "ON")
2912 (defvar wl-plugged-plug-off "--")
2913 (defvar wl-plugged-auto-off "**")
2914 (defvar wl-plugged-server-indent 2)
2915 (defvar wl-plugged-port-indent 4)
2916 (defvar wl-plugged-queue-status-column 25)
2918 ;;;; Obsolete variables.
2921 (elmo-define-obsolete-variable 'wl-summary-new-mark
2922 'wl-summary-new-uncached-mark)
2924 ;; 2003-07-15 delete -> dispose
2925 (elmo-define-obsolete-variable 'wl-delete-folder-alist
2926 'wl-dispose-folder-alist)
2929 (elmo-define-obsolete-variable 'wl-draft-reply-myself-with-argument-list
2930 'wl-draft-reply-with-argument-list)
2931 (elmo-define-obsolete-variable 'wl-draft-reply-myself-without-argument-list
2932 'wl-draft-reply-without-argument-list)
2934 ;; 2001-12-11: *-dir -> *-directory
2935 (elmo-define-obsolete-variable 'wl-icon-dir
2937 (elmo-define-obsolete-variable 'wl-mime-save-dir
2938 'wl-mime-save-directory)
2939 (elmo-define-obsolete-variable 'wl-score-files-dir
2940 'wl-score-files-directory)
2941 (elmo-define-obsolete-variable 'wl-tmp-dir
2942 'wl-temporary-file-directory)
2945 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
2946 'elmo-folder-update-threshold)
2947 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
2948 'elmo-message-fetch-threshold)
2950 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
2951 'wl-message-buffer-prefetch-folder-type-list)
2952 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
2953 'wl-message-buffer-prefetch-folder-list)
2955 ;; 2001-02-27: *-func -> *-function
2956 (elmo-define-obsolete-variable 'wl-summary-from-func
2957 'wl-summary-from-function)
2958 (elmo-define-obsolete-variable 'wl-summary-subject-func
2959 'wl-summary-subject-function)
2960 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
2961 'wl-summary-subject-filter-function)
2962 (elmo-define-obsolete-variable 'wl-draft-send-func
2963 'wl-draft-send-function)
2964 (elmo-define-obsolete-variable 'wl-draft-send-news-func
2965 'wl-draft-send-news-function)
2966 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
2967 'wl-draft-send-mail-function)
2968 (elmo-define-obsolete-variable 'wl-print-buffer-func
2969 'wl-print-buffer-function)
2970 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
2971 'wl-ps-print-buffer-function)
2972 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
2973 'wl-generate-mailer-string-function)
2974 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
2975 'wl-highlight-x-face-function)
2976 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
2977 'wl-fldmgr-sort-function)
2978 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
2979 'wl-expire-archive-get-folder-function)
2980 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
2981 'wl-highlight-signature-search-function)
2983 ;; 2000-01-25: temp mark -> target mark
2984 (elmo-define-obsolete-variable 'wl-summary-temp-above
2985 'wl-summary-target-above)
2987 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
2988 (defvar wl-draft-prepared-config-alist nil)
2989 (make-obsolete-variable 'wl-draft-prepared-config-alist
2990 'wl-draft-config-alist)
2993 (elmo-define-obsolete-variable 'wl-address-filename
2995 (elmo-define-obsolete-variable 'wl-score-default-file-name
2996 'wl-score-default-file)
3000 (product-provide (provide 'wl-vars) (require 'wl-version))
3002 ;;; wl-vars.el ends here