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