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