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