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