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