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