Mention "W" in the Draft section.
[elisp/wanderlust.git] / doc / wl.texi
1 \input texinfo @c -*-texinfo -*-
2 @c %**start of header
3 @setfilename wl.info
4 @settitle Wanderlust -- Yet Another Message Interface On Emacsen --
5 @c %**end of header
6 @documentlanguage en
7 @documentencoding us-ascii
8 @include version.texi
9 @synindex pg cp
10 @finalout
11
12 @dircategory GNU Emacs Lisp
13 @direntry
14 * Wanderlust: (wl).         Yet Another Message Interface On Emacsen
15 @end direntry
16
17 @c permissions text appears in an Info file before the first node.
18 @ifinfo
19 This file documents Wanderlust, Yet another message interface on
20 Emacsen.
21
22 Copyright @copyright{} 1998, 1999, 2000, 2001, 2002 @w{Yuuichi Teranishi},
23 @w{Fujikazu Okunishi}, @w{Masahiro Murata}, @w{Kenichi Okada},
24 @w{Kaoru Takahashi}, @w{Bun Mizuhara} and @w{Masayuki Osada},
25 @w{Katsumi Yamaoka}, @w{Hiroya Murata} and @w{Yoichi Nakayama}.
26
27 This edition is for Wanderlust version @value{VERSION}.
28
29 Permission is granted to make and distribute verbatim copies of this
30 manual provided the copyright notice and this permission notice are
31 preserved on all copies.
32
33 @ignore
34 Permission is granted to process this file through TeX and print the
35 results, provided the printed document carries copying permission notice
36 identical to this one except for the removal of this paragraph (this
37 paragraph not being relevant to the printed manual).
38
39 @end ignore
40 Permission is granted to copy and distribute modified versions of this
41 manual under the conditions for verbatim copying, provided that the
42 entire resulting derived work is distributed under the terms of a
43 permission notice identical to this one.
44
45 Permission is granted to copy and distribute translations of this manual
46 into another language, under the above conditions for modified versions.
47
48 @end ifinfo
49
50 @titlepage
51 @sp 10
52 @title Wanderlust User's Manual
53 @subtitle Yet another message interface on Emacsen
54 @subtitle for Wanderlust version @value{VERSION}
55 @author Yuuichi Teranishi
56 @author Fujikazu Okunishi
57 @author Masahiro Murata
58 @author Kenichi Okada
59 @author Kaoru Takahashi
60 @author Bun Mizuhara
61 @author Masayuki Osada
62 @author Katsumi Yamaoka
63 @author Hiroya Murata
64 @author Yoichi Nakayama
65 @page
66
67 @vskip 0pt plus 1filll
68 Copyright @copyright{} 1998, 1999, 2000, 2001, 2002 @w{Yuuichi Teranishi},
69 @w{Fujikazu Okunishi}, @w{Masahiro Murata}, @w{Kenichi Okada},
70 @w{Kaoru Takahashi}, @w{Bun Mizuhara}, @w{Masayuki Osada},
71 @w{Katsumi Yamaoka}, @w{Hiroya Murata} and @w{Yoichi Nakayama}.
72
73 This manual is for Wanderlust version @value{VERSION}.
74
75 Permission is granted to make and distribute verbatim copies of this
76 manual provided the copyright notice and this permission notice are
77 preserved on all copies.
78
79 Permission is granted to copy and distribute modified versions of this
80 manual under the conditions for verbatim copying, provided that the
81 entire resulting derived work is distributed under the terms of a
82 permission notice identical to this one.
83
84 Permission is granted to copy and distribute translations of this manual
85 into another language, under the above conditions for modified versions.
86
87 @end titlepage
88
89
90 @ifinfo
91 @node Top, Introduction, (dir), (dir)
92 @top Wanderlust User's Manual
93
94 @flushright
95 Yuuichi Teranishi
96 Fujikazu Okunishi
97 Masahiro Murata
98 Kenichi Okada
99 Kaoru Takahashi
100 Bun Mizuhara
101 Masayuki Osada
102 Katsumi Yamaoka
103 Hiroya Murata
104 Yoichi Nakayama
105 @end flushright
106
107 This manual is for Wanderlust @value{VERSION}.
108
109 @end ifinfo
110
111 @menu
112 * Introduction::             Read this first
113 * Start Me Up::              Invoking Wanderlust
114 * Folders::                  How to specify folders
115 * Folder::                   Selecting and editing folders
116 * Summary::                  Reading and refiling messages
117 * Message::                  Saving and playing MIME multipart entities
118 * Draft::                    Draft buffer, sending mail and news
119 * Disconnected Operations::  Off-Line management
120 * Expire and Archive::       Automatic expiration and archiving of messages
121 * Scoring::                  Score of the messages
122 * Address Book::             Management of Address Book
123 * Customization::            Customizing Wanderlust
124 * Mailing List::             Wanderlust mailing list
125 * Addition::                 Additional Information
126 * Index::                    Key index
127 @end menu
128
129
130 @node Introduction, Start Me Up, Top, Top
131 @chapter Introduction of Wanderlust
132 @cindex Introduction
133
134 Wanderlust is an mail/news management system on Emacsen.
135 It supports IMAP4rev1(RFC2060), NNTP, POP and local message files.
136
137 The main features of Wanderlust:
138
139 @itemize @minus
140 @item Pure elisp implementation.
141 @item Supports IMAP4rev1, NNTP, POP(POP3/APOP), MH and Maildir format.
142 @item Unified access method to messages based on Mew-like Folder Specification.
143 @item Mew-like Key-bind and mark handling.
144 @item Manages unread messages.
145 @item Interactive thread display.
146 @item Folder Mode shows the list of subscribed folders.
147 @item Message Cache, Disconnected Operation (Read Only).
148 @item MH-like FCC. (FCC: %Backup and FCC: $Backup is allowed).
149 @item MIME compliant (by SEMI).
150 @item Transmission of news and mail are unified by Message transmitting draft.
151 @item Graphical list of folders (XEmacs and Emacs 21).
152 @item View a part of message without retrieving the whole message (IMAP4).
153 @item Server-side message look up (IMAP4). Multi-byte characters are allowed.
154 @item Virtual Folders.
155 @item Supports compressed folder using common archiving utilities.
156 @item Old articles in folders are automatically removed/archived (Expiration).
157 @item Automatic re-file.
158 @item Template function makes it convenient to send fixed form messages.
159 @end itemize
160
161
162 @section Environment
163
164 Wanderlust is supposed to run on following Emacsen:
165
166 @itemize @bullet
167 @item Mule 2.3 based on Emacs 19.34
168 @item Emacs 20.2 or later
169 @item XEmacs 20.4 or later
170 @item Meadow 1.00 or later
171 @item NTEmacs 20.4 or later
172 @item PMMule
173 @end itemize
174
175 IMAP4 connectivity with following imapd are confirmed to work with
176 Wanderlust:
177
178 @itemize @bullet
179 @item UW imapd 4.1--4.7, 4.7a, 4.7b, 4.7c, 2000 or later
180 @item Cyrus imapd 1.4, 1.5.19, 1.6.22--1.6.24, 2.0.5 or later
181 @item Courier-IMAP 1.3.2 or later
182 @item AIR MAIL (AIRC imapd release 2.00)
183 @item Express Mail
184 @item Microsoft Exchange Server 5.5
185 @item Sun Internet Mail Server 3.5, 3.5.alpha, 4.0
186 @end itemize
187
188 LDAP connectivity with following LDAPd are confirmed to work with
189 Wanderlust:
190
191 @itemize @bullet
192 @item OpenLDAP 2.0.6 or later
193 @end itemize
194
195
196 @node Start Me Up, Folders, Introduction, Top
197 @chapter Start up Wanderlust
198 @cindex Start up
199
200 The necessary procedure for starting Wanderlust is explained in steps
201 here.
202
203 (Of course, you need a mail/news readable environment in advance)
204
205 @menu
206 * MIME Modules::      Installing the MIME modules
207 * Download::          Download and extract the packages
208 * Install::           Byte-compile and install
209 * Minimal Settings::  @file{.emacs} setup
210 * Folder Definition:: Folder definition
211 * Start Wanderlust::  Starting Wanderlust
212 @end menu
213
214
215 @node MIME Modules, Download, Start Me Up, Start Me Up
216 @section Installing MIME modules
217 @cindex MIME modules
218 @pindex APEL
219 @pindex FLIM
220 @pindex SEMI
221
222 SEMI must be installed to make Wanderlust work correctly.
223
224 SEMI can be downloaded from these sites:
225
226 @example
227 @group
228 SEMI:   ftp://ftp.m17n.org/pub/mule/semi/
229 @end group
230 @end example
231
232 You need packages named APEL and FLIM to use SEMI.
233 You can download APEL and FLIM from following URLs:
234
235 @example
236 @group
237 APEL:   ftp://ftp.m17n.org/pub/mule/apel/
238 FLIM:   ftp://ftp.m17n.org/pub/mule/flim/
239 @end group
240 @end example
241
242 You have to install APEL, FLIM and SEMI in this order.  Generally,
243 @samp{make install} will do the job.  (In XEmacs 21, @samp{make
244 install-package}.)
245
246 Refer to the documents of each package for detailed installation
247 procedure @footnote{If you want to use SEMI on Emacs 19.34. @*
248 @uref{http://www.jpl.org/elips/INSTALL-SEMI-ja.html} (In Japanese)
249 may help you.}.
250
251
252 Recommended combination of APEL, FLIM and SEMI are following:
253
254 @itemize @minus
255 @item APEL 10.3, FLIM 1.14.3 and SEMI 1.14.3
256 @end itemize
257
258 You can also use many other FLIM/SEMI variants. Combination of the
259 latest versions should work.  For example, the following combination are
260 confirmed to work.
261
262 @itemize @minus
263 @item APEL 10.2, Chao 1.14.1, REMI 1.14.2
264 @item APEL 10.2, SLIM 1.14.3, EMY 1.13.9
265 @end itemize
266
267 You have to re-install Wanderlust if you upgraded APEL, FLIM or SEMI.
268
269
270 @node Download, Install, MIME Modules, Start Me Up
271 @section Download and Extract the Package
272 @cindex Download
273
274 You can download Wanderlust package from following sites:
275
276 Original site:
277 @example
278 ftp://ftp.gohome.org/wl/
279 @end example
280
281 Mirrored ftp/http sites:
282
283 @example
284 @group
285 ftp://ftp.jaist.ac.jp/pub/GNU/elisp/ftp.gohome.org/wl/
286 http://www.jpl.org/elips/wl/
287 http://www.ring.gr.jp/archives/text/elisp/wl/
288 ftp://ftp.ring.gr.jp/pub/text/elisp/wl/
289 ftp://opaopa.org/pub/mirror/elisp/wl/
290 @c ftp://roguelife.org/pub/tsumura/wl/
291 @end group
292 @end example
293
294 Extract the obtained package to your working directory:
295
296 @example
297 @group
298 % cd ~/work
299 % tar zxvf wl-@var{version}.tar.gz
300 % cd wl-@var{version}
301 @end group
302 @end example
303
304 @subsection To use SSL (Secure Socket Layer)
305 @cindex SSL
306 @pindex OpenSSL
307 @pindex starttls
308
309 SSL (Secure Socket Layer) can be used for
310 SMTP, IMAP, NNTP and POP connections in Wanderlust.
311
312 There are two ways to use SSL. One is to start SSL negotiation just
313 after the connection establishment (generic way). The other one is to
314 start SSL negotiation by invoking STARTTLS command in the each session.
315
316 To use the formal SSL (generic SSL), you must set @env{PATH} to the
317 directory that OpenSSL commands are installed.
318
319 To use the latter SSL(STARTTLS), you must install starttls package in
320 addition to above.
321 You can download starttls package from the following site.
322
323 @example
324 ftp://opaopa.org/pub/elisp/
325 @end example
326
327 @node Install, Minimal Settings, Download, Start Me Up
328 @section Byte-compile and install
329 @cindex Byte-compile
330 @cindex Compile
331 @cindex Install
332 @cindex Makefile
333 @cindex Make
334
335 @subsection Installation
336
337 Edit @code{LISPDIR} and @code{EMACS} in @file{Makefile}.
338 Set the Emacs's command name to @code{EMACS}.
339 Set package installation directory to @code{LISPDIR}.
340 Then, please execute following commands.
341
342 @example
343 @group
344 % make
345 % make install
346 @end group
347 @end example
348
349 Destination directory is auto-probed if you leave @code{LISPDIR}
350 in @file{Makefile} as is. (That is, leave it as @samp{NONE})
351
352 If you are using an Emacs variant which does not merge specified directory
353 to @code{load-path} (e.g. Mule 2.3 based on Emacs 19.28),
354 then you will see the error message:
355
356 @example
357 Cannot open load file: mime-setup
358 @end example
359
360 @noindent
361 In this case, either add destination directories of custom, APEL, FLIM
362 and SEMI to environmental variable @env{EMACSLOADPATH}, or define
363 @code{load-path} in @file{WL-CFG} in extracted directory.
364
365 If you want to use BBDB, then the necessary modules are byte-compiled
366 and installed when BBDB directory is added to @code{load-path}.
367 @xref{BBDB}.
368
369 @subsection @file{WL-CFG}
370
371 Contents of the file @file{WL-CFG} is loaded under installation if a file
372 with that name exists in extracted directory. You can use @file{WL-CFG} to
373 configure @code{load-path} to extra packages such as SEMI if needed.
374
375 If you want to specify the install directory of Wanderlust related
376 files, then set following variables in @file{WL-CFG}
377
378 @table @code
379 @item WL_PREFIX
380 A directory to install WL modules.
381 This directory is relative directory from @code{LISPDIR}.
382 WL modules include @file{wl*.el}, @file{wl*.elc} files.
383 @c  Modules under the directory @file{util/} are also installed if
384 @c it detected as necessary.
385
386 @item ELMO_PREFIX
387 A directory to install ELMO modules.
388 This directory is relative directory from @code{LISPDIR}.
389 ELMO modules include @file{elmo*.el}, @file{elmo*.elc} files.
390 @c  @file{utf7.el}, @file{utf7.elc} are also included in the ELMO.
391 @end table
392
393 @noindent
394 Default value of @code{WL_PREFIX} and @code{ELMO_PREFIX} are @file{wl}.
395
396 If you want to install ELMO related files under a sub-directory
397 such as "elmo" then add following to @file{WL-CFG}:
398
399 @lisp
400 (setq ELMO_PREFIX "elmo")
401 @end lisp
402
403 @subsection Install as a XEmacs package
404 @cindex XEmacs package
405 @cindex XEmacs package install
406 @cindex Package, XEmacs
407 @cindex Package install, XEmacs
408 @c @cindex install-package
409
410 It is possible to install Wanderlust as one of packages of XEmacs (21.0
411 or later). Configuration for autoload and icon-path in local
412 @file{~/.emacs} files are no longer necessary, if you install Wanderlust
413 as a package.
414
415 Follow the next example to install Wanderlust as an XEmacs package.
416
417 @example
418 @group
419 % vi Makefile
420 % make package
421 % make install-package
422 @end group
423 @end example
424
425 package directory is auto-probed, if SEMI is installed.
426 (you can also specify it with @code{PACKAGEDIR} in @file{Makefile})
427
428 @subsection Run in place
429
430 If wl and elmo directories are defined in @code{load-path}, then
431 byte-compilation and installation are not necessary to start Wanderlust.
432 For example, if package is extracted in @file{~/work}, Wanderlust can be
433 invoked with following setting in @file{~/.emacs}.
434
435 @lisp
436 @group
437 (add-to-list 'load-path "~/work/wl-@var{version}/wl")
438 (add-to-list 'load-path "~/work/wl-@var{version}/elmo")
439 @end group
440 @end lisp
441
442 @subsection Manual
443
444 Manual is described in Info format. Please do following.
445
446 @example
447 @group
448 % make info
449 % make install-info
450 @end group
451 @end example
452
453 If you install Wanderlust as a XEmacs package, Info file is already
454 installed too, so there are no need of these commands.
455
456 Manual directory is automatically detected. Of course, it can be
457 configured by @code{INFODIR} in @file{Makefile}.
458
459 You can read manual at the following URL:
460
461 @example
462 http://www.gohome.org/wl/doc/wl_toc.html
463 @end example
464
465 @node Minimal Settings, Folder Definition, Install, Start Me Up
466 @section Set up .emacs
467 @cindex Minimal Settings
468 @cindex Settings
469 @cindex Configuration
470 @cindex .emacs
471 @cindex .wl
472
473 The Wanderlust package contains two module groups.
474
475 @table @samp
476 @item ELMO (elmo-*.el)
477 These modules show everything as folders. This is the back-end for WL.
478 @item WL (wl-*.el)
479 These modules controls the behavior of main body of Wanderlust.
480 They are also the front-end for ELMO.
481 @end table
482
483 You can customize the  behavior of Wanderlust by changing the value
484 of environmental variables which begins with @code{elmo-} and @code{wl-}.
485
486 The minimal requirement for settings is as the following.
487
488 @lisp
489 @group
490 ;; @r{The setting to use SEMI}
491 (require 'mime-setup)
492
493 ;; @r{autoload configuration}
494 ;; @r{(These are not required if Wanderlust is installed as XEmacs package)}
495 (autoload 'wl "wl" "Wanderlust" t)
496 (autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
497 (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
498
499 ;; @r{Directory where icons are placed.}
500 ;; @r{Default: the peculiar value to the running version of Emacs.}
501 ;; @r{(This is not required if the default value has been set properly)}
502 (setq wl-icon-directory "~/work/wl/etc")
503
504 ;; @r{SMTP server for mail posting. Default: @code{nil}}
505 (setq wl-smtp-posting-server "your.smtp.example.com")
506 ;; @r{NNTP server for news posting. Default: @code{nil}}
507 (setq wl-nntp-posting-server "your.nntp.example.com")
508 @end group
509 @end lisp
510
511 @file{~/.wl} is automatically loaded when Wanderlust starts up (if such a
512 file exists). So it is convenient to gather Wanderlust specific settings
513 in @file{~/.wl}. Settings for "face" must be written in @file{~/.wl},
514 because you can't write them in @file{.emacs}
515 (if you write it to @file{.emacs}, you'll get an error).
516 @xref{Highlights}.
517
518 All above described settings except @samp{(require 'mime-setup)} and autoload
519 configuration can be written in
520 @file{~/.wl}).
521
522 @subsection @code{mail-user-agent}
523 @cindex Default Mailer
524 @cindex Mailer, Default
525 @vindex mail-user-agent
526 @findex compose-mail
527
528 If you write following setting in you @file{.emacs}, you can
529 start Wanderlust draft mode by typing @kbd{C-x m} (@code{compose-mail}).
530 This means it enables you to run Wanderlust as a default mail composer
531  of Emacsen.
532
533 It is effective only when your Emacs can define @code{mail-user-agent}.
534 @xref{Mail Methods, , ,emacs-ja, The Emacs Editor}.
535
536 @lisp
537 @group
538 (autoload 'wl-user-agent-compose "wl-draft" nil t)
539 (if (boundp 'mail-user-agent)
540     (setq mail-user-agent 'wl-user-agent))
541 (if (fboundp 'define-mail-user-agent)
542     (define-mail-user-agent
543       'wl-user-agent
544       'wl-user-agent-compose
545       'wl-draft-send
546       'wl-draft-kill
547       'mail-send-hook))
548 @end group
549 @end lisp
550
551
552
553 @node Folder Definition, Start Wanderlust, Minimal Settings, Start Me Up
554 @section Folder Definition
555 @cindex Folder Definition
556 @cindex .folders
557
558 You can skip this section because it is possible to add/edit the
559 subscribe folders from the buffer for list of folders.
560 @xref{Folder Manager}.
561
562 Define the folders you want to subscribe in file @file{~/.folders}.  The
563 contents written in @file{~/.folders} become the folders which you
564 subscribe to as it is.
565
566 Format for @file{~/.folders} is very simple. Here is an example:
567
568 @example
569 @group
570 #
571 # @r{Lines begin with @samp{#} are comment.}
572 # @r{Empty lines are ignored}
573 #
574 # @var{folder name}  "@var{folder nickname}"
575 # @r{(nicknames are not necessary)}
576 #
577 %inbox  "Inbox"
578 +trash  "Trash"
579 +draft  "Drafts"
580 %#mh/Backup@@my.imap.example.com "Sent"
581 # Folder Group
582 Emacsen@{
583     %#mh/spool/wl            "Wanderlust ML"
584     %#mh/spool/elips         "ELIPS ML"
585     %#mh/spool/apel-ja       "APEL Japanese ML"
586     %#mh/spool/xemacs-beta   "XEmacs beta"
587     -fj.news.reader.gnus@@other.nntp.example.com "Gnus Net news"
588     *-fj.editor.xemacs,-fj.editor.mule,-fj.editor.emacs "fj's Emacsen"
589 @}
590 #
591 # @r{If folder name ends with @samp{/}, that means an `access group',}
592 # @r{all subfolders automatically included in one folder group.}
593 #
594 %#mh/expire@@localhost /
595 # @r{All MH folders are included in one folder group.}
596 + /
597 @end group
598 @end example
599
600 Each line contains one folder you want to read. The definition of
601 folders will be explained in detail in the next section.
602
603 The part surrounded by @samp{@var{group name}@{} and @samp{@}} will
604 become one folder group.  One folder group is treated as a directory
605 which can be opened and closed in folder mode. It is convenient for
606 collecting some folders and putting them in order.
607
608 Please note that @samp{@var{group name}@{} and @samp{@}} occupies one
609 line and you have to write it that way (It is because the parser sucks).
610
611 There are two types of groups. One is like @samp{Emacsen} from above
612 example which the user chooses his favorite folders as a group.
613
614 The other one is @dfn{access group} like @samp{+ /} from above example.
615 It makes all the sub-folders in a folder to a group.  (It differs from
616 the type of the folder. For example, @samp{+} followed by @samp{/}
617 makes entire MH sub-directories to one group)
618
619 This behavior is better understood if you try it and confirmed the
620 function first. You can write and try a small folder definition, so you
621 will know the idea of the folder function before writing the real one.
622
623 @node Start Wanderlust,  , Folder Definition, Start Me Up
624 @section Start Wanderlust
625 @cindex Start Wanderlust
626
627 If installation and configuration worked well, you can invoke Wanderlust by
628 typing following command in Emacs.
629
630 @example
631 M-x wl
632 @end example
633
634 @noindent
635 After initialization, Folder Mode which shows the list of folders will appear.
636 That means the folders you defined in the @file{~/.folders} are listed
637 If you start Wanderlust with prefix argument like @kbd{C-u M-x wl}, you
638 can skip folder checking.
639
640 Basically, you will handle messages in wanderlust while you come and go
641 from/to each of the following buffers.
642
643 @table @samp
644 @item Folder Buffer
645 You can see the list of folders. You can select some folder and go into the summary
646 of it. You can subscribe new folder or edit subscription list.
647 @item Summary Buffer
648 You can see the list of messages in the folder. You can select message and view its
649 contents, and reply to some message. You can delete ones or move ones to another
650 folder.
651 @item Message Buffer
652 You can see the contents of the message. You can save part to disk or open in external
653 programs.
654 @item Draft Buffer
655 You can edit message.
656 @end table
657
658 Details of each ones are explained later.
659
660
661 @node Folders, Folder, Start Me Up, Top
662 @chapter Wanderlust's folders
663 @cindex Folder Type
664
665 This chapter describes the folder types which Wanderlust is able to handle.
666
667 Wanderlust uses ELMO as it's interface, so every folder types supported
668 by ELMO is usable in Wanderlust.
669
670 As of version @value{VERSION}, 11 types of folders are predefined. These are
671 IMAP, NNTP, LocalDir(MH), Maildir, News Spool, Archive, POP, Multi, Filter,
672 Pipe and Internal folder types.
673
674 @menu
675 * IMAP Folder::                 @samp{%} -- IMAP folder
676 * NNTP Folder::                 @samp{-} -- NNTP folder
677 * MH Folder::                   @samp{+} -- MH folder
678 * Maildir Folder::              @samp{.} -- Maildir folder
679 * News Spool Folder::           @samp{=} -- News spool folder
680 * Archive Folder::              @samp{$} -- Archive folder
681 * POP Folder::                  @samp{&} -- POP folder
682 * Shimbun Folder::              @samp{@@} -- Shimbun Folder
683 * Namazu Folder::               @samp{[} -- Namazu Folder
684 * Multi Folder::                @samp{*} -- Multi folder
685 * Filter Folder::               @samp{/} -- Filter folder
686 * Pipe Folder::                 @samp{|} -- Pipe folder
687 * Internal Folder::             @samp{'} -- Internal folder
688 @end menu
689
690
691 @node IMAP Folder, NNTP Folder, Folders, Folders
692 @section IMAP Folder
693 @cindex @samp{%}
694 @cindex IMAP Folder
695 @cindex Folder, IMAP
696 @cindex RFC 2060
697 @cindex IMAP4rev1
698
699 A folder to access e-mails via IMAP4rev1 protocol (RFC 2060).
700
701 Format:
702
703 @example
704 @group
705 @samp{%} @var{mailbox} [@samp{:} @var{username} [@samp{/} @var{authenticate-type}]][@samp{@@} @var{hostname}][@samp{:} @var{port}][@samp{!}]
706 @end group
707 @end example
708
709 You can specify @code{login} (encoded password transmission),
710 @code{cram-md5} (CRAM-MD5 authentication), @code{digest-md5} (DIGEST-MD5
711 authentication) or @code{clear} (or @code{nil}, plain password
712 transmission) as @var{authenticate-type}.
713
714 default:
715
716 @example
717 @var{username}  -> The value of @code{elmo-imap4-default-user}.
718              Initial setting is @env{USER} environment variable or
719              @env{LOGNAME} environment variable or return value of
720              @code{(user-login-name)}.
721 @var{authenticate-type} -> The value of @code{elmo-imap4-default-authenticate-type}.
722              Initial setting is "auth".
723 @var{hostname}  -> The value of @code{elmo-imap4-default-server}.
724              Initial setting is "localhost".
725 @var{port} -> The value of @code{elmo-imap4-default-port}.
726              Initial setting is 143.
727 @end example
728
729 You can omit the @var{hostname} from folder names if you set
730 @code{elmo-imap4-default-server} as your main IMAP server.
731 For example, you can specify a folder as @samp{foo%imap@@gateway} even
732 if you have to go through a firewall.
733
734 @lisp
735 @group
736 ;; @r{Example: imap4.exaple.org as main IMAP server}
737 (setq elmo-imap4-default-server "imap4.example.org")
738 @end group
739 @end lisp
740
741 SSL (Secure Socket Layer) connection will be used if a folder name ends
742 with @samp{!}. Or, if the value of @code{elmo-imap4-default-stream-type}
743 is @code{ssl}, SSL will be the default connection.  If a folder name
744 ends with @samp{!!}, STARTTLS connection will be established.  If the
745 value of @code{elmo-imap4-default-stream-type} is @code{starttls},
746 STARTTLS will be the default connection.
747
748 @lisp
749 @group
750 ;; @r{Example: Use SSL connection}
751 (setq elmo-imap4-default-stream-type 'ssl)
752 @end group
753 @end lisp
754
755 If you specify @code{login}, @code{cram-md5} or @code{digest-md5} as
756 authentication method, the password is sent in encoded form. But, if
757 your server is unable to receive an encoded password, authentication
758 will fall back to @code{clear} (that is, sending password in raw format)
759 after confirmation to user. If @code{elmo-imap4-force-login} is non-nil,
760 authentication will fall back to @code{clear} without confirmation
761 (default value is @code{nil}).
762
763 @lisp
764 @group
765 ;; @r{Example: password in raw format}
766 (setq elmo-imap4-default-authenticate-type 'clear)
767 @end group
768 @end lisp
769
770 Example:
771
772 @example
773 @group
774 %inbox     -> IMAP mailbox "inbox"
775 %#mh/inbox -> IMAP mailbox "#mh/inbox"
776
777 %inbox:hoge -> IMAP mailbox "inbox" of user "hoge".
778 %inbox:hoge/clear@@server1
779             -> server1's IMAP mailbox "inbox"
780                of user "hoge", with plain password authentication
781                ('clear).
782 @end group
783 @end example
784
785 @subsection International mailbox names (Modified UTF7)
786 @cindex Modified UTF7
787 @cindex UTF7
788 @cindex UTF8
789 @cindex Unicode
790 @pindex Mule-UCS
791 @pindex ucs-conv
792
793 You can use international mailbox names in @var{mailbox} part, if you
794 are using Emacs which can treat unicode and
795 @code{elmo-imap4-use-modified-utf7} is set to non-nil value (default
796 value is @code{nil}).
797
798 Currently, following Emacsen can treat unicode.
799
800 @itemize @bullet
801 @item Emacs 20.3 or later + Mule-UCS
802
803 If you installed Mule-UCS package, Emacs can treat unicode.
804 You can obtain Mule-UCS package from following URL.
805
806 @example
807 ftp://ftp.m17n.org/pub/mule/Mule-UCS/
808 @end example
809
810 @item XEmacs 21.2.13 or later + ucs-conv package
811
812 By default, XEmacs 21 cannot treat unicodes, but if you installed
813 ucs-conv package, it can.
814 You can obtain ucs-conv package from following anonymous CVS.
815
816 @example
817 @group
818 cvs -d :pserver:anonymous@@cvs.m17n.org:/cvs/root login
819 Password: @var{NULL} (Just enter return key)
820 cvs -d :pserver:anonymous@@cvs.m17n.org:/cvs/root checkout ucs-conv
821 @end group
822 @end example
823
824 You also need utf7 conversion programs, @command{u7tou8} and
825 @command{u8tou7} to use international mailbox name in the current
826 XEmacs.  These programs are included in the UTF7 package which can be
827 obtained from following URL.
828
829 @example
830 ftp://ftp.ifcss.org/pub/software/unix/convert/utf7.tar.gz
831 @end example
832 @end itemize
833
834
835 @node NNTP Folder, MH Folder, IMAP Folder, Folders
836 @section NNTP Folder
837 @cindex @samp{-}
838 @cindex NNTP Folder
839 @cindex Folder, NNTP
840 @cindex Folder, News
841 @cindex NetNews
842 @cindex News
843 @cindex Newsgroup
844 @cindex RFC 977
845
846 A folder to access USENET news via NNTP protocol (RFC 977).
847 One newsgroup is treated as a folder.
848
849 Format:
850
851 @example
852 @group
853 @samp{-} @var{newsgroup} [[@samp{:} @var{username}][@samp{@@} @var{hostname}][@samp{:} @var{port}]][@samp{!}]
854 @end group
855 @end example
856
857 default:
858 @example
859 @var{hostname}  -> The value of @code{elmo-nntp-default-server}.
860              Initial setting is @samp{localhost}.
861 @var{username}  -> The value of @code{elmo-nntp-default-user}.
862              Initial setting is @code{nil}.
863 @var{port}      -> The value of @code{elmo-nntp-default-port}.
864              Initial setting is 119.
865 @end example
866
867 AUTHINFO is used as authentication method if the @var{username} is
868 non-nil.  SSL will be default method if
869 @code{elmo-nntp-default-stream-type} is non-nil even if the folder name
870 doesn't end with @samp{!}.  If a folder name ends with @samp{!!},
871 STARTTLS connection will be established.  if the value of
872 @code{elmo-nntp-default-stream-type} is @code{starttls}, STARTTLS will
873 be the default connection.
874
875 Example:
876
877 @example
878 @group
879 -fj.rec.tv            -> Newsgroup @samp{fj.rec.tv}.
880 -fj.rec.tv@@newsserver -> Newsgroup @samp{fj.rec.tv} on @samp{newsserver}.
881 @end group
882 @end example
883
884
885 @node MH Folder, Maildir Folder, NNTP Folder, Folders
886 @section MH Folder
887 @cindex @samp{+}
888 @cindex MH Folder
889 @cindex Folder, MH
890 @pindex MH
891
892 A folder to access MH format mail (1 file is 1 mail).
893
894 Format:
895
896 @example
897 @samp{+} @var{directory-name}
898 @end example
899
900 Normally, @var{directory-name} is an relative path to the variable
901 @code{elmo-localdir-folder-path} (default is @file{~/Mail}), but if it
902 starts with @samp{/} or @samp{~}, then it is treated as an absolute path
903 (this is also true for drive-letters).
904
905 Message number is used for the name of the message file.
906
907 Example:
908
909 @example
910 @group
911 +inbox         -> @file{~/Mail/inbox}
912 +from/teranisi -> @file{~/Mail/from/teranisi}
913 +~/test        -> @file{~/test}
914 @end group
915 @end example
916
917
918 @node Maildir Folder, News Spool Folder, MH Folder, Folders
919 @section Maildir Folder
920 @cindex @samp{.}
921 @cindex Maildir Folder
922 @pindex Maildir
923 @pindex qmail
924
925 A folder to access Maildir format (1 file is 1 mail).
926
927 Format:
928
929 @example
930 @samp{.} [@var{directory-name}]
931 @end example
932
933 Normally, @var{directory-name} is a relative path to the variable
934 @code{elmo-maildir-folder-path} (default is @file{~/Maildir}), but if it
935 starts with @samp{/} or @samp{~}, then it is treated as an absolute path
936 (this is also true for drive-letters).
937
938 Maildir contains @file{cur}, @file{new} and @file{tmp} subdirectories.
939 Messages are contained in the @file{cur} directory.  All message files
940 in the @file{new} directory are moved to @file{cur} directory when you
941 access the folder. All message files contained in the @file{tmp}
942 directory and not accessed for 36 hours are deleted.
943
944 This behavior conforms to the @uref{http://cr.yp.to/proto/maildir.html}.
945
946 Example:
947
948 @example
949 @group
950 .              -> @file{~/Maildir}
951 .inbox         -> @file{~/Maildir/inbox}
952 .from/teranisi -> @file{~/Maildir/from/teranisi}
953 .~/test        -> @file{~/test}
954 @end group
955 @end example
956
957
958 @node News Spool Folder, Archive Folder, Maildir Folder, Folders
959 @section News Spool Folder
960 @cindex @samp{=}
961 @cindex News spool Folder
962 @pindex gnspool
963
964 This folder handles locally saved news articles which are proposed by
965 Mew/IM.  You can also read articles directly from a spool-file which is
966 retrieved by an utility like @command{gnspool}.
967
968 Format:
969
970 @example
971 @samp{=} @var{directory-name}
972 @end example
973
974 @var{directory-name} is a sub-directory to the directory defined by
975 variable @code{elmo-localnews-folder-path} (default is @file{~/News})
976 You can use @samp{.} as directory delimiter as well as @samp{/}.
977
978 Example:
979
980 @example
981 @group
982 =fj/os/os2         -> @file{~/News/fj/os/os2}
983 =fj.os.bsd.freebsd -> @file{~/News/fj/os/bsd/freebsd}
984 @end group
985 @end example
986
987
988 @node Archive Folder, POP Folder, News Spool Folder, Folders
989 @section Archive Folder
990 @cindex @samp{$}
991 @cindex Archive Folder
992 @c @pindex ange-ftp
993
994 This method can handle archive files, which are compressed by utilities
995 such as Info-ZIP or LHA, as one folder.
996
997 Format:
998
999 @example
1000 @group
1001 @samp{$} @var{path-name} [@samp{;} @var{archiver-type} @samp{;} @var{prefix}]
1002 @end group
1003 @end example
1004
1005 @var{path-name} is the relative path from
1006 @code{elmo-archive-folder-path} (initial setting is @file{~/Mail}).  If
1007 @var{path-name} begins with @samp{/} or @samp{~} or `drive-letter of
1008 DOS', @var{path-name} is treated as absolute path.  ange-ftp format is
1009 also permitted under the environment of ange-ftp, efs.
1010
1011 The actual file name of the archive folder is
1012 @code{elmo-archive-basename} (Initial setting is @file{elmo-archive})
1013 under the @var{path-name}. If a file named @var{path-name} exists, it is
1014 treated as folder. The suffix is automatically decided for
1015 @var{archiver-type}.
1016
1017 If @var{archiver-type} is omitted, @code{elmo-archive-default-type}
1018 (Initial setting is @code{zip}) is referred.
1019
1020 @var{prefix} specifies the internal directory structure of the archive.
1021 For example, if the ML server is fml, @file{msend.tar.gz} has a
1022 structure like @file{spool/1}, so you have to specify @samp{spool} as
1023 @var{prefix}.
1024
1025 Example:
1026
1027 @example
1028 @group
1029 $teranisi         -> @file{~/Mail/teranisi/elmo-archive.zip}
1030 $bsd/freebsd;lha  -> @file{~/Mail/bsd/freebsd/elmo-archive.lzh}
1031 $/foo@@server:~/bar;zoo     -> @file{~/bar/elmo-archive.zoo} on ftp server
1032 $d:/msend.tar.gz;tgz;spool -> @file{d:/msend.tar.gz}
1033 $ml;zip/        -> Access group consists of archive folders
1034                    under @file{~/Mail/ml}
1035 @end group
1036 @end example
1037
1038 @menu
1039 * Archiver::     Supported Archivers
1040 * Archive Tips:: TIPS
1041 * Archive Vars:: Customization
1042 @end menu
1043
1044
1045 @node Archiver, Archive Tips, Archive Folder, Archive Folder
1046 @subsection Supported Archives
1047 @cindex Archiver
1048 @pindex LHA
1049 @pindex Info-ZIP
1050 @pindex UNZIP
1051 @pindex ZOO
1052 @pindex RAR
1053 @pindex TAR
1054 @pindex GNU TAR
1055
1056 By default, following archives are supported.
1057
1058 @example
1059 @group
1060         LHA, Info-ZIP/UNZIP, ZOO, RAR  ;; full-access
1061         GNU TAR('tgz, 'tar)            ;; read-only
1062 @end group
1063 @end example
1064
1065 If your archiver can include multiple files in one archive, you have a
1066 possibility use it as an archiver of Wanderlust (ARJ/UNARJ, ARC is one
1067 of the candidate. TAR is supported read-only because it cannot delete
1068 file in the archive (@code{mv})).
1069
1070 @command{gzip}, @command{bzip}, @command{bzip2} cannot be used as an
1071 archiver of Wanderlust because they cannot include multiple
1072 files. Archivers that cannot extract files to standard output are also
1073 not supported.
1074
1075 @subsection OS specific information about archiver.
1076
1077 Behaviors of the following archivers are confirmed by further experiences.
1078 (@samp{*} mark means recommended archiver).
1079
1080 @example
1081 [OS/2]  Warp4.0J(w/o VoiceType)+Fx00505/emx0.9c(fix04)/PMMule,EmacsPM
1082          LHA  OS/2 version Rel.2.06b    Feb 18, 1998
1083         *UnZip 5.32 of 3 November 1997, by Info-ZIP.
1084         *Zip 2.2 (November 3rd 1997).
1085          Zoo archiver, zoo 2.1 $@asis{}Date: 91/07/09 02:10:34 $
1086          GNU tar version 1.10 - AK 2.58 (DBCS/SJIS) 981216(homy) version
1087          gzip 1.2.4 (18 Aug 93) + bzip2 patch(by Iida-san)
1088
1089 [UN|X]  FreeBSD 2.2.7-RELEASE, Linux 2.0.30, Solaris2.6, HP-UX 9.07
1090          LHa for UNIX  V 1.14c
1091          UnZip 5.32 of 3 November 1997
1092          Zip 2.2 (November 3rd 1997)
1093          GNU tar 1.12 (1.11.x is no good)
1094          gzip 1.2.4 (18 Aug 93)
1095
1096 [Win32] Win.98/Meadow
1097          Lha32 version 1.28
1098          Zip 2.2
1099          UnZip 5.40
1100          GNU tar 1.11.8 + 1.5(WIN32)
1101          GZIP 1.2.4
1102          RAR 2.06
1103 @end example
1104
1105 * Caution about LHA
1106
1107 If you are an OS/2 user, Peter Fitzsimmons's LH/2 is not supported.
1108 Hiramatsu version of LHA is only supported.
1109 In Win32, LHa32 is only supported (DOS version is no good).
1110
1111 * Caution about GNU tar
1112
1113 You have to take care about GNU tar's version because many version has
1114 problem on deleting file from archive.
1115
1116 Please test @option{--delete} @option{-f} options work. Otherwise, your
1117 archive will be destroyed. No problem is reported on above versions of
1118 GNU tar.
1119
1120
1121 @node Archive Tips, Archive Vars, Archiver, Archive Folder
1122 @subsection TIPS
1123 @cindex Archive Tips
1124
1125 For comfortable migration, usage of @code{wl-summary-archive}
1126 (@pxref{Archive}) or Expire (@pxref{Expire}) is recommended.  To treat
1127 archive folders created by expiration, you must set non-nil value to
1128 @code{elmo-archive-treat-file}.
1129
1130 On the OS/2, there is a great difference between Mule2.3(19.28) and Emacs20.2
1131 in processing speed. For comfortable use, Emacs20 is recommended.
1132 (If re-search's performance is the problem, 19.3x or later may be okay.)
1133
1134 If many files are included in one archive,
1135 it takes long time to access the archive folder because
1136 archiver starting overhead is increased (especially LHA).
1137 150-200 messages in one archive is recommended.
1138
1139 Of course, following is possible @t{:-)}
1140 (meanings of these variables are described later.)
1141
1142 @lisp
1143 @group
1144 (setq wl-fcc "$backup")
1145 (setq wl-trash-folder "$trash;lha")
1146 @end group
1147 @end lisp
1148
1149 @node Archive Vars,  , Archive Tips, Archive Folder
1150 @subsection Variables About Archive Folder
1151 @cindex Archive variables
1152
1153 @table @code
1154 @item elmo-archive-default-type
1155 @vindex elmo-archive-default-type
1156 The initial setting is @code{zip}.
1157 Set archiver type by symbol.
1158
1159 @item elmo-archive-@var{type}-method-alist
1160 @vindex elmo-archive-TYPE-method-alist
1161 Define archiver @var{type}'s methods.
1162 (@var{type} is @samp{lha}, @samp{zip}, @samp{zoo}, @samp{tgz} etc)
1163 Each element of the alist is following.
1164
1165 @example
1166 @group
1167 (@var{action} . (@var{exec-name} @var{options}))   ;; external program and its option.
1168 (@var{action} . @var{function})              ;; function
1169 @end group
1170 @end example
1171
1172 Currently available actions are following.
1173
1174 @example
1175 @group
1176 'ls, 'cat ('cat-headers)        ;; Minimal setting(read-only)
1177 'mv ('mv-pipe), 'rm ('rm-pipe)  ;; full-access (with above)
1178 'cp ('cp-pipe)                  ;;
1179 @end group
1180 @end example
1181
1182 @noindent
1183 In above actions,
1184 actions enclosed with braces are optional (They are used for better
1185 performance).
1186
1187 @item elmo-archive-suffix-alist
1188 @vindex elmo-archive-suffix-alist
1189 An alist of archiver-type (symbol) and suffix.
1190
1191 @item elmo-archive-file-regexp-alist
1192 @vindex elmo-archive-file-regexp-alist
1193 An alist of a regexp to get file number from list output of archiver
1194 and archiver-type (symbol).
1195
1196 @item elmo-archive-method-list
1197 @vindex elmo-archive-method-list
1198 A list of elmo-archive-@var{type}-method-alist
1199 (@var{type} is a symbol of archiver-type).
1200
1201 @item elmo-archive-lha-dos-compatible
1202 @vindex elmo-archive-lha-dos-compatible
1203 The initial setting is @code{t} on OS/2 and Win32.  If non-nil, LHA is
1204 DOS (Mr. Yoshizaki original) compatible.
1205
1206 @item elmo-archive-cmdstr-max-length
1207 @vindex elmo-archive-cmdstr-max-length
1208 The initial setting is 8000.
1209
1210 Max length of command line argument for external archiver program.
1211 Emacs does not have a limit of command line byte length, but some OS
1212 (e.x OS/2) have. It depends on the OS. Archive folder is affected by
1213 this limit because it calls external archiver program directly (not
1214 called via shell).  For example, you cannot delete messages if archiver
1215 program must receive larger bytes of arguments to delete.  OS/2 have a
1216 command line argument limit of 8190 bytes, so we defined default as 8000
1217 with some margin.
1218
1219 However, you don't have an influence of command line argument limit
1220 if the archiver has `actions' to receive target file information from
1221 standard input (@code{rm-pipe}, @code{mv-pipe}, @code{cat-headers} action).
1222 @end table
1223
1224
1225 @node POP Folder, Shimbun Folder, Archive Folder, Folders
1226 @section POP Folder
1227 @cindex @samp{&}
1228 @cindex POP Folder
1229 @cindex RFC 1939
1230 @cindex POP3
1231 @cindex APOP
1232
1233 A folder to access e-mails via POP3 protocol (RFC 1939).
1234
1235 Format:
1236
1237 @example
1238 @group
1239 @samp{&} [@var{username}][[@samp{/} @var{authenticate-type}][@samp{:} @var{numbering-method}][@samp{@@} @var{hostname}][@samp{:} @var{port}]][@samp{!}]
1240 @end group
1241 @end example
1242
1243 You can specify
1244 @samp{user}  (plain password transmission) or @samp{apop}  (APOP authentication)
1245 as @var{authenticate-type}.
1246
1247 You can specify @samp{uidl} (use UIDL command for message numbering) or
1248 @samp{list} (use LIST command for message numbering) as @samp{numbering-method}.
1249
1250 default:
1251 @example
1252 @var{username}   -> The value of @code{elmo-pop3-default-user}.
1253               Initial setting is @env{USER} environment variable or
1254              @env{LOGNAME} environment variable or return value of
1255              @code{(user-login-name)}.
1256 @var{authenticate-type} -> The value of @code{elmo-pop3-default-authenticate-type}.
1257               Initial setting is @samp{user}.
1258 @var{numbering-method} -> Follow the value of @code{elmo-pop3-default-use-uidl}.
1259               If t, use UIDL for numbering. Initial setting is t.
1260 @var{hostname}   -> The value of @code{elmo-pop3-default-server}.
1261               Initial setting is @samp{localhost}.
1262 @var{port}       -> The value of @code{elmo-pop3-default-port}.
1263               Initial setting is 110.
1264 @end example
1265
1266 Example:
1267
1268 @example
1269 @group
1270 &hoge@@localhost     -> access localhost as user @samp{hoge}.
1271 &hoge@@popserver:109 -> access the server "popserver" on port 109
1272                         as user @samp{hoge}.
1273 @end group
1274 @end example
1275
1276 To use apop as an @var{authenticate-type}, @file{md5.el} is needed
1277 (XEmacs doesn't need @file{md5.el}).  @file{md5.el} is included in
1278 @file{utils/sasl/lisp/} or Emacs/W3 package
1279 (@uref{http://www.cs.indiana.edu/elisp/w3/docs.html}) or LCD archive
1280 (GPL2).
1281
1282 If the last character of the folder name is @samp{!}, Wanderlust
1283 connects to the POP server via SSL (Secure Socket Layer).  If you set
1284 non-nil value to @code{elmo-pop3-default-stream-type}, you don't have to put
1285 @samp{!} in the end of the folder name to use SSL. If a folder name ends
1286 with @samp{!!}, STARTTLS connection will be established.  if the value
1287 of @code{elmo-pop3-default-stream-type} is @code{starttls}, STARTTLS will be the
1288 default connection.
1289
1290
1291 @node Shimbun Folder, Namazu Folder, POP Folder, Folders
1292 @section Shimbun Folder
1293 @cindex @samp{@@}
1294 @cindex Shimbun Folder
1295 @cindex Folder, Shimbun
1296 @cindex Folder, Web
1297 @pindex w3m
1298 @pindex emacs-w3m
1299
1300 A folder for watching "shimbun" (means "newspaper" in Japanese),
1301 news site and mailing list archives on WWW by using emacs-w3m
1302 (@uref{http://emacs-w3m.namazu.org/}).
1303
1304 You should possess w3m and emacs-w3m to use this.
1305
1306 Format:
1307
1308 @example
1309 @group
1310 @samp{@@} @var{module-name} @samp{.} @var{folder-name}
1311 @end group
1312 @end example
1313
1314 Admissible values of @var{module-name} and @var{folder-name} are
1315 described in @file{README.shimbun.ja} distributed with emacs-w3m.
1316
1317 Example:
1318
1319 @example
1320 @group
1321 @@airs.wl  -> archive of wanderlust ML (using module @file{sb-airs.el})
1322 @@asahi/   -> access group of all folders in module @file{sb-asahi.el}
1323 @end group
1324 @end example
1325
1326 @subsection Variables About Shimbun Folder
1327
1328 @table @code
1329 @item elmo-shimbun-update-overview-folder-list
1330 @vindex elmo-shimbun-update-overview-folder-list
1331 The initial setting is @code{nil}. You can specify a list of regular
1332 expressions of shimbun folder names. The overview of matched shimbun
1333 folder is updated when messages are fetched.
1334 You should @kbd{s rescan} after fetching to update summary.
1335 @end table
1336
1337
1338 @node Namazu Folder, Multi Folder, Shimbun Folder, Folders
1339 @section Namazu Folder
1340 @cindex @samp{[}
1341 @cindex Namazu Folder
1342 @cindex Folder, Namazu
1343 @cindex Folder, Text Search
1344 @pindex Namazu
1345 @pindex nmz
1346 A folder to access messages found in namazu-index with some condition.
1347 It uses namazu (@uref{http://www.namazu.org/}) for search.
1348
1349 Format:
1350
1351 @example
1352 @group
1353 @samp{[} @var{search condition} @samp{]} [ @var{absolute path of namazu index} ]
1354 @end group
1355 @end example
1356
1357 Default value of the path of namazu index can be assigned by @code{elmo-nmz-default-index-path}.
1358
1359 Example:
1360
1361 @example
1362 @group
1363 [wanderlust]           -> search messages matched with
1364                        "wanderlust" from the default index
1365 [semi flim]~/Mail/semi -> search "semi flim" from the index
1366                        in the directory "~/Mail/semi"
1367 @end group
1368 @end example
1369
1370 @subsection TIPS
1371
1372 @subsubsection Enter space to separate keywords
1373
1374 If you want to use space in folder entry, @kbd{C-q @key{SPC}} will help you.
1375
1376 @subsubsection Alias name for index
1377
1378 You can define an alias name for index.
1379
1380 Example:
1381
1382 @example
1383 (setq elmo-nmz-index-alias-alist
1384       '(("cache" . "~/.elmo/cache")
1385         ("docs" . "~/documents")))
1386 @end example
1387
1388 Above definition defines two index aliases.
1389 You can specify
1390
1391 @example
1392 [wanderlust]cache
1393 @end example
1394
1395 to execute a namazu search with keyword @samp{wanderlust} using a index in the 
1396 directory @file{~/.elmo/cache}.
1397
1398 @subsubsection Multiple indices
1399
1400 You can specify a list for @code{elmo-nmz-default-index-path} and
1401 @code{elmo-nmz-index-alias-alist}.
1402 When list is specified, all index contained in the list is used as the 
1403 namazu indices.
1404
1405 Example:
1406
1407 @example
1408 (setq elmo-nmz-index-alias-alist
1409       '(("all" . ("~/.elmo/cache" "~/documents"))
1410         ("cache" . "~/.elmo/cache")))
1411 @end example
1412
1413 Using above alias setting, you can specify
1414
1415 @example
1416 [wanderlust]all
1417 @end example
1418
1419 to execute a namazu search with keyword @samp{wanderlust} using indices in the 
1420 directory @file{~/.elmo/cache} and @file{~/documents}.
1421
1422 @node Multi Folder, Filter Folder, Namazu Folder, Folders
1423 @section Multi Folder
1424 @cindex @samp{*}
1425 @cindex Multi Folder
1426 @cindex Folder, Multiple
1427 @cindex Folder, Marge
1428
1429 A folder to access virtual folder which collects messages from
1430 multiple folders.
1431
1432 Format:
1433
1434 @example
1435 @group
1436 @samp{*} @var{folder-1} [@samp{,} @var{folder-2}] @dots{} [@samp{,} @var{folder-N}]
1437 @end group
1438 @end example
1439
1440 After @samp{*} character, specify multiple folders you want to collect
1441 separated by @samp{,} like
1442 @samp{@var{folder-1},@var{folder-2},@dots{},@var{folder-N}}.
1443
1444 Example:
1445
1446 @example
1447 @group
1448 *-fj.editor.xemacs,-fj.editor.mule,-fj.editor.emacs
1449 -> -fj.editor.xemacs, -fj.editor.mule and -fj.editor.emacs are
1450    treated as one folder.
1451
1452 *+inbox,-fj.rec.tv,%inbox
1453 -> +inbox, -fj.rec.tv and %inbox are treated as one folder.
1454 @end group
1455 @end example
1456
1457
1458 @node Filter Folder, Pipe Folder, Multi Folder, Folders
1459 @section Filter Folder
1460 @cindex @samp{/}
1461 @cindex Filter Folder
1462 @cindex Folder, Filtering
1463 @cindex Folder, Virtual
1464 @cindex Folder, Conditional
1465
1466 A folder to access virtual folder which collects all messages that
1467 satisfy a condition.
1468
1469 Format:
1470
1471 @example
1472 @samp{/} @var{condition} @samp{/} @var{target-folder}
1473 @end example
1474
1475 In the @var{condition} part, you can specify following.
1476
1477 @enumerate
1478 @item
1479 Partial filter: @samp{first:@var{number}}, @samp{last:@var{number}}
1480
1481 first: @var{number} messages are picked from top of folder.
1482 last:  @var{number} messages are picked from bottom of folder.
1483
1484 Example:
1485
1486 @example
1487 @group
1488 /last:10/-fj.os.linux -> Latest 10 messages from -fj.os.linux are picked.
1489 /first:20/%inbox      -> First 20 messages from %inbox are picked.
1490 @end group
1491 @end example
1492
1493 @item
1494 Date filter: @samp{since:@var{date}}, @samp{before:@var{date}}
1495
1496 since: only messages arrived since @var{date} are picked.
1497 before: only messages arrived before @var{date} are picked.
1498
1499 You can specify following as @var{date}.
1500
1501 @example
1502 @group
1503 yesterday ->  a day before today.
1504 lastweek  ->  same day of last week.
1505 lastmonth ->  same day of last month.
1506 lastyear  ->  same day of last year.
1507 @var{number}daysago -> @var{number} days ago. (e.x. '3daysago')
1508 @var{day}-@var{month}-@var{year} -> specify date directly (ex. 1-Nov-1998)
1509 @end group
1510 @end example
1511
1512 Example:
1513
1514 @example
1515 @group
1516 /since:3daysago/+inbox -> messages arrived since 3 days ago in +inbox
1517                           are picked.
1518 /before:yesterday/+inbox -> messages arrived before yesterday in +inbox
1519                           are picked.
1520 @end group
1521 @end example
1522
1523 @item
1524 Field filter: @samp{@var{field}:@var{value}}
1525
1526 All messages that have @var{field} and its value is @var{value} are picked.
1527 @var{field} and @var{value} are case insensitive.
1528
1529 Example:
1530
1531 @example
1532 @group
1533 /from:teranisi/+inbox -> In +inbox, messages which have From: field
1534                          and its value includes "teranisi" string are picked.
1535 /body:foo/%inbox      -> In %inbox, messages which have "foo" text
1536                          are picked.
1537 @end group
1538 @end example
1539
1540 @item
1541 Compound condition
1542
1543 If you combine conditions by character @samp{|}, it is considered as OR condition. @samp{&} is considered as AND condition, likewise.
1544 Condition can be grouped by parentheses (@samp{(}, and @samp{)}).
1545
1546 @samp{/tocc:xxxx/} is an abbreviation of @samp{/to:xxxx|cc:xxxx/}.
1547 @samp{/!tocc:xxxx/} is an abbreviation of @samp{/!to:xxxx&!cc:xxxx/}.
1548
1549 Example:
1550
1551 @example
1552 @group
1553 /from:teranisi&!to:teranisi/+inbox
1554                       -> In +inbox, messages are picked if the message's
1555                          From: field includes "teranisi" and
1556                          To: field doesn't include "teranisi".
1557
1558 /tocc:"Yuuichi Teranishi"/+inbox
1559                       -> In +inbox, messages are picked if the
1560                          message's To: field or Cc: field includes
1561                          "Yuuichi Teranishi".
1562
1563 /(from:yt|from:teranisi)&subject:report/+inbox
1564                       -> In +inbox, messages are picked if the message's
1565                          From: field includes "yt" or "teranisi", and
1566                         Subject includes "report".
1567 @end group
1568 @end example
1569 @end enumerate
1570
1571 @noindent
1572 Tip for string description:
1573
1574 Space character, @samp{"}, @samp{/},@samp{)},@samp{|} and @samp{&}
1575 should be enclosed with @samp{"} in @var{value} string.  (@samp{"}
1576 should be escaped with @samp{\} in it).  You can enclose the string with
1577 @samp{"} even it does not contain these characters.
1578
1579 @noindent
1580 Advanced example:
1581
1582 @example
1583 *%inbox,/from:teranisi/%inbox@@server
1584        -> Messages in %inbox or
1585           message is in the %inbox@@server folder and it's From field
1586           includes "teranisi" are collected.
1587
1588 /last:100//to:teranisi/*+inbox,%inbox
1589        -> Latest 100 messages which is in the +inbox or %inbox folder
1590           and To: field matches "teranisi".
1591
1592 /from:hogehoge//last:20//tocc:teranisi/%#mh/inbox@@localhost
1593        -> Pick messages which have From: field and it includes "hogehoge"
1594           from latest 20 messages in the %#mh/inbox@@localhost
1595           and To: or Cc: field includes "teranisi".
1596 @end example
1597
1598 @node Pipe Folder, Internal Folder, Filter Folder, Folders
1599 @section Pipe Folder
1600 @cindex @samp{|}
1601 @cindex Pipe Folder
1602 @cindex Get Message
1603 @cindex Download Message
1604 @cindex Incorporate Message
1605
1606 In the pipe folder, messages are automatically transferred from the source
1607 folder to destination folder.
1608
1609 Format:
1610
1611 @example
1612 @samp{|} @var{source-folder} @samp{|} @var{destination-folder}
1613 @end example
1614
1615 When you access the pipe folder, messages are automatically transferred
1616 from @var{source-folder} to @var{destination-folder}.
1617 It is convenient if you want to download messages to local disk via POP.
1618 For example, if you specify following
1619
1620 @example
1621 |&username@@popserver|+inbox
1622 @end example
1623
1624 @noindent
1625 and access it, messages are downloaded automatically from
1626 @samp{&username@@popserver} to @samp{+inbox}.
1627
1628 On the other hand, if you put @samp{|:} instead of second @samp{|},
1629 then messages are copied to the destination folder (not deleted from
1630 source-folder). At the next time you access that folder, only new
1631 messages will be copied.
1632
1633 @example
1634 @samp{|} @var{source-folder} @samp{|:} @var{destination-folder}
1635 @end example
1636
1637 If you want to copy messages from POP server and view them, specify the
1638 folder as follows:
1639
1640 @example
1641 |&username@@popserver|:+inbox
1642 @end example
1643
1644 where messages will be kept on the server.
1645
1646 Example:
1647
1648 @example
1649 @group
1650 |%inbox|%myinbox   -> Download %inbox to %myinbox.
1651 |*&user@@popserver1,&user@@popserver2|+inbox
1652          -> Download from &user@@popserver1 and &user@@popserver2 to +inbox.
1653 |-gnu.emacs.sources|:+sources
1654          -> Copy messages from -gnu.emacs.sources to +sources.
1655 @end group
1656 @end example
1657
1658 After messages are moved, a hook @code{elmo-pipe-drained-hook} is called.
1659
1660 @node Internal Folder,  , Pipe Folder, Folders
1661 @section Internal folder
1662 @cindex @samp{'}
1663 @cindex Internal Folder
1664 @cindex Folder, @samp{$} mark
1665 @cindex Cache
1666 @c @cindex Folder, Null
1667
1668 A folder to access internal messages of Wanderlust.
1669
1670 Format:
1671
1672 @example
1673 @group
1674 'mark
1675 'sendlog
1676 'cache/00 - 1F
1677 @end group
1678 @end example
1679
1680 A folder named @samp{'mark} is a special virtual folder which collects
1681 messages which have important mark @samp{$}.
1682
1683 You can review important messages at once after you put important marks
1684 on the messages in the different folders.
1685
1686 In this folder, if you delete message, important mark @samp{$} put on
1687 the message is removed.  If you append messages to this folder, the
1688 message will have @samp{$} mark.
1689
1690 (Can't remove important mark @samp{$} on IMAP server from @samp{'mark}
1691 folder.  If you want IMAP folder's message remove from @samp{'mark}
1692 folder, remove important mark at IMAP Folder.)
1693
1694
1695 A folder named @samp{'sendlog} is a virtual folder which collects
1696 cached messages which are recoded on @file{~/.elmo/sendlog}.
1697 It might be useful when you forgot to add cc for yourself.
1698 To use this, you should set @code{wl-draft-use-cache} to non-nil
1699 so that sent messages are cached.
1700
1701
1702 You can access cached messages fetched via network by accessing
1703 folders named @samp{'cache/00} - @samp{'cache/1F}. 00 - 1F are
1704 the name of the subdirectories of the cache directory
1705 (@file{~/.elmo/cache}).
1706
1707
1708 @node Folder, Summary, Folders, Top
1709 @chapter Folder mode
1710 @cindex Folder
1711
1712 After you start Wanderlust, folder mode is appeared firstly.
1713 It contains folder list you subscribed.
1714 You can select and edit folders in this mode.
1715
1716 @menu
1717 * Selecting Folder:: Select folder you want to read
1718 * Folder Manager::   Editing folders
1719 @end menu
1720
1721
1722 @node Selecting Folder, Folder Manager, Folder, Folder
1723 @section Selecting Folder
1724 @cindex Selecting Folder
1725
1726 @subsection Usage (TIPS)
1727
1728 @subsubsection Check new, unread number
1729
1730 Folder mode looks like this.
1731 (In XEmacs, it looks much nicer @t{;-)})
1732
1733 @example
1734 @group
1735 [-]Desktop:14186/35580/67263
1736    Inbox:3/10/10
1737    Trash:2/7/10
1738    Drafts:0/0/3
1739    Sent:0/9/348
1740    [-]Emacsen:0/34/4837
1741      Wanderlust ML:0/0/558
1742      ELIPS ML:0/0/626
1743      tm:0/0/821
1744      XEmacs Beta:0/29/255
1745      Mew:0/0/998
1746      Mule-Win32:0/0/1491
1747      fj's Emacsen:0/5/88
1748 @end group
1749 @end example
1750
1751
1752 Each line means:
1753
1754 @example
1755 @var{folder-name}:@var{new-number}/@var{unread-number}/@var{all-number}
1756 @end example
1757
1758 @noindent
1759 @kbd{s} key on the folder line updates these numbers.
1760 It changes its color if it has many new messages.
1761
1762 The whole folder mode is a folder group named @samp{Desktop}.
1763 Folder group open/close by return key.
1764 A operation to a folder group is treated as operations on the
1765 children folders.
1766 For example, when you type @kbd{s} on @samp{[-]Emacsen},
1767 six children folders update its unread number status.
1768
1769 @subsubsection Select Folder
1770
1771 To enter summary mode of the folder, type return (or space) key on
1772 the folder line.
1773 If the variable @code{wl-stay-folder-window} has non-nil value,
1774 summary window appears on the right of the folder mode window.
1775
1776 @subsection Key bindings
1777
1778 Folder mode's key binding (related to selecting folders) is following.
1779
1780 @table @kbd
1781 @item @key{SPC}
1782 @itemx @key{RET}
1783 @kindex @key{SPC} (Folder)
1784 @kindex @key{RET} (Folder)
1785 @findex wl-folder-jump-to-current-entity
1786 Enter to the summary mode of the folder at the current cursor point.
1787 With prefix argument, enter the sticky summary.
1788 If the cursor is on the top of folder group line,
1789 the folder group is opened or closed.
1790 When the cursor is on the access group and this command is called
1791 with prefix argument, folder children list is updated to the newest one.
1792 (Children list is updated recursively if the access folder has hierarchical
1793 structure.)
1794 (@code{wl-folder-jump-to-current-entity})
1795
1796 @item M-@key{RET}
1797 @kindex M-@key{RET} (Folder)
1798 @findex wl-folder-update-recursive-current-entity
1799 Folder children list of the access group at the current cursor point
1800 is updated to the newest one.
1801 (Children list is updated recursively if the access folder has hierarchical
1802 structure.)
1803 (@code{wl-folder-update-recursive-current-entity})
1804
1805 @item w
1806 @kindex w (Folder)
1807 @findex wl-draft
1808 Create a new draft message.
1809 (@code{wl-draft})
1810
1811 @item W
1812 @kindex W (Folder)
1813 @findex wl-folder-write-current-folder
1814 If the current cursor point is on the NNTP folder, create a new draft
1815 message which already has @samp{Newsgroups:} field.  If the current
1816 cursor point is on the folder for mailing list (refile destination),
1817 create a new draft message which already has @samp{To:} field with
1818 guessed mailing list address (If @code{wl-subscribed-mailing-list} is
1819 valid list).
1820 (@code{wl-folder-write-current-folder})
1821
1822 @item C-c C-o
1823 @kindex C-c C-o (Folder)
1824 @findex wl-jump-to-draft-buffer
1825 Move to the draft buffer if available.  If multiple draft buffer exists,
1826 moved to one after another.  If prefix argument is specified, load draft
1827 folder's message to the draft buffer and jump to it.
1828 (@code{wl-jump-to-draft-buffer})
1829
1830 @item s
1831 @kindex s (Folder)
1832 @findex wl-folder-check-current-entity
1833 Update new and unread number information of the folder at the current
1834 cursor point.
1835 (@code{wl-folder-check-current-entity})
1836
1837 @item S
1838 @kindex S (Folder)
1839 @findex wl-folder-sync-current-entity
1840 Update summary information of the folder at the current cursor point.
1841 (@code{wl-folder-sync-current-entity})
1842
1843 @item r s
1844 @kindex r s (Folder)
1845 @findex wl-folder-check-region
1846 Update new and unread number information of the folders in the currently
1847 selected region.
1848 (@code{wl-folder-check-region})
1849
1850 @item r S
1851 @kindex r S (Folder)
1852 @findex wl-folder-sync-region
1853 Update summary information of the folders in the currently selected region.
1854 (@code{wl-folder-sync-region})
1855
1856 @item Z
1857 @kindex Z (Folder)
1858 @findex wl-status-update
1859 Sync up address book status with @file{~/.addresses}'s content.
1860 (@code{wl-status-update})
1861
1862 @item P
1863 @kindex P (Folder)
1864 @findex wl-folder-prev-unread
1865 Jump cursor to the folder which have unread messages on the upward from
1866 current cursor point.
1867 (@code{wl-folder-prev-unread})
1868
1869 @item N
1870 @kindex N (Folder)
1871 Jump cursor to the folder which have unread messages on the downward
1872 from current cursor point.
1873 (@code{wl-folder-next-unread})
1874
1875 @item p
1876 @kindex p (Folder)
1877 Move cursor to the folder on the previous line.
1878 (@code{wl-folder-prev-entity})
1879
1880 @item n
1881 @kindex n (Folder)
1882 Move cursor to the folder on the next line.
1883 (@code{wl-folder-next-entity})
1884
1885 @item J
1886 @kindex J (Folder)
1887 Jump to the folder specified by the user input.
1888 (@code{wl-folder-jump-folder})
1889
1890 @item I
1891 @kindex I (Folder)
1892 @findex wl-folder-prefetch-current-entity
1893 Prefetch new messages of the folder at the current cursor point by
1894 @code{wl-summary-incorporate}.
1895 If the cursor is on the folder group, it is executed recursively.
1896 (@code{wl-folder-prefetch-current-entity})
1897
1898 @item c
1899 @kindex c (Folder)
1900 @findex wl-folder-mark-as-read-all-current-entity
1901 Mark all unread messages of the folder at the current cursor point as read.
1902 If the cursor is on the folder group, it is executed recursively.
1903 (@code{wl-folder-mark-as-read-all-current-entity})
1904
1905 @item f
1906 @kindex f (Folder)
1907 @findex wl-folder-goto-first-unread-folder
1908 Enter summary mode of the first unread folder.
1909 (@code{wl-folder-goto-first-unread-folder})
1910
1911 @item E
1912 @kindex E (Folder)
1913 @findex wl-folder-empty-trash
1914 Empty trash.
1915 (@code{wl-folder-empty-trash})
1916
1917 @item F
1918 @kindex F (Folder)
1919 @findex wl-folder-flush-queue
1920 Flush queue.
1921 (@code{wl-folder-flush-queue})
1922
1923 @item V
1924 @kindex V (Folder)
1925 @findex wl-folder-virtual
1926 Move to the virtual folder with the condition specified.
1927 (@code{wl-folder-virtual})
1928
1929 @item ?
1930 @kindex ? (Folder)
1931 @findex wl-folder-pick
1932 Search the folders with the condition specified.
1933 (@code{wl-folder-pick})
1934
1935 @item o
1936 @kindex o (Folder)
1937 @findex wl-folder-open-all-unread-folder
1938 All unread folder is opened.
1939 (@code{wl-folder-open-all-unread-folder})
1940
1941 @item /
1942 @kindex / (Folder)
1943 @findex wl-folder-open-close
1944 Folder group is opened/closed.
1945 (@code{wl-thread-open-close})
1946
1947 @item [
1948 @kindex [ (Folder)
1949 All folder group is opened.
1950 (@code{wl-folder-open-all})
1951
1952 @item ]
1953 @kindex ] (Folder)
1954 All folder group is closed.
1955 (@code{wl-folder-close-all})
1956
1957 @item q
1958 @kindex q (Folder)
1959 Quit Wanderlust.
1960 (@code{wl-exit})
1961
1962 @item z
1963 @kindex z (Folder)
1964 Suspend Wanderlust.
1965 (@code{wl-folder-suspend})
1966
1967 @item M-s
1968 @kindex M-s (Folder)
1969 Save current folder status.
1970 (@code{wl-save})
1971
1972 @item M-t
1973 @kindex M-t (Folder)
1974 Toggle Wanderlust's offline/online status.
1975 (@code{wl-toggle-plugged})
1976
1977 @item C-t
1978 @kindex C-t (Folder)
1979 Start Wanderlust's plug-status manager.
1980 (@code{wl-plugged-change})
1981 @end table
1982
1983 @subsection Customize variables
1984
1985 @table @code
1986 @item wl-folders-file
1987 @vindex wl-folders-file
1988 The initial setting is @file{~/.folders}.
1989 Subscribed folders are described (saved) in this file.
1990
1991 @item wl-folder-info-save
1992 @vindex wl-folder-info-save
1993 The initial setting is @code{t}.  If non-nil, unread information is
1994 saved and used in the next Wanderlust session.
1995
1996 @item wl-stay-folder-window
1997 @vindex wl-stay-folder-window
1998 The initial setting is @code{nil}.
1999 If non-nil, summary window is appeared on the right side of the folder buffer.
2000
2001 @item wl-folder-window-width
2002 @vindex wl-folder-window-width
2003 The initial setting is 20.
2004 Folder mode's window width when @code{wl-stay-folder-window} is non-nil.
2005
2006 @item wl-folder-use-frame
2007 @vindex wl-folder-use-frame
2008 The initial setting is @code{nil}.
2009 If non-nil, use new frame for the folder window.
2010
2011 @item wl-folder-many-unsync-threshold
2012 @vindex wl-folder-many-unsync-threshold
2013 The initial setting is 70.
2014 If the number of unread messages is more than this value,
2015 folder color is changed.
2016
2017 @item wl-highlight-folder-by-numbers
2018 @vindex wl-highlight-folder-by-numbers
2019 This option controls how to highlight each line in the folder buffer.
2020 The default value is @code{t}, highlighting with various colors based on
2021 the message numbers.  If it is @code{nil}, highlighting with various
2022 colors based on the folder status.  In addition, if it is a number
2023 (e.g. 1), highlighting will be done based on both the message numbers
2024 and the folder status.
2025
2026 @item wl-folder-desktop-name
2027 @vindex wl-folder-desktop-name
2028 The initial setting is @samp{Desktop}.
2029 The name of top folder group.
2030
2031 @item wl-folder-petname-alist
2032 @vindex wl-folder-petname-alist
2033 The initial setting is @code{nil}.
2034 An alist of folder's realname and its nickname.
2035
2036 @item wl-folder-access-subscribe-alist
2037 @vindex wl-folder-access-subscribe-alist
2038 The initial setting is @code{nil}.
2039
2040 Control automatic subscribing and unsubscribing of the children list
2041 of access groups.
2042
2043 Each element is:
2044
2045 @example
2046 (@var{regexp-of-access-folder} . (@var{subscribe-flag} @var{regexp-of-folders} @dots{}))
2047 @end example
2048
2049 @noindent
2050 If @var{subscribe-flag} is non-nil, folders which have name matched to
2051 @var{regexp-of-folders} are displayed. Otherwise, hidden.  However,
2052 already unsubscribed folder is not displayed even when the
2053 @var{subscribe-flag} is non-nil. Multiple @var{regexp-of-folders} can be
2054 specified.
2055
2056 Example:
2057
2058 @lisp
2059 @group
2060 '(("^-fj$" . (t   "^-fj\\.\\(comp\\|editor\\|mail\\)"
2061                   "^-fj\\.\\(net\\|news\\|os\\|rec\\)"))
2062   ("^-$" . (t   "^-\\(fj\\|tnn\\|japan\\|gnu\\|comp\\)"))
2063   ("^\\+ml$" . (nil "^\\+ml$" "^\\+ml/tmp")))
2064 @end group
2065 @end lisp
2066
2067 @item wl-folder-hierarchy-access-folders
2068 @vindex wl-folder-hierarchy-access-folders
2069 The initial setting is the list shown below:
2070
2071 @lisp
2072 @group
2073 ("^-$" "^-alt$")
2074 @end group
2075 @end lisp
2076
2077 @noindent
2078 A list of regular expressions for access groups which creates children
2079 folder list hierarchically.
2080
2081 For example, if you specify
2082 @code{wl-folder-hierarchy-access-folders} like following,
2083
2084 @lisp
2085 @group
2086 (setq wl-folder-hierarchy-access-folders
2087      '("^-$" "^-alt$" "^-japan$" "^-comp$" "^-comp.unix$"))
2088 @end group
2089 @end lisp
2090
2091 @noindent
2092 such access group hierarchy is obtained.
2093
2094 @example
2095 @group
2096    [-]-:912/912/3011
2097      [-]-fj:674/674/1314
2098        -fj.comp.announce:0/0/2
2099        -fj.comp.dev.cdrom:0/0/0
2100        @dots{}
2101      [+]-japan:238/238/1688
2102      [-]-comp:0/0/4
2103        [-]-comp.unix:0/0/0
2104          -comp.unix.admin:0/0/0
2105          -comp.unix.dos-under-unix:0/0/0
2106          -comp.unix.programmer:0/0/0
2107          [-]-comp.unix.bsd:0/0/23
2108            -comp.unix.bsd.freebsd.announce:0/0/0
2109      @dots{}
2110 @end group
2111 @end example
2112
2113 If you opened @samp{-} in this example, only the direct children is created
2114 (@samp{-fj}, @samp{-japan}, @samp{-tnn}, @dots{}).
2115 second hierarchy (@samp{-fj.comp.announce}, @dots{}, @samp{-comp.unix}, @dots{})
2116 is not created until the children access group is opened.
2117 @end table
2118
2119
2120 @node Folder Manager,  , Selecting Folder, Folder
2121 @section Editing Folders
2122 @cindex Folder Manager
2123 @cindex Folder, Edit
2124 @cindex Folder, Subscribe
2125 @cindex Folder, Unsubscribe
2126
2127 As described before, subscribed folder list is saved in @file{~/.folders} file.
2128 But you don't have to edit @file{~/.folders} directly.
2129 You can append, delete, edit folders from folder mode.
2130
2131 @subsection Usage (Tips)
2132
2133 @subsubsection Append Folder
2134
2135 @kbd{m a} appends new folder to the folder mode.
2136 @kbd{m g} appends new folder group.
2137 To append new folder to this group, firstly open it,
2138 then execute append command in the next line.
2139
2140 @subsubsection Edit Folder
2141
2142 You can cut folder by @kbd{C-k}, paste by @kbd{C-y}.
2143 Thus, you can change folder position as if you were editing a normal file.
2144
2145 @subsubsection Create Multi Folder.
2146
2147 @enumerate
2148 @item
2149 Type @kbd{m q} to clear @code{wl-fldmgr-cut-entity-list}.
2150 @item
2151 Cut folder by @kbd{C-k} or copy folder by @kbd{M-c}.
2152 @item
2153 Type @kbd{m m}, then you can create multi folder.
2154 @end enumerate
2155
2156 @subsubsection Delete Nickname, Filter
2157
2158 You can delete nickname or filter by putting ``''(@var{NULL}) from the
2159 minibuffer while appending.
2160
2161 @subsubsection Append Folder to Empty Group
2162
2163 To append new folder to the empty folder group
2164 (after you create folder group by typing @kbd{m g}),
2165 firstly open it, then execute append command in the next line.
2166 If it is closed, folder is appended on the same level with
2167 the above folder group. It is difficult to explain by words so try it.
2168 In other words, appended position depends on the
2169 above folder group's open/close status.
2170
2171 @subsubsection Charset of the Folders File.
2172
2173 @code{wl-mime-charset} is used for saving @code{wl-folders-file}.
2174
2175 @subsubsection Create Filter
2176
2177 @kbd{m f} adds filter to the folder at the current cursor point.  To
2178 create new filter folder and leave the current folder unchanged, copy it
2179 @kbd{M-c}, make filter @kbd{m f} and paste it @kbd{C-y}.  Multiple
2180 filter can be specified while appending filter.  If you put
2181 ``''(@var{NULL}), filter is deleted.
2182
2183 @subsubsection Sort Folders
2184
2185 Sorting of the folders is executed by the function specified by
2186 @code{wl-fldmgr-sort-function}.
2187 The initial setting is @code{wl-fldmgr-sort-standard},
2188 which sorts alphabetically.
2189 Sorting affects only on the current folder group. It does not
2190 affect on the child groups.
2191
2192 @subsubsection Hiding Folders in the Access Group
2193
2194 Usually, access group displays all children folders, but you can set
2195 some folders hidden. Following operations are only available on access
2196 group.
2197
2198 Command @code{wl-fldmgr-unsubscribe} (@kbd{u}) toggles the visibility
2199 (subscribe/unsubscribe) of the folder at current cursor point.  Against
2200 this, @code{wl-fldmgr-unsubscribe-region} (@kbd{U}) hides folders in the
2201 specified region.
2202
2203 Note that @code{wl-fldmgr-unsubscribe-region} does not toggle while
2204 @code{wl-fldmgr-unsubscribe} toggles.  These two commands accept prefix
2205 argument and if the argument has positive number, the unsubscribe it.
2206 If the prefix argument has negative value, folder becomes visible and if
2207 zero, folder visibility is toggled.
2208
2209 The other commands, @code{wl-fldmgr-subscribe} and
2210 @code{wl-fldmgr-subscribe-region} are also prepared (not binded to the
2211 key).
2212
2213 Moreover, if @code{wl-fldmgr-cut} or @code{wl-fldmgr-cut-region} is
2214 executed in the access group, they have a same effect with
2215 @code{wl-fldmgr-unsubscribe} and @code{wl-fldmgr-unsubscribe-region}.
2216 The difference is that cut commands deletes folders from the current
2217 buffer.
2218
2219 @subsubsection Operations in the Access Group
2220
2221 You can insert and delete folders in the access group like usual folder
2222 group.  But insert and delete commands can be only available for the
2223 children folders of the access group and they only sets the subscribe
2224 status.  In other words, insertion of the folder means subscribing,
2225 deletion means unsubscribing.
2226 @footnote{In the current implementation,
2227 it is faster to delete region than to unsubscribe region.}
2228
2229 To update the access group when children folders are inserted or deleted
2230 by other way (other than Wanderlust),
2231 open the access group by typing @kbd{C-u @key{RET}}.
2232 @xref{Selecting Folder}.
2233
2234 The order of children folders of access group is saved after
2235 insertion/deletion/sorting.
2236 If you set @code{wl-force-fetch-folders} to non-nil or open access group
2237 by typing @kbd{C-u @key{RET}}, disappeared folders are deleted and
2238 newly created folders are inserted on the top of the access group.
2239
2240 @subsection Key bindings
2241 @cindex Keybind, Folder Mode
2242 @cindex Keybind, Folder Buffer
2243
2244 Key bindings on the folder mode related to folder editing are shown below.
2245 All bindings starts with @kbd{m}, and primary commands are binded to
2246 one stroke key binding.
2247
2248 @table @kbd
2249 @item m a
2250 @kindex m a (Folder)
2251 @findex wl-fldmgr-add
2252 Insert a folder.
2253 (@code{wl-fldmgr-add})
2254
2255 @item +
2256 @itemx m g
2257 @kindex + (Folder)
2258 @kindex m g (Folder)
2259 @findex wl-fldmgr-make-group
2260 Create a folder group.
2261 (@code{wl-fldmgr-make-group})
2262
2263 @itemx m A
2264 @kindex m A (Folder)
2265 @findex wl-fldmgr-make-access-group
2266 Create an access group.
2267 (@code{wl-fldmgr-make-access-group})
2268
2269 @item m d
2270 @kindex m d (Folder)
2271 @findex wl-fldmgr-delete
2272 Delete folder itself and msgdb.
2273 If the folder itself cannot be deleted like NNTP folder,
2274 only msgdb is deleted.
2275 (@code{wl-fldmgr-delete})
2276
2277 @item R
2278 @itemx m R
2279 @kindex R (Folder)
2280 @kindex m R (Folder)
2281 @findex wl-fldmgr-rename
2282 Change the name of folder or folder group.
2283 msgdb's path is also changed.
2284 (@code{wl-fldmgr-rename})
2285
2286 @item *
2287 @itemx m m
2288 @kindex * (Folder)
2289 @kindex m m(Folder)
2290 @findex wl-fldmgr-make-multi
2291 Create a multi folders in the cutlist (cut, copied folders).
2292 (@code{wl-fldmgr-make-multi})
2293
2294 @item |
2295 @itemx m f
2296 @kindex | (Folder)
2297 @kindex m f (Folder)
2298 @findex wl-fldmgr-make-filter
2299 Create a filter folder. (Put a filter on the folder).
2300 (@code{wl-fldmgr-make-filter})
2301
2302 @item M-c
2303 @itemx m c
2304 @kindex M-c (Folder)
2305 @kindex m c (Folder)
2306 @findex wl-fldmgr-copy
2307 Copy folder (it is not available on folder group).
2308 (@code{wl-fldmgr-copy})
2309
2310 @item M-w
2311 @itemx m W
2312 @kindex M-w (Folder)
2313 @kindex m W (Folder)
2314 @findex wl-fldmgr-copy-region
2315 Copy folders in the specified region.
2316 (@code{wl-fldmgr-copy-region})
2317
2318 @item C-k
2319 @itemx m k
2320 @kindex C-k (Folder)
2321 @kindex m k (Folder)
2322 @findex wl-fldmgr-cut
2323 Cut folder. Folder itself is not deleted.
2324 (@code{wl-fldmgr-cut})
2325
2326 @item C-w
2327 @itemx m C-w
2328 @kindex C-w (Folder)
2329 @kindex m C-w (Folder)
2330 @findex wl-fldmgr-cut-region
2331 Cut folders in the specified region.
2332 (@code{wl-fldmgr-cut-region})
2333
2334 @item C-y
2335 @itemx m y
2336 @kindex C-y (Folder)
2337 @kindex m y (Folder)
2338 @findex wl-fldmgr-yank
2339 Paste folders that are copied or cut (folders in the cut-list).
2340 (@code{wl-fldmgr-yank})
2341
2342 @item m p
2343 @kindex m p (Folder)
2344 @findex wl-fldmgr-set-petname
2345 Put nickname on the folder.
2346 (@code{wl-fldmgr-set-petname})
2347
2348 @item m q
2349 @kindex m q (Folder)
2350 @findex wl-fldmgr-clear-cut-entity-list
2351 Clear the cut-list. (cut, copied folder information is cleared,
2352 you cannot paste after this)
2353 (@code{wl-fldmgr-clear-cut-entity-list})
2354
2355 @item m s
2356 @kindex m s (Folder)
2357 @findex wl-fldmgr-sort
2358 Sort folders in the current folder group.
2359 (@code{wl-fldmgr-sort})
2360
2361 @item m C-s
2362 @kindex m C-s (Folder)
2363 @findex wl-fldmgr-save
2364 Save current folder view to the @file{wl-folders-file}.
2365 (@code{wl-fldmgr-save})
2366 @end table
2367
2368 [Following commands are only available on the access groups]
2369
2370 @table @kbd
2371 @item u
2372 @itemx m u
2373 @kindex u (Folder)
2374 @kindex m u (Folder)
2375 @findex wl-fldmgr-unsubscribe
2376 Set the visibility of folder (subscribe/unsubscribe).
2377 (@code{wl-fldmgr-unsubscribe})
2378
2379 @item U
2380 @itemx r u
2381 @kindex U (Folder)
2382 @kindex r u (Folder)
2383 @findex wl-fldmgr-unsubscribe-region
2384 Set the visibility of the folders (subscribe/unsubscribe) in the
2385 specified region.
2386 (@code{wl-fldmgr-unsubscribe-region})
2387
2388 @item l
2389 @itemx m l
2390 @kindex l (Folder)
2391 @kindex m l (Folder)
2392 @findex wl-fldmgr-access-display-normal
2393 List folders that are currently available.
2394 (@code{wl-fldmgr-access-display-normal})
2395
2396 @item L
2397 @itemx m L
2398 @kindex L (Folder)
2399 @kindex m L (Folder)
2400 @findex wl-fldmgr-access-display-all
2401 List all folders regardless of the subscription status.
2402 (@code{wl-fldmgr-access-display-all})
2403 @end table
2404
2405
2406 @subsection Customize variables
2407
2408 @table @code
2409 @item  wl-interactive-save-folders
2410 @vindex wl-interactive-save-folders
2411 The initial setting is @code{t}.  If non-nil and folder view is
2412 modified, confirm saving it before Wanderlust or Emacs exits.  If
2413 @code{nil}, save without confirmation.
2414
2415 @item wl-fldmgr-make-backup
2416 @vindex wl-fldmgr-make-backup
2417 The initial setting is @code{t}.  If non-nil, @file{~/.folders.bak} is
2418 created before saving the folder status.
2419
2420 @item wl-fldmgr-sort-function
2421 @vindex wl-fldmgr-sort-function
2422 The initial setting is @code{wl-fldmgr-sort-standard}.  A function to
2423 sort folders.  By default function, folders are sorted alphabetically
2424 and folder group is put on top (when @code{wl-fldmgr-sort-group-first}
2425 is non-nil).
2426
2427 @item wl-fldmgr-sort-group-first
2428 @vindex wl-fldmgr-sort-group-first
2429 The initial setting is @code{t}.  If non-nil,
2430 @code{wl-fldmgr-sort-standard} precedes folder group.  If @code{nil}, it
2431 does not care whether it is folder group or not.
2432
2433 @item wl-folder-check-async
2434 @vindex wl-folder-check-async
2435 The initial setting is @code{t}.  If non-nil, check folder's unread
2436 status asynchronously.  It boosts newsgroup checking.
2437
2438 @item wl-folder-check-fast
2439 @vindex wl-folder-check-fast
2440 The initial setting is @code{nil}.
2441 If non-nil, it does not update folder status while checking.
2442 @c it is obsolete?
2443 @item wl-folder-notify-deleted
2444 @vindex wl-folder-notify-deleted
2445 The initial setting is @code{nil}.
2446 @c  nil means?
2447 If non-nil, negative value is displayed when the message is deleted.  If
2448 @code{sync}, folder is synchronized when the message is deleted.  If
2449 @code{nil}, message deletion is ignored.
2450
2451 @item wl-fldmgr-add-complete-with-current-folder-list
2452 @vindex wl-fldmgr-add-complete-with-current-folder-list
2453 The initial setting is @code{nil}.
2454 Non-nil means call @code{elmo-folder-list-subfolders} and get completion
2455 candidate for @code{wl-fldmgr-add}.
2456 @end table
2457
2458 @subsection Miscellanea
2459
2460 Following is a note for folder editing.
2461
2462 @enumerate
2463 @item
2464 cut or copy stacks the folder in the @code{wl-fldmgr-cut-entity-list}.
2465 paste(yank) command pastes the folders on one cut or copy command
2466 (If copy command is executed by region, folders in the region are pasted
2467 by one paste command)
2468
2469 @item
2470 You cannot cut @samp{Desktop} group.
2471 Also, you cannot paste folders at the outside of the @samp{Desktop}.
2472
2473 @item
2474 You cannot copy folder group.
2475
2476 @item
2477 Operations on the access group are only available for the folders
2478 in the same access group.
2479
2480 @item
2481 You cannot create a folder which has same name with the folders already exist.
2482
2483 @item
2484 You cannot insert folders which have same name in one group.
2485 You can insert them in the different groups.
2486 You cannot put same nickname to the different folders.
2487 @end enumerate
2488
2489
2490 @node Summary, Message, Folder, Top
2491 @chapter Summary Mode
2492
2493 After you select the folder via folder mode, you enter to the summary
2494 mode.
2495
2496 @menu
2497 * Usage of Summary Mode::       TIPS
2498 * Thread Operations::           Thread operations
2499 * Cache::                       File cache, Buffer cache, and Prefetch
2500 * Auto Refile::                 Auto refile settings
2501 * Sticky Summary::              Summary make sticky
2502 * Key Bindings of Summary::     Key bindings
2503 * Variables of Summary::        Customize Summary Mode
2504 @end menu
2505
2506
2507 @node Usage of Summary Mode, Thread Operations, Summary, Summary
2508 @section Usage (Tips)
2509
2510 @subsection Summary Content
2511
2512 In the summary mode, messages are displayed like following.
2513
2514 @example
2515 @group
2516   377  09/16(Wed)11:57 [+1: Takuro Kitame  ] Bug?
2517   381  09/17(Thu)00:16 [+3: Fujikazu Okuni ] elmo-lha.el -- LHA interface
2518   384  09/17(Thu)01:32 [+1: Yuuichi Terani ] wl-0.6.2
2519   389 N09/18(Fri)01:07 [+2: Yuuichi Terani ] wl-0.6.3
2520 @end group
2521 @end example
2522
2523 Each line displays:
2524
2525 @example
2526 @var{Message number}, @var{Temporal mark}, @var{Persistent mark}, @var{Date}, @var{Sender}, @var{Subject}
2527 @end example
2528
2529 @noindent
2530 You cannot change this in the current version.
2531
2532 @var{Message number} is the message's unique number in the folder. In
2533 the NNTP folder, it is article number, in the IMAP folder, it is UID and
2534 in the MH folder, it is the filename of the message.
2535
2536 @var{Temporal mark} and @var{Persistent mark} are described later.
2537
2538 @var{Date} is displayed like @samp{@var{Month}/@var{Day}(@var{Week
2539 Day})@var{Hour}:@var{Minute}}.  Default setting displays week day in
2540 Japanese, but if you want to display it in English, set the value of
2541 @code{wl-summary-weekday-name-lang} as @samp{en}.
2542
2543 @var{Sender}'s indentation corresponds to the depth of the thread.
2544 Sender name is displayed as nickname if it is defined in the address
2545 book.  Set @code{wl-use-petname} as @code{nil}, if you want to quit
2546 displaying with nickname.
2547
2548 If number is printed at the head of @var{Sender} part like @samp{+2},
2549 that means the message have 2 follow messages.
2550
2551 @var{Subject} is the @samp{Subject:} header field of the message.  If
2552 the message have same @samp{Subject:} with the parent message, it is not
2553 displayed.  Some mailing list puts its sequence number in the
2554 @samp{Subject:} field, but it is
2555 ignored. @code{wl-summary-no-subject-message} is displayed when the
2556 message has empty subject field.
2557
2558 @subsection Temporary Marks
2559 @cindex Mark, Temporary
2560
2561 There are four temporary marks,
2562 @samp{*}, @samp{D}, @samp{o} and @samp{O}.
2563 Temporary marks indicates message operations.
2564
2565 @table @samp
2566 @item *
2567 Target mark.
2568 You can execute a command on the all messages that have @samp{*} mark,
2569 with the key bindings which begins with @kbd{m}.
2570
2571 @item D
2572 The mark to delete. You can put @samp{D} by typing @kbd{d} key.
2573
2574 @item o
2575 The mark to refile.
2576 After you type @kbd{o} key, prompt appears to input refile destination.
2577 Your answer is printed in the summary line.
2578
2579 @item O
2580 The mark to refile.
2581 You can put this mark by typing @kbd{O} key.
2582 The difference between this mark and refile mark is,
2583 this mark does not delete the message while latter does.
2584 @end table
2585
2586 @kbd{x} key executes @samp{D}, @samp{o} and @samp{O} marks.
2587
2588 @subsection Persistent Marks
2589
2590 There are five persistent marks,
2591 @samp{N}, @samp{U}, @samp{!}, @samp{u} and @samp{$}.
2592
2593 The persistent mark indicates the message's status and it is saved.
2594 Each persistent mark indicates:
2595
2596 @table @samp
2597 @item N
2598 It is new message.
2599 @item U
2600 It is unread message.
2601 @item !
2602 It is unread but cached message.
2603 @item u
2604 It is read but it is not cached.
2605 @item $
2606 It is important message.  You can put @samp{$} mark by typing @kbd{$}
2607 key (if already exists, the mark is deleted).  It is convenient to put
2608 this mark on the messages to remember (If you want to remember to write
2609 a reply for the message, for example) because this mark remains after
2610 you exited Emacs.  Messages with the @samp{$} mark can be reviewed in the
2611 @samp{'mark} folder even the message itself is deleted in the actual folder.
2612
2613 @item None
2614 If the message is read and cached (or local message),there are no
2615 persistent mark.
2616 @end table
2617
2618 @samp{N}, @samp{U} and @samp{u} indicates that the message have no
2619 cache.  Messages with the marks other than these, you can read them in
2620 the offline status even they are in the IMAP folder or netnews folder.
2621
2622 Among messages with persistent marks, ones with marks specified by 
2623 @code{wl-summary-expire-reserve-marks} are excluded from the expiration
2624 (as a function of wanderlust) explained later. @xref{Expire and Archive}.
2625
2626 @subsection How To Read
2627
2628 Basically, you can read messages only typing space key again and again.
2629
2630 To update summary status to the newest status (synchronize),
2631 type @kbd{s} key.
2632
2633 You can jump to next unread message by typing @kbd{N} key, and @kbd{n} key
2634 moves cursor to the next message.
2635 Enter message buffer by typing @kbd{j} key.
2636 To operate multipart, you have to enter to the message buffer.
2637 @xref{Message}.
2638
2639 @subsection Pack the Message Numbers
2640 You can pack the message numbers in Summary by
2641 @kbd{M-x wl-summary-pack-number}. Note that only MH Folder,
2642 News Spool Folder and Maildir Folder are supported folder types.
2643
2644
2645 @node Thread Operations, Cache, Usage of Summary Mode, Summary
2646 @section Thread Operations
2647
2648 For example, the following line indicates one thread (a context of a topic).
2649
2650 @example
2651   384  09/17(Thu)01:32 [+1: Teranishi       ] wl-0.6.2
2652 @end example
2653
2654 @noindent
2655 If you type @kbd{/} on this line, the thread is opened and it changes
2656 the appearance like following.
2657
2658 @example
2659 @group
2660   384  09/17(Thu)01:32 [ Teranishi          ] wl-0.6.2
2661   388  09/17(Thu)22:34 +-[ Murata san         ]
2662 @end group
2663 @end example
2664
2665 (Message 388 is the replied message to the message 384.)
2666 If you type @kbd{/} key once again, the thread is closed.
2667 With prefix argument, @kbd{/} opens all children threads.
2668
2669 If you type @kbd{[}, opens all threads in summary.  @kbd{]} closes all
2670 threads.
2671
2672 Commands with the key binding that begins with @kbd{t} executes commands
2673 on the messages in the thread.
2674 @xref{Key Bindings of Summary}.
2675
2676 @subsection reconstruct thread by hand
2677
2678 You can reconstruct the thread manually.  In Summary, @kbd{M-w}
2679 (@code{wl-summary-save-current-message}) at the corresponding message,
2680 and @kbd{C-y} (@code{wl-summary-yank-saved-message}) at the new parent
2681 message then you have the reconstructed thread.
2682
2683
2684 @node Cache, Auto Refile, Thread Operations, Summary
2685 @section Cache
2686
2687 @subsection Cache File
2688
2689 The messages which have to access via network (e.x. IMAP, NNTP folder)
2690 are cached as a local file.  The cache file is saved under the directory
2691 @file{~/.elmo/cache}.  To expire cache, type @kbd{M-x
2692 elmo-cache-expire-by-size}.  The command deletes cache files to the
2693 specified size by the order of last accessed time.
2694
2695 @subsection Buffer Cache and Prefetching
2696
2697 The messages that are read are kept in the cache buffer.  It is called
2698 `buffer cache'. The number of cache buffer is specified by
2699 @code{wl-message-buffer-cache-size}.
2700
2701 There are message prefetching mechanism in the Wanderlust that
2702 prefetches next message while you are reading.
2703
2704 You can control the message prefetching mechanism by these two
2705 variables.
2706
2707 @table @code
2708 @item wl-message-buffer-prefetch-folder-type-list
2709 @vindex wl-message-buffer-prefetch-folder-type-list
2710 The initial setting is @code{t}. In this case, prefetch messages in all
2711 folders.
2712 If it is a list of folder types, it specifies the folder types in which
2713 message prefetching is enabled.
2714 Following is an example (prefetch messages in nntp and imap4 folders)
2715
2716 @lisp
2717 @group
2718 (setq wl-message-buffer-prefetch-folder-type-list
2719       '(nntp imap4))
2720 @end group
2721 @end lisp
2722
2723 In this case, multi folder that contains localdir and imap4 prefetches
2724 only imap4 messages.  This variable precedes the value of
2725 @code{wl-message-buffer-prefetch-folder-list}.
2726
2727 @item wl-message-buffer-prefetch-folder-list
2728 @vindex wl-message-buffer-prefetch-folder-list
2729 The initial setting is @code{nil}.
2730 A list of regexp of folders to enable message prefetching.
2731
2732 @item wl-message-buffer-prefetch-depth
2733 @vindex wl-message-buffer-prefetch-depth
2734 The initial setting is 3. The number of messages for automatical prefetch.
2735
2736 @item wl-message-buffer-prefetch-idle-time
2737 @vindex wl-message-buffer-prefetch-idle-time
2738 The initial setting is 0.2 (in seconds). The period of automatical prefetch.
2739
2740 @item wl-message-buffer-prefetch-threshold
2741 @vindex wl-message-buffer-prefetch-threshold
2742 The initial setting is 30000 (bytes). If prefetching message has larger
2743 size than this value, Wanderlust does not prefetch automatically.
2744 If @code{wl-message-buffer-prefetch-threshold} is @code{nil}, 
2745 the message is not checked for the size.
2746
2747 @item wl-auto-prefetch-first
2748 @vindex wl-auto-prefetch-first
2749 The initial setting is @code{nil}.
2750 If non-nil, first message is automatically prefetched to the buffer
2751 when you enter the folder.
2752 @end table
2753
2754
2755 @node Auto Refile, Sticky Summary, Cache, Summary
2756 @section Auto Refile
2757 @vindex elmo-msgdb-extra-fields
2758 @vindex wl-refile-rule-alist
2759 @findex wl-summary-auto-refile
2760
2761 You can refile messages automatically, by typing @kbd{C-o}
2762 (@code{wl-summary-auto-refile}). It decides destination of refile by
2763 the content of the message header information (information in the msgdb).
2764
2765 By default, @samp{From:}, @samp{Subject:}, @samp{To:} and @samp{Cc:} is
2766 available.  If you want to decide destination by other header fields,
2767 set the variable @code{elmo-msgdb-extra-fields} like following.
2768
2769 @lisp
2770 @group
2771 (setq elmo-msgdb-extra-fields
2772       '("x-ml-name"
2773         "reply-to"
2774         "sender"
2775         "mailing-list"
2776         "newsgroups"))
2777 @end group
2778 @end lisp
2779
2780 @noindent
2781 By this setting, Wanderlust saves extra fields in the msgdb.  You have
2782 to type @kbd{s all} to get extra fields for the messages that are
2783 already exists in the summary.
2784
2785 Then, specify the refile rule.  The refile target folder of auto
2786 refiling is decided by the value of @code{wl-refile-rule-alist}.
2787 @code{wl-refile-rule-alist} is a list of a rule:
2788
2789 @example
2790 @group
2791 (@var{field} (@var{regexp} . @var{target})
2792        (@var{regexp} . @var{target})
2793        @dots{})
2794 @end group
2795 @end example
2796
2797 Each rule means `if @var{field} value matches @var{regexp},
2798 then refile to @var{target} folder'.
2799 The rule matched first is applied.
2800
2801 @var{field} is a string of field name.  You can specify a list of field name
2802 string, too. In this case, if one of these fields is matched, then the
2803 rule is fired (i.e. OR condition).
2804
2805 @var{regexp} is a regular expression for field value.  @var{target} is a target
2806 folder string. You can specify a rule at @var{target} part, too.  In this
2807 case, If the field value of the rule and the current rule is matched,
2808 then the current rule is fired (i.e. AND condition).
2809
2810 In @var{target} part, you can refer matched substring of @var{regexp}.
2811 To refer substring, specify following in @var{target}:
2812
2813 @table @samp
2814 @item \&
2815 means substitute original matched text.
2816
2817 @item \@var{N}
2818 means substitute what matched the @var{N}th `\(@dots{}\)'.
2819 (@var{N} is a number.)
2820 @end table
2821
2822 Following is an example of @code{wl-refile-rule-alist}.
2823
2824 @lisp
2825 @group
2826 (setq wl-refile-rule-alist
2827       '(("x-ml-name"
2828          ("^Wanderlust" . "+wl")
2829          ("^Elisp" . "+elisp"))
2830         (("To" "Cc")
2831          ("\\([a-z]+\\)@@gohome\\.org" . "+\\1"))
2832         ("From"
2833          ("me@@gohome\\.org" . ("To" ("you@@gohome\\.org" .
2834                                     "+from-me-to-you"))))))
2835 @end group
2836 @end lisp
2837
2838 After these settings, refile marks are automatically put on the condition
2839 matched messages by typing @kbd{C-o} (@code{wl-summary-auto-refile}).
2840
2841 Messages which have @code{wl-summary-auto-refile-skip-marks} is skipped
2842 auto refiling.
2843 By default, @samp{N}, @samp{U} and @samp{!} is specified, so the messages
2844 with these persistent marks are not automatically refiled.
2845 It means Wanderlust does not execute auto refile on unread messages by
2846 the default setting.
2847 To execute auto refile on all messages, set following.
2848
2849 @lisp
2850 (setq wl-summary-auto-refile-skip-marks nil)
2851 @end lisp
2852
2853
2854 @node Sticky Summary, Key Bindings of Summary, Auto Refile, Summary
2855 @section Sticky Summary
2856 @cindex Summary, Sticky
2857 @cindex Sticky Summary
2858
2859 The buffer of the `sticky summary' does not killed by typing @kbd{q}.
2860
2861 By entering the summary by typing @kbd{Shift RET} in Folder mode or
2862 @kbd{G} in some suummary sticky summary buffer is created.
2863 Also typing @kbd{M-s} (@code{wl-summary-stick}) on the normal summary
2864 makes current one sticky.
2865
2866 The buffer name of the sticky summary becomes like
2867 @samp{Summary:@var{folder-name}}.
2868 You can visit the sticky summary at any time by @kbd{C-x b}
2869 (@code{switch-to-buffer}), or you can go round summary buffers by
2870 @kbd{C-c C-n} (@code{wl-summary-previous-buffer}) and @kbd{C-c C-p}
2871 (@code{wl-summary-next-buffer}) in summary mode.
2872
2873 In sticky summary, the summary buffer is preserved after @kbd{g} or
2874 @kbd{q}.  To delete sticky summary, type @kbd{C-u q} to exit or move to
2875 another summary by @kbd{C-u g}. Other operations in the sticky summary
2876 are same as normal summary.
2877
2878 @code{wl-summary-always-sticky-folder-list} specifies the folders that
2879 are automatically stuck.
2880
2881
2882 @node Key Bindings of Summary, Variables of Summary, Sticky Summary, Summary
2883 @section Key bindings
2884 @cindex Keybind, Summary Mode
2885 @cindex Keybind, Summary Buffer
2886
2887 Key bindings of the summary mode are shown below.
2888
2889 @table @kbd
2890 @item @key{SPC}
2891 @kindex @key{SPC} (Summary)
2892 @findex wl-summary-read
2893 Proceed reading a message at the current cursor point.
2894 (@code{wl-summary-read})
2895
2896 @item .
2897 @kindex . (Summary)
2898 @findex wl-summary-redisplay
2899 Redisplay a message at the current cursor point.
2900 If this command is called with prefix argument,
2901 Redisplay message regardless of the message cache (message is re-loaded
2902 from source).
2903 (@code{wl-summary-redisplay})
2904
2905 @item <
2906 @kindex < (Summary)
2907 @findex wl-summary-display-top
2908 Display the top message in the folder.
2909 (@code{wl-summary-display-top})
2910
2911 @item >
2912 @kindex > (Summary)
2913 @findex wl-summary-display-bottom
2914 Display the bottom message in the folder.
2915 (@code{wl-summary-display-bottom})
2916
2917 @item @key{BS}
2918 @itemx @key{DEL}
2919 @kindex @key{BS} (Summary)
2920 @kindex @key{DEL} (Summary)
2921 Display the previous page of the message at the current cursor point.
2922 @findex wl-summary-prev-page
2923 (@code{wl-summary-prev-page})
2924
2925 @item @key{RET}
2926 @kindex @key{RET} (Summary)
2927 @findex wl-summary-next-line-content
2928 Display the next line of the message at the current cursor point.
2929 Display the message at the current cursor point if it is not displayed yet.
2930 (@code{wl-summary-next-line-content})
2931
2932 @item -
2933 @itemx M-@key{RET}
2934 @kindex - (Summary)
2935 @kindex M-@key{RET} (Summary)
2936 @findex wl-summary-prev-line-content
2937 Display the previous line of the message at the current cursor point.
2938 Display the message at the current cursor point if it is not displayed yet.
2939 (@code{wl-summary-prev-line-content})
2940
2941 @item /
2942 @kindex / (Summary)
2943 @findex wl-thread-open-close
2944 Toggle open or close the thread at the current cursor point.
2945 (@code{wl-thread-open-close})
2946
2947 @item [
2948 @kindex [ (Summary)
2949 Open all threads.
2950 @findex wl-thread-open-all
2951 (@code{wl-thread-open-all})
2952
2953 @item ]
2954 @kindex ] (Summary)
2955 Close all threads.
2956 @findex wl-thread-close-all
2957 (@code{wl-thread-close-all})
2958
2959 @item g
2960 @kindex g (Summary)
2961 @findex wl-summary-goto-folder
2962 Go to other folder.
2963 (@code{wl-summary-goto-folder})
2964
2965 @item c
2966 @kindex c (Summary)
2967 Mark all messages in the folder as read.
2968 @findex wl-summary-mark-as-read-all
2969 (@code{wl-summary-mark-as-read-all})
2970
2971 @item a
2972 @kindex a (Summary)
2973 @findex wl-summary-reply
2974 Prepare a draft for reply the message at the current cursor point.
2975 (@code{wl-summary-reply})
2976
2977 @item A
2978 @kindex A (Summary)
2979 @findex wl-summary-reply-with-citation
2980 Prepare a draft for reply the message at the current cursor point.
2981 (@code{wl-summary-reply-with-citation})
2982
2983 @item C
2984 @kindex C (Summary)
2985 @findex wl-summary-cancel-message
2986 If the message at current cursor point is your own netnews article,
2987 cancel it.
2988 (@code{wl-summary-cancel-message})
2989
2990 @item E
2991 @kindex E (Summary)
2992 @findex wl-summary-reedit
2993 Prepare a draft for re-editing the message at current cursor point.
2994 If the message at current cursor point is your own netnews article,
2995 a draft for `supersedes message' for the message is prepared.
2996 (@code{wl-summary-reedit})
2997
2998 @item M-e
2999 @kindex M-e (Summary)
3000 @findex wl-summary-resend-bounced-mail
3001 If the message at current cursor point is a bounced message,
3002 a draft for re-sending original message is prepared.
3003 (@code{wl-summary-resend-bounced-mail})
3004
3005 @item f
3006 @kindex f (Summary)
3007 @findex wl-summary-forward
3008 A draft for forwarding the message at current cursor point is prepared.
3009 (@code{wl-summary-forward})
3010
3011 @item $
3012 @kindex $ (Summary)
3013 @findex wl-summary-mark-as-important
3014 Put @samp{$} mark on the message at current cursor point.
3015 If already marked as @samp{$}, delete it.
3016 (@code{wl-summary-mark-as-important})
3017
3018 @item y
3019 @itemx e
3020 @kindex y (Summary)
3021 @kindex e (Summary)
3022 Save the message at current cursor point.
3023 @findex wl-summary-save
3024 (@code{wl-summary-save})
3025
3026 @item n
3027 @kindex n (Summary)
3028 @findex wl-summary-next
3029 Move cursor to the next message.
3030 If message is marked with a temporal mark in
3031 @code{wl-summary-skip-mark-list}, cursor is not moved to it.
3032 In the offline mode, cursor is not moved to the messages which are not cached
3033 yet.
3034 (@code{wl-summary-next})
3035
3036 @item p
3037 @kindex p (Summary)
3038 @findex wl-summary-prev
3039 Move cursor to the previous message.
3040 If message is marked with a temporal mark in
3041 @code{wl-summary-skip-mark-list}, cursor is not moved to it.
3042 In the offline mode, cursor is not moved to the messages which are not cached
3043 yet.
3044 (@code{wl-summary-prev})
3045
3046 @item N
3047 @kindex N (Summary)
3048 @findex wl-summary-down
3049 Move cursor to the downward message which is unread or marked
3050 as @samp{$}.
3051 In the offline mode, cursor is not moved to the messages which are not cached
3052 yet.
3053 If there are messages which have target mark @samp{*} in the summary,
3054 cursor is moved to the downward message which have a target mark.
3055 This behavior is changed according to the value of @code{wl-summary-move-order}.
3056 (@code{wl-summary-down})
3057
3058 @item P
3059 @kindex P (Summary)
3060 @findex wl-summary-up
3061 Move cursor to the upward message which is unread or marked
3062 as @samp{$}.
3063 In the offline mode, cursor is not moved to the messages which are not cached
3064 yet.
3065 If there are messages which have target mark @samp{*} in the summary,
3066 cursor is moved to the downward message which have a target mark.
3067 This behavior is changed according to the value of @code{wl-summary-move-order}.
3068 (@code{wl-summary-up})
3069
3070 @item w
3071 @kindex w (Summary)
3072 @findex wl-summary-write
3073 Prepare a new draft.
3074 (@code{wl-summary-write})
3075
3076 @item W
3077 @kindex W (Summary)
3078 @findex wl-summary-write-current-folder
3079 Prepare a new draft.  If the current folder is NNTP folder,
3080 @samp{Newsgroups:} field is completed.  If the current folder is mailing
3081 list folder (refile destination), guess @samp{To:} field and completed
3082 (If @code{wl-subscribed-mailing-list} is valid list)
3083 (@code{wl-summary-write-current-folder})
3084
3085 @item H
3086 @kindex H (Summary)
3087 @findex wl-summary-redisplay-all-header
3088 Redisplay the message at current cursor point with all header fields.
3089 (@code{wl-summary-redisplay-all-header})
3090
3091 @item M
3092 @kindex M (Summary)
3093 @findex wl-summary-redisplay-no-mime
3094 Redisplay the message at current cursor point without MIME analysis.
3095 (@code{wl-summary-redisplay-no-mime})
3096
3097 @item B
3098 @kindex B (Summary)
3099 @findex wl-summary-burst
3100 If the message at current cursor point has
3101 encapsulates multiple messages using MIME,
3102 de-capsulate and extract them on the current folder.
3103 (@code{wl-summary-burst})
3104
3105 @item @@
3106 @kindex @@ (Summary)
3107 @findex wl-summary-edit-addresses
3108 Append/change/delete the message's sender information to the address
3109 book @file{~/.addresses} interactively.  If this command is called with
3110 prefix argument, arbitrary address can be edited.
3111 (@code{wl-summary-edit-petname})
3112
3113 @item Z
3114 @kindex Z (Summary)
3115 @findex wl-status-update
3116 Sync up address book status with @file{~/.addresses}'s content.
3117 (@code{wl-status-update})
3118
3119 @item |
3120 @kindex | (Summary)
3121 @findex wl-summary-pipe-message
3122 Pipe current message's content to the external process.
3123 (@code{wl-summary-pipe-message})
3124
3125 @item #
3126 @kindex # (Summary)
3127 @findex wl-summary-print-message
3128 Print out current message's content.
3129 It uses @code{ps-print} module in Emacs 20.x.
3130 If you don't use color printer, you might want to set
3131 @code{wl-ps-print-buffer-function} to @code{ps-print-buffer}.
3132
3133 @lisp
3134 (setq wl-ps-print-buffer-function 'ps-print-buffer)
3135 @end lisp
3136
3137 (@code{wl-summary-print-message})
3138
3139 @item q
3140 @kindex q (Summary)
3141 @findex wl-summary-exit
3142 Exit current folder.
3143 (@code{wl-summary-exit})
3144
3145 @item j
3146 @kindex j (Summary)
3147 @findex wl-summary-jump-to-current-message
3148 Jump cursor to the currently displayed message's window.
3149 (@code{wl-summary-jump-to-current-message})
3150
3151 @item J
3152 @kindex J (Summary)
3153 Jump cursor to the other message.
3154 @findex wl-summary-jump-to-msg
3155 (@code{wl-summary-jump-to-msg})
3156
3157 @item I
3158 @kindex I (Summary)
3159 Update summary status and
3160 prefetch all messages which have marks included in the
3161 @code{wl-summary-incorporate-marks}.
3162 @findex wl-summary-incorporate
3163 (@code{wl-summary-incorporate})
3164
3165 @item M-j
3166 @kindex M-j (Summary)
3167 @findex wl-summary-jump-to-msg-by-message-id
3168 Jump cursor to the message which have specified @samp{Message-Id:}.  If
3169 @code{elmo-use-database} is non-nil, other folder is also searched.
3170 (@code{wl-summary-jump-to-msg-by-message-id})
3171
3172 @item ^
3173 @kindex ^ (Summary)
3174 Jump to parent message.
3175 @findex wl-summary-jump-to-parent-message
3176 (@code{wl-summary-jump-to-parent-message})
3177
3178 @item !
3179 @kindex ! (Summary)
3180 @findex wl-summary-mark-as-unread
3181 Mark as unread the message at current cursor point.
3182 (@code{wl-summary-mark-as-unread})
3183
3184 @item s
3185 @kindex s (Summary)
3186 @findex wl-summary-sync
3187 Synchronize summary view after prompting the update range
3188 (@samp{all}, @samp{update}, @samp{rescan}, @samp{first}, @samp{last}).
3189
3190 @example
3191 @group
3192 all            ...Discard current summary and update all message.
3193 all-visible    ...Discard current summary and update all visible message.
3194 update         ...Update the difference between summary and the folder itself.
3195 rescan         ...Rescan the msgdb and display again.
3196 rescan-noscore ...Rescan the msgdb and display again (without scoring).
3197 cache-status   ...Sync the all marks with the real status of cache.
3198 first, last    ...Move to the filter folder(partial filter).
3199 @end group
3200 @end example
3201
3202 @noindent
3203 (@code{wl-summary-sync})
3204
3205 @item S
3206 @kindex S (Summary)
3207 @findex wl-summary-sort
3208 Sort summary order.
3209 You can sort by @samp{date}, @samp{from}, @samp{number} and @samp{subject}.
3210 (@code{wl-summary-sort})
3211
3212 @item T
3213 @kindex T (Summary)
3214 @findex wl-summary-toggle-thread
3215 Toggle the threading.
3216 Threading status is displayed on the modeline.
3217 @samp{@{S@}} means threading is off (Sequence) and
3218 @samp{@{T@}} means threading is on (Thread).
3219 (@code{wl-summary-toggle-thread})
3220
3221 @item l
3222 @kindex l (Summary)
3223 @findex wl-summary-toggle-disp-folder
3224 Toggle displaying of folder window.
3225 (@code{wl-summary-toggle-disp-folder})
3226
3227 @item v
3228 @kindex v (Summary)
3229 Toggle displaying of message window.
3230 @findex wl-summary-toggle-disp-msg
3231 (@code{wl-summary-toggle-disp-msg})
3232
3233 @item V
3234 @kindex V (Summary)
3235 Move to the virtual folder with the condition specified.
3236 If called with prefix argument and current folder is virtual, exit it.
3237 @findex wl-summary-virtual
3238 (@code{wl-summary-virtual})
3239
3240 @item @key{TAB}
3241 @kindex @key{TAB} (Summary)
3242 @findex wl-summary-goto-last-displayed-msg
3243 Jump to the message which is displayed last.
3244 (@code{wl-summary-goto-last-displayed-msg})
3245
3246 @item ?
3247 @kindex ? (Summary)
3248 Put @samp{*} mark on the messages that satisfies the specified condition.
3249 @findex wl-summary-pick
3250 (@code{wl-summary-pick})
3251
3252 @item R
3253 @kindex R (Summary)
3254 @findex wl-summary-mark-as-read
3255 Mark as read the message at the current cursor point.
3256 (@code{wl-summary-mark-as-read})
3257
3258 @item i
3259 @kindex i (Summary)
3260 Prefetch the message at the current cursor point.
3261 With prefix argument, prefetch the message even if it is cached.
3262 @findex wl-summary-prefetch
3263 (@code{wl-summary-prefetch})
3264
3265 @item x
3266 @kindex x (Summary)
3267 Execute @samp{D}, @samp{o} and @samp{O} marks.
3268 @findex wl-summary-exec
3269 (@code{wl-summary-exec})
3270
3271 @item *
3272 @kindex * (Summary)
3273 @findex wl-summary-target-mark-line
3274 Put target mark on the message at the current cursor point.
3275 (@code{wl-summary-target-mark-line})
3276
3277 @item o
3278 @kindex o (Summary)
3279 Put refile mark on the message at the current cursor point.
3280 @findex wl-summary-refile
3281 (@code{wl-summary-refile})
3282
3283 @item C-o
3284 @kindex C-o (Summary)
3285 Execute auto refile.
3286 @findex wl-summary-auto-refile
3287 (@code{wl-summary-auto-refile})
3288
3289 @item O
3290 @kindex O (Summary)
3291 Put copy mark on the message at the current cursor point.
3292 @findex wl-summary-copy
3293 (@code{wl-summary-copy})
3294
3295 @item M-o
3296 @kindex M-o (Summary)
3297 Put refile mark on the message at the current cursor point with the destination
3298 previously specified.
3299 @findex wl-summary-refile-prev-destination
3300 (@code{wl-summary-refile-prev-destination})
3301
3302 @item d
3303 @kindex d (Summary)
3304 @findex wl-summary-delete
3305 Put delete mark on the message at the current cursor point.
3306 (@code{wl-summary-delete})
3307
3308 @item u
3309 @kindex u (Summary)
3310 @findex wl-summary-unmark
3311 Unmark the temporal mark on the message at the current cursor point.
3312 (@code{wl-summary-unmark})
3313
3314 @item U
3315 @kindex U (Summary)
3316 Unmark all the temporal marks.
3317 @findex wl-summary-unmark-all
3318 (@code{wl-summary-unmark-all})
3319
3320 @item r R
3321 @kindex r R (Summary)
3322 @findex wl-summary-mark-as-read-region
3323 Mark as read messages in the specified region.
3324 (@code{wl-summary-mark-as-read-region})
3325
3326 @item r $
3327 @kindex r $ (Summary)
3328 @findex wl-summary-mark-as-important-region
3329 Mark as important @samp{$} messages in the specified region.
3330 If @samp{$} already exists, it is deleted.
3331 (@code{wl-summary-mark-as-important-region})
3332
3333 @item r !
3334 @kindex r ! (Summary)
3335 @findex wl-summary-mark-as-unread-region
3336 Mark as unread messages in the specified region.
3337 (@code{wl-summary-mark-as-unread-region})
3338
3339 @item r i
3340 @kindex r i (Summary)
3341 @findex wl-summary-prefetch-region
3342 Prefetch messages in the specified region.
3343 (@code{wl-summary-prefetch-region})
3344
3345 @item r x
3346 @kindex r x (Summary)
3347 @findex wl-summary-exec-region
3348 Execute @samp{D}, @samp{o} and @samp{O} marks on the messages in the
3349 specified region.
3350 (@code{wl-summary-exec-region})
3351
3352 @item r *
3353 @kindex r * (Summary)
3354 @findex wl-summary-target-mark-region
3355 Put target mark on the messages in the specified region.
3356 (@code{wl-summary-target-mark-region})
3357
3358 @item r o
3359 @kindex r o (Summary)
3360 @findex wl-summary-refile-region
3361 Put refile mark on the messages in the specified region.
3362 (@code{wl-summary-refile-region})
3363
3364 @item r O
3365 @kindex r O (Summary)
3366 @findex wl-summary-copy-region
3367 Put copy mark on the messages in the specified region.
3368 (@code{wl-summary-copy-region})
3369
3370 @item r d
3371 @kindex r d (Summary)
3372 @findex wl-summary-delete-region
3373 Put delete mark on the messages in the specified region.
3374 (@code{wl-summary-delete-region})
3375
3376 @item r u
3377 @kindex r u (Summary)
3378 @findex wl-summary-unmark-region
3379 Delete temporal mark on the messages in the specified region.
3380 (@code{wl-summary-unmark-region})
3381
3382 @item r y
3383 @kindex r y (Summary)
3384 Save messages in the specified region.
3385 @findex wl-summary-save-region
3386 (@code{wl-summary-save-region})
3387
3388 @item t R
3389 @kindex t R (Summary)
3390 @findex wl-thread-mark-as-read
3391 Mark as read messages which are the descendant of the current thread.
3392 With prefix argument, it affects on the all messages in the thread tree.
3393 (@code{wl-thread-mark-as-read})
3394
3395 @item t $
3396 @kindex t $ (Summary)
3397 @findex wl-thread-mark-as-important
3398 Put important mark @samp{$} on the messages which are the
3399 descendant of the current thread.
3400 If @samp{$} mark exists, it is deleted.
3401 With prefix argument, it affects on the all messages in the thread tree.
3402 (@code{wl-thread-mark-as-important})
3403
3404 @item t !
3405 @kindex t ! (Summary)
3406 @findex wl-thread-mark-as-unread
3407 Mark as unread messages which are the descendant of the current thread.
3408 With prefix argument, it affects on the all messages in the thread tree.
3409 (@code{wl-thread-mark-as-unread})
3410
3411 @item t i
3412 @kindex t i (Summary)
3413 @findex wl-thread-prefetch
3414 Prefetch messages which are the descendant of the current thread.
3415 With prefix argument, it affects on the all messages in the thread tree.
3416 (@code{wl-thread-prefetch})
3417
3418 @item t x
3419 @kindex t x (Summary)
3420 @findex wl-thread-exec
3421 Execute @samp{D}, @samp{o} and @samp{O} marks on the messages which are
3422 the descendant of the current thread.  With prefix argument, it affects
3423 on the all messages in the thread tree.
3424 (@code{wl-thread-exec})
3425
3426 @item t *
3427 @kindex t * (Summary)
3428 @findex wl-thread-target-mark
3429 Put target mark @samp{*} on the messages which are the descendant of the
3430 current thread.  With prefix argument, it affects on the all messages in
3431 the thread tree.
3432 (@code{wl-thread-target-mark})
3433
3434 @item t o
3435 @kindex t o (Summary)
3436 @findex wl-thread-refile
3437 Put refile mark on the messages which are the descendant of the current thread.
3438 With prefix argument, it affects on the all messages in the thread tree.
3439 (@code{wl-thread-refile})
3440
3441 @item t O
3442 @kindex t O (Summary)
3443 @findex wl-thread-copy
3444 Put copy mark on the messages which are the descendant of the current thread.
3445 With prefix argument, it affects on the all messages in the thread tree.
3446 (@code{wl-thread-copy})
3447
3448 @item t d
3449 @kindex t d (Summary)
3450 @findex wl-thread-delete
3451 Put delete mar on the messages which are the descendant of the current thread.
3452 With prefix argument, it affects on the all messages in the thread tree.
3453 (@code{wl-thread-delete})
3454
3455 @item t u
3456 @kindex t u (Summary)
3457 @findex wl-thread-unmark
3458 Unmark temporal mark on the messages which are the descendant of the
3459 current thread. With prefix argument, it affects on the all messages in
3460 the thread tree.
3461 (@code{wl-thread-unmark})
3462
3463 @item t y
3464 @kindex t y (Summary)
3465 @findex wl-thread-save
3466 Save messages which are the descendant of the current thread.
3467 With prefix argument, it affects on the all messages in the thread tree.
3468 (@code{wl-thread-save})
3469
3470 @item m i
3471 @kindex m i (Summary)
3472 @findex wl-summary-target-mark-prefetch
3473 Prefetch all messages which have target mark @samp{*}.
3474 With prefix argument, prefetch all targets even if some of them are cached.
3475 (@code{wl-summary-target-mark-prefetch})
3476
3477 @item m R
3478 @kindex m R (Summary)
3479 @findex wl-summary-target-mark-mark-as-read
3480 Mark as read all messages which have target mark @samp{*}.
3481 (@code{wl-summary-target-mark-mark-as-read})
3482
3483 @item m $
3484 @kindex m $ (Summary)
3485 @findex wl-summary-target-mark-mark-as-important
3486 Mark as important all messages which have target mark @samp{*}.
3487 If already marked as @samp{$}, it is deleted.
3488 (@code{wl-summary-target-mark-mark-as-important})
3489
3490 @item m !
3491 @kindex m ! (Summary)
3492 @findex wl-summary-target-mark-mark-as-unread
3493 Mark as unread all messages which have target mark @samp{*}.
3494 (@code{wl-summary-target-mark-mark-as-unread})
3495
3496 @item m o
3497 @kindex m o (Summary)
3498 @findex wl-summary-target-mark-refile
3499 Put refile mark on the messages which have target mark @samp{*}.
3500 (@code{wl-summary-target-mark-refile})
3501
3502 @item m O
3503 @kindex m O (Summary)
3504 @findex wl-summary-target-mark-copy
3505 Put copy mark on the messages which have target mark @samp{*}.
3506 (@code{wl-summary-target-mark-copy})
3507
3508 @item m d
3509 @kindex m d (Summary)
3510 @findex wl-summary-target-mark-delete
3511 Put delete mark on the messages which have target mark @samp{*}.
3512 (@code{wl-summary-target-mark-delete})
3513
3514 @item m y
3515 @kindex m y (Summary)
3516 @findex wl-summary-target-mark-save
3517 Save messages which have target mark @samp{*}.
3518 (@code{wl-summary-target-mark-save})
3519
3520 @item m u
3521 @kindex m u (Summary)
3522 Unmark all temporal marks.
3523 (@code{wl-summary-delete-all-temp-marks})
3524 @findex wl-summary-delete-all-temp-marks
3525
3526 @item m a
3527 @kindex m a (Summary)
3528 Put target mark @samp{*} on the all messages.
3529 (@code{wl-summary-target-mark-all})
3530 @findex wl-summary-target-mark-all
3531
3532 @item m t
3533 @kindex m t (Summary)
3534 Put target mark @samp{*} on the messages in the current thread.
3535 @findex wl-summary-target-mark-thread
3536 (@code{wl-summary-target-mark-thread})
3537
3538 @item m r
3539 @kindex m r (Summary)
3540 @findex wl-summary-target-mark-region
3541 Put target mark @samp{*} on the messages in the specified region.
3542 (@code{wl-summary-target-mark-region})
3543
3544 @item m A
3545 @kindex m A (Summary)
3546 @findex wl-summary-target-mark-reply-with-citation
3547 Prepare a draft which cites all messages which have target mark @samp{*}.
3548 (@code{wl-summary-target-mark-reply-with-citation})
3549
3550 @item m f
3551 @kindex m f (Summary)
3552 @findex wl-summary-target-mark-forward
3553 Prepare a draft which forwards all messages which have target mark @samp{*}.
3554 (@code{wl-summary-target-mark-forward})
3555
3556 @item m U
3557 @kindex m U (Summary)
3558 @findex wl-summary-target-mark-uudecode
3559 Uudecode the messages which have target mark @samp{*}.
3560 (@code{wl-summary-target-mark-uudecode})
3561
3562 @item m ?
3563 @kindex m ? (Summary)
3564 @findex wl-summary-target-mark-pick
3565 Pick messages from the @samp{*} marked messages.
3566 That is, @samp{*} marks on the messages are remained
3567 if the specified condition is satisfied.
3568 (@code{wl-summary-target-mark-pick})
3569
3570 @item M-t
3571 @kindex M-t (Summary)
3572 @findex wl-toggle-plugged
3573 Toggle offline/online status of Wanderlust.
3574 (@code{wl-toggle-plugged})
3575
3576 @item C-t
3577 @kindex C-t (Summary)
3578 Start Wanderlust's plug-status manager.
3579 (@code{wl-plugged-change})
3580
3581 @item C-c C-o
3582 @kindex C-c C-o (Summary)
3583 @findex wl-jump-to-draft-buffer
3584 Move to the draft buffer if available.  If multiple draft buffer exists,
3585 moved to one after another.  If prefix argument is specified, load draft
3586 folder's message to the draft buffer and jump to it.
3587 (@code{wl-jump-to-draft-buffer})
3588
3589 @item M-w
3590 @kindex M-w (Summary)
3591 @findex wl-summary-save-current-message
3592 Save the message at the current cursor point.
3593 (@code{wl-summary-save-current-message})
3594
3595 @item C-y
3596 @kindex C-y (Summary)
3597 @findex wl-summary-yank-saved-message
3598 Regard the message at the current cursor point as
3599 parent, connect the message saved by
3600 @code{wl-summary-save-current-message}
3601 to the thread.
3602 (@code{wl-summary-yank-saved-message})
3603
3604 @item C-x C-s
3605 @kindex C-x C-s (Summary)
3606 @findex wl-summary-save-status
3607 Save the current summary.
3608 (@code{wl-summary-save-status})
3609 @end table
3610
3611
3612 @node Variables of Summary,  , Key Bindings of Summary, Summary
3613 @section Customiziable variables
3614
3615 @table @code
3616 @item wl-summary-move-order
3617 @vindex wl-summary-move-order
3618 The initial setting is @code{unread}.  Specify cursor moving policy.  If
3619 you want to precede new messages, set @code{new}.  If you want to
3620 precede unread messages, set @code{unread}.  If @code{nil}, proceed to
3621 next message.
3622
3623 @item wl-auto-select-first
3624 @vindex wl-auto-select-first
3625 The initial setting is @code{nil}.
3626 If non-nil, first message is automatically displayed when you enter
3627 the folder.
3628
3629 @item wl-auto-select-next
3630 @vindex wl-auto-select-next
3631 The initial setting is @code{nil}. This controls behavior when there is
3632 no unread message in current summary.
3633
3634 @example
3635 nil: asks whether you want to go back to folder mode
3636 'unread: asks whether you want to go to next unread folder
3637   If the next one comes to be possessing no unread message
3638   by treatment of cross-posted messages or Scoring, then
3639   asks whether you want to go to next to next folder.
3640 'skip-no-unread: similar as unread
3641   But does not ask before going to next to next folder.
3642 otherwise: asks whether you want to go to next unread folder
3643 @end example
3644
3645 It might be useful to set @code{'skip-no-unread} for people who
3646 want to continue reading by just pressing and pressing space key.
3647
3648 @item wl-thread-insert-opened
3649 @vindex wl-thread-insert-opened
3650 The initial setting is @code{nil}.
3651 If non-nil, thread is inserted as opened.
3652
3653 @item wl-thread-open-reading-thread
3654 @vindex wl-thread-open-reading-thread
3655 The initial setting is @code{t}.  If non-nil, reading thread is
3656 automatically opened though it is closed thread.
3657
3658 @item wl-summary-exit-next-move
3659 @vindex wl-summary-exit-next-move
3660 The initial setting is @code{t}.  If non-nil, move to next folder at
3661 summary exit.
3662
3663 @item wl-folder-move-cur-folder
3664 @vindex wl-folder-move-cur-folder
3665 The initial setting is @code{nil}.  If non-nil, cursor position on the
3666 folder is moved.
3667
3668 @item wl-summary-weekday-name-lang
3669 @vindex  wl-summary-weekday-name-lang
3670 The initial setting is @samp{ja}.  Specify language of the weekday.
3671 @samp{en} displays English, @samp{fr} displays French, @samp{de}
3672 displays Deutsch. You should rescan summary view after changing this value.
3673
3674 @item wl-summary-fix-timezone
3675 @vindex wl-summary-fix-timezone
3676 The initial setting is @code{nil}.
3677 Time zone of the date string in summary mode is adjusted using this value.
3678 If @code{nil}, it is adjust to the default time zone information
3679 (system's default time zone or environment variable @samp{TZ}).
3680
3681 @item wl-use-petname
3682 @vindex  wl-use-petname
3683 The initial setting is @code{t}.
3684 If non-nil, sender part displays nickname.
3685
3686 @item wl-break-pages
3687 @vindex  wl-break-pages
3688 The initial setting is @code{t}.
3689 If non-nil, message is split as pages by @samp{^L}.
3690
3691 @item wl-message-window-size
3692 @vindex  wl-message-window-size
3693 The initial setting is '(1 . 4).
3694 A cons cell to specify the rate of summary and message window.
3695 car:cdr corresponds summary:message.
3696
3697 @item wl-summary-no-from-message
3698 @vindex  wl-summary-no-from-message
3699 The initial setting is @samp{nobody@@nowhere?}.  A string which is
3700 displayed when there's no @samp{From:} field in the message.
3701
3702 @item wl-summary-no-subject-message
3703 @vindex  wl-summary-no-subject-message
3704 The initial setting is @samp{(WL:No Subject in original.)}.  A string
3705 which is displayed when there's no @samp{Subject:} field in the message.
3706
3707 @item wl-summary-use-frame
3708 @vindex wl-summary-use-frame
3709 The initial setting is @code{nil}.
3710 If non-nil, use new frame for the summary.
3711
3712 @item wl-use-folder-petname
3713 @vindex  wl-use-folder-petname
3714 The initial setting is the list shown below:
3715
3716 @lisp
3717 @group
3718 (modeline)
3719 @end group
3720 @end lisp
3721
3722 @noindent
3723 A list of display policy (symbol) of folder nickname.  Available symbols
3724 are:
3725
3726 @table @code
3727 @item modeline
3728 Display folder petname on modeline.
3729 @item ask-folder
3730 Destination folder is notified as nickname if
3731 @code{wl-auto-select-next} is non-nil.
3732 @item read-folder
3733 You can input folder name by nickname in the function
3734 @code{wl-summary-read-folder}.
3735 @end table
3736
3737 @item wl-summary-move-direction-toggle
3738 @vindex  wl-summary-move-direction-toggle
3739 The initial setting is @code{t}.  If non-nil, last executed @kbd{p},
3740 @kbd{P}, @kbd{n}, @kbd{N} toggles the direction of cursor move.  If you
3741 want to aware of reading direction, set this to @code{t}.
3742
3743 @item wl-summary-width
3744 @vindex  wl-summary-width
3745 The initial setting is 80.
3746 Width of summary line. If @code{nil}, summary line's width is as is.
3747
3748 @item wl-summary-from-width
3749 @vindex wl-summary-from-width
3750 The initial setting is 17.
3751 Width of sender part of summary line.
3752
3753 @item wl-summary-subject-length-limit
3754 @vindex wl-summary-subject-length-limit
3755 The initial setting is @code{nil}. Specify the limit for the length of
3756 subject parts in summary. @code{nil} means unlimited.
3757
3758 @item wl-summary-indent-length-limit
3759 @vindex  wl-summary-indent-length-limit
3760 The initial setting is 46.
3761 Specify the limit of thread indent level. @code{nil} means unlimited
3762 indent level.
3763 If you set this to @code{nil} you should set @code{wl-summary-width}
3764 to @code{nil}, too.
3765
3766 @item wl-summary-recenter
3767 @vindex  wl-summary-recenter
3768 The initial setting is t.
3769 If non-nil, cursor point is moved to the center of the summary window.
3770
3771 @item wl-summary-divide-thread-when-subject-changed
3772 @vindex wl-summary-divide-thread-when-subject-changed
3773 The initial setting is @code{nil}.  If non-nil, thread is split if
3774 the subject is changed.
3775
3776 @item wl-summary-search-via-nntp
3777 @vindex wl-summary-search-via-nntp
3778 The initial setting is @code{confirm}.
3779
3780 If non-nil and @code{wl-summary-jump-to-msg-by-message-id} failed, call
3781 @code{wl-summary-jump-to-msg-by-message-id-via-nntp} and search message
3782 from the NNTP server @code{elmo-nntp-default-server}.  The value of
3783 @code{elmo-nntp-default-user}, @code{elmo-nntp-default-port},
3784 @code{elmo-nntp-default-stream-type} are used.
3785
3786 If @code{confirm}, server name can be specified. You can specify NNTP
3787 folder format like @samp{-:username@@servername:119!}.
3788
3789 @item wl-summary-keep-cursor-command
3790 @vindex wl-summary-keep-cursor-command
3791 The initial setting is the list shown below:
3792
3793 @lisp
3794 @group
3795 (wl-summary-goto-folder wl-summary-goto-last-visited-folder)
3796 @end group
3797 @end lisp
3798
3799 @noindent
3800 When you entered to summary by these commands and the target summary
3801 buffer already exists, summary status is not automatically updated and
3802 cursor position is saved.
3803
3804 @item elmo-folder-update-threshold
3805 @vindex elmo-folder-update-threshold
3806 The initial setting is 500.  If updated message number is larger than
3807 this value, confirm whether drop them or not (in the case where the value
3808 of @code{elmo-folder-update-confirm} is non-nil).
3809
3810 @item elmo-folder-update-confirm
3811 @vindex elmo-folder-update-confirm
3812 The initial setting is @code{t}. If the value is non-nil, do check with
3813 @code{elmo-folder-update-threshold}.
3814
3815 @item wl-summary-always-sticky-folder-list
3816 @vindex wl-summary-always-sticky-folder-list
3817 The initial setting is @code{nil}.
3818 @code{wl-summary-always-sticky-folder-list} specifies the folders that
3819 are automatically stuck. Each element is regexp of folder name.
3820
3821 @item wl-summary-reserve-mark-list
3822 @vindex wl-summary-reserve-mark-list
3823 The initial setting is the list shown below:
3824
3825 @lisp
3826 @group
3827 ("o" "O" "D")
3828 @end group
3829 @end lisp
3830
3831 @noindent
3832 If a message is already marked as temporal marks in this list, the
3833 message is not marked by any mark command.
3834
3835 @item wl-summary-skip-mark-list
3836 @vindex wl-summary-skip-mark-list
3837 The initial setting is the list shown below:
3838
3839 @lisp
3840 @group
3841 ("D")
3842 @end group
3843 @end lisp
3844
3845 @noindent
3846 If a message is already marked as temporal marks in this list, the
3847 message is skipped at cursor move.
3848
3849 @item elmo-message-fetch-threshold
3850 @vindex elmo-message-fetch-threshold
3851 The initial setting is 30000 (bytes).  If displaying message has larger
3852 size than this value, Wanderlust confirms whether fetch the message or
3853 not (in the case where the value of @code{elmo-message-fetch-confirm}
3854 is non-nil).
3855
3856 @item elmo-message-fetch-confirm
3857 @vindex elmo-message-fetch-confirm
3858 The initial setting is @code{t}. If the value is non-nil, do check with
3859 @code{elmo-message-fetch-threshold}.
3860
3861 @item wl-prefetch-threshold
3862 @vindex wl-prefetch-threshold
3863 The initial setting is 30000 (bytes). If prefetching message has larger
3864 size than this value and @code{wl-prefetch-confirm} is non-nil,
3865 Wanderlust confirms whether prefetch the message or not.  If
3866 @code{wl-prefetch-threshold} is @code{nil}, the message is prefetched
3867 without confirmation.
3868
3869 @item wl-prefetch-confirm
3870 @vindex wl-prefetch-confirm
3871 The initial setting is @code{t}. If non-nil, Wanderlust confirms whether
3872 prefetch the message or not if the message has larger size than
3873 @code{wl-prefetch-threshold}.
3874
3875 @item elmo-imap4-use-cache
3876 @vindex elmo-imap4-use-cache
3877 The initial setting is @code{t}.  If non-nil, messages read via IMAP4
3878 are cached.
3879
3880 @item elmo-nntp-use-cache
3881 @vindex elmo-nntp-use-cache
3882 The initial setting is @code{t}.  If non-nil, messages read via NNTP are
3883 cached.
3884
3885 @item elmo-pop3-use-cache
3886 @vindex elmo-pop3-use-cache
3887 The initial setting is @code{t}.  If non-nil, messages read via POP3 are
3888 cached.
3889
3890 @item elmo-shimbun-use-cache
3891 @vindex elmo-shimbun-use-cache
3892 The initial setting is @code{t}.  If non-nil, messages read in Shimbun
3893 folders are cached.
3894
3895 @item wl-folder-process-duplicates-alist
3896 @vindex wl-folder-process-duplicates-alist
3897 The initial setting is @code{nil}.
3898 This list determines how to deal with duplicated messages in the same folder.
3899 Each item in the list is regexp of folder name and action; you can specify any
3900 one of the following in the place of action:
3901
3902 @example
3903 @code{nil} : do nothing for duplicated messages.
3904 @code{hide} : hide duplicated messages from the summary.
3905 @code{read} : set duplicated messages as read.
3906 @end example
3907
3908 @noindent
3909 Following is an example (hide duplicated messages in multi folders)
3910
3911 @lisp
3912 @group
3913 (setq wl-folder-process-duplicates-alist
3914                  '(("^\\+draft$" . nil) ("^\\+trash$" . nil)
3915                    ("^\\*.*" . hide) (".*" . read)))
3916 @end group
3917 @end lisp
3918 @end table
3919
3920
3921 @node Message, Draft, Summary, Top
3922 @chapter Message Buffer
3923
3924 Message Buffers utilize MIME-View mode of SEMI.  For operational
3925 procedures and key bindings, refer to respective documents.
3926 @xref{MIME-View, , ,mime-ui-en, a MIME user interface for GNU Emacs}.
3927 You can also see help by @kbd{?} in message buffer.
3928
3929 @kbd{p} at the top of a message or @kbd{n} at the bottom of a message
3930 brings you back to Summary mode.  @kbd{l} toggles display of Summary
3931 mode buffer.
3932
3933 @section Key Bindings
3934
3935 @table @kbd
3936
3937 @item l
3938 @kindex l (Message)
3939 @findex wl-message-toggle-disp-summary
3940 Toggles display of Summary mode buffer.
3941 (@code{wl-message-toggle-disp-summary})
3942
3943 @item Button-2
3944 @findex wl-message-refer-article-or-url
3945 @kindex Button-2 (Message)
3946 Assumes @samp{Message-ID:} at the mouse pointer, and shows the
3947 corresponding message if found.
3948 (@code{wl-message-refer-article-or-url})
3949
3950 @item Button-4 (upward movement of a wheel)
3951 @kindex Button-4 (Message)
3952 @findex wl-message-wheel-down
3953 Scrolls the message backwards.  When the top of the message is hit,
3954 moves to the previous message.
3955 (@code{wl-message-wheel-down})
3956
3957 @item Button-5 (downward movement of a wheel)
3958 @kindex Button-5 (Message)
3959 @findex wl-message-wheel-up
3960 Scrolls the message forward.  When the bottom of the message is hit,
3961 moves to the next message.
3962 (@code{wl-message-wheel-up})
3963 @end table
3964
3965 @section Customizable Variables
3966
3967 @table @code
3968 @item wl-message-window-size
3969 @vindex wl-message-window-size
3970 Initial setting is @code{'(1 . 4)}.  It is a cons cell and the ratio of
3971 its car and cdr value corresponds to the ratio of Summary and Message
3972 windows.
3973
3974 @item wl-message-ignored-field-list
3975 @vindex wl-message-ignored-field-list
3976 (SEMI only) Initial setting is @code{nil}.
3977 All fields that match this list will be hidden in message buffer.
3978 Each elements are regexp of field-name.
3979 If @code{nil}, the value of @code{mime-view-ignored-field-list} is used.
3980
3981 @item wl-message-visible-field-list
3982 @vindex wl-message-visible-field-list
3983 (SEMI only) Initial setting is @code{nil}.
3984 All fields that match this list will be display in message buffer.
3985 Each elements are regexp of field-name. This value precedes
3986 @code{wl-message-ignored-field-list}.
3987 If @code{nil}, the value of @code{mime-view-visible-field-list} is used.
3988
3989 @item wl-message-sort-field-list
3990 @vindex wl-message-sort-field-list
3991 (SEMI only) Initial setting is
3992 '("Return-Path" "Received" "^To" "^Cc" "Newsgroups" "Subject" "^From").
3993 Header fields in message buffer are ordered by this value.
3994 Each elements are regexp of field-name.
3995
3996 @item wl-message-truncate-lines
3997 @vindex wl-message-truncate-lines
3998 The initial value is the value of @code{default-truncate-lines}.
3999 If it is non-nil, truncate long lines in message buffer.
4000 @end table
4001
4002 @node Draft, Disconnected Operations, Message, Top
4003 @chapter Draft Buffer
4004
4005 At Summary mode, pressing @kbd{w} and the like creates a new draft
4006 buffer.  You can edit and send mail and news articles in this buffer.
4007
4008 By pressing @kbd{W}, Wanderlust guess addressees and prepare draft buffer
4009 with those if possible.
4010
4011 @section Tips
4012
4013 Basically it is Emacs-standard mail mode.
4014
4015 @subsection Address Completion
4016
4017 Initially, the cursor is at the @samp{To:} field.  Fill in recipients
4018 addresses.  @kbd{@key{TAB}} completes them.
4019
4020 If you want to submit a news article, add @samp{Newsgroups:} field by
4021 yourself.  Field names can be completed by @kbd{@key{TAB}}.
4022
4023 If you save the draft buffer you are editing, it is appended to the
4024 folder specified by @code{wl-draft-folder}.
4025
4026 Using @samp{FCC:} field, you can specify the folder to which a copy of
4027 the message is saved when it is sent.
4028
4029 @subsection Editing Messages
4030
4031 Multi-part editing utilize MIME edit mode of SEMI.  For procedures of
4032 editing, refer to respective documents.  @xref{MIME-Edit, , ,mime-ui-en,
4033 a MIME user interface for GNU Emacs}.
4034 You can also see help by @kbd{C-c C-x ?} in draft buffer.
4035
4036 @subsection Dynamic Modification of Messages
4037 @vindex wl-draft-config-alist
4038 @c @cindex Change Message
4039 @c @cindex Message, Change Dynamic
4040
4041 You can set @code{wl-draft-config-alist} so that header and body of the
4042 message will automatically modified depending on information of header
4043 and others.
4044
4045 The initial setting of @code{wl-draft-config-alist} is @code{nil}.
4046
4047 In the example below, the header is modified when
4048 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked.  You
4049 can set @code{wl-interactive-send} to non-nil so as to confirm changes
4050 before sending the message.
4051
4052 @lisp
4053 @group
4054 (setq wl-draft-config-alist
4055       '(((string-match "aaa\\.example\\.com$" (system-name))
4056          ;; @r{applied if the expression is non-nil}
4057          (wl-smtp-posting-server . "mailserver-B")
4058          (wl-nntp-posting-server . "newsserver-B")
4059          ;; @r{settings of temporary variables}
4060          )
4061         ("^To: .*user@@aaa\\.bbb\\.example\\.com"
4062          ;; @r{applied if it matches the header of the draft buffer}
4063          ("Organization" . (format "Go %s" my-webpage)))
4064                        ;; @r{you can write elisp expressions here (eval only)}
4065          (top . "Hello.\n")    ;; @r{inserted at the top of the body}
4066          (bottom . "\nBye.\n") ;; @r{inserted at the bottom of the body}
4067         ))
4068 @end group
4069 @end lisp
4070
4071 The format of @code{wl-draft-config-alist} is:
4072
4073 @example
4074 @group
4075 '(("@var{regexp of the header}" or @var{elisp expression}
4076   ("@var{Field}" . value(@var{elisp expression}))
4077    (@var{variable} . value(@var{elisp expression}))
4078    (@var{sub-function} . value(@var{elisp expression}))
4079    @var{function}
4080    @dots{})
4081   ("@var{regexp of the header}" or @var{elisp expression}
4082    ("@var{Field}" . value(@var{elisp expression}))
4083    @dots{}))
4084 @end group
4085 @end example
4086
4087 Per default, there are 10 following sub-functions.
4088
4089 @example
4090 'header:      Inserts the specified string at the bottom of the header.
4091 'header-top:  Inserts the specified string at the top of the header.
4092 'header-file: Inserts the specified file at the bottom of the header.
4093 'x-face:      Inserts @samp{X-Face:} field with the content of the specified file.
4094 'top:         Inserts the specified string at the top of the body.
4095 'top-file:    Inserts the specified file at the top of the body.
4096 'body:        Replaces the body with the specified string.
4097               Specifying @code{nil} deletes the entire body string.
4098 'body-file:   Replaces the body with the content of the specified file.
4099 'bottom:      Inserts the specified string at the bottom of the body.
4100 'bottom-file: Inserts the specified file at the top of the body.
4101 'part-top:  Inserts the specified string at the top of the current part.
4102 'part-bottom: Inserts the specified string at the bottom of the current part.
4103 'template:    Applies the specified template.
4104               (refer to the next subsection)
4105 @end example
4106
4107 These are defined in @code{wl-draft-config-sub-func-alist} and you can
4108 change them or add your own functions.  If you read the code, you can
4109 easily find how to write the functions.
4110
4111 At the first of each item, @var{a regular expression of the header} or
4112 an @var{elisp expression} should be specified.  In the case of an elisp
4113 expression, the item is applied when the expression is evaluated
4114 non-nil.
4115
4116 Per default, when multiple items match or are evaluated non-nil, all
4117 such items are applied, but if you set a variable
4118 @code{wl-draft-config-matchone} to @code{t}, only the first matching one
4119 is applied.
4120
4121 At the second of the item, a cons or a list of functions should be
4122 specified.  The car part of the cons should be a header field, a
4123 variable, or a sub-function.  When a header field is specified, the
4124 field will be modified.  If a variable is specified, the value of the
4125 variable will be modified temporarily.
4126
4127 In the cdr part of a cons, not only a variable but also an elisp
4128 expression can be specified as is.  If the car part is a header field
4129 and the cdr part is @code{nil}, the field will be deleted.
4130
4131 If you want to use name of parent folder, you can refer the buffer local
4132 variable @code{wl-draft-parent-folder}.
4133
4134 See the next example as well:
4135
4136 @lisp
4137 @group
4138 (setq wl-draft-config-alist
4139       '((reply                         ;; @r{(1)}
4140          "X-ML-Name: \\(Wanderlust\\|emacs-mime-ja\\|apel-ja\\)"
4141          ;; @r{applied if it matches the header of the buffer being replied}
4142          (body . "  Hello.\n")
4143          (template . "default")
4144          )))
4145 @end group
4146 @end lisp
4147
4148 As in the (1) above, if a header regexp is prepended with @code{reply},
4149 it is applied when the draft is prepared by @code{wl-summary-reply} for
4150 example, and when it matches the header being replied.  It is ignored
4151 when there is no buffer being replied, like after @code{wl-draft} was
4152 invoked.
4153
4154 Note that @code{wl-draft-config-alist} is applied only once when
4155 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked.
4156 Therefore, if you want to apply @code{wl-draft-config-alist} again after
4157 aborting transmission, execute @kbd{C-c C-e}
4158 (@code{wl-draft-config-exec}) explicitly.
4159
4160 If you don't want to apply @code{wl-draft-config-alist} when
4161 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked,
4162 do the following:
4163
4164 @lisp
4165 (remove-hook 'wl-draft-send-hook 'wl-draft-config-exec)
4166 @end lisp
4167
4168 If you want to apply @code{wl-draft-config-alist} when a draft buffer is
4169 prepared, do the following:
4170
4171 @lisp
4172 (add-hook 'wl-mail-setup-hook 'wl-draft-config-exec)
4173 @end lisp
4174
4175 If you want to apply @code{wl-draft-config-alist} when you re-edit a mail
4176 from summary mode by typing @kbd{E}(@code{wl-summary-reedit}), do the
4177 following:
4178
4179 @lisp
4180 (add-hook 'wl-draft-reedit-hook 'wl-draft-config-exec)
4181 @end lisp
4182
4183 @subsection Inserting Templates
4184 @cindex Template
4185 @cindex Apply Template
4186
4187 Set a variable @code{wl-template-alist}, and type @kbd{C-c C-j} or
4188 @kbd{M-x wl-template-select} in the draft buffer.
4189
4190 The format of @code{wl-template-alist} is almost the same as
4191 @code{wl-draft-config-alist}.
4192
4193 @lisp
4194 @group
4195 (setq wl-template-alist
4196       '(("default"
4197          ("From" . wl-from)
4198          ("Organization" . "Example Co.Ltd.")
4199          (body . "Hello.\n"))
4200         ("report"
4201          (template . "default")                 ;; @r{(a)}
4202          ("To" . "boss@@example.com")
4203          ("Subject" . "Report")
4204          (body-file . "~/work/report.txt")
4205          )
4206         ))
4207 @end group
4208 @end lisp
4209
4210 As you can see, the only difference is item (template) names such as
4211 @samp{default} and @samp{report}, instead of a regexp of header.
4212 Because definition of each item is the same as
4213 @code{wl-draft-config-alist}, you can call another template, like (a).
4214
4215 Executing the command @code{wl-template-select} results in template
4216 selection, but the result differs depending on variable
4217 @code{wl-template-visible-select}.
4218
4219 If @code{wl-template-visible-select} is @code{t} (default), a buffer
4220 window is shown below the draft buffer.  You can select a template by
4221 @kbd{n} and @kbd{p} seeing the buffer window.
4222
4223 Press the @key{RET} key and the template is actually applied to the draft
4224 buffer.  If you press @kbd{q}, nothing is applied.  In addition, you can
4225 adjust the window size by @code{wl-template-buffer-lines}.
4226
4227 If @code{wl-template-visible-select} is @code{nil}, you should type the
4228 name of the template in the mini buffer.
4229
4230 As shown in the example in @code{wl-draft-config-alist}, you can select
4231 @samp{default} template by writing:
4232
4233 @lisp
4234 (template . "default")
4235 @end lisp
4236
4237 @subsection Sending mail by POP-before-SMTP
4238 @cindex POP-before-SMTP
4239
4240 You can send mail by POP-before-SMTP with this single line:
4241
4242 @lisp
4243 (setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)
4244 @end lisp
4245
4246 @noindent
4247 Configure the following variables if you need.
4248
4249 @table @code
4250 @item wl-pop-before-smtp-user
4251 The POP user name for POP-before-SMTP authentication.
4252 If unset, @code{elmo-pop3-default-user} is used.
4253
4254 @item wl-pop-before-smtp-server
4255 The POP server name for POP-before-SMTP authentication.
4256 If unset, @code{elmo-pop3-default-server} is used.
4257
4258 @item wl-pop-before-smtp-authenticate-type
4259 The POP authentication method for POP-before-SMTP authentication.
4260 If unset, @code{elmo-pop3-default-authenticate-type} is used.
4261
4262 @item wl-pop-before-smtp-port
4263 The POP port number for POP-before-SMTP authentication.
4264 If unset, @code{elmo-pop3-default-port} is used.
4265
4266 @item wl-pop-before-smtp-stream-type
4267 If non-nil, POP connection is established using SSL.  If
4268 @code{starttls}, STARTTLS (RFC2595) connection will be established.  If
4269 unset, @code{elmo-pop3-default-stream-type} is used.
4270 @end table
4271
4272 If variables for POP-before-SMTP (@code{wl-pop-before-smtp-*}) are
4273 unset, settings for POP folders (@code{elmo-pop3-default-*}) are
4274 used.
4275 Therefore, if SMTP server and POP server are actually the same, and if
4276 POP folder per default (such as @samp{&}) is available, no settings are
4277 required.
4278
4279 Refer to the following URL about POP-before-SMTP.
4280
4281 @example
4282 @group
4283 http://spam.ayamura.org/tools/smPbS.html
4284 http://www.iecc.com/pop-before-smtp.html
4285 @end group
4286 @end example
4287
4288 @section Key Bindings
4289 @cindex Keybind, Draft Mode
4290 @cindex Keybind, Draft Buffer
4291
4292 @table @kbd
4293
4294 @item C-c C-y
4295 @kindex C-c C-y (Draft)
4296 @findex wl-draft-yank-original
4297 Cites the content of the current message buffer.
4298 (@code{wl-draft-yank-original})
4299
4300 @item C-c C-p
4301 @kindex C-c C-p (Draft)
4302 @findex wl-draft-preview-message
4303 Previews the content of the current draft.
4304 This is useful for previewing MIME multi-part messages.
4305 (@code{wl-draft-preview-message})
4306
4307 @item C-c C-s
4308 @kindex C-c C-s (Draft)
4309 @findex wl-draft-send
4310 Sends the content of the current draft.  Does not erase the draft buffer.
4311 This is useful for sending multiple messages, which are a little different
4312 from each other.
4313 (@code{wl-draft-send})
4314
4315 @item C-c C-c
4316 @kindex C-c C-c (Draft)
4317 @findex wl-draft-send-and-exit
4318 Sends the content of the current draft and erases the draft buffer.
4319 (@code{wl-draft-send-and-exit})
4320
4321 @item C-x C-s
4322 @kindex C-x C-s (Draft)
4323 @findex wl-draft-save
4324 Save the current draft.
4325 (@code{wl-draft-save})
4326
4327 @item C-c C-k
4328 @kindex C-c C-k (Draft)
4329 @findex wl-draft-kill
4330 Kills the current draft.
4331 (@code{wl-draft-kill})
4332
4333 @item C-x k
4334 @kindex C-x k (Draft)
4335 @findex wl-draft-mimic-kill-buffer
4336 Kills the current draft.
4337 (@code{wl-draft-mimic-kill-buffer})
4338
4339 @item C-c C-z
4340 @kindex C-c C-z (Draft)
4341 @findex wl-draft-save-and-exit
4342 Saves the current draft, and erases the draft buffer.
4343 This is useful if you want to suspend editing of the draft.
4344 You can resume editing by pressing @kbd{E} (@code{wl-summary-reedit}) in
4345 the @samp{+draft} folder.
4346 (@code{wl-draft-save-and-exit})
4347
4348 @item C-c C-r
4349 @kindex C-c C-r (Draft)
4350 @findex wl-caesar-region
4351 Encodes or decodes the specified region in Caesar cipher.
4352 (@code{wl-caesar-region})
4353
4354 @item C-l
4355 @kindex C-l (Draft)
4356 @findex wl-draft-highlight-and-recenter
4357 Recenter and rehighlight current draft.
4358 (@code{wl-draft-highlight-and-recenter})
4359
4360 @item M-t
4361 @kindex M-t (Draft)
4362 @findex wl-toggle-plugged
4363 Toggles off-line/on-line states of Wanderlust.
4364 (@code{wl-toggle-plugged})
4365
4366 @item C-c C-o
4367 @kindex C-c C-o (Draft)
4368 @findex wl-jump-to-draft-buffer
4369 Jumps to the other draft buffer, if exists.
4370 With prefix argument, reads a file (if any) from the draft folder when
4371 there is no such buffer.
4372 (@code{wl-jump-to-draft-buffer})
4373
4374 @item C-c C-e
4375 @kindex C-c C-e (Draft)
4376 @findex wl-draft-config-exec
4377 Applies @code{wl-draft-config-alist}.
4378 (@code{wl-draft-config-exec})
4379
4380 @item C-c C-j
4381 @kindex C-c C-j (Draft)
4382 @findex wl-template-select
4383 Selects a template.
4384 (@code{wl-template-select})
4385
4386 @item C-c C-a
4387 @kindex C-c C-a (Draft)
4388 @findex wl-addrmgr
4389 Enter Address Manager.
4390 @xref{Address Manager}.
4391 (@code{wl-addrmgr})
4392
4393 @item C-c C-d
4394 @kindex C-c C-d (Draft)
4395 @findex wl-draft-elide-region
4396 Elide the text between point and mark (@code{wl-draft-elide-region}).
4397 The text is killed and replaced with the contents of the variable
4398 @code{wl-draft-elide-ellipsis}.  The default value is to use an ellipsis
4399 (@samp{[...]}).
4400 @end table
4401
4402 @section Customizable Variables
4403
4404 @table @code
4405 @item wl-subscribed-mailing-list
4406 @vindex wl-subscribed-mailing-list
4407 The initial setting is @code{nil}.  Mailing lists to which you
4408 subscribe.  If any of these are contained in @samp{To:} or @samp{Cc:}
4409 field of a reply draft, removes your own address from
4410 @samp{Mail-Followup-To:} and @samp{Cc:}.  And if any of these are
4411 contained in @samp{To:} or @samp{Cc:} field of a message to be
4412 automatically re-filed, the destination folder will be leaned in
4413 connection with the address.
4414
4415 Example:
4416
4417 @lisp
4418 @group
4419 (setq wl-subscribed-mailing-list
4420       '("wl@@lists.airs.net"
4421         "apel-ja@@m17n.org"
4422         "emacs-mime-ja@@m17n.org"))
4423 @end group
4424 @end lisp
4425
4426 @item wl-insert-mail-followup-to
4427 @vindex wl-insert-mail-followup-to
4428 The initial setting is @code{nil}.  If non-nil, @samp{Mail-Followup-To:}
4429 field is automatically inserted in the draft buffer.
4430
4431 @item wl-insert-mail-reply-to
4432 @vindex wl-insert-mail-reply-to
4433 The initial setting is @code{nil}.  If non-nil, @samp{Mail-Reply-To:}
4434 field is automatically inserted in the draft buffer.
4435
4436 @item wl-auto-insert-x-face
4437 @vindex wl-auto-insert-x-face
4438 The initial setting is @code{t}.  If non-nil and there is an encoded
4439 X-Face string in a file @file{~/.xface} (the value of the variable
4440 @code{wl-x-face-file}), inserts it as an @samp{X-Face:} field in the
4441 draft buffer.  If @code{nil}, it is not automatically inserted.
4442
4443 @item wl-insert-message-id
4444 @vindex wl-insert-message-id
4445 The initial setting is @code{t}.  If non-nil, @samp{Message-ID:} field
4446 is automatically inserted on the transmission.
4447
4448 @item wl-message-id-use-wl-from
4449 @vindex wl-message-id-use-wl-from
4450 The initial setting is @code{nil}.  If non-nil, the value of
4451 @code{wl-from} will be used as the domain part of @samp{Message-ID:}.
4452
4453 @item wl-local-domain
4454 @vindex wl-local-domain
4455 The initial setting is @code{nil}.  If @code{nil}, the return value of
4456 the function @code{system-name} will be used as the domain part of
4457 @samp{Message-ID:}.
4458
4459 If @code{system-name} does not return FQDN (i.e. the full name of the
4460 host, like @samp{smtp.gohome.org}), you @strong{must} set this variable
4461 to the string of the local domain name without hostname (like
4462 @samp{gohome.org}).  That is, a concatenation of @code{system-name}
4463 @samp{.} @code{wl-local-domain} is used as domain part of the
4464 @samp{Message-ID:}.
4465
4466 If your terminal does not have global IP, set the value of
4467 @code{wl-message-id-domain}.  (You might be beaten up on the Net News if
4468 you use invalid @samp{Message-ID:}.)
4469
4470 Moreover, concatenation of @code{system-name} @samp{.}
4471 @code{wl-local-domain} will be used as an argument to the HELO command
4472 in SMTP.
4473
4474 @item wl-message-id-domain
4475 @vindex wl-message-id-domain
4476 The initial setting is @code{nil}.  If non-nil, this value is used as a
4477 domain part of the @samp{Message-ID:}.  If your terminal does not have
4478 global IP address, set unique string to this value (e.x. your e-mail
4479 address).
4480
4481 @item wl-unique-id-suffix
4482 @vindex wl-unique-id-suffix
4483 The initial setting is @samp{.wl}. You can specify the string in generated
4484 Message-ID which appear just before @samp{@@}.
4485
4486 @item wl-draft-config-alist
4487 @vindex wl-draft-config-alist
4488 The initial setting is @code{nil}.  Modifies the draft message just
4489 before the transmission.  The content of @code{wl-draft-config-alist}
4490 will be automatically applied only once on the transmission.  If you
4491 want to apply it manually, use @kbd{C-c C-e}.  This command can be used
4492 many times.
4493
4494 @item wl-template-alist
4495 @vindex wl-template-alist
4496 The initial setting is @code{nil}.
4497 This variable specifies the template to be applied in the draft buffer.
4498
4499 @item wl-draft-config-matchone
4500 @vindex wl-draft-config-matchone
4501 The initial setting is @code{nil}.  If non-nil, only the first matching
4502 item is used when @code{wl-draft-config-alist} is applied.  If
4503 @code{nil}, all matching items are used.
4504
4505 @item wl-template-visible-select
4506 @vindex wl-template-visible-select
4507 The initial setting is @code{t}.
4508 If non-nil, you can preview the result of the template selection in
4509 another window.
4510
4511 @item wl-template-confirm
4512 @vindex wl-template-confirm
4513 The initial setting is @code{nil}.
4514 If non-nil, asks for confirmation when you press the enter key to select
4515 template while previewing.
4516
4517 @item wl-template-buffer-lines
4518 @vindex wl-template-buffer-lines
4519 The initial setting is 7.
4520 If @code{wl-template-visible-select} is non-nil, this variable specifies
4521 the size of the preview window.
4522
4523 @item wl-draft-reply-buffer-style
4524 @vindex wl-draft-reply-buffer-style
4525 The initial setting is @code{split}.  @code{split} or @code{full} can be
4526 specified.  In the case of @code{full}, the whole frame will be used for
4527 a reply draft buffer when it is prepared.
4528
4529 @item wl-draft-use-frame
4530 @vindex wl-draft-use-frame
4531 The initial setting is @code{nil}.
4532 If non-nil, use new frame for the draft.
4533
4534 @item wl-draft-truncate-lines
4535 @vindex wl-draft-truncate-lines
4536 The initial value is the value of @code{default-truncate-lines}.
4537 If it is non-nil, truncate long lines in draft buffer.
4538
4539 @item wl-from
4540 @vindex wl-from
4541 The initial setting is the value of the variable
4542 @code{user-mail-address}.  The value of this variable is inserted as a
4543 @samp{From:} field of the draft when it is prepared.
4544
4545 @item wl-envelope-from
4546 @vindex wl-envelope-from
4547 The initial setting is @code{nil}.
4548 The value of this variable is used for envelope from (MAIL FROM).
4549 If @code{nil}, the address part of @code{wl-from} is used.
4550
4551 @item wl-user-mail-address-list
4552 @vindex wl-user-mail-address-list
4553 The initial setting is @code{nil}.
4554 This is the User's address list.  If you have multiple addresses,
4555 set this variable.
4556
4557 @item wl-fcc
4558 @vindex wl-fcc
4559 The initial setting is @code{nil}.
4560 If non-nil, the value of this variable is inserted as a @samp{Fcc:} of
4561 the draft when it is prepared.  If function is specified, its return
4562 value is used.
4563
4564 @item wl-bcc
4565 @vindex wl-bcc
4566 The initial setting is @code{nil}.
4567 If non-nil, the value of this variable is inserted as a @samp{Bcc:} of
4568 the draft when it is prepared.
4569
4570 @item wl-reply-subject-prefix
4571 @vindex wl-reply-subject-prefix
4572 The initial setting is @samp{Re: }.
4573 In the @samp{Subject:} of the reply draft, this string is prepended to
4574 the @samp{Subject:} of being replied.
4575
4576 @item wl-draft-reply-use-address-with-full-name
4577 @vindex wl-draft-reply-use-address-with-full-name
4578 The initial setting is @code{t}.
4579 If non-nil, insert her full name with address when prepare a draft for
4580 reply a message.  If it is @code{nil}, insert her address only.
4581
4582 @item wl-draft-enable-queuing
4583 @vindex wl-draft-enable-queuing
4584 The initial setting is @code{t}.
4585 This flag controls off-line transmission.  If non-nil, the draft is
4586 sent off-line.
4587
4588 @item wl-draft-use-cache
4589 @vindex wl-draft-use-cache
4590 The initial setting is @code{nil}. If the value is non-nil and
4591 @code{wl-insert-message-id} is nil, cache the message which is sent.
4592
4593 @item wl-fcc-force-as-read
4594 @vindex wl-fcc-force-as-read
4595 The initial setting is @code{nil}. If the value is non-nil,
4596 Mark as read the message saved by @samp{Fcc:} (only for IMAP folders).
4597
4598 @item wl-auto-flush-queue
4599 @vindex wl-auto-flush-queue
4600 The initial setting is t.
4601 This flag controls automatic transmission of the queue when Wanderlust
4602 becomes on-line.  If non-nil, the queue is automatically transmitted
4603 (with confirmation by @code{y-or-n-p}).  If you want to transmit it
4604 manually, press @kbd{F} in the folder mode.
4605
4606 @item wl-ignored-forwarded-headers
4607 @vindex wl-ignored-forwarded-headers
4608 Initial setting is @samp{\\(received\\|return-path\\|x-uidl\\)}.
4609 All headers that match this regexp will be deleted when forwarding a message.
4610
4611 @item wl-ignored-resent-headers
4612 Initial setting is @samp{\\(return-receipt\\|[bdf]cc\\)}.
4613 All headers that match this regexp will be deleted when resending a message.
4614
4615 @item wl-draft-always-delete-myself
4616 @vindex wl-draft-always-delete-myself
4617 If non-nil, always removes your own address from @samp{To:} and
4618 @samp{Cc:} when you are replying to the mail addressed to you.
4619
4620 @item wl-draft-delete-myself-from-bcc-fcc
4621 @vindex wl-draft-delete-myself-from-bcc-fcc
4622 If any of @code{wl-subscribed-mailing-list} are contained in @samp{To:}
4623 or @samp{Cc:} field, do not insert @samp{Bcc:} or @samp{FCC:} field.
4624
4625 @item wl-smtp-posting-server
4626 @vindex wl-smtp-posting-server
4627 The initial setting is @code{nil}.
4628 This is the SMTP server name for mail transmission.
4629
4630 @item wl-smtp-posting-user
4631 @vindex wl-smtp-posting-user
4632 The initial setting is @code{nil}.
4633 This is the user name for SMTP AUTH authentication.  If @code{nil},
4634 @code{smtp-authenticate-user} is used.
4635
4636 @item wl-smtp-authenticate-type
4637 @vindex wl-smtp-authenticate-type
4638 The initial setting is @code{nil}.
4639 This is the authentication method for SMTP AUTH authentication.  If
4640 @code{nil}, @code{smtp-authenticate-type} is used.  If
4641 @code{smtp-authenticate-type} is still @code{nil}, authentication will
4642 not be carried out.
4643
4644 @item wl-smtp-connection-type
4645 @vindex wl-smtp-connection-type
4646 The initial setting is @code{nil}.
4647 This variable specifies how to establish SMTP connections.
4648 If @code{nil}, @code{smtp-connection-type} is used.
4649 If it is @code{starttls}, STARTTLS (RFC2595) is used.
4650
4651 @item wl-nntp-posting-server
4652 @vindex wl-nntp-posting-server
4653 The initial setting is @code{nil}.
4654 This is the NNTP server name used for news submission.
4655 If @code{nil}, @code{elmo-nntp-default-server} is used.
4656
4657 @item wl-nntp-posting-user
4658 @vindex wl-nntp-posting-user
4659 The initial setting is @code{nil}.
4660 This is the user name for AUTHINFO authentication on news submission.
4661 If @code{nil}, @code{elmo-nntp-default-user} is used.
4662 If it is still @code{nil}, AUTHINFO authentication will not be carried out.
4663
4664 @item wl-nntp-posting-port
4665 @vindex wl-nntp-posting-port
4666 The initial setting is @code{nil}.
4667 This is the port number of the NNTP server used for news submission.
4668 If @code{nil}, @code{elmo-nntp-default-server} is used.
4669
4670 @item wl-nntp-posting-stream-type
4671 @vindex wl-nntp-posting-stream-type
4672 The initial setting is @code{nil}.
4673 If @code{nil}, @code{elmo-nntp-default-stream-type} is evaluated.  If non-nil,
4674 SSL is used for news submission.  If @code{starttls}, STARTTLS (RFC2595)
4675 connection will be established.
4676
4677 @item wl-pop-before-smtp-user
4678 @vindex wl-pop-before-smtp-user
4679 The initial setting is @code{nil}.
4680 This is the POP user name for POP-before-SMTP.
4681 If it is @code{nil}, @code{elmo-pop3-default-user} is used.
4682
4683 @item wl-pop-before-smtp-server
4684 @vindex wl-pop-before-smtp-server
4685 The initial setting is @code{nil}.
4686 This is the POP server name for POP-before-SMTP.
4687 If it is @code{nil}, @code{elmo-pop3-default-server} is used.
4688
4689 @item wl-pop-before-smtp-authenticate-type
4690 @vindex wl-pop-before-smtp-authenticate-type
4691 The initial setting is @code{nil}.
4692 This is the authentication method for POP-before-SMTP authentication.
4693 If it is @code{nil}, @code{elmo-pop3-default-authenticate} is used.
4694
4695 @item wl-pop-before-smtp-port
4696 @vindex wl-pop-before-smtp-port
4697 The initial setting is @code{nil}.
4698 This is the POP port number for POP-before-SMTP.  If it is @code{nil},
4699 @code{elmo-pop3-default-port} is used.
4700
4701 @item wl-pop-before-smtp-stream-type
4702 @vindex wl-pop-before-smtp-stream-type
4703 The initial setting is @code{nil}.
4704 This flag controls the use of SSL for POP-before-SMTP.  If it is
4705 @code{nil}, @code{elmo-pop3-default-stream-type} is used.  If @code{starttls},
4706 STARTTLS (RFC2595) connection will be established.
4707
4708 @item wl-draft-queue-save-variables
4709 @vindex wl-draft-queue-save-variables
4710 Specifies a list of variable to which queued messages are saved on the
4711 off-line transmission.
4712
4713 @item wl-draft-sendlog
4714 @vindex wl-draft-sendlog
4715 The initial setting is @code{t}.
4716 If @code{t}, transmission log is written in @file{~/.elmo/sendlog}.  It
4717 is written when:
4718
4719 @itemize @minus
4720 @item drafts are sent by smtp or qmail
4721 @item saved into folders by fcc
4722 @item saved into folders by queuing
4723 @end itemize
4724
4725 (it is written even if the transmission fails).
4726 But transmission by @file{im-wl.el} is not written in the @file{sendlog}
4727 and left to the logging function of @command{imput}.
4728
4729
4730 @item wl-draft-sendlog-max-size
4731 @vindex wl-draft-sendlog-max-size
4732 The initial setting is 20000 (in bytes).
4733 If @code{wl-draft-sendlog} is @code{t}, the log is rotated when it grows
4734 beyond the size specified by this variable.
4735
4736 @item wl-use-ldap
4737 @vindex wl-use-ldap
4738 The initial setting is @code{nil}.
4739 If non-nil, address completion uses LDAP.
4740
4741 @item wl-ldap-server
4742 @vindex wl-ldap-server
4743 The initial setting is @samp{localhost}.
4744 LDAP server name for address completion.
4745
4746 @item wl-ldap-port
4747 @vindex wl-ldap-port
4748 The initial setting is @code{nil}.
4749 If non-nil, the value is used as port number.
4750
4751 @item wl-ldap-base
4752 @vindex wl-ldap-base
4753 The initial setting is @samp{c=US}.
4754 LDAP search starting point (base) for address completion.
4755
4756 @item wl-draft-remove-group-list-contents
4757 @vindex wl-draft-remove-group-list-contents
4758 The initial setting is @code{t}.
4759 If non-nil, remove the group-lists' members in the recipients when
4760 sending the message (group-list means the description such as
4761 @samp{Group: foo@@gohome.org, bar@@gohome.org;} in the recipients).
4762 @end table
4763
4764 @node Disconnected Operations, Expire and Archive, Draft, Top
4765 @chapter Off-line Management
4766 @cindex Disconnected Operations
4767
4768 Wanderlust has on-line and off-line states.
4769
4770 @menu
4771 * Off-line State::              Wanderlust has on-line and off-line states
4772 * Enable Operations::           Enable Disconnected Operations
4773 * Plugged Mode::                Switching On-line/Off-line per Server/Port
4774 * Off-line State settings::     Invoking Wanderlust in the Off-line State
4775 * Variables of Plugged Mode::   Customize Plugged Mode
4776 @end menu
4777
4778
4779 @node Off-line State, Enable Operations, Disconnected Operations, Disconnected Operations
4780 @section Off-line State
4781
4782 Wanderlust has on-line and off-line states.  In the off-line state, you
4783 cannot access messages via network, unless they are cached.
4784
4785 @samp{[ON]} in the mode line indicates the on-line state.  @samp{[--]}
4786 in the mode line indicates the off-line state.  In folder or summary
4787 modes, press @kbd{M-t} to switch between off- and on-line.
4788
4789 You can invoke Wanderlust in the off-line state by setting
4790 @code{wl-plugged} to @code{nil} in @file{~/.wl} or anything appropriate.
4791
4792 In the off-line mode, @kbd{n} and @kbd{p} command in the summary mode
4793 ignores uncached messages.
4794
4795
4796 @node Enable Operations, Plugged Mode, Off-line State, Disconnected Operations
4797 @section Enable Disconeected Operations
4798
4799 Even in the off-line state, provided that relevant messages are cached,
4800 and the variable @code{elmo-enable-disconnected-operation} (described
4801 later) is non-nil, you can following operations:
4802 @xref{Plugged Mode}, @xref{Off-line State settings}.
4803
4804 @menu
4805 * Send Messages off-line::      Transmit Messages
4806 * Re-file and Copy queue::      Re-file and Copy (IMAP4)
4807 * Creation of Folders::         Create Folders off-line (IMAP4)
4808 * Marking::                     Mark (IMAP4)
4809 * Pre-fetching Reservations::   Pre-fetch (IMAP4, NNTP)
4810 @end menu
4811
4812 As soon as Wanderlust becomes on-line, such operations invoked off-line
4813 are reflected in the servers via network.
4814
4815
4816 @node Send Messages off-line, Re-file and Copy queue, Enable Operations, Enable Operations
4817 @subsection Transmission of Messages
4818
4819 You can send mail/news messages off-line (if you are using
4820 @file{im-wl.el}, it is irrelevant).  Messages sent off-line are
4821 accumulated in the queue folder, @samp{+queue}.  These messages are
4822 transmitted at once when Wanderlust becomes on-line.
4823
4824 You can visit @samp{+queue} in the off-line state and confirm content of
4825 messages in the queue.  You can also remove messages.  Removed messages
4826 are not transmitted even in the on-line state.
4827
4828
4829 @node Re-file and Copy queue, Creation of Folders, Send Messages off-line, Enable Operations
4830 @subsection Re-file and Copy (IMAP4)
4831
4832 Re-file and copy operations to IMAP folders invoked during the off-line
4833 state are accumulated in the queue, and reflected in the server side
4834 when Wanderlust becomes on-line.  If you visit destination folders after
4835 off-line re-file or copy, it looks as if messages were appended even in
4836 off-line state.
4837
4838 For the safety reasons, messages re-filed off-line are removed from
4839 source folders only if their @samp{Message-ID:} match messages on the
4840 servers.  While the queue is processed, messages that failed to be
4841 re-filed or copied to the specified folders are appended to the folder
4842 @samp{+lost+found}.
4843
4844
4845 @node Creation of Folders, Marking, Re-file and Copy queue, Enable Operations
4846 @subsection Creation of Folders (IMAP4)
4847
4848 You can create IMAP folders off-line.  The creation of folders are
4849 reflected in the servers when Wanderlust becomes on-line.  At that time,
4850 if folders failed to be created on the servers for any reasons, messages
4851 re-filed to such folders are appended to the folder @samp{+lost+found}.
4852
4853
4854 @node Marking, Pre-fetching Reservations, Creation of Folders, Enable Operations
4855 @subsection Marking (IMAP4)
4856
4857 Off-line changes in unread/read and importance mark @samp{$} information
4858 are also reflected in the servers when Wanderlust becomes on-line.
4859
4860
4861 @node Pre-fetching Reservations,  , Marking, Enable Operations
4862 @subsection Pre-fetching (IMAP4, NNTP)
4863
4864 You can make reservations for pre-fetching messages in IMAP or NNTP
4865 folders.  Reserved messages are marked with @samp{!} but not cached
4866 yet.  When Wanderlust becomes on-line, they are pre-fetched from
4867 servers.
4868
4869 If the variable @code{elmo-enable-disconnected-operation} is @code{nil},
4870 these off-line operations for IMAP4 and NNTP do not take place, and
4871 off-line re-file, copy or suchlike simply results in error.
4872
4873 Because off-line operations use cache files, it is a bad idea to erase
4874 them by hand; it may cause Wanderlust to malfunction.
4875
4876 If you want to remove caches, be sure to execute @kbd{M-x
4877 elmo-cache-expire-by-size}.  @code{elmo-cache-expire-by-size} does not
4878 remove caches for messages relevant to off-line operations.
4879
4880
4881 @node Plugged Mode, Off-line State settings, Enable Operations, Disconnected Operations
4882 @section Switching On-line/Off-line per Server/Port
4883
4884 @kbd{M-t} described above switches networking states as a whole, but you
4885 can switch on-line/off-line per server/port.
4886
4887 Pressing @kbd{C-t} in the folder or summary modes brings you in
4888 wl-plugged-mode shown below, in which you can change the plugged state
4889 for each port.
4890
4891 @example
4892 @group
4893 Queuing:[ON] AutoFlushQueue:[--] DisconnectedOperation:[ON]
4894 [ON](wl-plugged)
4895   [--]hosta
4896     [--]smtp        +queue: 2 msgs (1,2)        @dots{}@r{sending queue}
4897     [--]nntp(119)   +queue: 1 msg (3)           @dots{}@r{sending queue}
4898   [ON]hostb
4899     [--]imap4/cram-md5(143) %#mh/wl(prefetch-msgs:3,mark-as-important:1)
4900                             %inbox(delete-msgids:1)    @dots{}@r{dop queue}
4901     [ON]nntp(119)
4902     [ON]smtp
4903 @end group
4904 @end example
4905
4906 The first line indicates status of the following three variables, and
4907 simply pressing @kbd{@key{SPC}} or @kbd{@key{RET}} in each labeled
4908 column modifies the values of these variables.
4909
4910 @example
4911 @group
4912 "Queuing"               @code{wl-draft-enable-queuing}
4913 "AutoFlushQueue"        @code{wl-auto-flush-queue}
4914 "DisconnectedOperation" @code{elmo-enable-disconnected-operation}
4915 @end group
4916 @end example
4917
4918 where @samp{[ON]} means its value is @code{t}, and @samp{[--]} means
4919 @code{nil}.
4920
4921 The second and after lines indicate on-line/off-line states of servers
4922 and ports, where @samp{[ON]} stands for on-line and @samp{[--]} for
4923 off-line (in XEmacs or Emacs 21, they are shown with icons).  Pressing
4924 @kbd{@key{SPC}} or @kbd{@key{RET}} in each line switches its state.
4925
4926 @dfn{sending queue} means messages accumulated in the folder
4927 @samp{+queue} for off-line transmission, and @dfn{dop queue} means
4928 off-line operations when @code{elmo-enable-disconnected-operation} is
4929 @code{t}.
4930 @c If the variable @code{elmo-enable-disconnected-operation} is non-nil,
4931 @c off-line operations are enabled.
4932
4933 They are displayed if there are any of them.  In the example above, in
4934 the sending queue there are two messages (the first and the second in
4935 the queue folder) for smtp to hosta and one (the third) for nntp to
4936 hosta, and in the dop queue there are one for @samp{%inbox} and two for
4937 @samp{%#mh/wl}.
4938
4939 If you change @samp{(wl-plugged)} in the second line, the variable
4940 @code{wl-plugged} is changed, so that the mode line indicator and
4941 plugged states of all ports are affected.  If you change plugged states
4942 of any servers or ports, @samp{(wl-plugged)} in the second line is
4943 affected depending on @code{elmo-plugged-condition} settings and the
4944 plugged state of each port.
4945
4946
4947 @node Off-line State settings, Variables of Plugged Mode, Plugged Mode, Disconnected Operations
4948 @section Invoking Wanderlust in the Off-line State
4949
4950 As described before, if you set @code{wl-plugged} to @code{nil} in
4951 @file{~/.wl} or anything appropriate, you can invoke Wanderlust in the
4952 off-line state.  You can specify off-line state on a per server or port
4953 basis.  Refer to @code{wl-reset-plugged-alist} also.
4954
4955 Usually, when Wanderlust starts up, the plugged state of each port is
4956 read from @file{~/.folders} and @code{wl-smtp-posting-server},
4957 @code{wl-nntp-posting-server} and so on.  If you want to change the
4958 plugged state of these ports or to add other ports, configure
4959 @code{wl-make-plugged-hook} with a function.
4960
4961 @lisp
4962 @group
4963 (add-hook 'wl-make-plugged-hook
4964           '(lambda ()
4965              (elmo-set-plugged plugged-value(t/nil) server port)
4966                  ;; @r{add or change plugged states of the port of the server}
4967              (elmo-set-plugged plugged-value(t/nil) server)
4968                  ;; @r{if the port is omitted, all ports are affected}
4969                  ;; @r{(you cannot omit the port if you newly add the server)}
4970              ))
4971 @end group
4972 @end lisp
4973
4974
4975 @node Variables of Plugged Mode,  , Off-line State settings, Disconnected Operations
4976 @section Customizable Variables
4977
4978 @table @code
4979 @item wl-plugged
4980 @vindex wl-plugged
4981 If this variable is set to @code{nil}, Wanderlust starts up in off-line
4982 mode from the beginning.
4983
4984 @item wl-queue-folder
4985 @vindex wl-queue-folder
4986 The initial setting is @samp{+queue}.
4987 This is the folder in which messages in the transmission queue are
4988 accumulated.
4989
4990 @item wl-auto-flush-queue
4991 @vindex wl-auto-flush-queue
4992 The initial setting is @code{t}.
4993 This flag controls automatic transmission of the queue when Wanderlust
4994 becomes on-line.  If non-nil, the queue is automatically transmitted
4995 (with confirmation by @code{y-or-n-p}).  If you want to transmit it
4996 manually, press @kbd{F} in the folder mode.
4997
4998 @item elmo-enable-disconnected-operation
4999 @vindex elmo-enable-disconnected-operation
5000 The initial setting is @code{nil}.  Controls off-line operations
5001 regarding IMAP4.  If non-nil, off-line operations are carried out.
5002
5003 @item elmo-lost+found-folder
5004 @vindex elmo-lost+found-folder
5005 The initial setting is @samp{+lost+found}.
5006 This is the folder to which messages are saved when they fails to be
5007 appended while the off-line re-file/copy queue is processed.
5008
5009 @item elmo-plugged-condition
5010 @vindex elmo-plugged-condition
5011 The initial setting is @code{one}.
5012 The value of @code{wl-plugged} reflects the return value of the function
5013 @code{elmo-plugged-p} (without arguments).
5014 This variable @code{elmo-plugged-condition} specifies the condition on
5015 which the return value of @code{(elmo-plugged-p)} should be t depending on the
5016 plugged state of each port.
5017
5018 @example
5019 'one         : plugged if one or more ports are plugged.
5020 'all         : plugged if all ports are plugged.
5021 'independent : reflects wl-plugged (elmo-plugged) regardless of plugged
5022                states of the ports.
5023 @var{function}     : reflects the return value of the @var{function}
5024  functions available per default
5025  'elmo-plug-on-by-servers
5026              : reflects the plugged state of the servers specified by the
5027                variable elmo-plug-on-servers.
5028  'elmo-plug-on-by-exclude-servers
5029              : reflects the plugged state of the servers that are not
5030                in elmo-plug-on-exclude-servers.
5031                   elmo-plug-on-exclude-servers defaults to
5032                    '("localhost"
5033                      (system-name)
5034                      (system-name)without the domain part)
5035 @end example
5036
5037 @example
5038 @group
5039 Example 1:
5040  (setq elmo-plugged-condition 'all)
5041 Example 2:
5042  (setq elmo-plug-on-servers '("smtpserver" "newsserver"))
5043  (setq elmo-plugged-condition 'elmo-plug-on-by-servers)
5044 Example 3:
5045  (setq elmo-plug-on-exclude-servers '("localhost" "myname"))
5046  (setq elmo-plugged-condition 'elmo-plug-on-by-exclude-servers)
5047 @end group
5048 @end example
5049
5050 @item wl-reset-plugged-alist
5051 @vindex wl-reset-plugged-alist
5052 The initial setting is @code{t}.  If non-nil, plugged states are
5053 initialized on a per server or port basis when Wanderlust starts up.
5054
5055 If @code{nil}, plugged states are retained while Emacs is running.  In
5056 other words, they are initialized when Emacs is restarted even if the
5057 value is @code{nil}.
5058 @end table
5059
5060
5061 @node Expire and Archive, Scoring, Disconnected Operations, Top
5062 @chapter Automatic Expiration and Archiving of Messages
5063 @cindex Expire and Archive
5064
5065 @menu
5066 * Expire::      Expiration and Archiving
5067 * Archive::     Archiving All Messages
5068 @end menu
5069
5070
5071 @node Expire, Archive, Expire and Archive, Expire and Archive
5072 @section Expiration
5073 @cindex Expire Message
5074
5075 Expiration means deletion of old messages which have outlasted a
5076 certain period of time.
5077
5078 @code{wl-expire} supports not only simple deletion, but also moving to
5079 specified archiving folders.
5080
5081 @section How to Use
5082
5083 Configure @code{wl-expire-alist} and press @kbd{e} in the folder mode,
5084 or @kbd{M-e} in the summary mode.
5085
5086 @subsection Configuring @code{wl-expire-alist}
5087
5088 An example configuration of @code{wl-expire-alist} is shown below.
5089 Everything in this @code{wl-expire-alist} makes a great difference in
5090 expiration, so be careful.  I advise you to set @code{wl-expire-use-log}
5091 to @code{t}, especially in the initial stage.
5092
5093 @lisp
5094 @group
5095 (setq wl-expire-alist
5096       '(("^\\+trash$"   (date 14) remove)
5097                                   ;; @r{delete}
5098         ("^\\+tmp$"     (date 7) trash)
5099                                   ;; @r{re-file to @code{wl-trash-folder}}
5100         ("^\\+outbox$"  (number 300) "$outbox;lha")
5101                                   ;; @r{re-file to the specific folder}
5102         ("^\\+ml/tmp$"  nil)
5103                            ;; @r{do not expire}
5104         ("^\\+ml/wl$"   (number 500 510) wl-expire-archive-number1 t)
5105                            ;; @r{archive by message number (retaining numbers)}
5106         ("^\\+ml/.*"    (number 300 310) wl-expire-archive-number2 t)
5107                            ;; @r{archive by a fixed number (retaining numbers)}
5108         ("^\\+diary$"   (date 30) wl-expire-archive-date)
5109                            ;; @r{archive by year and month (numbers discarded)}
5110         ))
5111 @end group
5112 @end lisp
5113
5114 Items in the list has the format of:
5115
5116 @example
5117 (@var{regexp-for-folders} @var{specification-of-messages-to-be-deleted} @var{destination})
5118 @end example
5119
5120 @noindent
5121 The folder is examined if it matches @var{regexp-for-folders} from the
5122 beginning of the list.  If you invoke expiration on the folder that does
5123 not match any of them, nothing will happen.  And if either the second or
5124 the third element of the item is @code{nil}, expiration will not take
5125 place.
5126
5127 You can use any one of the following for
5128 @var{specification-of-message-to-be-deleted}:
5129
5130 @table @code
5131 @item (number @var{n1} [@var{n2}])
5132 deletes messages depending on the number of messages in the folder.
5133
5134 @var{n1} is the number of messages which should survive deletion, for example
5135 if its value is 500, the newest 500 messages survive and the rests are
5136 deleted.
5137
5138 @var{n2} is the number of messages in the folder on which expiration should
5139 take place, which defaults to @var{n1} + 1.  For example if its value is 510,
5140 folders with 510 or more messages are expired.
5141 If you configured automatic expiration, frequently used folders may
5142 expire every time it receive messages, and you may be annoyed with the
5143 long delay in reading mail.
5144 In that case, you can set a wide margin between @var{n2} and @var{n1}, so that
5145 expiration would not take place until a certain number of messages
5146 accumulate.
5147
5148 Messages with marks in @code{wl-summary-expire-reserve-marks} (marked
5149 with important/new/unread) are not deleted.
5150 If @code{wl-expire-number-with-reserve-marks} is non-nil, the folder
5151 will expire so as to have 500 messages including such ones.
5152 Otherwise, it will have 500 messages except such ones.
5153
5154 @item (date @var{d1})
5155 deletes messages depending on the dates.
5156
5157 Messages dated @var{d1} or more days ago are deleted, for example if its
5158 value is seven, messages seven days old or more are deleted.  Note that
5159 the date is the one in the @samp{Date:} field of the message, not when
5160 the message entered the folder.
5161
5162 Messages with no or invalid @samp{Date:} field does not expire; you
5163 might have to delete them by hand.
5164 @end table
5165
5166 You can use any one of the following in the place of @var{destination}:
5167
5168 @table @asis
5169 @item @code{remove}
5170 deletes the messages instantly.
5171
5172 @item @code{hide}
5173 hide the messages from summary (messages are not deleted).
5174
5175 @item @code{trash}
5176 moves the messages to @code{wl-trash-folder}.
5177
5178 @item @var{string}(folder)
5179 moves the messages to the folder specified with @var{string}.
5180
5181 It would be useful for specifying an archiving folder, but because this
5182 does not move important messages, it might be better to use the
5183 standard functions described below.
5184
5185 @item @var{function}
5186 invokes the specified @var{function}.
5187
5188 To the @var{function}, three arguments are passed: a folder name, a list
5189 of messages to be deleted, and msgdb information of the summary.  You
5190 can specify function-specific arguments after the name of the
5191 @var{function}.  Note that the list contains messages with marks in
5192 @code{wl-summary-expire-reserve-marks}, be careful in writing your own
5193 function.
5194
5195 These are four standard functions; three of them move messages to an archive
5196 folder in the specified way.  This means old messages can be compressed
5197 and saved in a file, being deleted from the original folder.
5198 The last one divides messages to some MH folders.
5199
5200 @table @code
5201 @item wl-expire-archive-number1
5202 re-files to archiving folders corresponding to the message numbers of
5203 the messages being deleted.  For example, a message numbered 102 will be
5204 re-filed to @file{wl-00100.zip}, 390 to @file{wl-00300.zip}, and so on.
5205 If @code{wl-expire-archive-files} is 200, messages will be re-filed to
5206 @file{wl-00000.zip}, @file{wl-00200.zip}, @file{wl-00400.zip}, @dots{}.
5207
5208 The archiving folders to which messages are re-filed are determined by
5209 the name of the folder as follows (in this case, archiving folders are
5210 handled as if @code{elmo-archive-treat-file} were non-nil).
5211
5212 @table @asis
5213 @item If the folder type is localdir:
5214 @file{@var{ArchiveDir}/@var{foldername}-xxxxx.zip}
5215
5216 For example, @samp{+ml/wl} corresponds to @samp{$ml/wl;zip}
5217 (@file{~/Mail/ml/wl-00100.zip}).
5218
5219 @item The folder type is other than localdir:
5220 @file{@var{ArchiveDir}/@var{foldertype}/@var{foldername}-xxxxx.zip}
5221
5222 For example, @samp{%#mh/ml/wl} corresponds to
5223 @samp{$imap4/#mh/ml/wl;zip} (@file{~/Mail/imap4/#mh/ml/wl-00100.zip}).
5224 @end table
5225
5226 As you can see, in the case of localdir, the folder type is not included
5227 in the path name, but otherwise it is included.
5228 And you can control the prefix to the archiving folder name by
5229 @code{wl-expire-archive-folder-prefix}.
5230 Refer to @code{wl-expire-archive-folder-prefix} for details.
5231
5232 @item wl-expire-archive-number2
5233 re-files every certain number of messages to archiving folders.
5234
5235 This differs from @samp{wl-expire-archive-number1} in that this re-files
5236 to the folder up to the specified number regardless of message numbers.
5237 The archiving folders to which messages are re-filed are determined in the
5238 same way as @code{wl-expire-archive-number1}.
5239
5240 @item wl-expire-archive-date
5241 re-files messages depending on its date (year and month) to archive
5242 folders.
5243
5244 For example, a message dated December 1998 is re-filed to
5245 @code{$folder-199812;zip}.  The name of the archiving folders except the
5246 date part are determined in the same way as
5247 @code{wl-expire-archive-number1}.
5248
5249
5250 You can set the first argument to these three standard functions to non-nil
5251 in @code{wl-expire-alist} so as to retain message numbers in the folder.
5252 For example, it can be specified just after the name of the function:
5253
5254 @lisp
5255 ("^\\+ml/wl$" (number 300 310) wl-expire-archive-number1 t)
5256 @end lisp
5257
5258 If you omit the argument, consecutive numbers from 1 are assigned for
5259 each archiving folder.
5260
5261 @item wl-expire-localdir-date
5262 divedes messages depending on its date (year and month) to MH folders
5263 e.g. to @samp{+ml/wl/1999_11/}, @samp{+ml/wl/1999_12/}.
5264 @end table
5265 @end table
5266
5267 @subsection Treatment for Important or Unread Messages
5268
5269 If you specify any of @code{remove}, @code{trash}, a folder name, or a
5270 standard function, messages with marks in
5271 @code{wl-summary-expire-reserve-marks} (which are called @dfn{reserved
5272 messages} thereafter) are retained.
5273
5274 Per default, this variable include the important, new, and unread marks,
5275 so that messages with these marks are not removed.
5276 Note that you cannot include the temporary mark (i.e. temporary marks
5277 are removed anyway), and be sure to process temporary marks before you
5278 invoke expiration.
5279
5280 @subsection Auto Expiration
5281
5282 The following setup invokes expiration when you move into the summary
5283 mode.  There will be no confirmation, so make sure you made no mistake
5284 in regexp and other settings before you set up this.
5285
5286 @lisp
5287 @group
5288 (add-hook 'wl-summary-prepared-pre-hook 'wl-summary-expire)
5289 @end group
5290 @end lisp
5291
5292 In the folder mode, you can invoke expiration per group as well as per
5293 folder.  Therefore, if you specify @samp{Desktop} group, all folders
5294 matching @code{wl-expire-alist} expire.
5295
5296 @section Tips
5297
5298 @subsection Treating archive folders.
5299 To treat archive folders created by @code{wl-expire-archive-number1} and so on,
5300 you must set non-nil value to @code{elmo-archive-treat-file}.
5301
5302 @subsection Confirming
5303
5304 If you are to use @code{remove}, try @code{trash} at first and see
5305 messages move to @code{wl-trash-folder} as expected, then replace it
5306 with @code{remove}.  It would be dangerous to use @code{remove} from the
5307 beginning.
5308
5309 If you are to use @code{wl-expire-archive-number1} and the like, try to
5310 make a folder of the archiver type (@code{zip} or @code{lha}) and see if
5311 you can append messages to it.  Even if settings in
5312 @code{wl-expire-alist} and @code{elmo-archive} are correct, messages
5313 would not be saved anywhere and disappeared in case the archiver program
5314 fails.
5315
5316 After you make sure you can archive to the folder correctly, you can
5317 invoke expiration and utilize the log.
5318
5319 If you set @code{wl-expire-use-log} to @code{t},
5320 @file{~/.elmo/expired-log} should contain the log, for example:
5321
5322 @example
5323 @group
5324 delete  +ml/wl  (593 594 595 596 597 598 599)
5325 move    +ml/wl -> $ml/wl-00600;tgz;wl  (600 601 602)
5326 @end group
5327 @end example
5328
5329 The first column indicates the operation, i.e. @samp{delete},
5330 @samp{copy}, or @samp{move}.  The next is the name of the folder that
5331 expired.  In the case of @samp{copy} and @samp{move}, the destination
5332 folder is recorded after @samp{->}.  The last is the list of message
5333 numbers that are actually deleted or moved (in the case of @samp{copy}
5334 and @samp{move}, the number is the one in the source folder, rather than
5335 the destination folder).
5336
5337 @subsection Re-filing Reserved Messages
5338
5339 The three standard functions copy reserved messages to the archive
5340 folder, but do not delete them from the source folder.  Because
5341 reserved messages and the like always remain, they are recorded in
5342 @file{~/.elmo/expired-alist} so that they are not copied over and over
5343 again.  They are not recorded if copied by @code{wl-summary-archive}.
5344
5345 If you enabled logging, usually @samp{move} is recorded for re-filing,
5346 but instead @samp{copy} and @samp{delete} are recorded separately if
5347 reserved messages are involved.  This is because it actually copies
5348 messages including reserved, then deletes ones except reserved in that
5349 case.
5350
5351 @section Customizable Variables
5352
5353 @table @code
5354 @item wl-expire-alist
5355 @vindex wl-expire-alist
5356 The initial setting is @code{nil}.
5357 This variable specifies folders and methods to expire.  For details,
5358 refer to @code{wl-expire-alist} settings above.
5359
5360 @item wl-summary-expire-reserve-marks
5361 @vindex wl-summary-expire-reserve-marks
5362 The initial setting is the list below.
5363
5364 @lisp
5365 @group
5366 (list wl-summary-important-mark
5367       wl-summary-new-mark
5368       wl-summary-unread-mark
5369       wl-summary-unread-uncached-mark
5370       wl-summary-unread-cached-mark)
5371 @end group
5372 @end lisp
5373
5374 Messages with these marks are retained in the folder, even after
5375 expiration.
5376 Only permanent marks can be listed, not temporary marks.
5377
5378 You can list marks one by one as in the default; you can use the
5379 following settings as well:
5380
5381 @table @code
5382 @item all
5383 All messages with permanent marks are retained,
5384 i.e. @code{wl-summary-read-uncached-mark} is included in addition to the
5385 defaults.
5386
5387 @item none
5388 All messages are handled as usual ones that are already read, no matter
5389 what marks they have; even important messages are deleted.
5390 @end table
5391
5392 @item wl-expire-archive-files
5393 @vindex wl-expire-archive-files
5394 The initial setting is 100.
5395 This variable specifies the number of messages to be retained in one
5396 archiving folder.
5397
5398 @item wl-expire-number-with-reserve-marks
5399 @vindex wl-expire-number-with-reserve-marks
5400 The initial setting is @code{nil}.
5401 If non-nil, if expiring messages are specified by @code{number},
5402 messages with @code{wl-summary-expire-reserve-marks} are also retained.
5403
5404 @item wl-expire-archive-get-folder-function
5405 @vindex wl-expire-archive-get-folder-function
5406 The initial setting is @code{wl-expire-archive-get-folder}.
5407
5408 This variable specifies a function that returns the name of an archiving
5409 folder for standard functions in the place of @var{destination}.
5410 You can use the following three variables for simple modification of
5411 folder names; if you want more complex settings, define your own
5412 function in this variable.
5413
5414 @code{wl-expire-archive-get-folder} can be customized by these
5415 variables:
5416 @itemize @bullet
5417 @item @code{wl-expire-archive-folder-name-fmt}
5418 @item @code{wl-expire-archive-folder-type}
5419 @item @code{wl-expire-archive-folder-prefix}
5420 @end itemize
5421
5422 @item wl-expire-archive-folder-name-fmt
5423 @vindex wl-expire-archive-folder-name-fmt
5424 The initial setting is @samp{%s-%%05d;%s}.
5425 This is a @code{format} string for archiving folders used in
5426 @code{wl-expire-archive-number1} and @code{wl-expire-archive-number2}.
5427 Note that you must specify the message number by @samp{%%d}, because it
5428 is parsed twice by @code{format}.
5429
5430 If you modify this, adjust @code{wl-expire-archive-folder-num-regexp} as
5431 well.
5432
5433 @item wl-expire-archive-date-folder-name-fmt
5434 @vindex wl-expire-archive-date-folder-name-fmt
5435 The initial setting is @samp{%s-%%04d%%02d;%s}.
5436 This is a @code{format} string for archiving folders used in
5437 @code{wl-expire-archive-date}.  Note that you must specify the message
5438 number by @samp{%%d}, because it is parsed twice by @code{format}.
5439 There should be @samp{%%d} twice, one for the year and the other for the
5440 month.
5441
5442 If you modify this, adjust
5443 @code{wl-expire-archive-date-folder-num-regexp} as well.
5444
5445 @item wl-expire-archive-folder-type
5446 @vindex wl-expire-archive-folder-type
5447 The initial setting is @code{zip}.
5448 This variable specifies an archiver type of the archiving folders.
5449
5450 @item wl-expire-archive-folder-prefix
5451 @vindex wl-expire-archive-folder-prefix
5452 The initial setting is @code{nil}.
5453 This variable specifies the prefix (directory structure) to archiving
5454 folders.
5455 Exercise extreme caution in using this feature, as it has not been
5456 seriously tested.
5457 In the worst case, there is a fear of destructing archiving folders.
5458
5459 @table @code
5460 @item nil
5461 There will be no prefix.
5462
5463 @item short
5464 For example, @samp{+ml/wl} will be prefixed by @samp{wl}, resulting in
5465 @samp{$ml/wl-00000;zip;wl}.
5466
5467 @item t
5468 For example, @samp{+ml/wl} will be prefixed by prefix @samp{ml/wl},
5469 resulting in
5470
5471 @samp{$ml/wl-00000;zip;ml/wl}.
5472 @end table
5473
5474 @item wl-expire-archive-folder-num-regexp
5475 @vindex wl-expire-archive-folder-num-regexp
5476 The initial setting is @samp{-\\([-0-9]+\\);}.
5477 This variable specifies the regular expression to be used for getting
5478 message numbers from multiple archiving folders specified by
5479 @code{elmo-list-folders}.
5480 Set it in accordance with @code{wl-expire-archive-folder-name-fmt}.
5481
5482 @item wl-expire-archive-date-folder-num-regexp
5483 @vindex wl-expire-archive-date-folder-num-regexp
5484 The initial setting is @samp{-\\([-0-9]+\\);}.
5485 This is the regular expression to be used for getting message numbers
5486 from multiple archiving folders specified by @code{elmo-list-folders}.
5487 Set it in accordance with @code{wl-expire-archive-date-folder-name-fmt}.
5488
5489 @item wl-expire-delete-oldmsg-confirm
5490 @vindex wl-expire-delete-oldmsg-confirm
5491 The initial setting is @code{t}.
5492 If non-nil, messages older than the one with the largest number will be
5493 deleted with confirmation.
5494 If @code{nil}, they are deleted without confirmation.
5495
5496 This feature is valid only if non-nil is specified as a argument to the
5497 standard functions so as to retain numbers.
5498
5499 @item wl-expire-use-log
5500 @vindex wl-expire-use-log
5501 The initial setting is @code{nil}.
5502 If non-nil, expiration logs are recorded in @file{~/.elmo/expired-log}.
5503 They are appended but not truncated or rotated automatically; you might
5504 need to remove it manually.
5505
5506 @item wl-expire-add-seen-list
5507 @vindex wl-expire-add-seen-list
5508 The initial setting is @code{t}.
5509
5510 If non-nil, when messages are re-filed by expiration, read/unread
5511 information is passed to the destination folder.
5512
5513 However if you do not read the destination folder from Wanderlust,
5514 @file{seen} under @file{~/.elmo/} grows larger and larger, so you might
5515 want to set this to @code{nil} if you are simply saving to some
5516 archiving folders.  Even if its value is @code{nil}, messages in the
5517 archiving folders are simply treated as unread; it does not affect
5518 expiration itself.
5519
5520 @item wl-expire-folder-update-msgdb
5521 @vindex wl-expire-folder-update-msgdb
5522 The initial setting is @code{t}.
5523 If @code{t}, in the folder mode, expiration is carried out after
5524 updating summary information.  If you specified a list of regular
5525 expressions of folder names, summary information is updated for matching
5526 folders only.
5527 @end table
5528
5529
5530 @node Archive,  , Expire, Expire and Archive
5531 @section Archiving Messages
5532
5533 @subsection Archiving Messages
5534 @kbd{M-x wl-summary-archive} copies the whole folder to archiving
5535 folders.  If there are the archiving folders already, only new messages
5536 are appended.
5537
5538 You can use @code{wl-archive-alist} in order to specify how messages are
5539 archived according to their folder names, as in @code{wl-expire-alist}.
5540 For example:
5541
5542 @lisp
5543 @group
5544 (setq wl-archive-alist
5545       '(("^\\+tmp$"     wl-archive-date)
5546         ("^\\+outbox$"  wl-archive-number2)
5547         (".*"           wl-archive-number1)))
5548 @end group
5549 @end lisp
5550
5551 Each item in the list has the following format:
5552
5553 @example
5554 (@var{folders-regexp}  @var{deleting-function})
5555 @end example
5556
5557 As you can see, you can only use a function after @var{folders-regexp}.
5558 Per default, there are three functions:
5559
5560 @itemize @bullet
5561 @item @code{wl-archive-number1}
5562 @item @code{wl-archive-number2}
5563 @item @code{wl-archive-date}
5564 @end itemize
5565
5566 As inferred from their names, they work similarly to "expire" versions,
5567 other than the following points:
5568
5569 @itemize @minus
5570 @item No messages are deleted
5571 @item Message numbers are retained even if invoked without arguments
5572 @end itemize
5573
5574 These functions are good to archive all messages in a folder by their
5575 numbers or by their dates.
5576 These are also useful for backup or confirmation purposes before
5577 expiration.
5578 If you try to re-file them after they are archived, they are deleted but
5579 not re-filed.
5580
5581 Per default, the archiving folders to which messages are copied are
5582 determined automatically by @code{wl-expire-archive-get-folder-function}.
5583 You can copy to a specific folder by invoking with a prefix argument,
5584 i.e. @kbd{C-u M-x wl-summary-archive}.
5585
5586 Note that this feature has not been seriously tested, because you can
5587 simply copy to an archiving folder, for example by
5588 @code{wl-summary-copy-region}.
5589
5590 The archiving folders are determined by the same logic as in
5591 @code{wl-summary-expire}; the following customizable variables are
5592 relevant:
5593
5594 @itemize @bullet
5595 @item @code{wl-expire-archive-files}
5596 @item @code{wl-expire-archive-get-folder-function}
5597 @item @code{wl-expire-archive-folder-name-fmt}
5598 @item @code{wl-expire-archive-folder-type}
5599 @item @code{wl-expire-archive-folder-prefix}
5600 @item @code{wl-expire-archive-folder-num-regexp}
5601 @end itemize
5602
5603 @subsection Customizable Variables
5604
5605 @table @code
5606 @item wl-archive-alist
5607 @vindex wl-archive-alist
5608 The initial setting is the list shown below:
5609
5610 @lisp
5611 @group
5612 ((".*" wl-archive-number1))
5613 @end group
5614 @end lisp
5615
5616 @noindent
5617 This variable specifies a function that copies to archiving folders.
5618 To the function, three arguments are passed: a folder name, a list of
5619 messages in the folder, and msgdb information of the summary.
5620 Needless to say, you can use your own function.
5621 @end table
5622
5623
5624 @node Scoring, Address Book, Expire and Archive, Top
5625 @chapter Score of the Messages
5626 @cindex Scoring
5627 @c @cindex Kill File
5628
5629 Scoring is the function that associates a score (value) with each
5630 message, and marks as read or deletes from the summary according to it.
5631
5632 You can put target or important marks on essential messages, or read marks
5633 on the ones you do not want to read, for example spam articles.
5634
5635 This scoring function has a capability and a format similar to the one
5636 that Gnus has, although there are some unsupported features and
5637 Wanderlust specifics.
5638 @xref{Scoring, , ,gnus, The gnus Newsreader}.
5639
5640 @menu
5641 * Score Commands::             Score Commands
5642 * Score File Format::          Score File Format
5643 @end menu
5644
5645
5646 @node Score Commands, Score File Format, Scoring, Scoring
5647 @section Score Commands
5648 @cindex Score Commands
5649
5650 @subsection Score File Specification
5651
5652 @code{wl-score-folder-alist} specifies score files or variables in which
5653 scores are defined, corresponding to folder names.
5654
5655 @lisp
5656 @group
5657 (setq wl-score-folder-alist
5658       '(("^-.*"
5659          "news.SCORE"
5660          "my.SCORE")
5661         (".*"
5662          "all.SCORE")))
5663 @end group
5664 @end lisp
5665
5666 If paths to the score files are omitted, the directory specified in the
5667 variable @code{wl-score-files-directory} is assumed.
5668
5669 No matter what you write in @code{wl-score-folder-alist}, the default
5670 score file @code{wl-score-default-file} (@file{all.SCORE}) is always
5671 read (it does not have to exist).
5672 Therefore, in the example above, the three score files,
5673 @file{news.SCORE}, @file{my.SCORE}, and @file{all.SCORE} are read for
5674 the folders that matches @samp{^-.*}.
5675
5676 @subsection Scored Messages
5677
5678 Scores are attached to the messages that are specified by
5679 @code{wl-summary-score-marks} temporarily when the summary is updated;
5680 when you exit from the summary, the scores are removed and reverts to
5681 the defaults.
5682
5683 @subsection Creation of Score Files
5684
5685 In the summary buffer, move to an appropriate message and type @kbd{L}.
5686 Then type @kbd{s}, @kbd{s}, and @kbd{p} at a prompt in a mini-buffer.
5687 The string in Subject is presented.  Edit it and press @kbd{@key{RET}}.
5688
5689 This makes @minus{}1000 are scored for messages with the same
5690 @samp{Subject:} as the string you entered.  That is, such a score file
5691 is created automatically.
5692
5693 Then, try typing @kbd{h} and @kbd{e} in the same summary buffer.
5694 The score file you just made appears.
5695 This buffer is called @dfn{score editing buffer} thereafter.
5696 When you type @kbd{C-c C-e} in it, you are prompted in the mini-buffer
5697 as you are previously; type @kbd{a}.  Then a score entry for "From"
5698 should be inserted.
5699 In this way, you can create a score file easily either in the summary
5700 buffer or in the score editing buffer.
5701
5702 By the way, you might be aware the numbers of key strokes are different
5703 between @kbd{s s p} and @kbd{a}.
5704 This is determined by @code{wl-score-header-default-entry}.
5705 This variable specifies the default score entries corresponding to
5706 header fields.
5707 For example, for "subject" field, a type and a time limit are prompted,
5708 but for "from" field, they are fixed upon automatically as substring and
5709 permanent respectively.
5710 However, score values can be modified by the prefix argument.
5711 Typing @kbd{?} at the mini-buffer shows a help on keys and corresponding
5712 headers and types.
5713
5714 At last, type @kbd{C-c C-c} in the score editing buffer.  This saves the
5715 score file and terminates the edit mode.  Typing @kbd{C-c C-c} after
5716 erasing contents of the buffer deletes the score file being edited.
5717
5718 @subsection Tips
5719
5720 @subsubsection Selecting Score Files
5721
5722 You can change score files to which scores are appended by
5723 @code{wl-summary-increase-score} and @code{wl-summary-lower-score} by
5724 @code{wl-score-change-score-file}.
5725
5726 @subsubsection Summing Up the Score
5727
5728 If you add the same entries by @code{wl-summary-increase-score},
5729 @code{wl-summary-lower-score}, and @code{wl-score-edit-insert-entry},
5730 scores for the entry is summed up.
5731
5732 For example, if you create @samp{from} entry with the score of @minus{}1000 by
5733 @kbd{L a} and again @samp{from} with @minus{}200, one entry with the score of
5734 @minus{}1200 will be created as a result.
5735
5736 @subsubsection Creating Thread Key
5737
5738 Creating @samp{Thread} key by @code{wl-summary-increase-score} or
5739 @code{wl-summary-lower-score} appends @samp{Message-ID} of all children.
5740
5741 @subsubsection Creating Followup Key
5742
5743 Creating @samp{Followup} key by @code{wl-summary-increase-score} or
5744 @code{wl-summary-lower-score} appends @samp{Message-ID} of the message
5745 at the cursor to @samp{References} key.
5746 If @code{wl-score-auto-make-followup-entry} is non-nil,
5747 @samp{Message-ID} of all messages to be followed up within dates
5748 specified by @code{wl-score-expiry-days}.
5749
5750 @subsection Key Bindings
5751
5752 @table @kbd
5753 @item K
5754 @kindex K (Summary)
5755 @findex wl-summary-increase-score
5756 Increases the score for the current message.
5757 And the score entry is appended to the score file at the same moment.
5758 You can specify the score value by a prefix argument.
5759
5760 @item L
5761 @kindex L (Summary)
5762 @findex wl-summary-lower-score
5763 Decreases the score for the current message.
5764 And the score entry is appended to the score file at the same moment.
5765 You can specify the score value by a prefix argument.
5766
5767 @item h R
5768 @kindex h R (Summary)
5769 @findex wl-summary-rescore
5770 Re-applies the scoring.
5771 However, already scored messages are not scored anew.
5772
5773 @item h c
5774 @kindex h c (Summary)
5775 @findex wl-score-change-score-file
5776 Changes the score file currently selected.
5777
5778 @item h e
5779 @kindex h e (Summary)
5780 @findex wl-score-edit-current-scores
5781 Edits the score file currently selected.
5782 If there are multiple score files, the previously specified one is
5783 selected.
5784
5785 @item h f
5786 @kindex h f (Summary)
5787 @findex wl-score-edit-file
5788 Edits an arbitrary score file and selects it.
5789
5790 @item h F
5791 @kindex h F (Summary)
5792 @findex wl-score-flush-cache
5793 Erases caches associated to the score files that are read.
5794 If you modified score files directly (from other than Wanderlust), you
5795 need to re-read them after erasing the cache.
5796
5797 @item h m
5798 @kindex h m (Summary)
5799 @findex wl-score-set-mark-below
5800 Specifies the criterion for scores to be marked as read.
5801 Messages with scores less than this value are marked as read.
5802
5803 @item h x
5804 @kindex h x (Summary)
5805 @findex wl-score-set-expunge-below
5806 Specifies the criterion for scores to be deleted from the summary.
5807 Messages with scores less than this value are deleted.
5808 "Deleted" means it is not shown; they are not removed from the summary
5809 information or the folder.
5810 The deleted messages can be shown by rescan-noscore again.
5811 @end table
5812
5813 @subsection Key Bindings in the Score Editing Buffer
5814
5815 @table @kbd
5816 @item C-c C-k
5817 @kindex C-c C-k (Score Mode)
5818 @findex wl-score-edit-kill
5819 Abandons the file being edited.
5820
5821 @item C-c C-c
5822 @kindex C-c C-c (Score Mode)
5823 @findex wl-score-edit-exit
5824 Saves the file being edited, and quits from the edit mode.
5825
5826 @item C-c C-p
5827 @kindex C-c C-p (Score Mode)
5828 @findex wl-score-pretty-print
5829 Re-draws the score.
5830
5831 @item C-c C-d
5832 @kindex C-c C-d (Score Mode)
5833 @findex wl-score-edit-insert-date
5834 Inserts the number of dates from Dec. 31, 1 B.C.
5835 It is used for creating the third factor of time-limited scores.
5836
5837 @item C-c C-s
5838 @kindex C-c C-s (Score Mode)
5839 @findex wl-score-edit-insert-header
5840 Inserts the header of the message selected in the summary buffer.
5841
5842 @item C-c C-e
5843 @kindex C-c C-e (Score Mode)
5844 @findex wl-score-edit-insert-entry
5845 Inserts the score entry of the message selected in the summary buffer.
5846 @end table
5847
5848 @subsection Customizable Variables
5849
5850 @table @code
5851 @item wl-summary-default-score
5852 @vindex wl-summary-default-score
5853 The initial setting is 0 (zero).
5854 This variable specifies the default value of the score.
5855 The score is increased or decreased based upon this value.
5856
5857 @item wl-summary-important-above
5858 @vindex wl-summary-important-above
5859 The initial setting is @code{nil}.
5860 Messages with scores larger than this value are attached with the
5861 important mark (@samp{$}).
5862 If @code{nil}, no important marks are attached.
5863
5864 @item wl-summary-target-above
5865 @vindex wl-summary-target-above
5866 The initial setting is @code{nil}.
5867 Messages with scores larger than this value are attached with the target
5868 mark (@samp{*}).
5869 If @code{nil}, no target marks are attached.
5870
5871 @item wl-summary-mark-below
5872 @vindex wl-summary-mark-below
5873 The initial setting is 0 (zero).
5874 Messages with scores smaller than this value are marked as read.
5875
5876 @item wl-summary-expunge-below
5877 @vindex wl-summary-expunge-below
5878 The initial setting is @code{nil}.
5879 Messages with scores smaller than this value are deleted from the
5880 summary.
5881 If @code{nil}, they are not deleted.
5882
5883 @item wl-summary-score-marks
5884 @vindex wl-summary-score-marks
5885 The initial setting is the list shown below:
5886
5887 @lisp
5888 @group
5889 (list wl-summary-new-mark)
5890 @end group
5891 @end lisp
5892
5893 @noindent
5894 Messages with these marks are scored.
5895
5896 @item wl-use-scoring
5897 @vindex wl-use-scoring
5898 The initial setting is t.
5899 If non-nil, scoring is enabled.
5900
5901 @item wl-score-files-directory
5902 @vindex wl-score-files-directory
5903 The initial setting is @file{~/.elmo/}.
5904 The default directory for score files.
5905
5906 @item wl-score-interactive-default-score
5907 @vindex wl-score-interactive-default-score
5908 The initial setting is 1000.
5909 This value is used as a score when a score factor is @code{nil} in the
5910 score file.  It is also used in @code{wl-summary-increase-score} and
5911 @code{wl-summary-lower-score}, on condition that the value of
5912 @code{wl-score-header-default-entry} is @code{nil}.
5913
5914 @item wl-score-expiry-days
5915 @vindex wl-score-expiry-days
5916 The initial setting is 7.
5917 This is the number of days before time-limited scores are deleted.
5918
5919 @item wl-score-update-entry-dates
5920 @vindex wl-score-update-entry-dates
5921 The initial setting is @code{t}.
5922 If non-nil, it enables deletion of time-limited scores.
5923
5924 @item wl-score-header-default-entry
5925 @vindex wl-score-header-default-entry
5926 Specifies the default value for each header field for score entries
5927 created by @code{wl-summary-increase-score},
5928 @code{wl-summary-lower-score}, and @code{wl-score-edit-insert-entry}.
5929
5930 @item wl-score-simplify-fuzzy-regexp
5931 @vindex wl-score-simplify-fuzzy-regexp
5932 In the case of a type of a score entry is @code{fuzzy}, this specifies a
5933 regular expression to be deleted from the string.
5934 Because this is usually used for Subject, the default is prefixes that
5935 are attached by mailing list programs.
5936
5937 @item wl-summary-rescore-partial-threshold
5938 @vindex wl-summary-rescore-partial-threshold
5939 The initial setting is 200.
5940 When sync-all or rescan is executed, if there are messages more than
5941 this value, only the last same number of messages as this value are
5942 scored.
5943
5944 @item wl-summary-auto-sync-marks
5945 @vindex wl-summary-auto-sync-marks
5946 If non-nil, unread/important marks are synchronized when the summary
5947 does.
5948 Unread marks reflect information on the IMAP4 server.
5949 Important marks reflect information on the IMAP4 server (flagged or
5950 not), and contents of @samp{'mark} folder.
5951 The initial setting is @code{t}.
5952 @end table
5953
5954
5955 @node Score File Format,  , Score Commands, Scoring
5956 @section Score File Format
5957 @cindex Score File Format
5958
5959 The format of score files are the same as Gnus, and basically you can
5960 use Gnus score files as they are.  But they are not fully compatible
5961 because some keys are not supported and there are Wanderlust specifics.
5962 @xref{Score File Format, , ,gnus, The gnus Newsreader}.
5963
5964 @lisp
5965 @group
5966 (("subject"
5967   ("for sale" -1000 nil s)
5968   ("profit" -1000 nil s))
5969  ("from"
5970   ("spam@@spamspamspam" -10000 nil s))
5971  ("followup"
5972   ("my@@address" 3001 nil s))
5973  ("chars"
5974   (1000000 -10 nil >))
5975  (important 5000)
5976  (target 3000)
5977  (mark 0)
5978  (expunge -3000))
5979 @end group
5980 @end lisp
5981
5982 @table @code
5983 @item string
5984 If the key is a string, it is the name of the header to be matched.
5985 The following keys are available:
5986 @code{Subject}, @code{From}, @code{Date}, @code{Message-ID},
5987 @code{References}, @code{To}, @code{Cc}, @code{Chars}, @code{Lines},
5988 @code{Xref}, @code{Extra}, @code{Followup}, @code{Thread}
5989 @code{Chars} and @code{Lines} mean the size and the number of lines of
5990 the message, respectively.  @code{Extra}, @code{Followup}, @code{Thread}
5991 are described later.
5992 The rest corresponds the field of the same name.
5993
5994 Arbitrary numbers of core entries are specified after the key.
5995 Each score entry consists of these five factors:
5996
5997 @enumerate
5998 @item
5999 A factor that matches header.  This should be a number in the cases of
6000 @code{lines} and @code{chars}, otherwise a string.
6001
6002 @item
6003 A score factor.  When the first item matches, the score of the message
6004 is increased or decreased by this value.
6005
6006 @item
6007 A time limiting factor.  If @code{nil}, the score is permanent, and in the case
6008 of a number, the score is deleted if it does not match for days
6009 (@code{wl-score-expiry-days}) from the date specified by this.
6010 The date is since Dec. 31, 1 B.C.
6011
6012 @item
6013 A type factor.  This specifies the way the first factor matches.
6014 Available types depend on keys.
6015
6016 @table @dfn
6017 @item From, Subject, References, Message-ID
6018 For these keys in string, @code{r} and @code{R} (regexp),
6019 @code{s} and @code{S} (substring), @code{e} and @code{E} (exact match),
6020 as well as @code{f} and @code{F} (fuzzy) can be used.
6021 @code{R}, @code{S}, @code{E}, and @code{F} are case sensitive.
6022
6023 @item Lines, Chars
6024 For these keys, the following five numerical relative operators can be
6025 used: @code{<}, @code{>}, @code{=}, @code{>=}, @code{<=}.
6026
6027 @item Followup
6028 This key matches @code{From} header, and scores all follow-ups to the
6029 message.
6030 For example, it would be useful for increasing scores for follow-ups to
6031 you own article.
6032
6033 You can use the same types as @code{From} except for @code{f}.
6034 And a @samp{Followup} entry is automatically appended to the score file.
6035
6036 @item Thread
6037 This key scores (sub-)threads beginning with @code{Message-ID} @var{x}.
6038 A @samp{Thread} entry is automatically appended for each article that
6039 has @var{x} in the @code{References} header.
6040 You can make sure the whole thread including messages that does not have
6041 all ancestors @code{Message-ID} in @code{References} is scored.
6042
6043 You can use the same types as @code{References} except for @code{f}.
6044 And a @samp{Thread} entry is automatically appended to the score file.
6045 @end table
6046
6047 @item
6048 A factor for extension header.  This is meaningful only if the key is
6049 @code{Extra}.
6050 This specifies headers to be matched other than standard headers like
6051 @code{Subject} and @code{From}.
6052 Note that you should specify the header in
6053 @code{elmo-msgdb-extra-fields} also.
6054 Therefore it does not work in folders where extension headers cannot be
6055 retrieved.
6056
6057 @end enumerate
6058
6059 The sum of these scores @emph{after all factors are applied} becomes the
6060 score of the message.
6061
6062 @cindex Score File Atoms
6063 @item mark
6064 Messages with a score less than this value is marked as read.
6065 The default is @code{wl-summary-mark-below}.
6066
6067 @item expunge
6068 Messages with a score less than this value is deleted from the summary.
6069 The default is @code{wl-summary-expunge-below}.
6070
6071 @item mark-and-expunge
6072 Both @code{mark} and @code{expunge} are applied,
6073 i.e. messages with a score less than this value is marked as read and
6074 deleted from the summary.
6075
6076 @item target
6077 Messages with a score greater than this value is attached with temp
6078 marks.
6079 The default is @code{wl-summary-target-above}.
6080
6081 @item important
6082 Messages with a score greater than this value is attached with important
6083 marks.
6084 The default is @code{wl-summary-important-above}.
6085 @end table
6086
6087 @subsection Caveats
6088
6089 Not to mention the @code{extra} key, if @code{lines} or @code{xref} keys
6090 are used, you need to set @code{elmo-msgdb-extra-fields}.
6091
6092 @lisp
6093 (setq elmo-msgdb-extra-fields '("lines" "xref"))
6094 @end lisp
6095
6096 There are other restrictions as shown below:
6097
6098 @itemize @bullet
6099 @item Because @samp{References} field in the summary information
6100 contains only the last @samp{Message-ID}, @code{references} key matches
6101 the last one only.
6102 @end itemize
6103
6104 Keys that can be seen by folder of types:
6105
6106 @example
6107 @group
6108                         chars lines xref  extra
6109 localdir,localnews        Y     E     E     E
6110 nntp (supporting xover)   Y     E     E     N
6111      (otherwise)          N     E     E     E
6112 imap4                     Y     E     E     E
6113 pop3                      N     E     E     E
6114
6115                 Y: can be seen
6116                 N: cannot be seen (ignored)
6117                 E: can be seen with @code{elmo-msgdb-extra-fields} settings
6118 @end group
6119 @end example
6120
6121
6122 @node Address Book, Customization, Scoring, Top
6123 @chapter Address Book
6124 @cindex Address Book
6125
6126 With address book, you can utilize address completion, and you have
6127 summary displayed with nicknames.
6128
6129 @menu
6130 * Mail Addresses::   Definition of Address Book
6131 * Address Manager::  Address Manager
6132 @end menu
6133
6134 @node Mail Addresses, Address Manager, Address Book, Address Book
6135 @section Address book
6136 @cindex Address book Definition
6137 @cindex .addresses
6138 @cindex Alias, Address
6139
6140 The file @file{~/.addresses} is a simple address book for Wanderlust.
6141 Make address file @file{~/.addresses}, and edit to suit your requirement.
6142
6143 The data written in @file{~/.addresses} are used for address completion
6144 under draft editing mode. Furthermore, they are used when showing names
6145 in summary display mode. You can safely skip this section, if you don't
6146 want to customize address completion and summary display.
6147 It is possible to add/change/remove addresses from @file{~/.addresses} in
6148 summary buffer after Wanderlust is invoked. @refill
6149
6150 The format is very simple. Like this. @refill
6151
6152 @example
6153 @group
6154 #
6155 # @r{Lines begin with @samp{#} are comment.}
6156 # @r{Empty lines are ignored}
6157 #
6158 # @r{Format of each line:}
6159 # @var{email-address}  "@var{nickname} "@var{realname}"
6160 #
6161 teranisi@@gohome.org            "Yuuichi"      "Yuuichi Teranishi"
6162 foo@@bar.gohome.org             "Mr. Foo"    "John Foo"
6163 bar@@foo.gohome.org             "Mr. Bar"    "Michael Bar"
6164 @end group
6165 @end example
6166
6167 @noindent
6168 One line defines one persons description.
6169
6170 Actually, in default setup, @var{nickname} is used in summary-mode and
6171 @var{realname} is used in draft preparation mode. This behavior is
6172 better understood if you try it and confirmed the function first. You
6173 can write and try a small definition, so you will know the idea of the
6174 address book before writing a big one.
6175
6176 And, if MH alias file is specified in variable @code{wl-alias-file},
6177 it is used as an address information in the draft preparation mode.
6178
6179 If variable @code{wl-use-ldap} is non-nil (initial setting is
6180 @code{nil}), address completion in draft mode uses LDAP information.
6181
6182 If you use LDAP, you have to set @code{wl-ldap-server},
6183 @code{wl-ldap-port} and @code{wl-ldap-base} properly. If your emacs does
6184 not have LDAP feature as built-in feature (Currently only XEmacs can
6185 have built-in LDAP feature), you have to set command exec @env{PATH} to
6186 the program @command{ldapsearch}.
6187
6188
6189 @node Address Manager,  , Mail Addresses, Address Book
6190 @section Address Manager
6191 @cindex Address Manager
6192
6193 You can type @kbd{C-c C-a} to enter address manger mode.  you can edit
6194 the address book and insert address to draft buffer.
6195
6196 @subsection Key Bindings
6197
6198 @table @kbd
6199 @item t
6200 @kindex t (Address Manager)
6201 @findex wl-addrmgr-set-to
6202 Add @samp{To:} mark.
6203
6204 @item c
6205 @kindex c (Address Manager)
6206 @findex wl-addrmgr-set-cc
6207 Add @samp{Cc:} mark.
6208
6209 @item b
6210 @kindex b (Address Manager)
6211 @findex wl-addrmgr-set-bcc
6212 Add @samp{Bcc:} mark.
6213
6214 @item u
6215 @kindex u (Address Manager)
6216 @findex wl-addrmgr-unmark
6217 Cancel the mark.
6218
6219 @item x
6220 @kindex x (Address Manager)
6221 @findex wl-addrmgr-apply
6222
6223 Insert @samp{To:}, @samp{Cc:}, or @samp{Bcc:} marked addresses to draft
6224 buffer and quit address manager.  When no draft buffer, make new draft
6225 with insert marked addresses.
6226
6227 If no mark, quit address manager.
6228
6229
6230 @item q
6231 @kindex q (Address Manager)
6232 @findex wl-addrmgr-quit
6233 Quit address manager.
6234
6235 @item a
6236 @kindex a (Address Manager)
6237 @findex wl-addrmgr-add
6238 Add new entry.
6239
6240 @item d
6241 @kindex d (Address Manager)
6242 @findex wl-addrmgr-delete
6243 Delete entry.
6244
6245 @item e
6246 @kindex e (Address Manager)
6247 @findex wl-addrmgr-edit
6248 Edit entry.
6249 @end table
6250
6251
6252 @node Customization, Mailing List, Address Book, Top
6253 @chapter Customizing Wanderlust
6254 @cindex Customization
6255
6256 @menu
6257 * Living with other packages:: Cooperating with other packages
6258 * Highlights::                 Highlights
6259 * Biff::                       Notify Mail arrival
6260 * Advanced Settings::          Advanced Settings
6261 * Customizable Variables::     Customizable Variables
6262 * Hooks::                      Hooks
6263 @end menu
6264
6265
6266 @node Living with other packages, Highlights, Customization, Customization
6267 @section Living with other packages
6268
6269 Examples with other packages.
6270
6271 @menu
6272 * imput::                       imput (im-wl.el)
6273 * BBDB::                        BBDB
6274 * supercite::                   supercite.el
6275 * mu-cite::                     mu-cite.el
6276 * X-Face::                      x-face,bitmap-mule
6277 * dired-dd::                    dired-dd.el
6278 * MHC::                         MHC
6279 * Addrbook::                    Addrbook
6280 * mime-w3m::                    mime-w3m.el
6281 @end menu
6282
6283
6284 @node imput, BBDB, Living with other packages, Living with other packages
6285 @subsection imput
6286 @pindex imput
6287 @cindex im-wl
6288
6289 Place @file{util/im-wl.el} on the @code{load-path} and do the following
6290 settings.
6291
6292 If @command{imput} is on the @code{exec-path} at the installation,
6293 @file{im-wl.el} is byte-compiled and installed.  @xref{Install}.
6294
6295 @lisp
6296 @group
6297 (autoload 'wl-draft-send-with-imput-async "im-wl")
6298 (setq wl-draft-send-function 'wl-draft-send-with-imput-async)
6299 @end group
6300 @end lisp
6301
6302
6303 @node BBDB, supercite, imput, Living with other packages
6304 @subsection bbdb.el
6305 @pindex BBDB
6306
6307 Place @file{util/bbdb-wl.el} on the @code{load-path} and do the following
6308 settings.
6309
6310 If BBDB is on the @code{load-path} at the installation, @file{bbdb-wl.el} is
6311 byte-compiled and installed.
6312 @xref{Install}.
6313
6314 @lisp
6315 @group
6316 (require 'bbdb-wl)
6317
6318 (bbdb-wl-setup)
6319 ;; @r{enable pop-ups}
6320 (setq bbdb-use-pop-up t)
6321 ;; @r{auto collection}
6322 (setq bbdb/mail-auto-create-p t)
6323 ;; @r{exceptional folders against auto collection}
6324 (setq bbdb-wl-ignore-folder-regexp "^@@")
6325 (setq signature-use-bbdb t)
6326 (setq bbdb-north-american-phone-numbers-p nil)
6327 ;; @r{shows the name of bbdb in the summary} :-)
6328 (setq wl-summary-from-function 'bbdb-wl-from-func)
6329 ;; @r{automatically add mailing list fields}
6330 (add-hook 'bbdb-notice-hook 'bbdb-auto-notes-hook)
6331 (setq bbdb-auto-notes-alist '(("X-ML-Name" (".*$" ML 0))))
6332 @end group
6333 @end lisp
6334
6335 You can complete address with BBDB by @kbd{M-@key{TAB}}
6336 in draft buffer.
6337
6338
6339 @node supercite, mu-cite, BBDB, Living with other packages
6340 @subsection sc.el(supercite), sc-register.el
6341 @pindex sc
6342 @pindex supercite
6343
6344 The same setting as usual mailers should be OK.  The following is an
6345 example of settings:
6346
6347 @lisp
6348 @group
6349 (autoload 'sc-cite-original "supercite" nil t)
6350 (add-hook 'mail-citation-hook 'sc-cite-original)
6351 @end group
6352 @end lisp
6353
6354
6355 @node mu-cite, X-Face, supercite, Living with other packages
6356 @subsection mu-cite.el
6357 @pindex mu-cite
6358
6359 The same setting as usual mailers should be OK.  The following is an
6360 example of settings.
6361
6362 If you use mu-cite version 8.0 or earlier:
6363
6364 @lisp
6365 @group
6366 (autoload 'mu-cite/cite-original "mu-cite" nil t)
6367 (setq mail-citation-hook 'mu-cite/cite-original)
6368 @end group
6369 @end lisp
6370
6371 If you use mu-cite version 8.1 or later:
6372
6373 @lisp
6374 @group
6375 (autoload 'mu-cite-original "mu-cite" nil t)
6376 (add-hook 'mail-citation-hook (function mu-cite-original))
6377 @end group
6378 @end lisp
6379
6380 @node X-Face, dired-dd, mu-cite, Living with other packages
6381 @subsection x-face
6382 @pindex x-face
6383
6384 If you have installed one of the following, you can decode
6385 @samp{X-Face:} field in message buffer and you will see face image.
6386
6387 @menu
6388 * x-face-xmas::                       XEmacs case
6389 * x-face-mule::                       Emacs case
6390 @end menu
6391
6392 If there is an encoded X-Face string in a file @file{~/.xface} (the
6393 value of the variable @code{wl-x-face-file}), it is inserted as a
6394 @samp{X-Face:} field in the draft buffer (if
6395 @code{wl-auto-insert-x-face} is non-nil).
6396
6397 @node x-face-xmas, x-face-mule, X-Face, X-Face
6398 @subsubsection x-face-xmas (for XEmacs)
6399 @pindex x-face-xmas
6400
6401 If you use @file{x-face-xmas.el} in x-face (@uref{ftp://jpl.org/pub/elisp/})
6402 1.3.6.13 or later, do the following:
6403
6404 @lisp
6405 @group
6406 (autoload 'x-face-xmas-wl-display-x-face "x-face")
6407 (setq wl-highlight-x-face-function 'x-face-xmas-wl-display-x-face)
6408 @end group
6409 @end lisp
6410
6411 @node x-face-mule,  , x-face-xmas, X-Face
6412 @subsubsection x-face-mule (for Emacs)
6413 @pindex x-face-mule
6414 @pindex bitmap-mule
6415
6416 If you use @file{x-face-mule.el} in bitmap-mule
6417 (@uref{ftp://ftp.jpl.org/pub/elisp/bitmap/}) 8.0 or later, do the following:
6418
6419 @lisp
6420 @group
6421 (autoload 'x-face-decode-message-header "x-face-mule")
6422 (setq wl-highlight-x-face-function 'x-face-decode-message-header)
6423 @end group
6424 @end lisp
6425
6426 @subsubsection x-face-e21 (for Emacs 21.x)
6427 @pindex x-face-e21
6428
6429 With Emacs 21.x, you can use @file{x-face-e21.el}
6430 (@uref{ftp://jpl.org/pub/elisp/}) instead of @file{x-face-mule.el}
6431 to display X-Face. In this case, bitmap-mule is not required.
6432 Do as follows:
6433
6434 @lisp
6435 @group
6436 (autoload 'x-face-decode-message-header "x-face-e21")
6437 (setq wl-highlight-x-face-function 'x-face-decode-message-header)
6438 @end group
6439 @end lisp
6440
6441
6442 @node dired-dd, MHC, X-Face, Living with other packages
6443 @subsection dired-dd(Dired-DragDrop)
6444 @pindex Dired-DragDrop
6445 @pindex Dired-DD
6446 @cindex Drag and Drop
6447
6448 If you embed @file{dired-dd-mime.el} in the dired-dd package, you can
6449 compose multi-part by simple Drag-and-Drop from dired to the draft
6450 buffer being edited in GNU Emacs (this feature is not Wanderlust
6451 specific, but general-purpose for SEMI).
6452
6453 @lisp
6454 @group
6455 ;; @r{dired-dd:} http://www.asahi-net.or.jp/~pi9s-nnb/dired-dd-home.html
6456 (add-hook
6457  'dired-load-hook
6458  (function
6459   (lambda ()
6460     (load "dired-x")
6461     ;; @r{Set dired-x variables here.}
6462     ;; @r{To and flo@dots{}}
6463     (if window-system
6464         (progn (require 'dired-dd)
6465                (require 'dired-dd-mime))))))
6466 @end group
6467 @end lisp
6468
6469 @node MHC, Addrbook, dired-dd, Living with other packages
6470 @subsection mhc.el
6471 @pindex MHC
6472
6473 Message Harmonized Calendaring system
6474 (@uref{http://www.quickhack.net/mhc/})
6475
6476 By using MHC, you can make a calendar from the messages.
6477
6478 For mhc-0.25:
6479
6480 @lisp
6481 @group
6482 (setq mhc-mailer-package 'wl)
6483 (autoload 'mhc-mode "mhc" nil t)
6484 (add-hook 'wl-summary-mode-hook 'mhc-mode)
6485 (add-hook 'wl-folder-mode-hook 'mhc-mode)
6486 @end group
6487 @end lisp
6488
6489 For mhc-current:
6490
6491 @lisp
6492 @group
6493 (autoload 'mhc-wl-setup "mhc-wl")
6494 (add-hook 'wl-init-hook 'mhc-wl-setup)
6495 @end group
6496 @end lisp
6497
6498 @node Addrbook, mime-w3m, MHC, Living with other packages
6499 @subsection wl-addrbook.el
6500 @pindex Addrbook
6501
6502 Addrbook of Mew
6503 (@uref{http://www.mew.org/})
6504
6505 Place @file{util/wl-addrbook.el} and @file{util/wl-complete.el} on the
6506 @code{load-path} and do the following settings.
6507
6508 @lisp
6509 @group
6510 (require 'wl-addrbook)
6511 (wl-addrbook-setup)
6512 @end group
6513 @end lisp
6514
6515 @node mime-w3m,  , Addrbook, Living with other packages
6516 @subsection mime-w3m.el
6517 @pindex mime-w3m
6518
6519 You can display html part by using @file{mime-w3m.el}
6520 distributed with emacs-w3m (@uref{http://emacs-w3m.namazu.org/}).
6521 You can find the usage in comment region at the head of @file{mime-w3m.el}.
6522
6523
6524 @node Highlights, Biff, Living with other packages, Customization
6525 @section Highlights
6526
6527 @subsection Customizable Variables
6528
6529 @table @code
6530 @item  wl-summary-highlight
6531 @vindex wl-summary-highlight
6532 The initial setting is @code{t}.
6533 If non-nil, the summary is highlighted.
6534
6535 @item  wl-highlight-max-summary-lines
6536 @vindex wl-highlight-max-summary-lines
6537 The initial setting is 10000.
6538 The summary is not highlighted if it has more lines than this value.
6539
6540 @item  wl-summary-highlight-partial-threshold
6541 @vindex wl-summary-highlight-partial-threshold
6542 The initial setting is 1000.
6543 This is a threshold whether the whole summary is highlighted.
6544 If there are more lines of messages in the summary, it is partially
6545 highlighted.
6546
6547 @item  wl-summary-partial-highlight-above-lines
6548 @vindex wl-summary-partial-highlight-above-lines
6549 The initial setting is 30.  If there are more lines of messages than
6550 @code{wl-summary-highlight-partial-threshold} in the summary, messages
6551 after the point that is the same number of lines as this value above the
6552 cursor line are highlighted partially.  (If this value is @code{nil},
6553 the last same number of lines as the value of
6554 @code{wl-summary-highlight-partial-threshold} are highlighted.)
6555
6556 @item wl-highlight-body-too
6557 @vindex  wl-highlight-body-too
6558 The initial setting is @code{t}.
6559 If non-nil, bodies of drafts and messages are also highlighted.
6560
6561 @item  wl-highlight-message-header-alist
6562 @vindex wl-highlight-message-header-alist
6563 When highlighting headers of drafts and messages, this variable
6564 specifies which faces are allocated to important
6565 (@code{wl-highlight-message-important-header-contents}), secondly
6566 important (@code{wl-highlight-message-important-header-contents2}), and
6567 unimportant (@code{wl-highlight-message-unimportant-header-contents})
6568 message headers.
6569 Similarly, it can be used for allocating arbitrary faces to arbitrary
6570 regular expressions.
6571
6572 @item wl-highlight-citation-prefix-regexp
6573 @vindex  wl-highlight-citation-prefix-regexp
6574 Specifies a regular expression to which quoted lines in bodies of
6575 drafts and messages match.
6576 Bodies matching to this regular expression are highlighted by the faces
6577 specified by (@code{wl-highlight-message-cited-text-*}).
6578
6579 @item  wl-highlight-highlight-citation-too
6580 @vindex wl-highlight-highlight-citation-too
6581 The initial setting is @code{nil}.
6582 If non-nil, the quoting regular expression itself given by
6583 @code{wl-highlight-citation-prefix-regexp} is also highlighted.
6584
6585 @item  wl-highlight-citation-header-regexp
6586 @vindex wl-highlight-citation-header-regexp
6587 Specifies a regular expression that denotes beginning of quotation.
6588 Bodies matching to this regular expression are highlighted by the face
6589 specified by @code{wl-highlight-message-headers}.
6590
6591 @item wl-highlight-max-header-size
6592 @vindex wl-highlight-max-header-size
6593 The initial setting is @code{nil}.  If a header size is larger than this
6594 value, it will not be highlighted.  If @code{nil}, always highlighted
6595 (ignore header size).
6596
6597 @item  wl-highlight-max-message-size
6598 @vindex wl-highlight-max-message-size
6599 The initial setting is 10000.
6600 If a message is larger than this value, it will not be highlighted.
6601 With this variable, highlight is suppressed for uuencode or huge digest
6602 messages.
6603
6604 @item  wl-highlight-signature-separator
6605 @vindex wl-highlight-signature-separator
6606 Specifies regular expressions that denotes the boundary of a signature.
6607 It can be a regular expression, or a list of ones.
6608 Messages after the place that matches this regular expression are
6609 highlighted by the face specified by
6610 @code{wl-highlight-message-signature}.
6611
6612 @item  wl-max-signature-size
6613 @vindex wl-max-signature-size
6614 The initial setting is 400.
6615 This is the largest size for a signature to be highlighted.
6616
6617 @item wl-use-highlight-mouse-line
6618 @vindex  wl-use-highlight-mouse-line
6619 The initial setting is @code{t}.
6620 If non-nil, the line pointed by the mouse is highlighted in the folder
6621 mode, summary mode, and the like.
6622 @end table
6623
6624 @subsection Setting Colors and Fonts of the Characters
6625
6626 If you want to change colors or fonts of the characters, you need to
6627 modify faces defined in Wanderlust.  Use @code{set-face-font} if you
6628 want to change fonts, and @code{set-face-foreground} for colors, and so
6629 on.  You cannot write face settings in @file{.emacs}; write in
6630 @file{~/.wl}.
6631
6632 For example, if you want to change the color for signatures to yellow,
6633 write
6634
6635 @lisp
6636 (set-face-foreground 'wl-highlight-message-signature "yellow")
6637 @end lisp
6638
6639 @noindent
6640 in @file{~/.wl}.
6641
6642 Faces defined in Wanderlust:
6643
6644 @table @code
6645 @item wl-highlight-message-headers
6646 The face for field names of message headers.
6647
6648 @item wl-highlight-message-header-contents
6649 The face for field bodies of message headers.
6650
6651 @item wl-highlight-message-important-header-contents
6652 The face for important parts of message headers.
6653 Per default, this face is used for a body of @samp{Subject:} field.
6654 You can change its value by editing
6655 @code{wl-highlight-message-header-alist}.
6656
6657 @item wl-highlight-message-important-header-contents2
6658 The face for secondly important parts of message headers.
6659 Per default, this face is used for bodies of @samp{From:} and @samp{To:}
6660 fields.  You can change its value by editing
6661 @code{wl-highlight-message-header-alist}.
6662
6663 @item wl-highlight-message-unimportant-header-contents
6664 The face for unimportant parts of message headers.
6665 Per default, this face is used for bodies of @samp{X-} fields
6666 @samp{User-Agent:} fields.  You can change its value by editing
6667 @code{wl-highlight-message-header-alist}.
6668
6669 @item wl-highlight-message-citation-header
6670 The face for headers of quoted messages.
6671
6672 @item wl-highlight-message-cited-text-*
6673 The face for texts of quoted messages.  The last @samp{*} is a
6674 @var{single figure} so that 10 different colors can be used according to
6675 citation levels.
6676
6677 @item wl-highlight-message-signature
6678 The face for signatures of messages.  The initial settings are
6679 @samp{khaki} for light background colors, and @samp{DarkSlateBlue} for
6680 dark background colors.
6681
6682 @item wl-highlight-header-separator-face
6683 The face for header separators of draft messages.
6684
6685 @item wl-highlight-summary-important-face
6686 The face for message lines with important marks in the summary.
6687
6688 @item wl-highlight-summary-new-face
6689 The face for message lines with new marks in the summary.
6690
6691 @item wl-highlight-summary-displaying-face
6692 The face for the message line that is currently displayed.
6693 This face is overlaid.
6694
6695 @item wl-highlight-thread-indent-face
6696 The face for the threads that is currently displayed.
6697
6698 @item wl-highlight-summary-unread-face
6699 The face for message lines with unread marks in the summary.
6700
6701 @item wl-highlight-summary-deleted-face
6702 The face for message lines with delete marks in the summary.
6703
6704 @item wl-highlight-summary-refiled-face
6705 The face for message lines with re-file marks in the summary.
6706
6707 @item wl-highlight-refile-destination-face
6708 The face for re-file information part of message lines with re-file
6709 marks in the summary.
6710
6711 @item wl-highlight-summary-copied-face
6712 The face for message lines with copy marks in the summary.
6713
6714 @item wl-highlight-summary-target-face
6715 The face for message lines with target marks @samp{*} in the summary.
6716
6717 @item wl-highlight-summary-thread-top-face
6718 The face for message lines that are on the top of the thread in the
6719 summary.
6720
6721 @item wl-highlight-summary-normal-face
6722 The face for message lines that are not on top of the thread in the
6723 summary.
6724
6725 @item wl-highlight-folder-unknown-face
6726 The face for folders that are not known to have how many unsync messages
6727 in the folder mode.
6728
6729 @item wl-highlight-folder-zero-face
6730 The face for folders that have no unsync messages in the folder mode.
6731
6732 @item wl-highlight-folder-few-face
6733 The face for folders that have some unsync messages in the folder mode.
6734
6735 @item wl-highlight-folder-many-face
6736 The face for folders that have many unsync messages in the folder mode.
6737 The boundary between `some' and `many' is specified by the variable
6738 @code{wl-folder-many-unsync-threshold}.
6739
6740 @item wl-highlight-folder-unread-face
6741 The face for folders that have no unsync but unread messages in the
6742 folder mode.
6743
6744 @item wl-highlight-folder-killed-face
6745 The face for folders that are deleted from the access group in the
6746 folder mode.
6747
6748 @item wl-highlight-folder-opened-face
6749 The face for open groups in the folder mode.
6750 It is meaningful when @code{wl-highlight-folder-by-numbers} is
6751 @code{nil} or a @var{number}.
6752
6753 @item wl-highlight-folder-closed-face
6754 The face for close groups in the folder mode.
6755 It is meaningful when @code{wl-highlight-folder-by-numbers} is
6756 @code{nil} or a @var{number}.
6757
6758 @item wl-highlight-folder-path-face
6759 The face for the path to the currently selected folder in the folder
6760 mode.
6761
6762 @item wl-highlight-logo-face
6763 The face for logo in the demo.
6764
6765 @item wl-highlight-demo-face
6766 The face for strings (for example, a version number) in the demo.
6767 @end table
6768
6769
6770 @node Biff, Advanced Settings, Highlights, Customization
6771 @section Notify Mail arrival
6772 @cindex Biff
6773
6774 Following setting is to notify mail arrival of @samp{%inbox}
6775 by the indicator on the modeline
6776
6777 @lisp
6778 (setq wl-biff-check-folder-list '("%inbox"))
6779 @end lisp
6780
6781 @subsection Customizable Variables
6782 @table @code
6783 @item wl-biff-check-folder-list
6784 @vindex wl-biff-check-folder-list
6785 The initial setting is @code{nil}.
6786 This is the list of folders to check mail arrival.
6787 If @code{nil}, wl doesn't check mail arrival.
6788
6789 @item wl-biff-check-interval
6790 @vindex wl-biff-check-interval
6791 The initial setting is 40 (in seconds).
6792 Check mail arrival in this period.
6793
6794 @item wl-biff-notify-hook
6795 @vindex wl-biff-notify-hook
6796 This hook is run at the arrival of new mail.
6797 To beep with mail arrival(initial setting), set as follows.
6798 @lisp
6799 (setq wl-biff-notify-hook '(ding))
6800 @end lisp
6801 For silence, set to @code{nil}.
6802 @end table
6803
6804
6805 @node Advanced Settings, Customizable Variables, Biff, Customization
6806 @section Advanced Settings
6807
6808 @menu
6809 * Draft for Reply::             Draft for Reply
6810 * Thread Format::               Appearance of Thread
6811 * User-Agent Field::            @samp{User-Agent:} Header Field
6812 @end menu
6813
6814
6815 @node Draft for Reply, Thread Format, Advanced Settings, Advanced Settings
6816 @subsection Draft for Replay
6817 @vindex wl-draft-reply-with-argument-list
6818 @vindex wl-draft-reply-without-argument-list
6819 @vindex wl-draft-reply-myself-with-argument-list
6820 @vindex wl-draft-reply-myself-without-argument-list
6821
6822 If you type @kbd{a} in the Summary Buffer, a draft for reply is prepared.
6823 The addressee for the draft is decided by following rules.
6824
6825 For example, you can set as follows:
6826
6827 @lisp
6828 @group
6829 (setq wl-draft-reply-without-argument-list
6830       '(("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
6831         ("Followup-To" . (nil nil ("Followup-To")))
6832         (("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
6833         ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
6834 @end group
6835 @end lisp
6836
6837 Where each element of the list  @code{wl-draft-reply-without-argument-list}
6838 is in the form
6839
6840 @example
6841 (key . (to-list cc-list newsgroup-list))
6842 @end example
6843
6844 and if the field designated by @samp{key} exist in the parent message,
6845 parent's field values designated by @samp{to-list} are copied to @samp{To:}
6846 in the draft. Similarly, parent's fields designated by @samp{cc-list} and
6847 @samp{newsgroup-list} are copied to @samp{Cc:} and @samp{Newsgroups:} in
6848 the draft respectively.
6849
6850 Examples:
6851
6852 @lisp
6853 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
6854 @end lisp
6855
6856 Match if the parent has @samp{Mail-Followup-To} field.
6857 The components of parent's @samp{Mail-Followup-To} and @samp{Newsgroups}
6858 fields are copied to @samp{To} and @samp{Newsgroups} in the draft
6859 respectively.
6860
6861 @lisp
6862 (("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
6863 @end lisp
6864
6865 Match if the parent has both @samp{X-ML-Name} and @samp{Reply-To} fields.
6866 Parent's @samp{Reply-To} is copied to @samp{To} in the draft.
6867
6868 @lisp
6869 ("From" . (("From") ("To" "Cc") ("Newsgroups")))
6870 @end lisp
6871
6872 Copy parent's @samp{From} to @samp{To} in the draft, parent's @samp{To} and
6873 @samp{Cc} to @samp{Cc}, parent's @samp{Newsgroups} to @samp{Newsgroups}
6874 respectively.
6875
6876 These are evaluated in order and first matched one is used.
6877
6878 Moreover, the behavior of @kbd{a} with prefix argument can
6879 be directed by @code{wl-draft-reply-with-argument-list} as well.
6880
6881 By the way, you can use some function (will be evaluated in the parent
6882 message buffer) in the place of @samp{key} or @samp{to-list} etc.
6883 For example, if you only want to reply to mailing lists in
6884 @code{wl-subscribed-mailing-list} if the parent has some of them,
6885 set as follows:
6886
6887 @lisp
6888 @group
6889 (defun wl-mailing-list-addresses ()
6890   (let (list-addrs)
6891     (dolist (to (mapcar
6892                  (lambda (addr)
6893                    (nth 1 (std11-extract-address-components addr)))
6894                  (wl-parse-addresses
6895                   (wl-concat-list
6896                    (elmo-multiple-fields-body-list (list "To" "Cc"))
6897                    ","))))
6898       (when (elmo-string-matched-member to wl-subscribed-mailing-list t)
6899         (setq list-addrs (cons to list-addrs))))
6900     (nreverse list-addrs)))
6901
6902 (setq wl-draft-reply-with-argument-list
6903       '((wl-mailing-list-addresses . (wl-mailing-list-addresses nil nil))
6904         ("Reply-To" . (("Reply-To") nil nil))
6905         ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
6906         ("From" . (("From") nil nil))))
6907 @end group
6908 @end lisp
6909
6910
6911 Note: To set the behavior when you reply to the message written by yourself,
6912 use @code{wl-draft-reply-myself-without-argument-list} and
6913 @code{wl-draft-reply-myself-with-argument-list} instead of them.
6914
6915 @node Thread Format, User-Agent Field, Draft for Reply, Advanced Settings
6916 @subsection Appearance of Threads
6917
6918 @example
6919 @group
6920   389  09/18(Fri)01:07 [ Teranishi         ] wl-0.6.3
6921   390  09/18(Fri)07:25 +-[ Tsumura-san       ]
6922   391  09/18(Fri)19:24 +-[ Murata-san        ]
6923   392  09/20(Sun)21:49 +-[ Okunishi-san      ]
6924   396  09/20(Sun)22:11 | +-[ Tsumura-san       ]
6925   398  09/21(Mon)00:17 |   +-[ Tsumura-san       ]
6926   408  09/21(Mon)22:37 |     +-[ Okunishi-san      ]
6927   411  09/22(Tue)01:34 |       +-[ Tsumura-san       ]
6928   412  09/22(Tue)09:28 |       +-[ Teranishi         ]
6929   415  09/22(Tue)11:52 |         +-[ Tsumura-san       ]
6930   416  09/22(Tue)12:38 |           +-[ Teranishi         ]
6931   395  09/20(Sun)21:49 +-[ Okunishi-san      ]
6932   397  09/21(Mon)00:15 +-[ Okunishi-san      ]
6933 @end group
6934 @end example
6935
6936 Settings to make appearance of threads like shown above:
6937
6938 @lisp
6939 @group
6940 (setq wl-thread-indent-level 2)
6941 (setq wl-thread-have-younger-brother-str "+")
6942 (setq wl-thread-youngest-child-str       "+")
6943 (setq wl-thread-vertical-str             "|")
6944 (setq wl-thread-horizontal-str           "-")
6945 (setq wl-thread-space-str                " ")
6946 @end group
6947 @end lisp
6948
6949 If you do not want to see branches, do the following:
6950
6951 @lisp
6952 @group
6953 (setq wl-thread-indent-level 2)
6954 (setq wl-thread-have-younger-brother-str " ")
6955 (setq wl-thread-youngest-child-str       " ")
6956 (setq wl-thread-vertical-str             " ")
6957 (setq wl-thread-horizontal-str           " ")
6958 (setq wl-thread-space-str                " ")
6959 @end group
6960 @end lisp
6961
6962
6963 @node User-Agent Field,  , Thread Format, Advanced Settings
6964 @subsection User-Agent Field
6965 @cindex X-Mailer
6966 @cindex User-Agent
6967
6968 If you are eccentric enough to elaborate @samp{X-Mailer:} or
6969 @samp{User-Agent:} fields, define a function that generate appropriate
6970 strings as you like, and set it to variable
6971 @code{wl-generate-mailer-string-function}.
6972
6973 If you do not want verbose @samp{User-Agent:} field, do the following:
6974
6975 @lisp
6976 @group
6977 (setq wl-generate-mailer-string-function
6978       (function
6979        (lambda ()
6980          (concat "User-Agent: "
6981                  (wl-generate-user-agent-string-1 nil)))))
6982 @end group
6983 @end lisp
6984
6985 The following is a example:
6986
6987 @lisp
6988 @group
6989 (setq mime-edit-insert-user-agent-field nil)
6990 (setq wl-generate-mailer-string-function
6991       (function
6992        (lambda ()
6993          (format "X-Mailer: %s" (product-string-1 'wl-version)))))
6994 @end group
6995 @end lisp
6996
6997
6998 @node Customizable Variables, Hooks, Advanced Settings, Customization
6999 @section Customizable Variables
7000
7001 Customizable variables that have not been described yet:
7002
7003 @table @code
7004 @item wl-default-folder
7005 @vindex wl-default-folder
7006 The initial setting is @samp{%inbox}.  This is the default value for moving to
7007 a folder and the like.
7008
7009 @item wl-draft-folder
7010 @vindex wl-draft-folder
7011 The initial setting is @samp{+draft}.  It is the folder to which drafts are
7012 saved.  It must be a localdir folder.
7013
7014 @item wl-trash-folder
7015 @vindex wl-trash-folder
7016 The initial setting is @samp{+trash}.  It is the wastebasket folder.
7017 If you changed this variable, you had better restart Wanderlust.
7018
7019 @item wl-interactive-exit
7020 @vindex wl-interactive-exit
7021 The initial setting is @code{t}.
7022 If non-nil, you are asked for confirmation when Wanderlust terminates.
7023
7024 @item wl-interactive-send
7025 @vindex wl-interactive-send
7026 The initial setting is @code{t}.
7027 If non-nil, you are asked for confirmation when mail is sent.
7028
7029 @item wl-folder-sync-range-alist
7030 @vindex wl-folder-sync-range-alist
7031 The initial setting is the alist shown below:
7032
7033 @lisp
7034 @group
7035 (("^&.*$" . "all")
7036  ("^\\+draft$\\|^\\+queue$" . "all"))
7037 @end group
7038 @end lisp
7039
7040 @noindent
7041 This is an associative list of regular expressions of folder names and
7042 update range of the summary.  Update range is one of the @samp{all},
7043 @samp{update}, @samp{rescan}, @samp{rescan-noscore}, @samp{first} and
7044 @samp{last}. If a folder do not match, @samp{update} is used.
7045
7046 @item wl-ask-range
7047 @vindex wl-ask-range
7048 The initial setting is @code{t}.
7049 If @code{nil}, the value of @code{wl-folder-sync-range-alist} is used
7050 for updating the summary when you changed folders.
7051
7052 @item wl-mime-charset
7053 @vindex wl-mime-charset
7054 The initial setting is @code{x-ctext}.
7055 This is the MIME charset for messages that are not MIME (e.g. without
7056 @samp{Content-Type:}). This value also used as default charset for
7057 summary.  (If you want to share Summary on Nemacs and other Emacsen, set
7058 this value as @code{iso-2022-jp}.)
7059
7060 @item wl-highlight-folder-with-icon
7061 @vindex wl-highlight-folder-with-icon
7062 This is meaningful for XEmacs or Emacs 21..  The initial setting depends
7063 on Emacsen (@code{t} for XEmacs or Emacs 21 with icons).
7064
7065 @item wl-strict-diff-folders
7066 @vindex wl-strict-diff-folders
7067 This is a list of regular expressions of folders.
7068 Unread messages are checked, for example when you press @kbd{s} in
7069 the folder mode, usually in a brief way (rapidly processed but not
7070 accurate).
7071 The folders matching this variable are seriously checked.
7072 You may want to set this variable so as to match conditional filter
7073 folders for IMAP4 folders.
7074 The initial setting is @code{nil}.
7075
7076 @item wl-folder-use-server-diff
7077 @vindex wl-folder-use-server-diff
7078 When unread messages are checked, for example when you press @kbd{s} in
7079 the folder mode, usually (the number of messages on the server) @minus{}
7080 (the number of local messages) will be the number of unread messages.
7081 However, if this variable is non-nil, the number of unread messages on
7082 the server is checked.  This affects IMAP4 folders only, but IMAP4
7083 folders in mail boxes matching
7084 @code{elmo-imap4-disuse-server-flag-mailbox-regexp} are not checked for
7085 the number of unread messages on the server, even if they matches this
7086 variable.  The initial setting is @code{t}.
7087
7088 @item wl-auto-check-folder-name
7089 @vindex wl-auto-check-folder-name
7090 The initial setting is @code{nil}.
7091 You can specify a folder or a group which is checked for unread message
7092 at the start. You can also specify a list of folders (groups) to be checked.
7093 If the value is @code{nil}, whole Desktop is checked at the start.
7094 If it is @code{none}, no folders are checked.
7095
7096 @item wl-auto-uncheck-folder-list
7097 @vindex wl-auto-uncheck-folder-list
7098 The initial setting is the list shown below:
7099
7100 @lisp
7101 @group
7102 ("\\$.*")
7103 @end group
7104 @end lisp
7105
7106 @noindent
7107 You can set a list of regular expressions to specify folders
7108 which are not automatically checked even if they are included
7109 in some groups assigned by @code{wl-auto-check-folder-name}.
7110
7111 @item wl-auto-check-folder-list
7112 @vindex wl-auto-check-folder-list
7113 The initial setting is @code{nil}.
7114 You can set a list of regular expressions to specify exceptions
7115 for @code{wl-auto-uncheck-folder-list}.
7116
7117 @item wl-no-save-folder-list
7118 @vindex wl-no-save-folder-list
7119 The initial setting is the list shown below:
7120
7121 @lisp
7122 @group
7123 ("^/.*$")
7124 @end group
7125 @end lisp
7126
7127 @noindent
7128 This is a list of regular expressions of folders not to be saved.
7129
7130 @item wl-save-folder-list
7131 @vindex wl-save-folder-list
7132 The initial setting is @code{nil}.
7133 This is a list of regular expressions of folders to be saved.
7134 This takes precedence over @code{wl-no-save-folder-list}.
7135
7136 @item wl-folder-mime-charset-alist
7137 @vindex wl-folder-mime-charset-alist
7138 The initial setting is the alist shown below:
7139
7140 @lisp
7141 @group
7142 (("^-alt\\.chinese" . big5)
7143  ("^-relcom\\." . koi8-r)
7144  ("^-tw\\." . big5)
7145  ("^-han\\." . euc-kr))
7146 @end group
7147 @end lisp
7148
7149 @noindent
7150 This is an associative list of regular expressions of folder names and
7151 MIME charsets.
7152 If a folder do not match, @code{wl-mime-charset} is used.
7153
7154 @item wl-folder-init-load-access-folders
7155 @vindex wl-folder-init-load-access-folders
7156 The initial setting is @code{nil}.
7157 This is a list of access groups to be loaded specifically at the start.
7158 If it is @code{nil}, @code{wl-folder-init-no-load-access-folders} is referred.
7159
7160 @item wl-folder-init-no-load-access-folders
7161 @vindex wl-folder-init-no-load-access-folders
7162 The initial setting is @code{nil}.
7163 This is a list of access groups not to be loaded specifically at the
7164 start.
7165 It is ignored if @code{wl-folder-init-load-access-folders} is non-nil.
7166
7167 @item wl-delete-folder-alist
7168 @vindex wl-delete-folder-alist
7169 The initial setting is the alist shown below:
7170
7171 @lisp
7172 @group
7173 (("^-" . remove))
7174 @end group
7175 @end lisp
7176
7177 @noindent
7178 This list determines disposition of messages with delete marks.
7179 Each item in the list is a folder and destination; you can specify any
7180 one of the following in the place of destination:
7181
7182 @example
7183 @code{remove} or @code{null} : deletes the messages instantly.
7184 string             : moves the messages to the specific folder.
7185 @code{trash} or others  : moves the messages to @code{wl-trash-folder}.
7186 @end example
7187
7188 @item wl-refile-policy-alist
7189 @vindex wl-refile-policy-alist
7190 The initial setting is the list shown below:
7191
7192 @lisp
7193 @group
7194 (("^[-=]" . copy)
7195  (".*" . move))
7196 @end group
7197 @end lisp
7198
7199 @noindent
7200 This list determines whether messages with re-file marks are moved or
7201 copied.  Each item in the list is a cons cell of a folder and
7202 @code{copy} or @code{move}.
7203
7204 @item wl-x-face-file
7205 @vindex wl-x-face-file
7206 The initial setting is @file{~/.xface}.
7207 The name of the file that contains encoded X-Face strings.
7208 @xref{x-face-mule}.
7209
7210 @item wl-demo-display-logo
7211 @vindex wl-demo-display-logo
7212 If non-nil, bitmap image is shown on the opening demo.  If you set
7213 @code{xpm} or @code{xbm}, (if possible) display selected image type
7214 logo.
7215
7216 @item elmo-use-database
7217 @vindex  elmo-use-database
7218 This is meaningful for XEmacs only.  The initial setting depends on
7219 XEmacs (@code{t} for XEmacs with dbm).
7220 If non-nil, Message-ID is controlled by dbm.
7221
7222 @item elmo-passwd-alist-file-name
7223 @vindex elmo-passwd-alist-file-name
7224 The initial setting is @file{passwd}.
7225 This is the name of the file in which passwords are saved.
7226 @code{elmo-passwd-alist-save} saves current passwords to the file.
7227
7228 @item elmo-nntp-list-folders-use-cache
7229 @vindex elmo-nntp-list-folders-use-cache
7230 The initial setting is 600 (in seconds).
7231 This is period in seconds during which results of @samp{list} and
7232 @samp{list active} in NNTP are cached.  If it is @code{nil}, they are
7233 not cached.
7234
7235 @item elmo-nntp-max-number-precedes-list-active
7236 @vindex elmo-nntp-max-number-precedes-list-active
7237 The initial setting is @code{nil}.
7238 If non-nil, the number of article obtained by @samp{list active} in NNTP
7239 are used as the maximum article number of the folder.
7240 Set this to @code{t} if you are using for example INN 2.3 as an NNTP server,
7241 and if the number of read messages is not correct.
7242
7243 @item elmo-nntp-default-use-listgroup
7244 @vindex elmo-nntp-default-use-listgroup
7245 The initial setting is @code{t}.
7246 If non-nil, @samp{listgroup} is used for checking the total number of
7247 articles.  If it is @code{nil}, @samp{group} is used.  In the latter
7248 case, the processing will be a little faster at the sacrifice of
7249 accuracy.
7250
7251 @item elmo-pop3-send-command-synchronously
7252 @vindex elmo-pop3-send-command-synchronously
7253 The initial setting is @code{nil}.
7254 If non-nil, POP3 commands are issued synchronously.  Some implementation
7255 of POP3 server fails to get summary information without this setting.
7256 You may have to set this variable to @code{t}, if the process hangs
7257 while looking up POP3.
7258
7259 @item elmo-dop-flush-confirm
7260 @vindex elmo-dop-flush-confirm
7261 The initial setting is @code{t}.
7262 If non-nil, you are asked for confirmation if accumulated off-line
7263 operations are executed.
7264
7265 @item elmo-display-progress-threshold
7266 @vindex elmo-display-progress-threshold
7267 The initial setting is 20.
7268 Threshold for display of progress gauge.  If number of renewal is more than
7269 this value, display progress gauge.
7270 @end table
7271
7272
7273 @node Hooks,  , Customizable Variables, Customization
7274 @section Hooks
7275
7276 (Not yet written)
7277
7278
7279 @node Mailing List, Addition, Customization, Top
7280 @chapter Wanderlust Mailing List
7281 @cindex Bug report
7282 @cindex Backtrace
7283
7284 Topics related to Wanderlust are discussed in following mailing lists.
7285 The latest version is also announced there.
7286
7287 @display
7288 Wanderlust Mailing List @t{<wl@@lists.airs.net>}
7289 @end display
7290
7291 In this list Japanese is mainly used for discussion. We also have a list
7292 for discussion in English:
7293
7294 @display
7295 Wanderlust List in English @t{<wl-en@@lists.airs.net>}
7296 @end display
7297 (Messages posted to this list are also forwarded to the former one.)
7298
7299 A guide can be obtained automatically by sending mail to
7300 @t{wl-ctl@@lists.airs.net} (or to @t{wl-en-ctl@@lists.airs.net} for
7301 the English one) with the body
7302
7303 @example
7304 # guide
7305 @end example
7306
7307 Please send bug reports or patches to one of those lists.  You can post to
7308 the mailing list even though you are not a member of it.
7309
7310 If you send a bug report, please attach Backtrace with it.
7311 @footnote{@uref{http://www.jpl.org/elips/BUGS-ja.html} describes how to
7312 in Japanese.}
7313
7314 I would like to express my thanks to the members of the mailing list for
7315 valuable advice and many pieces of code they contributed.
7316
7317
7318 @node Addition, Index, Mailing List, Top
7319 @chapter Additional Information
7320
7321 @section Brief History
7322
7323 @example
7324 1998  3/05    Tried to make a prototype that displays MH messages in threads.
7325       3/10    Made a msgdb mechanism by elisp.
7326       3/26    IMAP and NNTP can be displayed in threads.
7327       4/13    Began to assemble thread display modules as elmo.
7328       5/01    Finished 0.1.0, initial version with many defects.
7329       6/12    I made a slip of the tongue and said I was writing elisp
7330               mailer supporting IMAP
7331       6/16    0.1.3 was announced at tm-ja, elisp ML.
7332       6/22    Thanks to Kitame-san, the mailing list started at northeye.org.
7333       7/01    Support for mm-backend (0.3.0).
7334       8/25    multi folder added (0.5.0).
7335       8/28    filter folder added (0.5.1).
7336       9/10    You can open/close threads (0.6.0).
7337       9/11    fldmgr by Murata-san made editing folders easy.
7338       9/18    lha folders added by Okunishi-san (0.6.3).
7339       9/24    Display of branches of threads (0.6.5).
7340       9/28    Compression folder supporting multiple archivers by Okunishi-san.
7341      10/28    Off-line operations (0.7.4).
7342      12/09    Becomes beta version.
7343      12/21    wl-expire by Murata-san.
7344 1999  2/03    auto-refile by Tsumura-san.
7345       4/28    wl-template by Murata-san.
7346       5/18    Released 1.0.0 stable.
7347       7/05    Scoring by Murata-san (2.1.0).
7348       9/26    New plugged system by Murata-san (2.2.2).
7349      12/20    Support Modified UTF7.
7350 2000  3/24    Released 1.1.0 stable.
7351       4/03    CVS development started.
7352       5/07    Thread restoration & Its speed up with Murata-san.
7353       6/12    Address completion with LDAP with Chiba-san & Goto-san.
7354       7/11    killed message feature.
7355       7/18    Use UIDL in POP3.
7356       9/12    biff feature with Satata-san & Yamaoka-san.
7357      10/17    expire-hide by Okada-san.
7358      11/08    Released 2.4.0 stable.
7359 2001  7/04    Released 2.6.0 stable.
7360       8/21    wl-addrmgr by Kitamoto-san.
7361      12/27    Released 2.8.1 stable.
7362 @end example
7363
7364 See @file{ChangeLog} for details.
7365
7366 @section The Name
7367
7368 According to a dictionary, Wanderlust has the meaning:
7369
7370 @display
7371 wanderlust
7372   n eager longing for or impulse towards travelling in distant lands
7373   [Ger, fr wandern to wander + lust desire, pleasure]
7374 @end display
7375
7376 @noindent
7377 but I had no profound intention.  (if farfetched, IMAP @result{} you can
7378 read mail anywhere @result{} desire to wander ?)
7379
7380 Elmo is the abbreviation of @samp{Elisp Library for Message
7381 Orchestration}.  At first I meant the red puppet in the Sesame Street,
7382 but you may associate it with Wandering @result{} Drifting @result{}
7383 Guidepost @result{} St.@: Elmo's fire @result{} elmo.
7384
7385 @section Code Names
7386
7387 Each versions has code names (they are almost jokes).
7388 Currently they are picked up alphabetically from the top 40 hits of
7389 U.S. Billboard magazines in 1980s.
7390
7391 (@uref{http://lyrics.natalnet.com.br/html/top40/index.html})
7392
7393
7394 @node Index,  , Addition, Top
7395 @unnumbered Index
7396
7397 @menu
7398 * Concept Index::               Concept Index
7399 * Key Index::                   Key Index
7400 * Variable Index::              Variable Index
7401 * Function Index::              Function Index
7402 @end menu
7403
7404 @node Concept Index, Key Index, Index, Index
7405 @unnumberedsec Concept Index
7406 @printindex cp
7407
7408 @node Key Index, Variable Index, Concept Index, Index
7409 @unnumberedsec Key Index
7410 @printindex ky
7411
7412 @node Variable Index, Function Index, Key Index, Index
7413 @unnumberedsec Variable Index
7414 @printindex vr
7415
7416 @node Function Index,  , Variable Index, Index
7417 @unnumberedsec Function Index
7418 @printindex fn
7419
7420 @summarycontents
7421 @contents
7422 @bye
7423
7424 @c Local Variables:
7425 @c fill-column: 72
7426 @c End: