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