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