* elmo.el (autoload): Added autoload setting for `elmo-local-flag-p'.
[elisp/wanderlust.git] / wl / wl-vars.el
1 ;;; wl-vars.el --- Variable definitions for Wanderlust.
2
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>
5
6 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
7 ;;      Masahiro MURATA <muse@ba2.so-net.ne.jp>
8 ;; Keywords: mail, net news
9
10 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
11
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)
15 ;; any later version.
16 ;;
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.
21 ;;
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.
26 ;;
27
28 ;;; Commentary:
29 ;;
30
31 ;;; Code:
32 ;;
33
34 (require 'elmo-vars)
35 (require 'elmo-util)
36 (require 'elmo-msgdb)
37 (require 'custom)
38
39 ;;; Customizable Variables
40
41 (defgroup wl nil
42   "Wanderlust, a news and mail reading software."
43   :tag "Wanderlust"
44   :link (` (custom-manual
45             (, (if (and (boundp 'current-language-environment)
46                         (string-equal "Japanese"
47                                       (symbol-value 'current-language-environment)))
48                    "(wl-ja)Top"
49                  "(wl)Top"))))
50   :group 'news
51   :group 'mail)
52
53 (defgroup wl-pref nil
54   "Wanderlust, Preferences."
55   :prefix "wl-"
56   :group 'wl)
57
58 (defgroup wl-folder nil
59   "Wanderlust, folder buffer."
60   :prefix "wl-"
61   :group 'wl)
62
63 (defgroup wl-summary nil
64   "Wanderlust, summary buffer."
65   :prefix "wl-"
66   :group 'wl)
67
68 (defgroup wl-summary-marks nil
69   "Wanderlust, marks used in summary buffers."
70   :prefix "wl-summary-"
71   :group 'wl-summary)
72
73 (defgroup wl-expire nil
74   "Wanderlust, Expiring and archiving."
75   :prefix "wl-"
76   :group 'wl)
77
78 (defgroup wl-score nil
79   "Wanderlust, Score file handling."
80   :prefix "wl-"
81   :group 'wl)
82
83 (defgroup wl-highlight nil
84   "Wanderlust, Highlights."
85   :prefix "wl-"
86   :group 'wl)
87
88 (defgroup wl-draft nil
89   "Wanderlust, draft mode."
90   :prefix "wl-"
91   :group 'wl)
92
93 (defgroup wl-setting nil
94   "Wanderlust common settings."
95   :prefix "wl-"
96   :group 'wl)
97
98 ;;; Emacsen
99 (defconst wl-on-xemacs (featurep 'xemacs))
100
101 (defconst wl-on-emacs21 (and (not wl-on-xemacs)
102                              (>= emacs-major-version 21)))
103
104 (defconst wl-on-mule (featurep 'mule))
105
106 (defconst wl-on-mule3
107   (and wl-on-mule (or wl-on-xemacs
108                       (> emacs-major-version 19))))
109
110 (defconst wl-on-nemacs nil) ; backward compatibility.
111
112 (eval-when-compile
113   (defun-maybe locate-data-directory (a)))
114
115 (defvar wl-cs-noconv
116   (cond (wl-on-mule3 'binary)
117         (wl-on-mule  '*noconv*)
118         (t           nil)))
119
120 (defvar wl-cs-autoconv
121   (cond (wl-on-mule3 'undecided)
122         (wl-on-mule  '*autoconv*)
123         (t           nil)))
124
125 (defvar wl-cs-local
126   (cond (wl-on-mule3  'junet)
127         (wl-on-mule   '*junet*)
128         (t           nil)))
129
130 (defvar wl-cs-cache wl-cs-local)
131
132 (defcustom wl-from (and user-mail-address
133                         (concat (and (user-full-name)
134                                      (concat (elmo-address-quote-specials
135                                               (user-full-name))
136                                              " "))
137                                 "<" user-mail-address ">"))
138   "*From string used in draft."
139   :type  'string
140   :group 'wl
141   :group 'wl-setting)
142
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)
150   :group 'wl
151   :group 'wl-setting)
152
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)
157                  string)
158   :group 'wl
159   :group 'wl-setting)
160
161 (defcustom wl-organization (getenv "ORGANIZATION")
162   "Organization name."
163   :type '(choice (const :tag "none" nil)
164                  string)
165   :group 'wl
166   :group 'wl-setting)
167
168 (defcustom wl-temporary-file-directory "~/tmp/"
169   "*Default temporary directory to save message, part."
170   :type 'directory
171   :group 'wl)
172
173 (defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
174                                  (locate-data-directory "wl")
175                                (let ((icons (expand-file-name "wl/icons/"
176                                                               data-directory)))
177                                  (if (file-directory-p icons)
178                                      icons)))
179   "*Directory to load the icon files from, or nil if none."
180   :type '(choice (const :tag "none" nil)
181                  string)
182   :group 'wl)
183
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))
188   :group 'wl-summary)
189
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))))
196   :group 'wl-summary)
197
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     (?m (upcase (symbol-name wl-summary-buffer-display-mime-mode)))
205     (?n wl-summary-buffer-new-count)
206     (?u 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:
210 \(SPEC STRING-EXP)
211 SPEC is a character for format specification.
212 STRING-EXP is an expression to get string to insert.")
213
214 (defcustom wl-summary-mode-line-format "Wanderlust: %f {%t}(%n/%u/%a)[%m]"
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:
218
219 %f The folder name.
220 %t The thread status of the summary ('T' for thread, 'S' for sequential).
221 %m The mime analysis status of the summary ('M' for MIME ON)
222 %n The number of new messages.
223 %u The number of unread messages (includes new messages).
224 %a The number of all messages."
225   :group 'wl-summary
226   :type 'string)
227
228 (defvar wl-summary-line-format-spec-alist
229   '((?Y (wl-summary-line-year))
230     (?M (wl-summary-line-month))
231     (?D (wl-summary-line-day))
232     (?W (wl-summary-line-day-of-week))
233     (?h (wl-summary-line-hour))
234     (?m (wl-summary-line-minute))
235     (?\[ (if wl-thr-linked "<" "["))
236     (?\] (if wl-thr-linked ">" "]"))
237     (?t (or wl-thr-indent-string ""))
238     (?s (wl-summary-line-subject))
239     (?S (wl-summary-line-size))
240     (?C (if wl-thr-children-number
241             (concat "[+" (number-to-string wl-thr-children-number) "] ")
242           (if wl-parent-message-entity
243               (if wl-thr-linked ">>" ">")
244             "")))
245     (?~ (if (zerop (length wl-line-string)) "" " "))
246     (?c (if wl-thr-children-number
247             (concat "+" (number-to-string wl-thr-children-number) ":")
248           ""))
249     (?f (wl-summary-line-from))
250     (?# (wl-summary-line-list-info))
251     (?l (wl-summary-line-list-count))
252     (?T (or wl-temp-mark " "))
253     (?P (or wl-persistent-mark " "))
254     (?n (wl-summary-line-number))
255     (?@ (wl-summary-line-attached)))
256   "An alist of format specifications that can appear in summary lines.
257 Each element is a list of following:
258 \(SPEC STRING-EXP)
259 SPEC is a character for format specification.
260 STRING-EXP is an expression to get string to insert.")
261
262 (defcustom wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s"
263   "*A default format string for summary line of Wanderlust.
264 It may include any of the following format specifications
265 which are replaced by the given information:
266
267 %n The number of the message.
268    The width is decided using `wl-summary-default-number-column' and
269    `wl-summary-number-column-alist'.
270 %T The temporal mark (*, D, o, O).
271 %P The persistent mark (status of the message).
272 %Y The year of the date field of the message (zero padded).
273 %M The month of the date field of the message (zero padded).
274 %D The day of the date field of the message (zero padded).
275 %W The weekday name of the date field of the message (zero padded).
276 %h The hour of the date field of the message (zero padded).
277 %m The minute of the date field of the message (zero padded).
278 %[ An open bracket.  If the message thread is linked,
279    it is replaced with '<'.
280 %] A close bracket.  If the message thread is linked,
281    it is replaced with '>'.
282 %c The children number of the closed message thread.
283    Children number is printed like '+??:'.
284 %C The children number of the closed message thread.
285    Children number is printed like '[+??] '.
286    If the message is opened, '>' or '>>' (linked) is displayed.
287 %f The from: field string of the message.
288 %s The subject: field string of the message.
289 %S The size of the message (if available).
290 %~ If the previous spec is not zero-length, replaced with ' '.
291
292 If the format string contains the specifiers %( and %), the text between
293 them will have the specified number of columns."
294   :group 'wl-summary
295   :type 'string)
296
297 (defcustom wl-folder-summary-line-format-alist nil
298   "An alist of folder name and a summary line format.
299 If no match, `wl-summary-line-format' is used.
300 e.x.
301       '((\"^%\" . \"%n%T%P%M/%D(%W)%h:%m %t%[%14(%c %f%) %](%S) %s\")
302         (\"^@2ch\" . \"%n%T%P%M%/%D/%h:%m %t[%9(%c %f%) ]%s\")))"
303   :type '(repeat (cons (regexp :tag "Folder Regexp")
304                        (string :tag "line format")))
305   :group 'wl-summary)
306
307 (defcustom wl-summary-check-line-format t
308   "*Check summary line format change if non-nil.
309 When summary line format is changed, current summary cache is discarded.
310 It is highly recommended to set this value to t."
311   :type 'boolean
312   :group 'wl-summary)
313
314 (defcustom wl-summary-line-format-file ".wl-summary-line-format"
315   "*Cache file for summary line format."
316   :type 'file
317   :group 'wl-summary)
318
319 (defcustom wl-summary-from-function 'wl-summary-default-from
320   "*A function for displaying sender (From: field) information."
321   :type 'function
322   :group 'wl-summary)
323
324 (defcustom wl-summary-subject-function 'wl-summary-default-subject
325   "*A function for displaying subject."
326   :type 'function
327   :group 'wl-summary)
328
329 (defcustom wl-summary-subject-filter-function 'wl-summary-default-subject-filter
330   "*A filter function for comparing subjects."
331   :type 'function
332   :group 'wl-summary)
333
334 (defcustom wl-summary-search-parent-by-subject-regexp "^[ \t]*\\(\\[[^:]+[,: ][0-9]+\\]\\)?[ \t]*re[\\^[:> ]"
335   "*If message does not have in-reply-to field nor references field and
336 subject matches this regexp, search parent message by subject matching.
337 If nil, never search search parent by subject."
338   :type '(choice string
339                  (const :tag "Don't search parent" nil))
340   :group 'wl-summary)
341
342 ;;; Mark & Action
343 (defcustom wl-summary-mark-action-list
344   '(("*"
345      target-mark
346      nil
347      wl-summary-register-target-mark
348      nil
349      wl-highlight-summary-temp-face
350      "Put target mark.")
351     ("d"
352      dispose
353      nil
354      wl-summary-register-temp-mark
355      wl-summary-exec-action-dispose
356      wl-highlight-summary-disposed-face
357      "Dispose messages according to `wl-dispose-folder-alist'.")
358     ("D"
359      delete
360      nil
361      wl-summary-register-temp-mark
362      wl-summary-exec-action-delete
363      wl-highlight-summary-deleted-face
364      "Delete messages immediately.")
365     ("o"
366      refile
367      wl-summary-get-refile-destination
368      wl-summary-set-action-refile
369      wl-summary-exec-action-refile
370      wl-highlight-summary-refiled-face
371      "Refile messages to the other folder.")
372     ("O"
373      copy
374      wl-summary-get-copy-destination
375      wl-summary-register-temp-mark
376      wl-summary-exec-action-copy
377      wl-highlight-summary-copied-face
378      "Copy messages to the other folder.")
379     ("i"
380      prefetch
381      nil
382      wl-summary-register-temp-mark
383      wl-summary-exec-action-prefetch
384      wl-highlight-summary-prefetch-face
385      "Prefetch messages.")
386     ("~"
387      resend
388      wl-summary-get-resend-address
389      wl-summary-register-temp-mark
390      wl-summary-exec-action-resend
391      wl-highlight-summary-resend-face
392      "Resend messages."))
393   "A variable to define Mark & Action.
394 Each element of the list should be a list of
395 \(MARK
396   SYMBOL
397   ARGUMENT-FUNCTION
398   SET-MARK-FUNCTION
399   EXEC-FUNCTION
400   FACE
401   DOC-STRING)
402
403 MARK is a temporal mark string to define.
404 SYMBOL is an action name to define.
405 ARGUMENT-FUNCTION is a function called to set the argument data for
406 SET-MARK-FUNCTION.
407 Its argument is (ACTION NUMBER).
408 ACTION is same as the SYMBOL.
409 NUMBER is the message number to determine the argument data.
410 SET-MARK-FUNCTION is a function called to set the mark.
411 Its argument is (NUMBER MARK DATA).
412 NUMBER is the target message number.
413 MARK is the temporary mark string.
414 DATA is given by ARGUMENT-FUNCTION.
415 EXEC-FUNCTION is a function called to execute the action.
416 Its argument is a list of MARK-INFO.
417 MARK-INFO is a list of (NUMBER MARK DATA).
418 FACE is a face for highlighting."
419   :type '(repeat (list
420                   (string :tag "Temporary mark")
421                   (symbol :tag "Action name")
422                   (symbol :tag "Argument function")
423                   (symbol :tag "Set mark function")
424                   (symbol :tag "Exec function")
425                   (symbol :tag "Face symbol")
426                   (string :tag "Document string")))
427   :group 'wl-summary)
428
429 ;; Important folders
430 (defcustom wl-default-folder "%inbox"
431   "*Default folder used in `wl-summary-goto-folder'."
432   :type 'string
433   :group 'wl)
434 (defcustom wl-draft-folder "+draft"
435   "*Draft folder"
436   :type 'string
437   :group 'wl)
438 (defcustom wl-trash-folder "+trash"
439   "*Trash folder"
440   :type 'string
441   :group 'wl
442   :group 'wl-setting)
443 (defcustom wl-queue-folder "+queue"
444   "*Queue folder"
445   :type 'string
446   :group 'wl)
447
448 (defcustom wl-default-spec "%"
449   "*Default prefix for folder name initially added in minibuffer"
450   :type 'string
451   :group 'wl)
452
453 (defcustom wl-insert-mail-followup-to nil
454   "*Insert Mail-Followup-To: field if non-nil."
455   :type 'boolean
456   :group 'wl-draft)
457
458 (defcustom wl-insert-mail-reply-to nil
459   "*Insert Mail-Reply-To: field if non-nil."
460   :type 'boolean
461   :group 'wl-draft)
462
463 (defcustom wl-insert-message-id t
464   "*Insert Message-ID: field if non-nil."
465   :type 'boolean
466   :group 'wl-draft)
467
468 (defcustom wl-auto-insert-x-face t
469   "*Insert X-Face: field automatically."
470   :type 'boolean
471   :group 'wl-draft)
472
473 (defcustom wl-x-face-file "~/.xface"
474   "*X-Face field is inserted using its contents.
475 If file exists and `wl-auto-insert-x-face' is non-nil."
476   :type 'file
477   :group 'wl-draft)
478
479 (defcustom wl-draft-write-file-function 'wl-draft-save
480   "Save function for draft message."
481   :type 'function
482   :group 'wl-draft)
483
484 (defcustom wl-subscribed-mailing-list nil
485   "*Subscribed mailing list.
486 You had better set this variable if you set 'wl-insert-mail-followup-to' as t."
487   :type '(repeat string)
488   :group 'wl-pref
489   :group 'wl-setting)
490
491 (defcustom wl-demo t
492   "*Display demo at start time."
493   :type 'boolean
494   :group 'wl-pref)
495
496 (defcustom wl-demo-icon-name-alist
497   '(((string-match "^... Dec \\([ 01][0-9]\\|2[0-5]\\)" (current-time-string))
498      .
499      (concat "wl-" (wl-version-status) "-xmas-logo"))
500     (t
501      .
502      (concat "wl-" (wl-version-status) "-logo")))
503   "An alist to determine the basename of the logo file."
504   :type '(repeat (cons (symbol :tag "condition")
505                        (symbol :tag "file name")))
506   :group 'wl-pref)
507
508 (defcustom wl-demo-image-filter-alist nil
509   "An alist of image type and filter function."
510   :type '(repeat (cons symbol function))
511   :group 'wl-pref)
512
513 (defcustom wl-envelope-from nil
514   "*Envelope From used in SMTP.
515 If nil, `wl-from' is used."
516   :type '(choice (const :tag "Same as 'From' field." nil)
517                  string)
518   :group 'wl
519   :group 'wl-setting)
520
521 (defcustom wl-draft-additional-header-alist nil
522   "*Additional headers in the draft."
523   :type '(repeat (cons (symbol :tag "Field Name")
524                        (choice (string :tag "String")
525                                (function :tag "Function")))))
526
527 (defcustom wl-draft-add-in-reply-to t
528   "*If non-nil, message-id of the cited message is inserted to the
529 in-reply-to field of the current draft."
530   :type 'boolean
531   :group 'wl)
532
533 (defcustom wl-draft-add-references nil
534   "*If non-nil, message-id of the cited message is inserted to the
535 references field of the current draft."
536   :type 'boolean
537   :group 'wl)
538
539 (defcustom wl-draft-cite-function 'wl-default-draft-cite
540   "*A function for citation."
541   :type 'function
542   :group 'wl-draft)
543
544 (defcustom wl-default-draft-cite-decorate-author t
545   "*If non-nil, the author of cited message is arranged by
546 `wl-summary-from-func-internal' in `wl-default-draft-cite'."
547   :type 'boolean
548   :group 'wl-draft)
549
550 (defcustom wl-smtp-connection-type nil
551   "*SMTP connection type.
552 If nil, default smtp connection type is used."
553   :type '(choice (const :tag "default" nil)
554                  (const :tag "Use STARTTLS" starttls)
555                  (const :tag "SMTP over SSL" ssl)
556                  symbol)
557   :group 'wl)
558
559 (defcustom wl-smtp-posting-user nil
560   "*SMTP authentication user."
561   :type '(choice (const :tag "none" nil)
562                  string)
563   :group 'wl
564   :group 'wl-setting)
565
566 (defcustom wl-smtp-posting-server nil
567   "*SMTP server name to send mail (wl-draft-send-mail-with-smtp)."
568   :type '(choice (const :tag "none" nil)
569                  string)
570   :group 'wl
571   :group 'wl-setting)
572
573 (defcustom wl-smtp-posting-port nil
574   "*SMTP port number in `wl-smtp-posting-server'.
575 If nil, default SMTP port number(25) is used."
576   :type '(choice (const :tag "Default (25)" nil)
577                  integer)
578   :group 'wl
579   :group 'wl-setting)
580
581 (defcustom wl-smtp-authenticate-type nil
582   "*SMTP Authentication type.
583 If nil, don't authenticate."
584   :type '(choice (const :tag "none" nil)
585                  (const :tag "PLAIN" "plain")
586                  (const :tag "CRAM-MD5" "cram-md5")
587                  (const :tag "DIGEST-MD5" "digest-md5")
588                  (const :tag "LOGIN" "login")
589                  (string :tag "Other"))
590   :group 'wl
591   :group 'wl-setting)
592
593 (defcustom wl-pop-before-smtp-user nil
594   "*POP3 user name to send mail using POP-before-SMTP.
595 If nil, `elmo-pop3-default-user' is used.
596 To use POP-before-SMTP,
597 \(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
598   :type '(choice (const :tag "none" nil)
599                  string)
600   :group 'wl
601   :group 'wl-setting)
602
603 (defcustom wl-pop-before-smtp-server nil
604   "*POP3 server for POP-before-SMTP.
605 If nil, `elmo-pop3-default-server' is used."
606   :type '(choice (const :tag "none" nil)
607                  string)
608   :group 'wl
609   :group 'wl-setting)
610
611 (defcustom wl-pop-before-smtp-port nil
612   "*POP3 port for POP-before-SMTP.
613 If nil, `elmo-pop3-default-port' is used."
614   :type '(choice (const :tag "none" nil)
615                  integer string)
616   :group 'wl
617   :group 'wl-setting)
618
619 (defcustom wl-pop-before-smtp-stream-type nil
620   "*Stream type for POP-before-SMTP.
621 If nil, `elmo-pop3-default-stream-type' is used."
622   :type 'boolean
623   :group 'wl)
624
625 (defcustom wl-pop-before-smtp-authenticate-type nil
626   "*Default Authentication type for POP-before-SMTP.
627 If nil, `elmo-pop3-default-authenticate-type' is used."
628   :type '(choice (const :tag "none" nil)
629                  (const :tag "APOP" 'apop)
630                  (const :tag "POP3" 'user))
631   :group 'wl
632   :group 'wl-setting)
633
634 (defcustom wl-nntp-posting-server nil
635   "*NNTP server name to post news.
636 If nil, `elmo-nntp-default-server' is used."
637   :type '(choice (const :tag "none" nil)
638                  string)
639   :group 'wl
640   :group 'wl-setting)
641 (defcustom wl-nntp-posting-user nil
642   "*NNTP user name to post news for authinfo.
643 If nil, `elmo-nntp-default-user' is used.
644 If nil, don't authenticate."
645   :type '(choice (const :tag "none" nil)
646                  string)
647   :group 'wl
648   :group 'wl-setting)
649 (defcustom wl-nntp-posting-port nil
650   "*NNTP port to post news.
651 If nil, `elmo-nntp-default-port' is used."
652   :type '(choice (const :tag "none" nil)
653                  integer string)
654   :group 'wl
655   :group 'wl-setting)
656 (defcustom wl-nntp-posting-stream-type nil
657   "*Stream type for posting Netnews.
658 If nil, `elmo-nntp-default-stream-type' is used."
659   :type 'boolean
660   :group 'wl)
661 (defcustom wl-nntp-posting-function 'elmo-nntp-post
662   "A function to post news.
663 Prepared candidate is 'elmo-nntp-post."
664   :type '(radio (function-item elmo-nntp-post)
665                 (function :tag "Other"))
666   :group 'wl-draft)
667 (defcustom wl-nntp-posting-config-alist nil
668   "*Alist of configuration on nntp posting.
669 ex.
670 '((\",?local.test\" . \"news.media.kyoto-u.ac.jp\")
671   (\",?ku\\.\" .
672    ((server . \"news.media.kyoto-u.ac.jp\")
673     (user . \"newsmaster\")
674     (port . 119)
675     (function . elmo-nntp-post))
676   (\".*\" . \"newsfeed.kuee.kyoto-u.ac.jp\")))"
677   :type '(repeat (cons (sexp :tag "Match")
678                        (choice (string :tag "Server")
679                                (repeat :inlie t
680                                        (cons (choice (const server)
681                                                      (const user)
682                                                      (const port)
683                                                      (const stream-type)
684                                                      (const function))
685                                              (sexp :tag "Value"))))))
686   :group 'wl-draft
687   :group 'wl-setting)
688
689 (defcustom wl-prefetch-confirm t
690   "*Confirm prefetching if message size is larger than `wl-prefetch-threshold'."
691   :type 'boolean
692   :group 'wl-pref)
693
694 (defcustom wl-prefetch-threshold 30000
695   "*Maximum size of message prefetched without confirmation.
696 If nil, all messages prefetched regardless of its size.
697 If message size is larger than this value, confirm prefetching
698 when `wl-prefetch-confirm' is non-nil."
699   :type '(choice (integer :tag "Threshold (bytes)")
700                  (const :tag "No limitation" nil))
701   :group 'wl-pref
702   :group 'wl-setting)
703
704 (defcustom wl-thread-insert-opened nil
705   "*Non-nil forces to insert thread as opened in updating."
706   :type 'boolean
707   :group 'wl-summary
708   :group 'wl-setting)
709
710 (defcustom wl-thread-open-reading-thread t
711   "*Non-nil forces to open reading thread."
712   :type 'boolean
713   :group 'wl-summary)
714
715 ;;;; Hooks
716 (defvar wl-folder-mode-hook nil
717   "A hook called when wanderlust folder mode is started.
718 This hook may contain the functions `wl-folder-init-icons' and
719 `wl-setup-folder' for reasons of system internal to accord facilities
720 for the Emacs variants.")
721 (defvar wl-summary-toggle-disp-on-hook nil
722   "A hook called when message is toggled.")
723 (defvar wl-summary-toggle-disp-off-hook nil
724   "A hook called when message is disappeared.")
725 (defvar wl-summary-toggle-disp-folder-on-hook nil
726   "A hook called when folder is toggled.")
727 (defvar wl-summary-toggle-disp-folder-off-hook nil
728   "A hook called when folder is disappeared.")
729 (defvar wl-summary-toggle-disp-folder-message-resumed-hook nil
730   "A hook called when message window is resumed when folder is toggled.")
731 (defvar wl-summary-mode-hook nil
732   "A hook called when summary mode is started.
733 This hook may contain the function `wl-setup-summary' for reasons of
734 system internal to accord facilities for the Emacs variants.")
735
736 (defvar wl-summary-prepared-pre-hook nil
737   "A hook called before the summary buffer has been generated.")
738 (defvar wl-summary-prepared-hook nil
739   "A hook called after the summary buffer has been generated.")
740 (defvar wl-summary-sync-updated-hook nil
741   "A hook called when update summary buffer.")
742 (defvar wl-summary-unread-message-hook nil
743   "A hook called when unread message is displayed.")
744 (defvar wl-summary-edit-addresses-hook nil
745   "A hook called when address book is edited.")
746 (defvar wl-summary-buffer-message-saved-hook nil
747   "A hook called when msgdb is saved.")
748 (defvar wl-summary-buffer-mark-saved-hook nil
749   "A hook called when mark is saved.")
750 (defvar wl-summary-divide-thread-when-subject-changed nil
751   "Divide thread when subject is changed.")
752 (defvar wl-init-hook nil
753   "A hook called when initialization is finished.  This hook may contain
754 the functions `wl-plugged-init-icons' and `wl-biff-init-icons' for
755 reasons of system internal to accord facilities for the Emacs variants.")
756 (defvar wl-hook nil
757   "A hook called when Wanderlust is invoked.")
758
759 (defvar wl-draft-reply-hook
760   '((lambda () (wl-draft-setup-parent-flag 'answered)))
761   "A hook called when replied.
762 This hook runs on the draft buffer.")
763
764 (defvar wl-draft-forward-hook
765   '((lambda () (wl-draft-setup-parent-flag 'forwarded)))
766   "A hook called when forwarded.
767 This hook runs on the draft buffer.")
768
769 (defvar wl-draft-kill-pre-hook nil
770   "A hook called just before the draft buffer is killed.")
771
772 (defvar wl-summary-reply-hook nil
773   "A hook called when `wl-summary-reply' is called.
774 This hook runs on the summary buffer.")
775
776 (defvar wl-summary-forward-hook nil
777   "A hook called when `wl-summary-forward' is called.
778 This hook runs on the summary buffer.")
779
780 (defvar wl-summary-resend-hook nil
781   "A hook runs on the resent message buffer before sending process starts.")
782
783 (defvar wl-mail-setup-hook nil
784   "A hook called when Draft is prepared.")
785 (defvar wl-draft-reedit-hook '(wl-draft-remove-text-plain-tag)
786   "A hook called when Draft is re-edited.
787 The cursor point is located at top of the body.")
788 (defvar wl-draft-send-hook '(wl-draft-config-exec)
789   "A hook called on the draft editing buffer before sending process starts.")
790 (defvar wl-mail-send-pre-hook nil
791   "A hook called just before the mail sending process starts.")
792 (defvar wl-news-send-pre-hook nil
793   "A hook called just before the news sending process starts.")
794 (defvar wl-message-buffer-created-hook nil
795   "A hook called when Message buffer is prepared.")
796 (defvar wl-message-redisplay-hook nil
797   "A hook called when Message is displayed.")
798 (defvar wl-message-exit-hook nil
799   "A hook called when quit message.")
800 (defvar wl-summary-exit-pre-hook nil
801   "A hook called before exit summary mode.")
802 (defvar wl-summary-exit-hook nil
803   "A hook called when exit summary mode.")
804 (defvar wl-highlight-headers-hook nil
805   "A hook called when header is highlighted.")
806 (defvar wl-highlight-message-hook nil
807   "A hook called when message is highlighted.")
808 (defvar wl-save-hook nil
809   "A hook called when save summary and folder status.")
810 (defvar wl-exit-hook nil
811   "A hook called when exit wanderlust.")
812 (defvar wl-folder-suspend-hook nil
813   "A hook called when suspend wanderlust.")
814 (defvar wl-biff-notify-hook '(ding)
815   "A hook called when a biff-notification is invoked.")
816 (defvar wl-biff-unnotify-hook nil
817   "A hook called when a biff-notification is removed.")
818 (defvar wl-auto-check-folder-pre-hook nil
819   "A hook called before auto check folders.")
820 (defvar wl-auto-check-folder-hook nil
821   "A hook called when auto check folders.")
822 (defvar wl-folder-check-entity-pre-hook nil
823   "A hook called before check entity.")
824 (defvar wl-folder-check-entity-hook nil
825   "A hook called when check entity.")
826 (defvar wl-draft-config-exec-hook nil
827   "A hook called when execute header-config on draft.")
828 (defvar wl-summary-expire-pre-hook nil
829   "A hook called before expire.")
830 (defvar wl-summary-expire-hook nil
831   "A hook called when expired.")
832 (defvar wl-summary-archive-pre-hook nil
833   "A hook called before archive.")
834 (defvar wl-summary-archive-hook nil
835   "A hook called when archived.")
836 (defvar wl-summary-line-inserted-hook nil
837   "A hook called when summary line is inserted.")
838 (defvar wl-summary-insert-headers-hook nil
839   "A hook called when insert header for search header.")
840 (defvar wl-message-display-internal-hook nil
841   "A hook called when message buffer is created and message is displayed.
842 This hook may contain the functions `wl-setup-message' for
843 reasons of system internal to accord facilities for the Emacs variants.")
844 (defvar wl-thread-update-children-number-hook nil
845   "A hook called when children number is updated.")
846 (defvar wl-folder-update-access-group-hook nil
847   "A hook called when update access group folder.")
848 (defvar wl-draft-cited-hook nil
849   "A hook called after a message is cited.")
850 (defvar wl-draft-insert-x-face-field-hook nil
851   "A hook called after a x-face field is inserted.")
852 (defvar wl-template-mode-hook nil
853   "A hook called when template mode is started.")
854 (defvar wl-score-mode-hook nil
855   "A hook called when score mode is started.")
856 (defvar wl-make-plugged-hook nil
857   "A hook called when make plugged alist.")
858
859 (defvar wl-plugged-exit-hook nil
860   "A hook called when exit plugged mode.")
861
862 ;;;; functions for draft
863 (defcustom wl-draft-send-function 'wl-draft-normal-send-func
864   "A function to send message."
865   :type 'function
866   :group 'wl-draft)
867
868 (defcustom wl-draft-send-news-function 'wl-draft-elmo-nntp-send
869   "A function to send news."
870   :type 'function
871   :group 'wl-draft)
872
873 (defcustom wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp
874   "A function to send mail.
875 Prepared candidates are 'wl-draft-send-mail-with-smtp,
876 'wl-draft-send-mail-with-qmail and 'wl-draft-send-mail-with-pop-before-smtp."
877   :type '(radio (function-item wl-draft-send-mail-with-smtp)
878                 (function-item wl-draft-send-mail-with-qmail)
879                 (function-item wl-draft-send-mail-with-pop-before-smtp)
880                 (function :tag "Other"))
881   :group 'wl-draft)
882
883 (defcustom wl-draft-reply-with-argument-list
884   '(("From" . (("Reply-To" "Mail-Reply-To" "From")
885                ("Mail-Followup-To" "To" "Cc")
886                ("Followup-To" "Newsgroups"))))
887   "Alist of cons cell of
888 \('condition' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
889 'condition' is a header name string (non-nil if the header exists in original
890 message), a function (evaluated in original message buffer) or a list of those
891 \(means 'AND' condition).
892 'fields for ***' is a list of strings.
893 If car of each cons cell returns non-nil value,
894 cdr of each cons cell is used for preparing headers of draft message.
895 Default is for 'reply-to-all'."
896   :type '(repeat (cons (choice (string :tag "Field Name")
897                                (symbol :tag "Function")
898                                (const :tag "Replying to self" wl-draft-self-reply-p)
899                                (repeat :tag "AND"
900                                        (choice (string :tag "Field Name")
901                                                (symbol :tag "Function")
902                                                (const :tag "Replying to self" wl-draft-self-reply-p))))
903                        (list (repeat :tag "Fields For To" string)
904                              (repeat :tag "Fields For Cc" string)
905                              (repeat :tag "Fields For Newsgroups" string))))
906   :group 'wl-draft)
907
908 (defcustom wl-draft-reply-without-argument-list
909   '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
910     ("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
911     ("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
912     ("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
913     ("Reply-To" . (("Reply-To") ("To" "Cc") nil))
914     (wl-draft-self-reply-p . (("To") ("Cc") nil))
915     ("From" . (("From") ("To" "Cc") nil)))
916   "Alist of cons cell of
917 \('condition' .  ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
918 'condition' is a header name string (non-nil if the header exists in original
919 message), a function (evaluated in original message buffer) or a list of those
920 \(means 'AND' condition).
921 'fields for ***' is a list of strings.
922 If car of each cons cell returns non-nil value,
923 cdr of each cons cell is used for preparing headers of draft message."
924   :type '(repeat (cons (choice (string :tag "Field Name")
925                                (symbol :tag "Function")
926                                (const :tag "Replying to self" wl-draft-self-reply-p)
927                                (repeat :tag "AND"
928                                        (choice (string :tag "Field Name")
929                                                (symbol :tag "Function")
930                                                (const :tag "Replying to self" wl-draft-self-reply-p))))
931                        (list (repeat :tag "Fields For To" string)
932                              (repeat :tag "Fields For Cc" string)
933                              (repeat :tag "Fields For Newsgroups" string))))
934   :group 'wl-draft)
935
936 (defcustom wl-draft-always-delete-myself nil
937   "*Always delete myself from recipient if non-nil."
938   :type 'boolean
939   :group 'wl-draft)
940
941 (defcustom wl-draft-delete-myself-from-bcc-fcc nil
942   "*Do not insert bcc or fcc if To and Cc fields is a member of
943 `wl-subscribed-mailing-list'"
944   :type 'boolean
945   :group 'wl-draft)
946
947 (defcustom wl-draft-resume-folder-window t
948   "*Resume folder window in `wl-draft-hide'."
949   :type 'boolean
950   :group 'wl-draft)
951
952 (defcustom wl-draft-use-frame nil
953   "*Raise new frame when composing draft."
954   :type 'boolean
955   :group 'wl-draft)
956
957 (defcustom wl-draft-qmail-send-plugged nil
958   "*Send mail when plugged is on, in the `wl-draft-send-mail-with-qmail'."
959   :type 'boolean
960   :group 'wl-draft)
961
962 (defcustom wl-draft-remove-group-list-contents t
963   "*If non-nil, remove group list contents in `wl-draft-send-mail-with-smtp'."
964   :type 'boolean
965   :group 'wl-draft)
966
967 ;;;;
968 (defcustom wl-init-file "~/.wl"
969   "*User customization setting file."
970   :type 'file
971   :group 'wl)
972
973 (defcustom wl-folders-file "~/.folders"
974   "*Folders file."
975   :type 'file
976   :group 'wl)
977
978 (defcustom wl-address-file "~/.addresses"
979   "*Addresses file."
980   :type 'file
981   :group 'wl)
982
983 (defcustom wl-alias-file "~/.im/Aliases"
984   "*Alias file for completion."
985   :type 'file
986   :group 'wl)
987
988 (defcustom wl-ldap-server nil
989   "*LDAP server."
990   :type '(choice (const :tag "Default server(localhost)" nil)
991                  (string :tag "Server"))
992   :group 'wl
993   :group 'wl-setting)
994
995 (defcustom wl-ldap-port nil
996   "*LDAP port."
997   :type '(choice (const :tag "Default port" nil)
998                  integer)
999   :group 'wl
1000   :group 'wl-setting)
1001
1002 (defcustom wl-ldap-base nil
1003   "*LDAP base."
1004   :type '(choice (const :tag "Default base" nil)
1005                  (string :tag "Base"))
1006   :group 'wl
1007   :group 'wl-setting)
1008
1009 (defcustom wl-use-ldap nil
1010   "*If non-nil, use LDAP for address completion."
1011   :type 'boolean
1012   :group 'wl
1013   :group 'wl-setting)
1014
1015 (defcustom wl-use-acap nil
1016   "*If non-nil, use ACAP for configuration."
1017   :type 'boolean
1018   :group 'wl)
1019
1020 (defcustom wl-folder-info-save t
1021   "If non-nil, save elmo-folder-info-alist."
1022   :type 'boolean
1023   :group 'wl-folder)
1024
1025 (defcustom wl-summary-persistent-mark-priority-list '(flag
1026                                                       new
1027                                                       answered
1028                                                       forwarded
1029                                                       unread)
1030   "List of preserved flag symbols to define the priority to map \
1031 to the persistent mark.
1032 Special symbol `flag' means the user defined flag."
1033   :type '(repeat (symbol :tag "preserved flag"))
1034   :group 'wl-summary)
1035
1036 (defcustom wl-summary-flag-alist
1037   '((important "orange"))
1038   "An alist to define the global flags for the summary mode.
1039 Each element is a form like:
1040 \(SYMBOL-OF-FLAG COLOR [MARK]\)
1041 Example:
1042 \((important \"orange\"\)
1043  \(todo \"red\" \"T\"\)
1044  \(business \"green\" \"B\"\)
1045  \(private \"blue\"\)\)"
1046   :type '(repeat (list (symbol :tag "flag")
1047                        (string :tag "color")
1048                        (choice (string :tag "mark")
1049                                (const :tag "Default mark" nil))))
1050   :group 'wl-summary)
1051
1052 (defcustom wl-summary-uncached-mark "!"
1053   "Mark for uncached message with no flag."
1054   :type '(string :tag "Mark")
1055   :group 'wl-summary-marks)
1056
1057 (defcustom wl-summary-new-uncached-mark "N"
1058   "Mark for new and uncached message."
1059   :type '(string :tag "Mark")
1060   :group 'wl-summary-marks)
1061
1062 (defcustom wl-summary-new-cached-mark "n"
1063   "Mark for new but already cached message."
1064   :type '(string :tag "Mark")
1065   :group 'wl-summary-marks)
1066
1067 (defcustom wl-summary-unread-uncached-mark "U"
1068   "Mark for unread and uncached message."
1069   :type '(string :tag "Mark")
1070   :group 'wl-summary-marks)
1071
1072 (defcustom wl-summary-unread-cached-mark "u"
1073   "Mark for unread but already cached message."
1074   :type '(string :tag "Mark")
1075   :group 'wl-summary-marks)
1076
1077 (defcustom wl-summary-answered-cached-mark "a"
1078   "Mark for answered and cached message."
1079   :type '(string :tag "Mark")
1080   :group 'wl-summary-marks)
1081
1082 (defcustom wl-summary-answered-uncached-mark "A"
1083   "Mark for answered but uncached message."
1084   :type '(string :tag "Mark")
1085   :group 'wl-summary-marks)
1086
1087 (defcustom wl-summary-flag-mark "$"
1088   "Mark for the messages which have tags."
1089   :type '(string :tag "Mark")
1090   :group 'wl-summary-marks)
1091
1092 (defcustom wl-summary-score-over-mark "+"
1093   "Score mark used for messages with high scores."
1094   :type '(string :tag "Mark")
1095   :group 'wl-summary-marks)
1096
1097 (defcustom wl-summary-score-below-mark "-"
1098   "Score mark used for messages with low scores."
1099   :type '(string :tag "Mark")
1100   :group 'wl-summary-marks)
1101
1102 (defcustom wl-summary-no-mime-folder-list nil
1103   "*All folders that match this list don't analyze mime."
1104   :type '(repeat string)
1105   :group 'wl-summary)
1106
1107 (defcustom wl-summary-display-mime-mode-list '(mime as-is)
1108   "*Display mime mode list toggled by `wl-summary-toggle-mime'.
1109 Candidates are following:
1110 `mime'        ... header and body are decoded
1111 `header-only' ... only header is decoded
1112 `as-is'       ... header and body are not decoded"
1113   :type '(repeat (choice (const :tag "MIME"        mime)
1114                          (const :tag "HEADER-ONLY" header-only)
1115                          (const :tag "AS-IS"       as-is)))
1116   :group 'wl-summary)
1117
1118 (defcustom wl-summary-fix-timezone nil
1119   "*Time zone of the date string in summary mode.
1120 If nil, it is adjust to the default time zone information
1121 \(system's default time zone or environment variable TZ)."
1122   :type '(choice (const :tag "Default time zone" nil)
1123                  string)
1124   :group 'wl-summary)
1125
1126 (defcustom wl-summary-default-score 0
1127   "*Default message score level.
1128 All scores generated by the score files will be added to this score.
1129 If this variable is nil, scoring will be disabled."
1130   :type '(choice (const :tag "disable" nil)
1131                  integer)
1132   :group 'wl-score)
1133
1134 (defcustom wl-summary-important-above nil
1135   "*Mark all messages with a score above this variable as important.
1136 This variable is local to the summary buffers."
1137   :type '(choice (const :tag "off" nil)
1138                  integer)
1139   :group 'wl-score)
1140
1141 (defcustom wl-summary-target-above nil
1142   "*Mark all messages with a score above this variable as target.
1143 This variable is local to the summary buffers."
1144   :type '(choice (const :tag "off" nil)
1145                  integer)
1146   :group 'wl-score)
1147
1148 (defcustom wl-summary-mark-below 0
1149   "*Mark all messages with a score below this variable as read.
1150 This variable is local to each summary buffer and usually set by the
1151 score file."
1152   :type 'integer
1153   :group 'wl-score)
1154
1155 (defcustom wl-summary-expunge-below nil
1156   "All messages that have a score less than this variable will be expunged.
1157 This variable is local to the summary buffers."
1158   :type '(choice (const :tag "off" nil)
1159                  integer)
1160   :group 'wl-score)
1161
1162 (defcustom wl-summary-score-marks
1163   (list wl-summary-new-uncached-mark wl-summary-new-cached-mark)
1164   "Persistent marks to scoring."
1165   :type '(repeat (string :tag "Mark"))
1166   :group 'wl-score)
1167
1168 (defcustom wl-use-scoring t
1169   "*If non-nil, enable scoring."
1170   :type 'boolean
1171   :group 'wl-pref)
1172
1173 (defcustom wl-summary-rescore-partial-threshold 200
1174   "*Summary is not scored entirely if there are messages more than this value.
1175 In sync-all or rescan."
1176   :type 'integer
1177   :group 'wl-score)
1178
1179 (defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
1180   "*Name of the directory where score files will be stored.
1181 (default \"~/.elmo\")."
1182   :type 'directory
1183   :group 'wl)
1184
1185 (defcustom wl-score-interactive-default-score 1000
1186   "*Scoring commands will raise/lower the score with this number as the default."
1187   :type 'integer
1188   :group 'wl-score)
1189
1190 (defcustom wl-score-expiry-days 7
1191   "*Number of days before unused score file entries are expired.
1192 If this variable is nil, no score file entries will be expired."
1193   :type '(choice (const :tag "never" nil)
1194                  number)
1195   :group 'wl-score)
1196
1197 (defcustom wl-score-update-entry-dates t
1198   "*In non-nil, update matching score entry dates.
1199 If this variable is nil, then score entries that provide matches
1200 will be expired along with non-matching score entries."
1201   :type 'boolean
1202   :group 'wl-score)
1203
1204 (defcustom wl-score-folder-alist nil
1205   "*Alist of folder regexp and score file."
1206   :type '(repeat (list (regexp :tag "Folder Regexp")
1207                        (repeat :inline t
1208                                (choice file
1209                                        (symbol :tag "Variable")))))
1210   :group 'wl-score)
1211
1212 (defcustom wl-score-folder-alist-matchone t
1213   "*If non-nil, getting only one element of `wl-score-folder-alist'."
1214   :type 'boolean
1215   :group 'wl-score)
1216
1217 (defcustom wl-score-default-file "all.SCORE"
1218   "*Default score file name."
1219   :type 'file
1220   :group 'wl-score)
1221
1222 (defcustom wl-score-simplify-fuzzy-regexp
1223   '("^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*")
1224   "*Strings to be removed when doing fuzzy matches.
1225 This can either be a regular expression or list of regular expressions."
1226   :type '(repeat regexp)
1227   :group 'wl-score)
1228
1229 (defcustom wl-score-header-default-entry
1230   '(("number" -1000 perm =)
1231     ("subject" -1000 nil nil)
1232     ("from" -1000 perm s)
1233     ("message-id" -1000 temp e)
1234     ("references" -1000 perm e)
1235     ("to" -1000 perm s)
1236     ("cc" -1000 perm s)
1237     ("date" -1000 temp nil)
1238     ("xref" -1000 perm s)
1239     ("extra" -1000 perm s)
1240     ("chars" -1000 perm >)
1241     ("lines" -1000 perm >)
1242     ("followup" -1000 perm s)
1243     ("thread" -1000 temp s))
1244   "*Default entry when insert score entry."
1245   :type '(repeat (list (string :tag "Header")
1246                        (choice (integer :tag "Score")
1247                                (const :tag "Ask" nil))
1248                        (choice (const :tag "Permanent" perm)
1249                                (const :tag "Temporary" temp)
1250                                (const :tag "Ask" nil))
1251                        (choice (const :tag "Regexp string" r)
1252                                (const :tag "Substring" s)
1253                                (const :tag "fuzzy string" f)
1254                                (const :tag "Exact string" e)
1255                                (const :tag "REGEXP STRING" R)
1256                                (const :tag "SUBSTRING" S)
1257                                (const :tag "FUZZY STRING" F)
1258                                (const :tag "EXACT STRING" E)
1259                                (const :tag "less than" <)
1260                                (const :tag "less equal" <=)
1261                                (const :tag "greater than" >)
1262                                (const :tag "greater equal" >=)
1263                                (const :tag "equal" =)
1264                                (const :tag "Ask" nil))))
1265   :group 'wl-score)
1266
1267 (defcustom wl-score-mode-mime-charset 'x-ctext
1268   "*MIME Charset for score file."
1269   :type 'symbol
1270   :group 'wl-score)
1271
1272 (defcustom wl-draft-fields
1273   '("To:" "Cc:" "Bcc:" "Fcc:" "Distribution:" "Organization:"
1274     "Newsgroups:" "Followup-To:" "Mail-Followup-To:" "From:" "Reply-To:")
1275   "Fields used in draft mode."
1276   :type '(repeat (string :tag "Field"))
1277   :group 'wl-draft)
1278
1279 ;; MIME Bcc.
1280 (defcustom wl-draft-mime-bcc-field-name "Ecc"
1281   "Field name for MIME-encapsulated Bcc."
1282   :type '(string :tag "Field Name")
1283   :group 'wl-draft)
1284
1285 (defcustom wl-draft-mime-bcc-body nil
1286   "Body string for MIME-encapsulated Bcc.
1287 If nil, a string `This is a blind carbon copy.' is used."
1288   :type '(choice (const :tag "default" nil)
1289                  (string :tag "Body"))
1290   :group 'wl-draft)
1291
1292 (defcustom wl-draft-disable-bcc-for-mime-bcc t
1293   "Disable Bcc while MIME-encapsulated Bcc."
1294   :type 'boolean
1295   :group 'wl-draft)
1296
1297 (defcustom wl-draft-disable-fcc-for-mime-bcc t
1298   "Disable Fcc while MIME-encapsulated Bcc."
1299   :type 'boolean
1300   :group 'wl-draft)
1301
1302 (defcustom wl-draft-config-alist nil
1303   "Alist of condition and actions for dynamical draft modification.
1304 First element of each list is some condition for the draft buffer (regular
1305 expression for header or elisp expression) and remaining elements indicate
1306 actions.
1307 If the first element is `reply' keyword, the next element be the condition
1308 for the message being replied, and remaining elements are actions.
1309
1310 The configuration is applied when `wl-draft-config-exec' is called, or
1311 applied automatically before sending message.
1312
1313 ex.
1314 '((\"^To: .*wl@lists.airs.net\"
1315    (\"From\" . my-from-address-for-wl-list)
1316    (\"Organization\" . my-organization-for-wl-list))
1317   (reply
1318    \"^To: .*hogehoge@aaa.ne.jp\"
1319    (\"From\" . \"Alternative Address <hogehoge@aaa.ne.jp>\")
1320    my-draft-config-function-hogehoge))
1321
1322 See also variable `wl-draft-parent-folder'."
1323   :type '(repeat (list (sexp :tag "Match")
1324                        (repeat
1325                         :inline t
1326                         (choice (cons (sexp :tag "Field(Variable)")
1327                                       (sexp :tag "Value"))
1328                                 (sexp :tag "Function")))))
1329   :group 'wl-draft
1330   :group 'wl-setting)
1331
1332 (defcustom wl-draft-config-matchone nil
1333   "*If non-nil, applied only one element of `wl-draft-config-alist'."
1334   :type 'boolean
1335   :group 'wl-draft
1336   :group 'wl-setting)
1337
1338 (defcustom wl-draft-elide-ellipsis "\n[...]\n\n"
1339   "*The string which is inserted for elided text."
1340   :type 'string
1341   :group 'wl-draft)
1342
1343 (defcustom wl-template-alist nil
1344   "Alist of template.
1345 First element of each list is a string specifies the name of the template.
1346 Remaining elements indicate actions. The format of actions is same as that
1347 of `wl-draft-config-alist'."
1348   :type '(repeat (list (string :tag "Name")
1349                        (repeat
1350                         :inline t
1351                         (choice (cons (sexp :tag "Field(Variable)")
1352                                       (sexp :tag "Value"))
1353                                 (sexp :tag "Function")))))
1354   :group 'wl-draft
1355   :group 'wl-setting)
1356
1357 (defcustom wl-template-visible-select t
1358   "*If non-nil, select template with visible."
1359   :type 'boolean
1360   :group 'wl-draft)
1361
1362 (defcustom wl-template-confirm nil
1363   "*If non-nil, require your confirmation when selected template."
1364   :type 'boolean
1365   :group 'wl-draft)
1366
1367 (defcustom wl-template-buffer-lines 7
1368   "*Lines of template buffer."
1369   :type 'integer
1370   :group 'wl-draft)
1371
1372 ;; queued sending.
1373 (defcustom wl-draft-enable-queuing t
1374   "*Non-nil enables queued sending."
1375   :type 'boolean
1376   :group 'wl-draft
1377   :group 'wl-pref)
1378
1379 (defcustom wl-draft-force-queuing nil
1380   "*Non-nil forces queued sending for mail and news."
1381   :type 'boolean
1382   :group 'wl-draft
1383   :group 'wl-pref)
1384
1385 (defcustom wl-draft-force-queuing-mail nil
1386   "*Non-nil forces queued sending for mail."
1387   :type 'boolean
1388   :group 'wl-draft
1389   :group 'wl-pref)
1390
1391 (defcustom wl-draft-force-queuing-news nil
1392   "*Non-nil forces queued sending for news."
1393   :type 'boolean
1394   :group 'wl-draft
1395   :group 'wl-pref)
1396
1397 (defcustom wl-draft-use-cache nil
1398   "*If non-nil, sending message is cached."
1399   :type 'boolean
1400   :group 'wl-draft
1401   :group 'wl-pref)
1402
1403 (defcustom wl-auto-flush-queue t
1404   "*If non-nil, sending queue is flushed when network status is toggled."
1405   :type 'boolean
1406   :group 'wl-draft
1407   :group 'wl-pref)
1408
1409 (defcustom wl-draft-buffer-style 'full
1410   "Style of draft buffer except for `wl-summary-reply' and `wl-summary-forward'
1411 'keep is to use current window, 'full is to use full frame window and
1412 'split is to split current window.
1413 If it is a function, it is called with the draft buffer as an argument."
1414   :type '(choice (const :tag "Keep window" keep)
1415                  (const :tag "Split window" split)
1416                  (const :tag "Full window" full)
1417                  (sexp :tag "Use Function"))
1418   :group 'wl-draft)
1419
1420 (defcustom wl-draft-reply-buffer-style 'split
1421   "Style of draft buffer for `wl-summary-reply' and `wl-summary-forward'
1422 'keep is to use message buffer window, 'full is to use full frame window and
1423 'split is to split message buffer window.
1424 If it is a function, it is called with the draft buffer as an argument."
1425   :type '(choice (const :tag "Keep window" keep)
1426                  (const :tag "Split window" split)
1427                  (const :tag "Full window" full)
1428                  (sexp :tag "Use Function"))
1429   :group 'wl-draft)
1430
1431 (defcustom wl-draft-reply-default-position 'body
1432   "Begining position of reply buffer.
1433 'body means the top of body.
1434 'bottom means the bottom of body.
1435 'top means the top of header.
1436 \"To\", \"Newsgroups\", \"Subject\" means the position of the header field.
1437 You can also set it to a list of setting.
1438 "
1439   :type '(choice (repeat
1440                   (choice
1441                    (const :tag "Top of body" body)
1442                    (const :tag "Bottom of body" bottom)
1443                    (const :tag "Top of header" top)
1444                    (const "To")
1445                    (const "Newsgroups")
1446                    (const "Subject")
1447                    (string :tag "Header Name")))
1448                  (const :tag "Top of body" body)
1449                  (const :tag "Bottom of body" bottom)
1450                  (const :tag "Top of header" top)
1451                  (const "To")
1452                  (const "Newsgroups")
1453                  (const "Subject")
1454                  (string :tag "Header Name"))
1455   :group 'wl-draft)
1456
1457 (defcustom wl-draft-queue-save-variables
1458   '(wl-envelope-from wl-from
1459     wl-smtp-posting-server wl-smtp-posting-user wl-smtp-posting-port
1460     wl-smtp-authenticate-type wl-smtp-connection-type
1461     wl-pop-before-smtp-server wl-pop-before-smtp-user wl-pop-before-smtp-port
1462     wl-pop-before-smtp-stream-type wl-pop-before-smtp-authenticate-type
1463     wl-nntp-posting-server wl-nntp-posting-server
1464     wl-nntp-posting-user wl-nntp-posting-port wl-nntp-posting-stream-type)
1465   "*Saving variables in queue info."
1466   :type '(repeat (sexp :tag "Variable"))
1467   :group 'wl-draft)
1468
1469 (defcustom wl-draft-sendlog t
1470   "*Keep send state in log if non-nil."
1471   :type 'boolean
1472   :group 'wl-draft)
1473
1474 (defcustom wl-draft-sendlog-max-size 20000
1475   "*Max file size of sendlog."
1476   :type '(choice (const :tag "Unlimited" nil)
1477                  integer)
1478   :group 'wl-draft)
1479
1480 (defcustom wl-summary-default-number-column 5
1481   "Number of columns in summary buffer."
1482   :type 'integer
1483   :group 'wl-summary)
1484
1485 (defcustom wl-summary-number-column-alist '(("\\*.*" . 6))
1486   "Alist of folder and its number column.
1487 If no matches, 'wl-summary-default-number-column' is used.
1488 ex.
1489 '((\"^%inbox@qmail-maildir\" . 9)
1490   (\"^-.*@news-server\" . 6))"
1491   :type '(repeat (cons (regexp :tag "Folder Regexp") integer))
1492   :group 'wl-summary)
1493
1494 (defcustom wl-summary-highlight t
1495   "Non-nil forces Summary buffer to be highlighted."
1496   :type 'boolean
1497   :group 'wl-summary
1498   :group 'wl-highlight)
1499
1500 (defcustom wl-summary-lazy-highlight (boundp 'window-scroll-functions)
1501   "Non-nil forces lazy summary highlighting using `window-scroll-functions'."
1502   :type 'boolean
1503   :group 'wl-summary
1504   :group 'wl-highlight)
1505
1506 (defcustom wl-summary-highlight-partial-threshold 1000
1507   "Summary is not highlighted entirely if there are lines more than this value.
1508 Available if only `wl-summary-lazy-highlight' is nil."
1509   :type 'integer
1510   :group 'wl-summary
1511   :group 'wl-highlight)
1512
1513 (defcustom wl-summary-partial-highlight-above-lines 30
1514   "If Summary has lines more than `wl-summary-highlight-partial-threshold',
1515 Summary lines are highlighted partialy above current position.
1516 Available if only `wl-summary-lazy-highlight' is nil."
1517   :type 'integer
1518   :group 'wl-summary
1519   :group 'wl-highlight)
1520
1521 (defcustom wl-summary-lazy-update-mark (boundp 'window-scroll-functions)
1522   "Non-nil forces lazy update mark using `window-scroll-functions'."
1523   :type 'boolean
1524   :group 'wl-summary)
1525
1526 (defcustom wl-summary-cache-use t
1527   "Non-nil forces wl-summary to use cache file."
1528   :type 'boolean
1529   :group 'wl-summary)
1530
1531 (defcustom wl-summary-auto-sync-marks t
1532   "Non-nil forces to synchronize unread/important marks."
1533   :type 'boolean
1534   :group 'wl-summary)
1535
1536 (defcustom wl-summary-cache-file ".wl-summary-cache"
1537   "*Cache file for summary mode contents."
1538   :type 'file
1539   :group 'wl-summary)
1540 (defcustom wl-summary-view-file ".wl-summary-view"
1541   "*Current summary view."
1542   :type 'file
1543   :group 'wl-summary)
1544 (defcustom wl-thread-top-file ".wl-thread-top"
1545   "*Current thread top entity... obsolete."
1546   :type 'file
1547   :group 'wl-summary)
1548 (defcustom wl-thread-entity-file ".wl-thread-entity"
1549   "*Thread entities."
1550   :type 'file
1551   :group 'wl-summary)
1552 (defcustom wl-thread-entity-list-file ".wl-thread-entity-list"
1553   "*Thread top entity list."
1554   :type 'file
1555   :group 'wl-summary)
1556
1557 (defcustom wl-print-buffer-function 'lpr-buffer
1558   "A function to print current buffer."
1559   :type 'function
1560   :group 'wl-pref)
1561
1562 (defcustom wl-ps-print-buffer-function
1563   (if window-system 'ps-print-buffer-with-faces 'ps-print-buffer)
1564   "A function to print current buffer with ps-print."
1565   :type 'function
1566   :group 'wl-pref)
1567
1568 ;;;; Preferences
1569 (defcustom wl-use-petname t
1570   "*Display petname in summary and default citation title."
1571   :type 'boolean
1572   :group 'wl-pref)
1573
1574 (defcustom wl-use-folder-petname
1575   '(modeline)
1576   "*List of situation using folder petname.
1577 Allowed situations are:
1578   modeline    : displayed on modeline.
1579   ask-folder  : displayed on minibuffer when ask folder.
1580   read-folder : can used for completion at `wl-summary-read-folder'."
1581   :type '(set (const modeline)
1582               (const ask-folder)
1583               (const read-folder))
1584   :group 'wl-summary
1585   :group 'wl-pref)
1586
1587 (defcustom wl-folder-petname-alist nil
1588   "A list of (realname . petname)."
1589   :type '(repeat (cons (string :tag "Realname") (string :tag "Petname")))
1590   :group 'wl-folder)
1591
1592 (defcustom wl-summary-weekday-name-lang
1593   (if (and (boundp 'current-language-environment)
1594            (string-equal "Japanese"
1595                          (symbol-value 'current-language-environment)))
1596       "ja" "en")
1597   "*Language to display week day."
1598   :type '(choice (const "ja")
1599                  (const "en")
1600                  (const "fr")
1601                  (const "de")
1602                  (string :tag "Other"))
1603   :group 'wl-summary
1604   :group 'wl-pref)
1605
1606 (defcustom wl-message-id-use-wl-from t
1607   "*Use `wl-from' for domain part of Message-ID if non-nil."
1608   :type 'boolean
1609   :group 'wl-pref)
1610
1611 (defcustom wl-local-domain nil
1612   "*Domain part of this client (without hostname).
1613 Set this if (system-name) does not return FQDN."
1614   :type '(choice (const :tag "Use System Name" nil)
1615                  string)
1616   :group 'wl-pref)
1617
1618 (defcustom wl-message-id-domain nil
1619   "*Specific domain part of Message-ID."
1620   :type '(choice (const :tag "Use System Name" nil)
1621                  string)
1622   :group 'wl-pref)
1623
1624 (defcustom wl-unique-id-suffix ".wl"
1625   "*Specific string in generated Message-ID
1626 which appear just before @."
1627   :type 'string
1628   :group 'wl-pref)
1629
1630 (defcustom wl-break-pages t
1631   "*Break Pages at ^L."
1632   :type 'boolean
1633   :group 'wl-pref)
1634
1635 (defcustom wl-message-use-header-narrowing t
1636   "Use header narrowing when non-nil."
1637   :type 'boolean
1638   :group 'wl-pref)
1639
1640 (defcustom wl-message-header-narrowing-fields '("to" "cc")
1641   "A list of field name to enable header narrowing."
1642   :type '(repeat string)
1643   :group 'wl-pref)
1644
1645 (defcustom wl-message-header-narrowing-lines 4
1646   "Line number to enable the header narrowing."
1647   :type 'integer
1648   :group 'wl-pref)
1649
1650 (defcustom wl-message-header-narrowing-string "..."
1651   "A string used for header narrowing truncation."
1652   :type 'string
1653   :group 'wl-pref)
1654
1655 (defvar wl-message-mode-line-format-spec-alist
1656   '((?f (if (memq 'modeline wl-use-folder-petname)
1657             (wl-folder-get-petname wl-message-buffer-cur-folder)
1658           wl-message-buffer-cur-folder))
1659     (?m (upcase (symbol-name
1660                  (get-text-property (point-min)
1661                                     'wl-message-display-mime-mode))))
1662     (?F wl-message-buffer-flag-indicator)
1663     (?n wl-message-buffer-cur-number))
1664   "An alist of format specifications for message buffer's mode-lines.
1665 Each element is a list of following:
1666 \(SPEC STRING-EXP)
1667 SPEC is a character for format specification.
1668 STRING-EXP is an expression to get string to insert.")
1669
1670 (defcustom wl-message-mode-line-format "Wanderlust: << %f / %n %F>> [%m]"
1671   "*A format string for message buffer's mode-line of Wanderlust.
1672 It may include any of the following format specifications
1673 which are replaced by the given information:
1674
1675 %f The folder name.
1676 %n The number of the message.
1677 %m The MIME analysis status.
1678 %F The global flag indicator."
1679   :group 'wl-pref
1680   :type 'string)
1681
1682 (defcustom wl-message-truncate-lines default-truncate-lines
1683   "*Truncate lines in Message Buffer."
1684   :type 'boolean
1685   :group 'wl-pref)
1686
1687 (defcustom wl-draft-truncate-lines default-truncate-lines
1688   "*Truncate lines in Draft Buffer."
1689   :type 'boolean
1690   :group 'wl-draft
1691   :group 'wl-pref)
1692
1693 (defcustom wl-message-scroll-amount nil
1694   "*Scroll amount by SPC key."
1695   :type '(choice (const :tag "scrolling by screenfuls" nil)
1696                  integer)
1697   :group 'wl-pref)
1698
1699 (defcustom wl-message-window-size '(1 . 4)
1700   "*Size of summary and message window.  cons cell of (Summary : Message)."
1701   :type '(cons integer integer)
1702   :group 'wl-pref)
1703
1704 (defcustom wl-message-sort-field-list '("Return-Path" "Received" "^To" "^Cc"
1705                                         "Newsgroups" "Subject" "^From")
1706   "*Sort order of header fields.  Each elements are regexp of field name."
1707   :type '(repeat (string :tag "Field Regexp"))
1708   :group 'wl-pref
1709   :group 'wl-setting)
1710
1711 (defcustom wl-message-ignored-field-list nil
1712   "All fields that match this list will be hidden in message buffer.
1713 Each elements are regexp of field-name.
1714 You can specify exceptions by `wl-message-visible-field-list'."
1715   :type '(repeat (string :tag "Field Regexp"))
1716   :group 'wl-pref
1717   :group 'wl-setting)
1718
1719 (defcustom wl-message-visible-field-list nil
1720   "All fields that match this list will be displayed in message buffer.
1721 Each elements are regexp of field-name.
1722 This variable overwhelm `wl-message-ignored-field-list' settings."
1723   :type '(repeat (string :tag "Field Regexp"))
1724   :group 'wl-pref
1725   :group 'wl-setting)
1726
1727 (defcustom wl-message-header-button-alist
1728   (` (("^\\(References\\|Message-Id\\|In-Reply-To\\):"
1729        "<[^>\n ]+>"
1730        0 wl-message-button-refer-article  0)
1731       ("^[^:]+:"
1732        "\\(<\\(url: \\)?news:\\([^>\n ]*\\)>\\)"
1733        1 wl-message-button-refer-article 3)))
1734   "Alist of headers and regexps to match buttons in message headers."
1735   :type '(repeat
1736           (list (regexp :tag "Header")
1737                 regexp
1738                 (integer :tag "Button")
1739                 (function :tag "Callback")
1740                 (repeat :tag "Data"
1741                         :inline t
1742                         (integer :tag "Regexp group"))))
1743   :group 'wl-pref)
1744
1745 (defcustom wl-message-body-button-alist
1746   '(("<mailto:[^>]+>" 0 'ignore 0 1024)
1747     ("<[^>\n ]+@[^>\n ]+>" 0 wl-message-button-refer-article 0 1024))
1748   "Alist of regexps to match buttons in message body."
1749   :type '(repeat
1750           (list regexp
1751                 (integer :tag "Button")
1752                 (function :tag "Callback")
1753                 (repeat :tag "Data"
1754                         :inline t
1755                         (integer :tag "Regexp group"))
1756                 (integer :tag "Max Length")))
1757   :group 'wl-pref)
1758
1759 (defcustom wl-folder-window-width 20
1760   "*Width of folder window."
1761   :type 'integer
1762   :group 'wl-folder
1763   :group 'wl-pref)
1764
1765 (defcustom wl-summary-recenter t
1766   "*Recenter on redisplay."
1767   :type 'boolean
1768   :group 'wl-summary
1769   :group 'wl-pref)
1770
1771 (defcustom wl-folder-use-frame nil
1772   "*Use dedicated frame for folder mode if non-nil."
1773   :type 'boolean
1774   :group 'wl-pref)
1775
1776 (defcustom wl-summary-use-frame nil
1777   "*Use dedicated frame for each folder summary if non-nil."
1778   :type 'boolean
1779   :group 'wl-pref)
1780
1781 (defcustom wl-stay-folder-window nil
1782   "*Stay folder window when folder is selected if non-nil."
1783   :type 'boolean
1784   :group 'wl-pref)
1785
1786 (defcustom wl-reply-subject-prefix "Re: "
1787   "*Prefix of the subject of the replied message.
1788 The value is string or string valued function to be evalueted in the target
1789 message buffer."
1790   :type '(choice string function)
1791   :group 'wl-draft
1792   :group 'wl-pref)
1793
1794 (defcustom wl-forward-subject-prefix "Forward: "
1795   "*Prefix of the subject of the forwarded message.
1796 The value is string or string valued function to be evalueted in the target
1797 message buffer."
1798   :type '(choice string function)
1799   :group 'wl-draft
1800   :group 'wl-pref)
1801
1802 (defcustom wl-draft-reply-use-address-with-full-name t
1803   "*Use address with full-name in the draft of replied message."
1804   :type 'boolean
1805   :group 'wl-pref
1806   :group 'wl-draft)
1807
1808 (defcustom wl-subject-re-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
1809   "*Regexp matching \"Re: \" in the subject line."
1810   :type 'regexp
1811   :group 'wl-draft
1812   :group 'wl-pref)
1813
1814 (defcustom wl-subject-forward-prefix-regexp "^[ \t]*\\(\\([Ff][Oo][Rr][Ww][Aa][Rr][Dd]\\|[Ff][Ww][Dd]\\|[Ff][Ww]\\)[:>][ \t]*\\)*[ \t]*"
1815   "*Regexp matching \"Forward: \", \"Fwd: \", or \"Fw: \" in the subject line."
1816   :type 'regexp
1817   :group 'wl-draft
1818   :group 'wl-pref)
1819
1820 (defcustom wl-folder-many-unsync-threshold 70
1821   "*Folders which contains messages more than this number are highlighted
1822 with wl-highlight-folder-many-face."
1823   :type 'integer
1824   :group 'wl-folder
1825   :group 'wl-pref)
1826
1827 (defcustom wl-fcc nil
1828   "*Folder Carbon Copy target initially added at creating draft buffer."
1829   :type '(choice (const :tag "disable" nil)
1830                  string function)
1831   :group 'wl-draft
1832   :group 'wl-pref)
1833
1834 (defcustom wl-fcc-force-as-read nil
1835   "*If non-nil, mark copied message as read."
1836   :type 'boolean
1837   :group 'wl-draft
1838   :group 'wl-pref)
1839
1840 (defcustom wl-bcc nil
1841   "*Blind Carbon Copy target initially added at creating draft buffer."
1842   :type '(choice (const :tag "disable" nil)
1843                  string)
1844   :group 'wl-draft
1845   :group 'wl-pref)
1846
1847 (defcustom wl-folder-desktop-name "Desktop"
1848   "*An implicit name of the folder top entity."
1849   :type 'string
1850   :group 'wl-folder
1851   :group 'wl-pref)
1852
1853 (defcustom wl-summary-indent-length-limit 46
1854   "*Limit of indent length for thread. Nil means unlimited"
1855   :type '(choice (const :tag "Unlimited" nil)
1856                  integer)
1857   :group 'wl-summary
1858   :group 'wl-pref)
1859
1860 (defcustom wl-summary-max-thread-depth 30
1861   "*If thread depth of the message is larger than this value, divide it."
1862   :type '(choice (const :tag "Unlimited" nil)
1863                  integer)
1864   :group 'wl-summary
1865   :group 'wl-pref)
1866
1867 (defcustom wl-summary-no-from-message "nobody@nowhere?"
1868   "*A string displayed in summary when no from field exists."
1869   :type 'string
1870   :group 'wl-summary)
1871
1872 (defcustom wl-summary-no-subject-message "(WL:No Subject in original.)"
1873   "*A string displayed in summary when no subject field exists."
1874   :type 'string
1875   :group 'wl-summary)
1876
1877 (defcustom wl-summary-cancel-message "I'd like to cancel my message."
1878   "*The body content of a cancel message."
1879   :type 'string
1880   :group 'wl-summary)
1881
1882 (defcustom wl-summary-width 80
1883   "*Set summary line width if non nil."
1884   :type '(choice (const :tag "Don't truncate" nil)
1885                  integer)
1886   :group 'wl-summary
1887   :group 'wl-pref)
1888
1889 (defcustom wl-summary-print-argument-within-window nil
1890   "*If non-nil, always print argument right side of window."
1891   :type 'boolean
1892   :group 'wl-summary
1893   :group 'wl-pref)
1894
1895 (defcustom wl-summary-pick-field-default "Body"
1896   "*Default field for pick."
1897   :type '(radio (const "From")
1898                 (const "Subject")
1899                 (const "To")
1900                 (const "Cc")
1901                 (const "Body")
1902                 (const "Since")
1903                 (const "Before")
1904                 (const "Last")
1905                 (const "First")
1906                 (string :tag "Other"))
1907   :group 'wl-summary)
1908
1909 (defcustom wl-mime-charset 'x-ctext
1910   "*MIME Charset for summary and message."
1911   :type 'symbol
1912   :group 'wl-summary
1913   :group 'wl-pref)
1914
1915 (defcustom wl-generate-mailer-string-function 'wl-generate-user-agent-string
1916   "A function for creating User-Agent field string."
1917   :type 'function
1918   :group 'wl-draft)
1919
1920 (defcustom wl-highlight-background-mode  (if (boundp 'hilit-background-mode)
1921                                              (or hilit-background-mode 'dark)
1922                                            'dark)
1923   "*Background mode of highlight (for Old Emacsen).  'dark or 'light."
1924   :type '(radio (const dark)
1925                 (const light))
1926   :group 'wl-highlight)
1927
1928 (defcustom wl-highlight-x-face-function nil
1929   "A function to display X-Face."
1930   :type 'function
1931   :group 'wl-highlight)
1932
1933 (defcustom wl-qmail-inject-program "/var/qmail/bin/qmail-inject"
1934   "Location of the qmail-inject program."
1935   :type '(string :tag "Program")
1936   :group 'wl-draft)
1937
1938 (defcustom wl-qmail-inject-args nil
1939   "Arguments passed to qmail-inject programs.
1940 This should be a list of strings, one string for each argument.
1941
1942 For e.g., if you wish to set the envelope sender address so that bounces
1943 go to the right place or to deal with listserv's usage of that address, you
1944 might set this variable to '(\"-f\" \"you@some.where\")."
1945   :type '(repeat (string :tag "Argument"))
1946   :group 'wl-draft)
1947
1948 (defcustom wl-rejected-letter-start
1949   "^[\t ]*-+[\t ]+\\(\\(original\\|\\(\\(the \\)?unsent\\)\\) message\\( follows\\)?[\t ]+-+[\t ]*\\|Below this line is a copy of the message\\..*\\)$"
1950   "Regexp specifying the beginning of the wrapper around a returned letter.
1951 This wrapper is generated by the mail system when rejecting a letter."
1952   :type 'regexp
1953   :group 'wl-draft)
1954
1955 (defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
1956   "*All headers that match this regexp will be deleted when forwarding a message."
1957   :type 'regexp
1958   :group 'wl-draft)
1959
1960 (defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
1961   "*All headers that match this regexp will be deleted when resending a message."
1962   :type 'regexp
1963   :group 'wl-draft)
1964
1965 (defcustom wl-draft-preview-attributes t
1966   "Non-nil forces to preview the attributes in the `wl-draft-preview-message'.
1967 Attributes specified in the `wl-draft-preview-attributes-list' are displayed."
1968   :type 'boolean
1969   :group 'wl-draft)
1970
1971 (defcustom wl-draft-preview-attributes-list '(recipients
1972                                               envelope-from
1973                                               smtp-posting-server
1974                                               smtp-posting-port)
1975   "*Attribute symbols to display in the draft preview.
1976 Candidates are following:
1977 `recipients'
1978 `envelope-from'
1979 `smtp-posting-server'
1980 `smtp-posting-port'
1981 `nntp-posting-server'
1982 `nntp-posting-port'
1983 Also variables which begin with `wl-' can be specified
1984 \(`wl-' have to be removed\)"
1985   :type '(repeat symbol)
1986   :group 'wl-draft)
1987
1988 (defcustom wl-draft-preview-attributes-buffer-lines 5
1989   "*Buffer height for the draft attribute preview."
1990   :type 'integer
1991   :group 'wl-draft)
1992
1993 (defcustom wl-draft-preview-attributes-buffer-name "*Preview Attributes*"
1994   "*Buffer name for the draft attribute preview."
1995   :type 'string
1996   :group 'wl-draft)
1997
1998 (defcustom wl-refile-default-from-folder "+from"
1999   "*Folder name to refile by `wl-refile-guess-by-from'."
2000   :type '(string :tag "Folder")
2001   :group 'wl-pref)
2002
2003 (defcustom wl-summary-auto-refile-skip-marks
2004   (list wl-summary-new-uncached-mark
2005         wl-summary-new-cached-mark
2006         wl-summary-unread-uncached-mark
2007         wl-summary-unread-cached-mark)
2008   "Persistent marks to skip auto-refiling."
2009   :type '(repeat (string :tag "Mark"))
2010   :group 'wl-summary)
2011
2012 (defcustom wl-summary-reserve-mark-list
2013   (list "o" "O" "D" "d" "i")
2014   "If a message is already marked as temporal marks in this list,
2015 the message is not marked by any mark command."
2016   :type '(repeat (string :tag "Temp-Mark"))
2017   :group 'wl-summary)
2018
2019 (defcustom wl-summary-skip-mark-list
2020   (list "D" "d")
2021   "If a message is already marked as temporal marks in this list,
2022 the message is skipped at cursor move."
2023   :type '(repeat (string :tag "Temp-Mark"))
2024   :group 'wl-summary)
2025
2026 (defcustom wl-summary-incorporate-marks
2027   (list wl-summary-new-uncached-mark
2028         wl-summary-unread-uncached-mark)
2029   "Persistent marks to prefetch at `wl-summary-incorporate'."
2030   :type '(repeat (string :tag "Mark"))
2031   :group 'wl-summary)
2032
2033 (defcustom wl-refile-rule-alist nil
2034   "Refile rule alist.
2035 e.x.
2036 '((\"From\"
2037    (\"teranisi@isl.ntt.co.jp\" . \"+teranisi\"))
2038   (\"x-ml-name\"
2039    (\"^Wanderlust\"    . \"+wl\")
2040    (\"^Elips\" . \"+elips\")))"
2041   :type '(repeat (list (string :tag "Field")
2042                        (repeat :inline t
2043                                (cons (regexp :tag "Value")
2044                                      (string :tag "Folder")))))
2045   :group 'wl-pref)
2046
2047 (defcustom wl-strict-diff-folders nil
2048   "List of regexps matching folders of which Wanderlust seriously counts unsync messages."
2049   :type '(choice (const :tag "Off" nil)
2050                  (repeat (regexp :tag "Folder Regexp")))
2051   :group 'wl-folder)
2052
2053 (defcustom wl-folder-use-server-diff t
2054   "Checked unread message number on IMAP4 server.
2055 Only IMAP4 folders have an effect."
2056   :type 'boolean
2057   :group 'wl-folder)
2058
2059 (defcustom wl-force-fetch-folders nil
2060   "Non-nil forces to fetch subfolders when user opened an 'access' folder."
2061   :type '(choice (const :tag "off" nil)
2062                  (const :menu-tag "on" t)
2063                  (repeat (regexp :tag "Folder Regexp")))
2064   :group 'wl-folder)
2065
2066 (defcustom wl-auto-check-folder-name nil
2067   "*A folder, a group or a list of folders and groups specified which
2068 will be automatically checked at the startup time."
2069   :type '(choice (string :tag "Folder")
2070                  (repeat (string :tag "Folder"))
2071                  (const none))
2072   :group 'wl-folder)
2073
2074 (defcustom wl-auto-uncheck-folder-list '("\\$.*")
2075   "All folders that match this list won't be checked at the startup
2076 time even if they are embedded in some groups specified by
2077 wl-auto-check-folder-name.
2078 Those folders are also skipped when you check on the Desktop.
2079 This value is preceded by wl-auto-check-folder-list.
2080 Each elements are regexp of folder name."
2081   :type '(repeat (regexp :tag "Folder Regexp"))
2082   :group 'wl-folder)
2083
2084 (defcustom wl-auto-check-folder-list nil
2085   "A list of patterns for exceptional folders against
2086 wl-auto-uncheck-folder-list.
2087 Each elements are regexp of folder name."
2088   :type '(repeat (regexp :tag "Folder Regexp"))
2089   :group 'wl-folder)
2090
2091 (defcustom wl-show-plug-status-on-modeline t
2092   "If it is non-nil, show plugged status in modeline."
2093   :type 'boolean
2094   :group 'wl-highlight)
2095
2096 (defcustom wl-plug-state-indicator-on  " [ON] "
2097   "String used to show plugged status ON."
2098   :type 'string
2099   :group 'wl-highlight)
2100
2101 (defcustom wl-plug-state-indicator-off " [--] "
2102   "String used to show plugged status OFF."
2103   :type 'string
2104   :group 'wl-highlight)
2105
2106 (defcustom wl-biff-check-folder-list nil
2107   "All folders that match this list are automatically checked
2108 every intervals specified by wl-biff-check-interval."
2109   :type '(repeat (regexp :tag "Folder"))
2110   :group 'wl-highlight)
2111
2112 (defcustom wl-biff-check-interval 40
2113   "Number of seconds between updates of new mails in the mode line."
2114   :type 'integer
2115   :group 'wl-highlight)
2116
2117 (defcustom wl-biff-use-idle-timer nil
2118   "Non-nil to use idle timer instead of strict timer for wl-biff"
2119   :type 'boolean
2120   :group 'wl-highlight)
2121
2122 (defcustom wl-biff-state-indicator-on (if (and (featurep 'xemacs)
2123                                                (not (featurep 'mule)))
2124                                           "[Mail]"
2125                                         (decode-coding-string
2126                                          ;; Youbin mark
2127                                          (read "\"[\e$B\\\")\e(B]\"")
2128                                          (if (boundp 'MULE)
2129                                              '*iso-2022-jp*
2130                                            'iso-2022-jp)))
2131   "String used to show biff status ON."
2132   :type 'string
2133   :group 'wl-highlight)
2134
2135 (defcustom wl-biff-state-indicator-off (if (and (featurep 'xemacs)
2136                                                 (not (featurep 'mule)))
2137                                            "[--]"
2138                                           ;; Japanese short hyphen
2139                                          "[\e$B!>\e(B]")
2140   "String used to show biff status OFF."
2141   :type 'string
2142   :group 'wl-highlight)
2143
2144 (defcustom wl-mode-line-display-priority-list '(biff plug title)
2145   "Displaying order of items to be shown in modeline.  The first item will
2146 be placed in the leftmost.  The significant items are `biff' and `plug';
2147 otherwise, e.g. `title', corresponds to the things except for the biff
2148 staus nor the plugged status.  The default order is '(biff plug title)
2149 even if the value of this option is set to nil.  Here are some samples:
2150
2151 ;; Plugged status first:
2152 \(setq wl-mode-line-display-priority-list '(plug))
2153
2154 ;; Biff status, Title of Wanderlust, Plugged status:
2155 \(setq wl-mode-line-display-priority-list '(biff title plug))
2156
2157 "
2158   :type '(repeat (radio (const :format "%v " biff)
2159                         (const :format "%v " plug)
2160                         (sexp :tag "Other" :value title)))
2161   :group 'wl-highlight)
2162
2163 (defcustom wl-interactive-send t
2164   "*If non-nil, require your confirmation when sending draft message."
2165   :type 'boolean
2166   :group 'wl-pref
2167   :group 'wl-setting)
2168
2169 (defcustom wl-interactive-exit t
2170   "*If non-nil, require your confirmation when exiting WL."
2171   :type 'boolean
2172   :group 'wl-pref)
2173
2174 (defcustom wl-summary-move-order 'unread
2175   "*The order of priority when move in summary mode.
2176 If this variable is `unread', precede \"U\", \"u\", \"N\", \"n\" mark.
2177 If this variable is `new', precede \"N\", \"n\" mark."
2178   :type '(radio (const new)
2179                 (const unread))
2180   :group 'wl-summary
2181   :group 'wl-setting)
2182
2183 (defvar wl-summary-move-direction-downward t)
2184
2185 (defcustom wl-summary-move-direction-toggle t
2186   "*If non-nil, search direction for the next message will be determined
2187 depends on previous search direction.
2188 It uses wl-summary-move-direction-downward as a direction flag."
2189   :type 'boolean
2190   :group 'wl-summary)
2191
2192 (defcustom wl-auto-select-first nil
2193   "*If non-nil, display selected first message when enter summary."
2194   :type 'boolean
2195   :group 'wl-pref
2196   :group 'wl-setting)
2197
2198 (defcustom wl-auto-prefetch-first nil
2199   "*If non-nil, prefetch selected first message when enter summary."
2200   :type 'boolean
2201   :group 'wl-pref
2202   :group 'wl-setting)
2203
2204 (defcustom wl-auto-select-next nil
2205   "*If non-nil, offer to go to the next folder from the end of the previous.
2206 If the value is the symbol `unread', go to the next folder
2207 that no unread message exists.  If the value is the symbol `skip-no-unread',
2208 skip the folder that no unread message exists.
2209
2210 See also variable `wl-summary-next-no-unread-command'."
2211   :type '(radio (const :tag "off" nil)
2212                 (const :tag "on" t)
2213                 (const unread)
2214                 (const skip-no-unread))
2215   :group 'wl-pref
2216   :group 'wl-setting)
2217
2218 (defcustom wl-message-buffer-name " *WL:Message*"
2219   "*Buffer name for message buffers."
2220   :group 'wl-pref
2221   :group 'wl-setting)
2222
2223 (defcustom wl-message-buffer-prefetch-folder-type-list '(imap4 nntp)
2224   "*All folder types that match this list prefetch next message,
2225 and reserved buffer cache."
2226   :type `(choice (const :tag "all" t)
2227                  (const :tag "never" nil)
2228                  (set (const localdir)
2229                       (const localnews)
2230                       (const maildir)
2231                       (const imap4)
2232                       (const nntp)
2233                       (const pop3)
2234                       (const shimbun)
2235                       (const nmz)
2236                       (const archive)
2237                       (const mark)
2238                       (const cache)))
2239   :group 'wl-pref)
2240
2241 (defcustom wl-message-buffer-prefetch-folder-list nil
2242   "*All folders that match this list prefetch next message,
2243 and reserved buffer cache.
2244 e.x.
2245 '(\"^[-%]\")"
2246   :type '(repeat (regexp :tag "Folder Regexp"))
2247   :group 'wl-pref)
2248
2249 (defcustom wl-message-buffer-prefetch-depth 1
2250   "*Depth of buffer prefetch in summary mode."
2251   :type 'integer
2252   :group 'wl-pref)
2253
2254 (defcustom wl-message-buffer-prefetch-idle-time 1
2255   "*Idle time of buffer prefetch."
2256   :type 'number
2257   :group 'wl-pref)
2258
2259 (defcustom wl-message-buffer-prefetch-threshold 30000
2260   "*Quit forward cache prefetching if message size is larger than this value."
2261   :type 'integer
2262   :group 'wl-pref)
2263
2264 (defcustom wl-summary-always-sticky-folder-list nil
2265   "All folders that match this list has sticky summary.
2266 Each elements are regexp of folder name."
2267   :type '(radio (const :tag "none" nil)
2268                 (const :tag "all" t)
2269                 (repeat (regexp :tag "Folder Regexp")))
2270   :group 'wl-pref)
2271
2272 (defcustom wl-summary-force-prefetch-folder-list nil
2273     "All folders that match this list are prefetched.
2274 Each elements are regexp of folder name."
2275     :type '(radio (const :tag "none" nil)
2276                   (const :tag "all" t)
2277                   (repeat (regexp :tag "Folder Regexp")))
2278     :group 'wl-pref)
2279
2280 (defcustom wl-no-save-folder-list '("^/.*$" "^\\[.*$")
2281   "All folders that match this list won't save its msgdb.
2282 Each elements are regexp of folder name."
2283   :type '(repeat (regexp :tag "Folder Regexp"))
2284   :group 'wl-pref)
2285
2286 (defcustom wl-save-folder-list nil
2287   "All folders that match this list save its msgdb.
2288 Each elements are regexp of folder name."
2289   :type '(repeat (regexp :tag "Folder Regexp"))
2290   :group 'wl-pref)
2291
2292 (defcustom wl-folder-mime-charset-alist
2293   '(("^-alt\\.chinese" . big5)
2294     ("^-relcom\\." . koi8-r)
2295     ("^-tw\\." . big5)
2296     ("^-han\\." . euc-kr)
2297     ("@sponichi" . shift_jis)
2298     ("@2ch" . shift_jis))
2299   "Charset alist.  If no match, `wl-mime-charset' is used."
2300   :type '(repeat (cons (regexp :tag "Folder Regexp") (symbol :tag "Charset")))
2301   :group 'wl-summary
2302   :group 'wl-pref)
2303
2304 (defcustom wl-folder-weekday-name-lang-alist
2305   '(("^-alt\\.chinese" . "en")
2306     ("^-relcom\\." . "en")
2307     ("^-tw\\." . "en")
2308     ("^-han\\." . "en"))
2309   "Weekday name lang alist.
2310 If no match, `wl-summary-weekday-name-lang' is used.
2311 e.x.
2312 '((\"xemacs-beta$\" . \"en\")
2313   (\"^-fj\" . \"ja\"))"
2314   :type '(repeat (cons (regexp :tag "Folder Regexp")
2315                        (choice (const "ja")
2316                                (const "en")
2317                                (const "fr")
2318                                (const "de")
2319                                (string :tag "Other"))))
2320   :group 'wl-pref)
2321
2322 (defcustom wl-folder-thread-indent-set-alist
2323   '(("^-alt\\.chinese" . (2 "+" "+" "|" "-" " "))
2324     ("^-relcom\\." . (2 "+" "+" "|" "-" " "))
2325     ("^-tw\\." . (2 "+" "+" "|" "-" " "))
2326     ("^-han\\." . (2 "+" "+" "|" "-" " ")))
2327   "Thread indent set alist.
2328 If no match, following indent set is used.
2329 \(wl-thread-indent-level
2330  wl-thread-have-younger-brother-str
2331  wl-thread-youngest-child-str
2332  wl-thread-vertical-str
2333  wl-thread-horizontal-str
2334  wl-thread-space-str)
2335 e.x.
2336 '((\"xemacs-beta$\" . (2 \"+\" \"+\" \"|\" \"-\" \" \")))"
2337   :type '(repeat (cons (regexp :tag "Folder Regexp")
2338                        (group (integer :tag "Indent")
2339                               (string :tag "Yonger Brother")
2340                               (string :tag "Yonger Child")
2341                               (string :tag "Vertical")
2342                               (string :tag "Horizontal")
2343                               (string :tag "Space"))))
2344   :group 'wl-pref)
2345
2346 (defcustom wl-folder-sync-range-alist
2347   (list (cons 'wl-require-update-all-folder-p "all"))
2348   "*Default sync range alist.  If no matches, `wl-default-sync-range' is used."
2349   :type '(repeat (cons (choice (regexp :tag "Folder Regexp")
2350                                (symbol :tag "A function"))
2351                        (choice (const "update")
2352                                (const "all")
2353                                (const "rescan")
2354                                (const "no-sync")
2355                                (const :tag "none" nil))))
2356   :group 'wl-pref)
2357
2358 (defcustom wl-default-sync-range  "update"
2359   "*Default sync range."
2360   :type '(choice (const "update")
2361                  (const "all")
2362                  (const "rescan")
2363                  (const "no-sync")
2364                  (const :tag "none" nil))
2365   :group 'wl-pref)
2366
2367 (defcustom wl-ask-range t
2368   "*If non-nil, ask for a range for summary synchronization.
2369 If nil, always use default."
2370   :type 'boolean
2371   :group 'wl-pref)
2372
2373 (defcustom wl-folder-process-duplicates-alist nil
2374   "Specify process type of duplicated messages.
2375 It should be a list of cons cell like: (REGEXP . TYPE)
2376 REGEXP is a regular expression string of folder name.
2377 TYPE is one of the symbols `hide' or `read'.
2378 `hide' means hide duplicated messages.
2379 `read' means mark as read duplicated messages.
2380 If TYPE is nil, do nothing for duplicated messages."
2381   :type '(repeat (cons (regexp :tag "Folder regexp")
2382                        (choice (const :tag "Hide" hide)
2383                                (const :tag "Mark as read" read))))
2384   :group 'wl-folder)
2385
2386 (defcustom wl-folder-move-cur-folder nil
2387   "*Non-nil, move cursor to current folder on folder buffer when goto folder."
2388   :type 'boolean
2389   :group 'wl-folder)
2390
2391 (defcustom wl-folder-check-async t
2392   "*Check the folder asynchronous."
2393   :type 'boolean
2394   :group 'wl-folder)
2395
2396 (defcustom wl-folder-notify-deleted nil
2397   "*Non-nil, display negative number on folder-mode when message is deleted
2398 in folder. If the value is 'sync, msgdb would be synchronized."
2399   :type '(choice (const :tag "off" nil)
2400                  (const :tag "on" t)
2401                  (const sync))
2402   :group 'wl-folder)
2403
2404 (defcustom wl-summary-exit-next-move t
2405   "*Non-nil, move to next-unsync or next-entity when exit summary."
2406   :type 'boolean
2407   :group 'wl-summary)
2408
2409 (defcustom wl-summary-next-no-unread-command
2410   '(wl-summary-read wl-summary-down wl-summary-up)
2411   "*Command list available when the value of `wl-auto-select-next' is 'unread
2412 or 'skip-no-unread."
2413   :type '(repeat function)
2414   :group 'wl-summary)
2415
2416 (defcustom wl-summary-search-via-nntp 'confirm
2417   "*Non-nil, search message via nntp after `wl-summary-jump-to-msg-by-message-id'.
2418 If the value is 'confirm, confirm before search, 'force to search via nntp
2419 regardless of current folder type."
2420   :type '(choice (const :tag "confirm" confirm)
2421                  (const :tag "always" force)
2422                  (const :tag "in nntp folder" t)
2423                  (const :tag "never" nil))
2424   :group 'wl-summary)
2425
2426 (defcustom wl-summary-keep-cursor-command
2427   '(wl-summary-goto-folder wl-summary-goto-last-visited-folder)
2428   "*Command list to keep cursor position when folder is changed to
2429 already existing summary."
2430   :type '(repeat function)
2431   :group 'wl-summary)
2432
2433 (defcustom wl-summary-showto-folder-regexp nil
2434   "Regexp specifying the folder that shows the To (or Newsgroups) field as
2435 Sender information in summary mode."
2436   :type '(choice (const :tag "none" nil)
2437                  regexp)
2438   :group 'wl-summary)
2439
2440 (defcustom wl-summary-save-file-suffix ".eml"
2441   "Suffix for the saved file name."
2442   :type 'string
2443   :group 'wl-summary)
2444
2445 (defcustom wl-folder-removed-mark "#<removed>"
2446   "Mark for removed folder."
2447   :type 'string
2448   :group 'wl-folder)
2449
2450 (defcustom wl-folder-unsubscribe-mark "#"
2451   "Mark for unsubscribe folder."
2452   :type 'string
2453   :group 'wl-folder)
2454
2455 (defcustom wl-dispose-folder-alist '(("^-" . remove)
2456                                      ("^@" . remove))
2457   "*Alist of folder and dispose policy.
2458 Each element is (folder-regexp . policy).
2459
2460 The policy is one of the followings:
2461 'remove or
2462 'null     : remove message.
2463 string    : refile to the specified folder.
2464 'trash or
2465 otherwise : refile to the `wl-trash-folder'.
2466 ex.
2467 '((\"^%\" . \"%#mh/trash\")
2468   (\"^-\" . remove)
2469   (\"^\\\\+\" . trash))"
2470   :type '(repeat (cons (regexp :tag "Folder Regexp")
2471                        (choice :tag "Policy"
2472                                (const remove)
2473                                (const :tag "remove(null)" null)
2474                                (const trash)
2475                                (const :tag "trash(other)" trash)
2476                                (string :tag "Folder"))))
2477   :group 'wl-folder)
2478
2479 (defcustom wl-folder-hierarchy-access-folders '("^-[^\\.]*\\(:\\|@\\|$\\)"
2480                                                 "^@$" "^'$")
2481   "*Access group REGEXPs to make hierarchy structure."
2482   :type '(repeat (string :tag "Regexp"))
2483   :group 'wl-folder)
2484
2485 (defcustom wl-folder-init-load-access-folders nil
2486   "*Access group folders to load folder list on `wl-folder-init'.
2487 If this variable is non-nil,
2488 `wl-folder-init-no-load-access-folders' will be ignored."
2489   :type '(repeat (regexp :tag "Folder Regexp"))
2490   :group 'wl-folder)
2491
2492 (defcustom wl-folder-init-no-load-access-folders nil
2493   "*Access group folders to not load folder list on `wl-folder-init'.
2494 If `wl-folder-init-load-access-folders' is non-nil,
2495 this variable will be ignored."
2496   :type '(repeat (regexp :tag "Folder Regexp"))
2497   :group 'wl-folder)
2498
2499 (defcustom wl-folder-access-subscribe-alist nil
2500   "*Subscribe folders to fetching folder entries.
2501 Each element is (group-regexp (subscribe folder-regexp ...)).
2502 If subscribe is non-nil, subscribe when match folder-regexp.
2503 If subscribe is nil, unsubscribe when match folder-regexp.
2504
2505 ex.
2506 '((\"^-fj$\"   . (t   \"^-fj\\\\.\\\\(editor\\\\|mail\\\\|net\\\\|news\\\\)\"))
2507   (\"^-comp$\" . (t   \"^-comp\\\\.unix\" \"^-comp\\\\.sys\"))
2508   (\"^-$\"     . (nil \"^-alt\" \"^-rec\")))"
2509   :type '(repeat (cons (regexp :tag "Folder Regexp")
2510                        (list (boolean :tag "Subscribed")
2511                              (repeat :inline t
2512                                      (regexp :tag "Folder Regexp")))))
2513   :group 'wl-folder)
2514
2515 ;;; For Folder Manager
2516
2517 (defcustom wl-interactive-save-folders t
2518   "*Non-nil require your confirmation when save folders."
2519   :type 'boolean
2520   :group 'wl-folder
2521   :group 'wl-setting)
2522
2523 (defcustom wl-fldmgr-make-backup t
2524   "*Non-nil make backup file when save folders."
2525   :type 'boolean
2526   :group 'wl-folder)
2527
2528 (defcustom wl-fldmgr-folders-indent "\t"
2529   "*Indent string for folders file."
2530   :type 'string
2531   :group 'wl-folder)
2532
2533 (defcustom wl-fldmgr-sort-function 'wl-fldmgr-sort-standard
2534   "*A function to sort folder."
2535   :type 'function
2536   :group 'wl-folder)
2537
2538 (defcustom wl-fldmgr-sort-group-first t
2539   "*Non-nil Group folder is first when sort."
2540   :type 'function
2541   :group 'wl-folder)
2542
2543 (defcustom wl-fldmgr-add-complete-with-current-folder-list nil
2544   "*If non-nil, completion for adding folder refers current folder list."
2545   :type 'boolean
2546   :group 'wl-folder)
2547
2548 (defcustom wl-fldmgr-make-filter-default "Body"
2549   "*Default filter key while making filter on Folder."
2550   :type '(radio (const "From")
2551                 (const "Subject")
2552                 (const "To")
2553                 (const "Cc")
2554                 (const "Body")
2555                 (const "Since")
2556                 (const "Before")
2557                 (const "Last")
2558                 (const "First")
2559                 (string :tag "Other"))
2560   :group 'wl-folder)
2561
2562 (defcustom wl-fldmgr-allow-rename-access-group nil
2563   "*If non-nil, allow to rename folder in access group."
2564   :type 'boolean
2565   :group 'wl-folder)
2566
2567 ;;; For Expire and Archive
2568
2569 (defcustom wl-expire-alist nil
2570   "Alist to decide a policy for expire.
2571 Each element is (folder-regexp (number or date) policy).
2572
2573 The policy is one of the followings:
2574 'remove  : remove messsage.
2575 'trash   : refile `wl-trash-folder'.
2576 string   : refile string folder.
2577 function : call function.
2578
2579 ex.
2580 '((\"^\\\\+ml/wl$\"             (number 500 510) wl-expire-archive-number1 t)
2581   (\"^\\\\+ml/\"                (number 300 305) wl-expire-archive-number2)
2582   (\"^\\\\+outbox$\"            (number 300) \"$outbox;lha\")
2583   (\"^\\\\(\\\\+tmp\\\\|\\\\+trash\\\\)$\"      (date 7) remove)
2584   (\"^\\\\+misc$\"              (date 14) trash))"
2585   :type '(repeat (choice (list :tag "No-match"
2586                                (regexp :tag "Folder Regexp")
2587                                (const nil))
2588                          (list :tag "Match"
2589                                (regexp :tag "Folder Regexp")
2590                                (list (radio :value number
2591                                             (const number)
2592                                             (const date))
2593                                      (list :inline t
2594                                            integer
2595                                            (repeat :inline t integer)))
2596                                (choice :tag "Policy"
2597                                        :value remove
2598                                        (const remove)
2599                                        (const trash)
2600                                        (string :tag "folder")
2601                                        function)
2602                                (repeat :inline t
2603                                        :tag "Arg for function"
2604                                        sexp))))
2605   :group 'wl-expire)
2606
2607 (defcustom wl-archive-alist '((".*" wl-archive-number1))
2608   "Alist to decide a policy for archive.
2609 Each element is (folder-regexp policy(function)).
2610
2611 ex.
2612 '((\"\\\\+work$\" wl-archive-date)
2613   (\"\\\\+ml/\"   wl-archive-number1)
2614   (\".*\"       wl-archive-number2))"
2615   :type '(repeat (list (regexp :tag "Folder Regexp")
2616                        function
2617                        (repeat :inline t
2618                                (sexp :tag "Argument"))))
2619   :group 'wl-expire)
2620
2621 (defcustom wl-summary-expire-reserve-marks
2622   (list wl-summary-flag-mark
2623         wl-summary-new-uncached-mark
2624         wl-summary-new-cached-mark
2625         wl-summary-unread-uncached-mark
2626         wl-summary-unread-cached-mark)
2627   "Permanent marks of reserved message when expire.
2628 Don't reserve temporary mark message.
2629
2630 ex.
2631 'all  : reserved all permanent marks.
2632 'none : not reserve permanent marks.
2633 list  : reserved specified permanent marks."
2634   :type '(repeat (string :tag "Mark"))
2635   :group 'wl-expire)
2636
2637 (defcustom wl-expire-number-with-reserve-marks nil
2638   "If non-nil, include reserve message when expire by number."
2639   :type 'boolean
2640   :group 'wl-expire)
2641
2642 (defcustom wl-expire-add-seen-list t
2643   "*If non-nil, add seen message list when refile message at expire."
2644   :type 'boolean
2645   :group 'wl-expire)
2646
2647 (defcustom wl-expire-use-log nil
2648   "*If non-nil, write a log when expired."
2649   :type 'boolean
2650   :group 'wl-expire)
2651
2652 (defcustom wl-expire-folder-update-msgdb t
2653   "*Non-nil update summary msgdb when expire on folder mode."
2654   :type 'boolean
2655   :group 'wl-expire)
2656
2657 ;; for wl-expire-archive-{number1|number2}
2658 (defcustom wl-expire-archive-files 100
2659   "*The number of one archive folder."
2660   :type 'integer
2661   :group 'wl-expire)
2662
2663 ;; for wl-expire-archive-{number1|number2|date}
2664 (defcustom wl-expire-archive-get-folder-function
2665   'wl-expire-archive-get-folder
2666   "*A function to get archive folder name."
2667   :type 'function
2668   :group 'wl-expire)
2669
2670 (defcustom wl-expire-delete-oldmsg-confirm t
2671   "*If non-nil, require your confirmation when delete old message."
2672   :type 'boolean
2673   :group 'wl-expire)
2674
2675 ;; for wl-expire-archive-get-folder
2676 (defcustom wl-expire-archive-folder-type 'zip
2677   "*Archiver type of archive folder."
2678   :type '(radio (const zip)
2679                 (const lha)
2680                 (const zoo)
2681                 (const rar)
2682                 (const tar)
2683                 (const tgz)
2684                 (symbol :tag "Other"))
2685   :group 'wl-expire)
2686
2687 (defcustom wl-expire-archive-folder-name-fmt "%s-%%05d;%s" ;; $folder-00100;zip
2688   "*A format string for archive folder name."
2689   :type 'string
2690   :group 'wl-expire)
2691
2692 (defcustom wl-expire-archive-folder-num-regexp "-\\([0-9]+\\);"
2693   "*A regexp string for archive folder name."
2694   :type 'string
2695   :group 'wl-expire)
2696
2697 (defcustom wl-expire-archive-date-folder-name-fmt "%s-%%04d%%02d;%s"
2698                                                 ;; $folder-199812;zip
2699   "*A format string for archive date folder name."
2700   :type 'string
2701   :group 'wl-expire)
2702
2703 (defcustom wl-expire-archive-date-folder-num-regexp "-\\([0-9]+\\);"
2704   "*A regexp string for archive date folder name."
2705   :type 'string
2706   :group 'wl-expire)
2707
2708 (defcustom wl-expire-archive-folder-prefix nil
2709   "*Prefix for archive folder."
2710   :type '(radio (const :tag "nothing" nil)
2711                 (const :tag "full" t)
2712                 (const short))
2713   :group 'wl-expire)
2714
2715 ;;;; Highlights.
2716
2717 ;; highilght about summary
2718 (defcustom wl-highlight-max-summary-lines 10000
2719   "*If the summary is larger than this lines, don't highlight it."
2720   :type 'integer
2721   :group 'wl-highlight)
2722
2723 ;; highilght about draft and message
2724 (defcustom wl-highlight-body-too t
2725   "*In addition to header, highlight the body too.  if non nil."
2726   :type 'boolean
2727   :group 'wl-highlight)
2728
2729 (defcustom wl-highlight-message-header-alist
2730   '(("Subject[ \t]*:" . wl-highlight-message-important-header-contents)
2731     ("From[ \t]*:\\|To[ \t]*:" . wl-highlight-message-important-header-contents2)
2732     ("X-[^ \t]*:\\|User-Agent[ \t]*:" . wl-highlight-message-unimportant-header-contents))
2733   ""
2734   :type '(repeat (cons regexp face))
2735   :group 'wl-highlight)
2736
2737 (defcustom wl-highlight-citation-prefix-regexp
2738   "^[>|:} ]*[>|:}]\\([^ \n>]*>\\)?\\|^[^ <\n>]*>"
2739   "All lines that match this regexp will be highlighted with
2740  `wl-highlight-message-cited-text-*' face."
2741   :type 'regexp
2742   :group 'wl-highlight)
2743
2744 (defcustom wl-highlight-highlight-citation-too nil
2745   "*Whether the whole citation line should go in the
2746 `wl-highlight-citation-face' face.
2747 If nil, the text matched by `wl-highlight-citation-prefix-regexp' is in the
2748 default face, and the remainder of the line is in the
2749 wl-highlight-message-cited-text face."
2750   :type 'boolean
2751   :group 'wl-highlight)
2752
2753 (defcustom wl-highlight-force-citation-header-regexp
2754   "^>>>.*$\\|^[ \t]*<[^>]*>[ \t]*$"
2755   "*The pattern to match the prolog of a cited block.
2756 Text in the body of a message which matches this will be displayed in
2757 the `wl-highlight-message-headers' face."
2758   :type 'regexp
2759   :group 'wl-highlight)
2760
2761 (defcustom wl-highlight-citation-header-regexp
2762   (concat "In article.*$\\|In message.*$\\|In the message.*$\\|"
2763           "^At[^\n]+\n[^\n]+wrote:\n\\|"
2764           "^.*\\(writes\\|wrote\\|said\\):\n")
2765   "*The pattern to match the prolog of a cited block.
2766 Text in the body of a message which matches this will be displayed in
2767 the `wl-highlight-message-headers' face."
2768   :type 'regexp
2769   :group 'wl-highlight)
2770
2771 (defcustom wl-highlight-max-header-size nil
2772   "*If the message header is larger than this many chars, don't highlight it.
2773 If this is nil, all headers will be highlighted."
2774   :type 'integer
2775   :group 'wl-highlight)
2776
2777 (defcustom wl-highlight-max-message-size 10000
2778   "*If the message body is larger than this many chars, don't highlight it.
2779 This is to prevent us from wasting time trying to fontify things like
2780 uuencoded files and large digests.  If this is nil, all messages will
2781 be highlighted."
2782   :type 'integer
2783   :group 'wl-highlight)
2784
2785 ;; highilght about signature (of draft and message)
2786 (defcustom wl-highlight-signature-separator
2787   '("\n--+\n" "\n\n--+.*\n*\\'")
2788   "List of regexps matching signature separator.
2789 It will be verified from head to tail looking for a separator.
2790 Verification will be done from the end of the buffer.
2791 No need to specify \"^-- $\" in this list,
2792 because it is verified by default.
2793 This variable can also be a regex."
2794   :type '(repeat regexp)
2795   :group 'wl-highlight)
2796
2797 (defcustom wl-max-signature-size 400
2798   "*If the signature is larger than this chars, don't treat it as a signature."
2799   :type 'integer
2800   :group 'wl-highlight)
2801
2802 ;; highilght about mouse
2803 (defcustom wl-use-highlight-mouse-line (and window-system
2804                                             (>= emacs-major-version 19))
2805   "*Highlight mouse line, if non-nil."
2806   :type 'boolean
2807   :group 'wl-highlight)
2808
2809 (defcustom wl-highlight-summary-line-help-echo-alist
2810   '((flag wl-highlight-flag-folder-help-echo)
2811     (nmz elmo-message-file-name))
2812   "*Alist to display help-echo in summary buffer.
2813 Each element is (folder-type handler(function)).
2814 Handler take two arguments elmo-folder and message number and return string."
2815   :type 'boolean
2816   :group 'wl-highlight)
2817
2818 ;; highilght about folder
2819 (defcustom wl-highlight-folder-with-icon
2820   (or (and (featurep 'xemacs)
2821            (featurep 'xpm))
2822       wl-on-emacs21)
2823   "*Highlight folder with icon(XEmacs or Emacs 21)."
2824   :type 'boolean
2825   :group 'wl-highlight)
2826
2827 (defcustom wl-highlight-folder-by-numbers t
2828   "Highlight folder lines by numbers.
2829 If it is a number, only numbers will be highlighted."
2830   :type '(choice (const :tag "whole line" t)
2831                  (const :tag "only numbers" 1)
2832                  (const :tag "don't highlight" nil))
2833   :group 'wl-highlight)
2834
2835 (defcustom wl-highlight-signature-search-function 'wl-highlight-signature-search
2836   "Function to search signature area in the message body."
2837   :type 'function
2838   :group 'wl-highlight)
2839
2840 (defcustom wl-use-dnd (and wl-on-xemacs
2841                            (featurep 'dragdrop))
2842   "If Non-nil, support dragdrop feature in XEmacs."
2843   :type 'boolean
2844   :group 'wl-pref)
2845
2846 (defcustom wl-reset-plugged-alist t
2847   "*If non-nil, reset `elmo-plugged-alist' when startup."
2848   :type 'boolean
2849   :group 'wl-pref)
2850
2851 (defcustom wl-demo-display-logo (if (or (featurep 'xemacs)
2852                                         (module-installed-p 'image)
2853                                         (module-installed-p 'bitmap))
2854                                     t)
2855   "If it is T, show graphic logo in the startup screen.  You can set it to
2856 a symbol `bitmap', `xbm' or `xpm' in order to force the image format."
2857   :type '(radio (const :tag "Off" nil)
2858                 (const :tag "On (any format)" t)
2859                 (const xpm)
2860                 (const xbm)
2861                 (const :tag "bitmap (using BITMAP-MULE)" bitmap))
2862   :group 'wl-pref)
2863
2864 (defcustom wl-invalid-character-message "(WL:Invalid characters.)"
2865   "*A string displayed when invalid character exists."
2866   :type 'string
2867   :group 'wl-pref)
2868
2869 ;;; Internal variables
2870 (defvar wl-init nil)
2871
2872 ;; For disconnected operations.
2873 (defvar wl-plugged-hook nil)
2874 (defvar wl-unplugged-hook nil)
2875 (defcustom wl-plugged t
2876   "*Plugged state at the startup.  Nil means off-line."
2877   :type 'boolean
2878   :group 'wl
2879   :group 'wl-setting)
2880
2881 ;; Internal variables used to modeline identifiers.
2882 (defvar wl-modeline-plug-status nil)
2883 (defvar wl-modeline-plug-state-on wl-plug-state-indicator-on)
2884 (defvar wl-modeline-plug-state-off wl-plug-state-indicator-off)
2885 (defvar wl-modeline-biff-status nil)
2886 (defvar wl-modeline-biff-state-on wl-biff-state-indicator-on)
2887 (defvar wl-modeline-biff-state-off wl-biff-state-indicator-off)
2888
2889 ;; Advanced thread view.
2890 (defvar wl-thread-indent-level (if wl-on-mule 1 2)
2891   "*Indent level for thread.")
2892 (defvar wl-thread-have-younger-brother-str (if wl-on-mule "\e$B(2\e(B" "+")
2893   "*A string for thread branch line.  It should contain one character.")
2894 (defvar wl-thread-youngest-child-str       (if wl-on-mule "\e$B(1\e(B" "+")
2895   "*A string for thread branch line.  It should contain one character.")
2896 (defvar wl-thread-vertical-str             (if wl-on-mule "\e$B(-\e(B" "|")
2897   "*A string for thread branch line.  It should contain one character.")
2898 (defvar wl-thread-horizontal-str           (if wl-on-mule "\e$B(,\e(B" "-")
2899   "*A string for thread branch line.  It should contain one character.")
2900 (defvar wl-thread-space-str                (if wl-on-mule "\e$B!!\e(B" " ")
2901   "*A string for thread branch line.  It should contain one character.")
2902
2903 ;; folder icons. filename relative to wl-icon-directory
2904 (defvar wl-opened-group-folder-icon "opened.xpm"
2905   "*Icon file for opened group folder.")
2906 (defvar wl-closed-group-folder-icon "closed.xpm"
2907   "*Icon file for closed group folder.")
2908 (defvar wl-nntp-folder-icon "news.xpm"
2909   "*Icon file for nntp folder.")
2910 (defvar wl-imap-folder-icon "imap.xpm"
2911   "*Icon file for imap folder.")
2912 (defvar wl-pop-folder-icon  "pop.xpm"
2913   "*Icon file for pop folder.")
2914 (defvar wl-localdir-folder-icon "local.xpm"
2915   "*Icon file for localdir folder.")
2916 (defvar wl-localnews-folder-icon "localnews.xpm"
2917   "*Icon file for localnews folder.")
2918 (defvar wl-internal-folder-icon "internal.xpm"
2919   "*Icon file for internal folder.")
2920 (defvar wl-multi-folder-icon "multi.xpm"
2921   "*Icon file for multi folder.")
2922 (defvar wl-filter-folder-icon "filter.xpm"
2923   "*Icon file for filter folder.")
2924 (defvar wl-archive-folder-icon "archive.xpm"
2925   "*Icon file for archive folder.")
2926 (defvar wl-pipe-folder-icon "pipe.xpm"
2927   "*Icon file for pipe folder.")
2928 (defvar wl-nmz-folder-icon "nmz.xpm"
2929   "*Icon file for namazu folder.")
2930 (defvar wl-shimbun-folder-icon "shimbun.xpm"
2931   "*Icon file for shimbun folder.")
2932 (defvar wl-file-folder-icon "file.xpm"
2933   "*Icon file for file folder.")
2934 (defvar wl-maildir-folder-icon "maildir.xpm"
2935   "*Icon file for maildir folder.")
2936 (defvar wl-empty-trash-folder-icon "trash-e.xpm"
2937   "*Icon file for emptied trash folder.")
2938 (defvar wl-trash-folder-icon "trash.xpm"
2939   "*Icon file for trash folder.")
2940 (defvar wl-draft-folder-icon "draft.xpm"
2941   "*Icon file for draft folder.")
2942 (defvar wl-queue-folder-icon "queue.xpm"
2943   "*Icon file for queue folder.")
2944 (defvar wl-plugged-icon "plugged.xpm"
2945   "*Icon file for plugged state.")
2946 (defvar wl-unplugged-icon "unplugged.xpm"
2947   "*Icon file for unplugged state.")
2948 (defvar wl-biff-mail-icon "letter.xpm"
2949   "*Icon file for mail existed state.")
2950 (defvar wl-biff-nomail-icon "no-letter.xpm"
2951   "*Icon file for no mail existed state.")
2952 (defvar wl-prog-uudecode "uudecode"
2953   "*uudecode program name.")
2954 (defvar wl-prog-uudecode-arg nil
2955   "*Arguments for uudecode program.")
2956 (defvar wl-prog-uudecode-no-stdout-option t
2957   "*If non-nil, uudecode program don't have option for output to stdout.")
2958
2959 ;; plug
2960 (defvar wl-plugged-plug-on "ON")
2961 (defvar wl-plugged-plug-off "--")
2962 (defvar wl-plugged-auto-off "**")
2963 (defvar wl-plugged-server-indent 2)
2964 (defvar wl-plugged-port-indent 4)
2965 (defvar wl-plugged-queue-status-column 25)
2966
2967 ;;;; Obsolete variables.
2968
2969 ;; 2003-11-05
2970 (elmo-define-obsolete-variable 'wl-summary-new-mark
2971                                'wl-summary-new-uncached-mark)
2972
2973 ;; 2003-07-15 delete -> dispose
2974 (elmo-define-obsolete-variable 'wl-delete-folder-alist
2975                                'wl-dispose-folder-alist)
2976
2977 ;; 2002-12-25
2978 (elmo-define-obsolete-variable 'wl-draft-reply-myself-with-argument-list
2979                                'wl-draft-reply-with-argument-list)
2980 (elmo-define-obsolete-variable 'wl-draft-reply-myself-without-argument-list
2981                                'wl-draft-reply-without-argument-list)
2982
2983 ;; 2001-12-11: *-dir -> *-directory
2984 (elmo-define-obsolete-variable 'wl-icon-dir
2985                                'wl-icon-directory)
2986 (elmo-define-obsolete-variable 'wl-mime-save-dir
2987                                'wl-mime-save-directory)
2988 (elmo-define-obsolete-variable 'wl-score-files-dir
2989                                'wl-score-files-directory)
2990 (elmo-define-obsolete-variable 'wl-tmp-dir
2991                                'wl-temporary-file-directory)
2992
2993 ;; 2001-12-10
2994 (elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
2995                                'elmo-folder-update-threshold)
2996 (elmo-define-obsolete-variable 'wl-fetch-confirm-threshold
2997                                'elmo-message-fetch-threshold)
2998
2999 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-type-list
3000                                'wl-message-buffer-prefetch-folder-type-list)
3001 (elmo-define-obsolete-variable 'wl-cache-prefetch-folder-list
3002                                'wl-message-buffer-prefetch-folder-list)
3003
3004 ;; 2001-02-27: *-func -> *-function
3005 (elmo-define-obsolete-variable 'wl-summary-from-func
3006                                'wl-summary-from-function)
3007 (elmo-define-obsolete-variable 'wl-summary-subject-func
3008                                'wl-summary-subject-function)
3009 (elmo-define-obsolete-variable 'wl-summary-subject-filter-func
3010                                'wl-summary-subject-filter-function)
3011 (elmo-define-obsolete-variable 'wl-draft-send-func
3012                                'wl-draft-send-function)
3013 (elmo-define-obsolete-variable 'wl-draft-send-news-func
3014                                'wl-draft-send-news-function)
3015 (elmo-define-obsolete-variable 'wl-draft-send-mail-func
3016                                'wl-draft-send-mail-function)
3017 (elmo-define-obsolete-variable 'wl-print-buffer-func
3018                                'wl-print-buffer-function)
3019 (elmo-define-obsolete-variable 'wl-ps-print-buffer-func
3020                                'wl-ps-print-buffer-function)
3021 (elmo-define-obsolete-variable 'wl-generate-mailer-string-func
3022                                'wl-generate-mailer-string-function)
3023 (elmo-define-obsolete-variable 'wl-highlight-x-face-func
3024                                'wl-highlight-x-face-function)
3025 (elmo-define-obsolete-variable 'wl-fldmgr-sort-func
3026                                'wl-fldmgr-sort-function)
3027 (elmo-define-obsolete-variable 'wl-expire-archive-get-folder-func
3028                                'wl-expire-archive-get-folder-function)
3029 (elmo-define-obsolete-variable 'wl-highlight-signature-search-func
3030                                'wl-highlight-signature-search-function)
3031
3032 ;; 2000-01-25: temp mark -> target mark
3033 (elmo-define-obsolete-variable 'wl-summary-temp-above
3034                                'wl-summary-target-above)
3035
3036 ;; 1999-11-07: Unified with `wl-draft-config-alist'.
3037 (defvar wl-draft-prepared-config-alist nil)
3038 (make-obsolete-variable 'wl-draft-prepared-config-alist
3039                         'wl-draft-config-alist)
3040
3041 ;; 1999-10-10
3042 (elmo-define-obsolete-variable 'wl-address-filename
3043                                'wl-address-file)
3044 (elmo-define-obsolete-variable 'wl-score-default-file-name
3045                                'wl-score-default-file)
3046
3047
3048 (require 'product)
3049 (product-provide (provide 'wl-vars) (require 'wl-version))
3050
3051 ;;; wl-vars.el ends here