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