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