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