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