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