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