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