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