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