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