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