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