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