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