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