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