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