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