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