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