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