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