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