1 \input texinfo @c -*-texinfo -*-
4 @settitle Wanderlust -- Yet Another Message Interface On Emacsen --
11 @dircategory GNU Emacs Lisp
13 * Wanderlust: (wl). Yet Another Message Interface On Emacsen
16 @c permissions text appears in an Info file before the first node.
18 This file documents Wanderlust, Yet another message interface on
21 Copyright @copyright{} 1998, 1999, 2000, 2001, 2002 @w{Yuuichi Teranishi},
22 @w{Fujikazu Okunishi}, @w{Masahiro Murata}, @w{Kenichi Okada},
23 @w{Kaoru Takahashi}, @w{Bun Mizuhara} and @w{Masayuki Osada},
24 @w{Katsumi Yamaoka}, @w{Hiroya Murata} and @w{Yoichi Nakayama}.
26 This edition is for Wanderlust version @value{VERSION}.
28 Permission is granted to make and distribute verbatim copies of this
29 manual provided the copyright notice and this permission notice are
30 preserved on all copies.
33 Permission is granted to process this file through TeX and print the
34 results, provided the printed document carries copying permission notice
35 identical to this one except for the removal of this paragraph (this
36 paragraph not being relevant to the printed manual).
39 Permission is granted to copy and distribute modified versions of this
40 manual under the conditions for verbatim copying, provided that the
41 entire resulting derived work is distributed under the terms of a
42 permission notice identical to this one.
44 Permission is granted to copy and distribute translations of this manual
45 into another language, under the above conditions for modified versions.
51 @title Wanderlust User's Manual
52 @subtitle Yet another message interface on Emacsen
53 @subtitle for Wanderlust version @value{VERSION}
54 @author Yuuichi Teranishi
55 @author Fujikazu Okunishi
56 @author Masahiro Murata
58 @author Kaoru Takahashi
60 @author Masayuki Osada
61 @author Katsumi Yamaoka
63 @author Yoichi Nakayama
66 @vskip 0pt plus 1filll
67 Copyright @copyright{} 1998, 1999, 2000, 2001, 2002 @w{Yuuichi Teranishi},
68 @w{Fujikazu Okunishi}, @w{Masahiro Murata}, @w{Kenichi Okada},
69 @w{Kaoru Takahashi}, @w{Bun Mizuhara}, @w{Masayuki Osada},
70 @w{Katsumi Yamaoka}, @w{Hiroya Murata} and @w{Yoichi Nakayama}.
72 This manual is for Wanderlust version @value{VERSION}.
74 Permission is granted to make and distribute verbatim copies of this
75 manual provided the copyright notice and this permission notice are
76 preserved on all copies.
78 Permission is granted to copy and distribute modified versions of this
79 manual under the conditions for verbatim copying, provided that the
80 entire resulting derived work is distributed under the terms of a
81 permission notice identical to this one.
83 Permission is granted to copy and distribute translations of this manual
84 into another language, under the above conditions for modified versions.
90 @node Top, Introduction, (dir), (dir)
91 @top Wanderlust User's Manual
106 This manual is for Wanderlust @value{VERSION}.
111 * Introduction:: Read this first
112 * Start Me Up:: Invoking Wanderlust
113 * Folders:: How to specify folders
114 * Folder:: Selecting and editing folders
115 * Summary:: Reading and refiling messages
116 * Message:: Saving and playing MIME multipart entities
117 * Draft:: Draft buffer, sending mail and news
118 * Disconnected Operations:: Off-Line management
119 * Expire and Archive:: Automatic expiration and archiving of messages
120 * Scoring:: Score of the messages
121 * Split messages:: Splitting messages
122 * Address Book:: Management of Address Book
123 * Spam Filter:: Spam filtering
124 * Batch Processing:: Invoke commands in batch mode
125 * Customization:: Customizing Wanderlust
126 * Migration:: Switch from older version of Wanderlust
127 * Terminology:: Terminologies
128 * Mailing List:: Wanderlust mailing list
129 * Addition:: Additional Information
134 @node Introduction, Start Me Up, Top, Top
135 @chapter Introduction of Wanderlust
138 Wanderlust is an mail/news management system on Emacsen.
139 It supports IMAP4rev1(RFC2060), NNTP, POP and local message files.
141 The main features of Wanderlust:
144 @item Pure elisp implementation.
145 @item Supports IMAP4rev1, NNTP, POP(POP3/APOP), MH and Maildir format.
146 @item Unified access method to messages based on Mew-like Folder Specification.
147 @item Mew-like Key-bind and mark handling.
148 @item Manages unread messages.
149 @item Interactive thread display.
150 @item Folder Mode shows the list of subscribed folders.
151 @item Message Cache, Disconnected Operation.
152 @item MH-like FCC. (Fcc: %Backup and Fcc: $Backup is allowed).
153 @item MIME compliant (by SEMI).
154 @item Transmission of news and mail are unified by Message transmitting draft.
155 @item Graphical list of folders (XEmacs and Emacs 21).
156 @item View a part of message without retrieving the whole message (IMAP4).
157 @item Server-side message look up (IMAP4). Multi-byte characters are allowed.
158 @item Virtual Folders.
159 @item Supports compressed folder using common archiving utilities.
160 @item Old articles in folders are automatically removed/archived (Expiration).
161 @item Automatic re-file.
162 @item Template function makes it convenient to send fixed form messages.
168 We confirm Wanderlust works on following Emacsen:
171 @item Mule 2.3 based on Emacs 19.34
172 @item Emacs 20.2 or later
173 @item XEmacs 20.4 or later
174 @item Meadow 1.00 or later
175 @item NTEmacs 20.4 or later
179 IMAP4 connectivity with following imapd are confirmed to work with
183 @item UW imapd 4.1--4.7, 4.7a, 4.7b, 4.7c, 2000 or later
184 @item Cyrus imapd 1.4, 1.5.19, 1.6.22--1.6.24, 2.0.5 or later
185 @item Courier-IMAP 1.3.2 or later
186 @item AIR MAIL (AIRC imapd release 2.00)
188 @item Microsoft Exchange Server 5.5
189 @item Sun Internet Mail Server 3.5, 3.5.alpha, 4.0
192 LDAP connectivity with following LDAPd are confirmed to work with
196 @item OpenLDAP 2.0.6 or later
200 @node Start Me Up, Folders, Introduction, Top
201 @chapter Start up Wanderlust
204 The necessary procedure for starting Wanderlust is explained in steps
207 (Of course, you need a mail/news readable environment in advance)
210 * MIME Modules:: Installing the MIME modules
211 * Download:: Download and extract the packages
212 * Install:: Byte-compile and install
213 * Minimal Settings:: @file{.emacs} setup
214 * Folder Definition:: Folder definition
215 * Start Wanderlust:: Starting Wanderlust
216 * Overview:: Basic components of Wanderlust
220 @node MIME Modules, Download, Start Me Up, Start Me Up
221 @section Installing MIME modules
227 You must install SEMI beforehand to use Wanderlust.
229 SEMI can be downloaded from following site:
233 SEMI: ftp://ftp.m17n.org/pub/mule/semi/
237 You need packages named APEL and FLIM to use SEMI.
238 You can download APEL and FLIM from following URLs:
242 APEL: ftp://ftp.m17n.org/pub/mule/apel/
243 FLIM: ftp://ftp.m17n.org/pub/mule/flim/
247 You have to install APEL, FLIM and SEMI in this order. Generally,
248 @samp{make install} will do the job. (In XEmacs 21, @samp{make
251 Refer to the documents of each package for detailed installation
252 procedure @footnote{If you want to use SEMI on Emacs 19.34. @*
253 @uref{http://www.jpl.org/elips/INSTALL-SEMI-ja.html} (In Japanese)
257 Recommended combination of APEL, FLIM and SEMI are following:
260 @item APEL 10.6, FLIM 1.14.6 and SEMI 1.14.6
263 You can also use many other FLIM/SEMI variants. Combination of the
264 latest versions should work. For example, the following combination are
268 @item APEL 10.6, SLIM 1.14.9, SEMI 1.14.5
269 @item APEL 10.6, CLIME 1.14.5, EMIKO 1.14.1
272 You have to re-install Wanderlust if you upgraded APEL, FLIM or SEMI.
275 @node Download, Install, MIME Modules, Start Me Up
276 @section Download and Extract the Package
279 You can download Wanderlust package from following sites:
283 ftp://ftp.gohome.org/wl/
286 Mirrored ftp/http sites:
290 @c ftp://ftp.jaist.ac.jp/pub/GNU/elisp/ftp.gohome.org/wl/
291 http://www.jpl.org/elips/wl/
292 http://www.ring.gr.jp/archives/text/elisp/wl/
293 ftp://ftp.ring.gr.jp/pub/text/elisp/wl/
297 Extract the obtained package to your working directory:
302 % tar zxvf wl-@var{version}.tar.gz
303 % cd wl-@var{version}
307 @subsection To use SSL (Secure Socket Layer)
312 SSL (Secure Socket Layer) can be used for
313 SMTP, IMAP, NNTP and POP connections in Wanderlust.
315 There are two ways to use SSL. One is to start SSL negotiation just
316 after the connection establishment (generic way). The other one is to
317 start SSL negotiation by invoking STARTTLS command in the each session.
319 To use the formal SSL (generic SSL), you must set @env{PATH} to the
320 directory that OpenSSL commands are installed.
322 To use the latter SSL(STARTTLS), you must install starttls package in
324 You can download starttls package from the following site.
327 ftp://opaopa.org/pub/elisp/
330 @node Install, Minimal Settings, Download, Start Me Up
331 @section Byte-compile and install
338 @subsection Installation
340 Edit @code{LISPDIR} and @code{EMACS} in @file{Makefile}.
341 Set the Emacs's command name to @code{EMACS}.
342 Set package installation directory to @code{LISPDIR}.
343 Then, please execute following commands.
352 Destination directory is auto-probed if you leave @code{LISPDIR}
353 in @file{Makefile} as is. (That is, leave it as @samp{NONE})
355 If you are using an Emacs variant which does not merge specified directory
356 to @code{load-path} (e.g. Mule 2.3 based on Emacs 19.28),
357 then you will see the error message:
360 Cannot open load file: mime-setup
364 In this case, either add destination directories of custom, APEL, FLIM
365 and SEMI to environmental variable @env{EMACSLOADPATH}, or define
366 @code{load-path} in @file{WL-CFG} in extracted directory.
368 If you want to handle shimbun folders or to use BBDB, add directory
369 where emacs-w3m or BBDB is installed to @code{load-path}. Then necessary
370 modules will be byte-compiled and installed.
371 @xref{Shimbun Folder}, @xref{BBDB}.
373 @subsection @file{WL-CFG}
375 Contents of the file @file{WL-CFG} is loaded under installation if a file
376 with that name exists in extracted directory. You can use @file{WL-CFG} to
377 configure @code{load-path} to extra packages such as SEMI if needed.
379 If you want to specify the install directory of Wanderlust related
380 files, then set following variables in @file{WL-CFG}
384 A directory to install WL modules.
385 This directory is relative directory from @code{LISPDIR}.
386 WL modules include @file{wl*.el}, @file{wl*.elc} files.
387 @c Modules under the directory @file{util/} are also installed if
388 @c it detected as necessary.
391 A directory to install ELMO modules.
392 This directory is relative directory from @code{LISPDIR}.
393 ELMO modules include @file{elmo*.el}, @file{elmo*.elc} files.
394 @c @file{utf7.el}, @file{utf7.elc} are also included in the ELMO.
398 Default value of @code{WL_PREFIX} and @code{ELMO_PREFIX} are @file{wl}.
400 If you want to install ELMO related files under a sub-directory
401 such as "elmo" then add following to @file{WL-CFG}:
404 (setq ELMO_PREFIX "elmo")
407 @subsection Install as a XEmacs package
408 @cindex XEmacs package
409 @cindex XEmacs package install
410 @cindex Package, XEmacs
411 @cindex Package install, XEmacs
412 @c @cindex install-package
414 It is possible to install Wanderlust as one of packages of XEmacs (21.0
415 or later). Configuration for autoload and icon-path in local
416 @file{~/.emacs} files are no longer necessary, if you install Wanderlust
419 Follow the next example to install Wanderlust as an XEmacs package.
425 % make install-package
429 package directory is auto-probed, if SEMI is installed.
430 (you can also specify it with @code{PACKAGEDIR} in @file{Makefile})
432 @subsection Run in place
434 If wl and elmo directories are defined in @code{load-path}, then
435 byte-compilation and installation are not necessary to start Wanderlust.
436 For example, if package is extracted in @file{~/work}, Wanderlust can be
437 invoked with following setting in @file{~/.emacs}.
441 (add-to-list 'load-path "~/work/wl-@var{version}/wl")
442 (add-to-list 'load-path "~/work/wl-@var{version}/elmo")
448 Manual is described in Info format. Please do following.
457 If you install Wanderlust as a XEmacs package, Info file is already
458 installed too, so there are no need of these commands.
460 Manual directory is automatically detected. Of course, it can be
461 configured by @code{INFODIR} in @file{Makefile}.
463 You can read manual at the following URL:
466 http://www.gohome.org/wl/doc/wl_toc.html
469 @node Minimal Settings, Folder Definition, Install, Start Me Up
470 @section Set up .emacs
471 @cindex Minimal Settings
473 @cindex Configuration
477 The Wanderlust package contains two module groups.
480 @item ELMO (elmo-*.el)
481 These modules show everything as folders. This is the back-end for WL.
483 These modules controls the behavior of main body of Wanderlust.
484 They are also the front-end for ELMO.
487 You can customize the behavior of Wanderlust by changing the value
488 of environmental variables which begins with @code{elmo-} and @code{wl-}.
490 The minimal requirement for settings is as the following.
494 ;; @r{autoload configuration}
495 ;; @r{(Not required if you have installed Wanderlust as XEmacs package)}
496 (autoload 'wl "wl" "Wanderlust" t)
497 (autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
498 (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
500 ;; @r{Directory where icons are placed.}
501 ;; @r{Default: the peculiar value to the running version of Emacs.}
502 ;; @r{(Not required if the default value points properly)}
503 (setq wl-icon-directory "~/work/wl/etc")
505 ;; @r{SMTP server for mail posting. Default: @code{nil}}
506 (setq wl-smtp-posting-server "your.smtp.example.com")
507 ;; @r{NNTP server for news posting. Default: @code{nil}}
508 (setq wl-nntp-posting-server "your.nntp.example.com")
512 @file{~/.wl} is automatically loaded when Wanderlust starts up (if such a
513 file exists). So it is convenient to gather Wanderlust specific settings
514 in @file{~/.wl}. Settings for "face" must be written in @file{~/.wl},
515 because you can't write them in @file{.emacs}
516 (if you write it to @file{.emacs}, you'll get an error).
519 All above described settings except autoload configuration can be written
522 @subsection @code{mail-user-agent}
523 @cindex Default Mailer
524 @cindex Mailer, Default
525 @vindex mail-user-agent
528 If you write following setting in your @file{~/.emacs}, you can
529 start Wanderlust draft mode by typing @kbd{C-x m} (@code{compose-mail}).
530 This means it enables you to run Wanderlust as a default mail composer
533 It is effective only when your Emacs can define @code{mail-user-agent}.
534 @xref{Mail Methods, , ,emacs, The Emacs Editor}.
538 (autoload 'wl-user-agent-compose "wl-draft" nil t)
539 (if (boundp 'mail-user-agent)
540 (setq mail-user-agent 'wl-user-agent))
541 (if (fboundp 'define-mail-user-agent)
542 (define-mail-user-agent
544 'wl-user-agent-compose
553 @node Folder Definition, Start Wanderlust, Minimal Settings, Start Me Up
554 @section Folder Definition
555 @cindex Folder Definition
558 You can skip this section because it is possible to add/edit the
559 subscribe folders from the buffer for list of folders.
560 @xref{Folder Manager}.
562 Define the folders you want to subscribe in file @file{~/.folders}. The
563 contents written in @file{~/.folders} become the folders which you
564 subscribe to as it is.
566 Format for @file{~/.folders} is very simple. Here is an example:
571 # @r{Lines begin with @samp{#} are comment.}
572 # @r{Empty lines are ignored}
574 # @var{folder name} "@var{folder nickname}"
575 # @r{(nicknames are not necessary)}
580 %#mh/Backup@@my.imap.example.com "Sent"
583 %#mh/spool/wl "Wanderlust ML"
584 %#mh/spool/elips "ELIPS ML"
585 %#mh/spool/apel-ja "APEL Japanese ML"
586 %#mh/spool/xemacs-beta "XEmacs beta"
587 -fj.news.reader.gnus@@other.nntp.example.com "Gnus Net news"
588 *-fj.editor.xemacs,-fj.editor.mule,-fj.editor.emacs "fj's Emacsen"
591 # @r{If folder name ends with @samp{/}, that means an `access group',}
592 # @r{all subfolders automatically included in one folder group.}
594 %#mh/expire@@localhost /
595 # @r{All MH folders are included in one folder group.}
600 Each line contains one folder you want to read. The definition of
601 folders will be explained in detail in the next section.
603 The part surrounded by @samp{@var{group name}@{} and @samp{@}} will
604 become one folder group. One folder group is treated as a directory
605 which can be opened and closed in folder mode. It is convenient for
606 collecting some folders and putting them in order.
608 Please note that @samp{@var{group name}@{} and @samp{@}} occupies one
609 line and you have to write it that way (It is because the parser sucks).
611 There are two types of groups. One is like @samp{Emacsen} from above
612 example which the user chooses his favorite folders as a group.
614 The other one is @dfn{access group} like @samp{+ /} from above example.
615 It collects all sub-folders in the folder to make a group. (Its
616 behavior differs by the type of the folder. For example, @samp{+}
617 followed by @samp{/} makes entire MH sub-directories to one group)
619 This behavior is better understood if you try it and confirmed the
620 function first. You can write and try a small folder definition, so you
621 will know the idea of the folder function before writing the real one.
623 @node Start Wanderlust, Overview, Folder Definition, Start Me Up
624 @section Start Wanderlust
625 @cindex Start Wanderlust
627 If installation and configuration worked well, you can invoke Wanderlust by
628 typing following command in Emacs.
635 After initialization, Folder Mode which shows the list of folders will
636 appear. That means the folders you defined in the @file{~/.folders} are
639 If you start Wanderlust with prefix argument like @kbd{C-u M-x wl}, you
640 can skip folder checking.
643 @node Overview, , Start Wanderlust, Start Me Up
647 Basically, you will handle messages in wanderlust while you come and go
648 from/to each of the following buffers. Details of each ones are
649 explained in following chapters.
653 You can see the list of folders. You can select some folder and go into the summary
654 of it. You can subscribe new folder or edit subscription list.
656 You can see the list of messages in the folder. You can select message
657 and view its contents, and reply to some message. You can delete ones or
658 move ones to another folder.
660 You can see the contents of the message. You can save part to disk or
661 open in external programs.
663 You can edit message.
667 @node Folders, Folder, Start Me Up, Top
668 @chapter Wanderlust's folders
671 This chapter describes the folder types which Wanderlust is able to handle.
673 Wanderlust uses ELMO as it's interface, so you can use every folder types
676 As of version @value{VERSION}, 14 types of folders are predefined. These
677 are IMAP, NNTP, LocalDir(MH), Maildir, News Spool, Archive, POP,
678 Shimbun, Namazu, Multi, Filter, Pipe, Internal and File folder types.
681 * IMAP Folder:: @samp{%} -- IMAP folder
682 * NNTP Folder:: @samp{-} -- NNTP folder
683 * MH Folder:: @samp{+} -- MH folder
684 * Maildir Folder:: @samp{.} -- Maildir folder
685 * News Spool Folder:: @samp{=} -- News spool folder
686 * Archive Folder:: @samp{$} -- Archive folder
687 * POP Folder:: @samp{&} -- POP folder
688 * Shimbun Folder:: @samp{@@} -- Shimbun Folder
689 * Namazu Folder:: @samp{[} -- Namazu Folder
690 * Multi Folder:: @samp{*} -- Multi folder
691 * Filter Folder:: @samp{/} -- Filter folder
692 * Pipe Folder:: @samp{|} -- Pipe folder
693 * Internal Folder:: @samp{'} -- Internal folder
694 * File Folder:: -- File folder
698 @node IMAP Folder, NNTP Folder, Folders, Folders
706 A folder to access e-mails via IMAP4rev1 protocol (RFC 2060).
712 @samp{%} @var{mailbox} [@samp{:} @var{username} [@samp{/} @var{authenticate-type}]][@samp{@@} @var{hostname}][@samp{:} @var{port}][@samp{!}]
716 You can specify @code{login} (encoded password transmission),
717 @code{cram-md5} (CRAM-MD5 authentication), @code{digest-md5} (DIGEST-MD5
718 authentication) or @code{clear} (or @code{nil}, plain password
719 transmission) as @var{authenticate-type}.
724 @var{username} -> The value of @code{elmo-imap4-default-user}.
725 Initial setting is @env{USER} environment variable or
726 @env{LOGNAME} environment variable or return value of
727 @code{(user-login-name)}.
728 @var{authenticate-type} -> The value of @code{elmo-imap4-default-authenticate-type}.
729 Initial setting is "auth".
730 @var{hostname} -> The value of @code{elmo-imap4-default-server}.
731 Initial setting is "localhost".
732 @var{port} -> The value of @code{elmo-imap4-default-port}.
733 Initial setting is 143.
736 You can omit the @var{hostname} from folder names if you set
737 @code{elmo-imap4-default-server} as your main IMAP server.
738 For example, you can specify a folder as @samp{foo%imap@@gateway} even
739 if you have to go through a firewall.
743 ;; @r{Example: imap4.exaple.org as main IMAP server}
744 (setq elmo-imap4-default-server "imap4.example.org")
748 SSL (Secure Socket Layer) connection will be used if a folder name ends
749 with @samp{!}. If a folder name ends with @samp{!!}, STARTTLS
750 connection will be established.
752 If the value of @code{elmo-imap4-default-stream-type} is @code{ssl},
753 SSL will be the default connection, i.e. you can omit @samp{!}. If it
754 is is @code{starttls}, STARTTLS will be the default connection. To use
755 normal connection in these cases, add @samp{!direct} at the end of
760 ;; @r{Example: Use SSL connection}
761 (setq elmo-imap4-default-stream-type 'ssl)
765 If you specify @code{login}, @code{cram-md5} or @code{digest-md5} as
766 authentication method, the password is sent in encoded form. But, if
767 your server is unable to receive an encoded password, authentication
768 will fall back to @code{clear} (that is, sending password in raw format)
769 after confirmation to user. If @code{elmo-imap4-force-login} is non-nil,
770 authentication will fall back to @code{clear} without confirmation
771 (default value is @code{nil}).
775 ;; @r{Example: password in raw format}
776 (setq elmo-imap4-default-authenticate-type 'clear)
784 %inbox -> IMAP mailbox "inbox"
785 %#mh/inbox -> IMAP mailbox "#mh/inbox"
787 %inbox:hoge -> IMAP mailbox "inbox" of user "hoge".
788 %inbox:hoge/clear@@server1
789 -> server1's IMAP mailbox "inbox"
790 of user "hoge", with plain password authentication
795 @subsection International mailbox names (Modified UTF7)
796 @cindex Modified UTF7
803 You can use international mailbox names in @var{mailbox} part, if you
804 are using Emacs with UTF-7 support and
805 @code{elmo-imap4-use-modified-utf7} is set to non-nil value (default
806 value is @code{nil}).
808 Currently, Mule-UCS package is required to use UTF-7.
809 Mule-UCS works on following Emacsen.
812 @item Emacs 20.3 or later
813 @item XEmacs 21.2.37 or later
816 You can obtain Mule-UCS package from following URL.
819 ftp://ftp.m17n.org/pub/mule/Mule-UCS/
822 @node NNTP Folder, MH Folder, IMAP Folder, Folders
833 A folder to access USENET news via NNTP protocol (RFC 977).
834 One newsgroup is treated as a folder.
840 @samp{-} @var{newsgroup} [[@samp{:} @var{username}][@samp{@@} @var{hostname}][@samp{:} @var{port}]][@samp{!}]
846 @var{hostname} -> The value of @code{elmo-nntp-default-server}.
847 Initial setting is @samp{localhost}.
848 @var{username} -> The value of @code{elmo-nntp-default-user}.
849 Initial setting is @code{nil}.
850 @var{port} -> The value of @code{elmo-nntp-default-port}.
851 Initial setting is 119.
854 AUTHINFO is used as authentication method if the @var{username} is
855 non-nil. SSL connection will be used if a folder name ends with @samp{!}.
856 If a folder name ends with @samp{!!}, STARTTLS connection will be
859 If the value of @code{elmo-nntp-default-stream-type} is @code{ssl},
860 SSL will be the default connection, i.e. you can omit @samp{!}. If it
861 is is @code{starttls}, STARTTLS will be the default connection. To use
862 normal connection in these cases, add @samp{!direct} at the end of
869 -fj.rec.tv -> Newsgroup @samp{fj.rec.tv}.
870 -fj.rec.tv@@newsserver -> Newsgroup @samp{fj.rec.tv} on @samp{newsserver}.
875 @node MH Folder, Maildir Folder, NNTP Folder, Folders
882 A folder to access MH format mail (1 file is 1 mail).
887 @samp{+} @var{directory-name}
890 Normally, @var{directory-name} is an relative path to the variable
891 @code{elmo-localdir-folder-path} (default is @file{~/Mail}), but if it
892 starts with @samp{/} or @samp{~}, then it is treated as an absolute path
893 (this is also true for drive-letters).
895 Message number is used for the name of the message file.
901 +inbox -> @file{~/Mail/inbox}
902 +from/teranisi -> @file{~/Mail/from/teranisi}
903 +~/test -> @file{~/test}
908 @node Maildir Folder, News Spool Folder, MH Folder, Folders
909 @section Maildir Folder
911 @cindex Maildir Folder
915 A folder to access Maildir format (1 file is 1 mail).
920 @samp{.} [@var{directory-name}]
923 Normally, @var{directory-name} is a relative path to the variable
924 @code{elmo-maildir-folder-path} (default is @file{~/Maildir}), but if it
925 starts with @samp{/} or @samp{~}, then it is treated as an absolute path
926 (this is also true for drive-letters).
928 Maildir contains @file{cur}, @file{new} and @file{tmp} subdirectories.
929 Messages are contained in the @file{cur} directory. All message files
930 in the @file{new} directory are moved to @file{cur} directory when you
931 access the folder. All message files contained in the @file{tmp}
932 directory and not accessed for 36 hours are deleted.
934 This behavior conforms to the @uref{http://cr.yp.to/proto/maildir.html}.
940 . -> @file{~/Maildir}
941 .inbox -> @file{~/Maildir/inbox}
942 .from/teranisi -> @file{~/Maildir/from/teranisi}
943 .~/test -> @file{~/test}
948 @node News Spool Folder, Archive Folder, Maildir Folder, Folders
949 @section News Spool Folder
951 @cindex News spool Folder
954 This folder handles locally saved news articles which are proposed by
955 Mew/IM. You can also read articles directly from a spool-file which is
956 retrieved by an utility like @command{gnspool}.
961 @samp{=} @var{directory-name}
964 @var{directory-name} is a sub-directory to the directory defined by
965 variable @code{elmo-localnews-folder-path} (default is @file{~/News})
966 You can use @samp{.} as directory delimiter as well as @samp{/}.
972 =fj/os/os2 -> @file{~/News/fj/os/os2}
973 =fj.os.bsd.freebsd -> @file{~/News/fj/os/bsd/freebsd}
978 @node Archive Folder, POP Folder, News Spool Folder, Folders
979 @section Archive Folder
981 @cindex Archive Folder
984 This method can handle archive files, which are compressed by utilities
985 such as Info-ZIP or LHA, as one folder.
991 @samp{$} @var{path-name} [@samp{;} @var{archiver-type} @samp{;} @var{prefix}]
995 @var{path-name} is the relative path from
996 @code{elmo-archive-folder-path} (initial setting is @file{~/Mail}). If
997 @var{path-name} begins with @samp{/} or @samp{~} or `drive-letter of
998 DOS', @var{path-name} is treated as absolute path. ange-ftp format is
999 also permitted under the environment of ange-ftp, efs.
1001 The actual file name of the archive folder is
1002 @code{elmo-archive-basename} (Initial setting is @file{elmo-archive})
1003 under the @var{path-name}. If a file named @var{path-name} exists, it is
1004 treated as folder. The suffix is automatically decided for
1005 @var{archiver-type}.
1007 If @var{archiver-type} is omitted, @code{elmo-archive-default-type}
1008 (Initial setting is @code{zip}) is referred.
1010 @var{prefix} specifies the internal directory structure of the archive.
1011 For example, if the ML server is fml, @file{msend.tar.gz} has a
1012 structure like @file{spool/1}, so you have to specify @samp{spool} as
1019 $teranisi -> @file{~/Mail/teranisi/elmo-archive.zip}
1020 $bsd/freebsd;lha -> @file{~/Mail/bsd/freebsd/elmo-archive.lzh}
1021 $/foo@@server:~/bar;zoo -> @file{~/bar/elmo-archive.zoo} on ftp server
1022 $d:/msend.tar.gz;tgz;spool -> @file{d:/msend.tar.gz}
1023 $ml;zip/ -> Access group consists of archive folders
1024 under @file{~/Mail/ml}
1029 * Archiver:: Supported Archivers
1030 * Archive Tips:: TIPS
1031 * Archive Vars:: Customization
1035 @node Archiver, Archive Tips, Archive Folder, Archive Folder
1036 @subsection Supported Archives
1046 By default, following archives are supported.
1050 LHA, Info-ZIP/UNZIP, ZOO, RAR ;; full-access
1051 GNU TAR('tgz, 'tar) ;; read-only
1055 If your archiver can include multiple files in one archive, you have a
1056 possibility use it as an archiver of Wanderlust (ARJ/UNARJ, ARC is one
1057 of the candidate. TAR is supported read-only because it cannot delete
1058 file in the archive (@code{mv})).
1060 @command{gzip}, @command{bzip}, @command{bzip2} cannot be used as an
1061 archiver of Wanderlust because they cannot include multiple
1062 files. Archivers that cannot extract files to standard output are also
1065 @subsection OS specific information about archiver.
1067 Behaviors of the following archivers are confirmed by further experiences.
1068 (@samp{*} mark means recommended archiver).
1071 [OS/2] Warp4.0J(w/o VoiceType)+Fx00505/emx0.9c(fix04)/PMMule,EmacsPM
1072 LHA OS/2 version Rel.2.06b Feb 18, 1998
1073 *UnZip 5.32 of 3 November 1997, by Info-ZIP.
1074 *Zip 2.2 (November 3rd 1997).
1075 Zoo archiver, zoo 2.1 $@asis{}Date: 91/07/09 02:10:34 $
1076 GNU tar version 1.10 - AK 2.58 (DBCS/SJIS) 981216(homy) version
1077 gzip 1.2.4 (18 Aug 93) + bzip2 patch(by Iida-san)
1079 [UN|X] FreeBSD 2.2.7-RELEASE, Linux 2.0.30, Solaris2.6, HP-UX 9.07
1080 LHa for UNIX V 1.14c
1081 UnZip 5.32 of 3 November 1997
1082 Zip 2.2 (November 3rd 1997)
1083 GNU tar 1.12 (1.11.x is no good)
1084 gzip 1.2.4 (18 Aug 93)
1086 [Win32] Win.98/Meadow
1090 GNU tar 1.11.8 + 1.5(WIN32)
1097 If you are an OS/2 user, Peter Fitzsimmons's LH/2 is not supported.
1098 Hiramatsu version of LHA is only supported.
1099 In Win32, LHa32 is only supported (DOS version is no good).
1101 * Caution about GNU tar
1103 You have to take care about GNU tar's version because many version has
1104 problem on deleting file from archive.
1106 Please test @option{--delete} @option{-f} options work. Otherwise, your
1107 archive will be destroyed. No problem is reported on above versions of
1111 @node Archive Tips, Archive Vars, Archiver, Archive Folder
1113 @cindex Archive Tips
1115 For comfortable migration, usage of @code{wl-summary-archive}
1116 (@pxref{Archive}) or Expire (@pxref{Expire}) is recommended. To treat
1117 archive folders created by expiration, you must set non-nil value to
1118 @code{elmo-archive-treat-file}.
1120 On the OS/2, there is a great difference between Mule2.3(19.28) and Emacs20.2
1121 in processing speed. For comfortable use, Emacs20 is recommended.
1122 (If re-search's performance is the problem, 19.3x or later may be okay.)
1124 If many files are included in one archive,
1125 it takes long time to access the archive folder because
1126 archiver starting overhead is increased (especially LHA).
1127 150-200 messages in one archive is recommended.
1129 Of course, following is possible @t{:-)}
1130 (meanings of these variables are described later.)
1134 (setq wl-fcc "$backup")
1135 (setq wl-trash-folder "$trash;lha")
1139 @node Archive Vars, , Archive Tips, Archive Folder
1140 @subsection Variables About Archive Folder
1141 @cindex Archive variables
1144 @item elmo-archive-default-type
1145 @vindex elmo-archive-default-type
1146 The initial setting is @code{zip}.
1147 Set archiver type by symbol.
1149 @item elmo-archive-@var{type}-method-alist
1150 @vindex elmo-archive-TYPE-method-alist
1151 Define archiver @var{type}'s methods.
1152 (@var{type} is @samp{lha}, @samp{zip}, @samp{zoo}, @samp{tgz} etc)
1153 Each element of the alist is following.
1157 (@var{action} . (@var{exec-name} @var{options})) ;; external program and its option.
1158 (@var{action} . @var{function}) ;; function
1162 Currently available actions are following.
1166 'ls, 'cat ('cat-headers) ;; Minimal setting(read-only)
1167 'mv ('mv-pipe), 'rm ('rm-pipe) ;; full-access (with above)
1174 actions enclosed with braces are optional (They are used for better
1177 @item elmo-archive-suffix-alist
1178 @vindex elmo-archive-suffix-alist
1179 An alist of archiver-type (symbol) and suffix.
1181 @item elmo-archive-file-regexp-alist
1182 @vindex elmo-archive-file-regexp-alist
1183 An alist of a regexp to get file number from list output of archiver
1184 and archiver-type (symbol).
1186 @item elmo-archive-method-list
1187 @vindex elmo-archive-method-list
1188 A list of elmo-archive-@var{type}-method-alist
1189 (@var{type} is a symbol of archiver-type).
1191 @item elmo-archive-lha-dos-compatible
1192 @vindex elmo-archive-lha-dos-compatible
1193 The initial setting is @code{t} on OS/2 and Win32. If non-nil, LHA is
1194 DOS (Mr. Yoshizaki original) compatible.
1196 @item elmo-archive-cmdstr-max-length
1197 @vindex elmo-archive-cmdstr-max-length
1198 The initial setting is 8000.
1200 Max length of command line argument for external archiver program.
1201 Emacs does not have a limit of command line byte length, but some OS
1202 (e.x OS/2) have. It depends on the OS. Archive folder is affected by
1203 this limit because it calls external archiver program directly (not
1204 called via shell). For example, you cannot delete messages if archiver
1205 program must receive larger bytes of arguments to delete. OS/2 have a
1206 command line argument limit of 8190 bytes, so we defined default as 8000
1209 However, you don't have an influence of command line argument limit
1210 if the archiver has `actions' to receive target file information from
1211 standard input (@code{rm-pipe}, @code{mv-pipe}, @code{cat-headers} action).
1215 @node POP Folder, Shimbun Folder, Archive Folder, Folders
1223 A folder to access e-mails via POP3 protocol (RFC 1939).
1229 @samp{&} [@var{username}][[@samp{/} @var{authenticate-type}][@samp{:} @var{numbering-method}][@samp{@@} @var{hostname}][@samp{:} @var{port}]][@samp{!}]
1234 @samp{user} (plain password transmission) or @samp{apop} (APOP authentication)
1235 as @var{authenticate-type}.
1237 You can specify @samp{uidl} (use UIDL command for message numbering) or
1238 @samp{list} (use LIST command for message numbering) as @samp{numbering-method}.
1242 @var{username} -> The value of @code{elmo-pop3-default-user}.
1243 Initial setting is @env{USER} environment variable or
1244 @env{LOGNAME} environment variable or return value of
1245 @code{(user-login-name)}.
1246 @var{authenticate-type} -> The value of @code{elmo-pop3-default-authenticate-type}.
1247 Initial setting is @samp{user}.
1248 @var{numbering-method} -> Follow the value of @code{elmo-pop3-default-use-uidl}.
1249 If t, use UIDL for numbering. Initial setting is t.
1250 @var{hostname} -> The value of @code{elmo-pop3-default-server}.
1251 Initial setting is @samp{localhost}.
1252 @var{port} -> The value of @code{elmo-pop3-default-port}.
1253 Initial setting is 110.
1260 &hoge@@localhost -> access localhost as user @samp{hoge}.
1261 &hoge@@popserver:109 -> access the server "popserver" on port 109
1262 as user @samp{hoge}.
1266 To use apop as an @var{authenticate-type}, @file{md5.el} is needed
1267 (XEmacs doesn't need @file{md5.el}). @file{md5.el} is included in
1268 @file{utils/sasl/lisp/} or Emacs/W3 package
1269 (@uref{http://www.cs.indiana.edu/elisp/w3/docs.html}) or LCD archive
1272 If the last character of the folder name is @samp{!}, Wanderlust
1273 connects to the POP server via SSL (Secure Socket Layer). If a folder
1274 name ends with @samp{!!}, STARTTLS connection will be established.
1276 If the value of @code{elmo-pop3-default-stream-type} is @code{ssl},
1277 SSL will be the default connection, i.e. you can omit @samp{!}. If it
1278 is is @code{starttls}, STARTTLS will be the default connection. To use
1279 normal connection in these cases, add @samp{!direct} at the end of
1283 @node Shimbun Folder, Namazu Folder, POP Folder, Folders
1284 @section Shimbun Folder
1286 @cindex Shimbun Folder
1287 @cindex Folder, Shimbun
1292 A folder for watching "shimbun" (means "newspaper" in Japanese),
1293 news site and mailing list archives on WWW by using emacs-w3m
1294 (@uref{http://emacs-w3m.namazu.org/}).
1296 You should possess w3m and emacs-w3m to use this.
1302 @samp{@@} @var{module-name} @samp{.} @var{folder-name}
1306 Admissible values of @var{module-name} and @var{folder-name} are
1307 described in @file{README.shimbun.ja} distributed with emacs-w3m.
1313 @@airs.wl -> archive of wanderlust ML (using module @file{sb-airs.el})
1314 @@asahi/ -> access group of all folders in module @file{sb-asahi.el}
1318 @subsection Variables About Shimbun Folder
1321 @item elmo-shimbun-update-overview-folder-list
1322 @vindex elmo-shimbun-update-overview-folder-list
1323 The initial setting is @code{all}. Specify a set of folders to update
1324 overview when messages are fetched. Specify @code{all} to update
1325 overview in all shimbun folders. You can specify a list of regular
1326 expressions of shimbun folder names to restrict affected folders.
1331 (setq elmo-shimbun-update-overview-folder-list
1332 '("^@@airs\\." "^@@namazu\\."))
1335 @kbd{s rescan} is needed after fetching to update summary view.
1339 @node Namazu Folder, Multi Folder, Shimbun Folder, Folders
1340 @section Namazu Folder
1342 @cindex Namazu Folder
1343 @cindex Folder, Namazu
1344 @cindex Folder, Text Search
1347 A folder to access messages found in namazu-index with some condition.
1348 It uses namazu (@uref{http://www.namazu.org/}) for search.
1354 @samp{[} @var{search condition} @samp{]} [ @var{absolute path of namazu index} ]
1358 Default value of the path of namazu index can be assigned by @code{elmo-nmz-default-index-path}.
1364 [wanderlust] -> search messages matched with
1365 "wanderlust" from the default index
1366 [semi flim]~/Mail/semi -> search "semi flim" from the index
1367 in the directory "~/Mail/semi"
1373 @subsubsection Enter space to separate keywords
1375 If you want to use space in folder entry, @kbd{C-q @key{SPC}} will help you.
1377 @subsubsection Alias name for index
1379 You can define an alias name for index.
1384 (setq elmo-nmz-index-alias-alist
1385 '(("cache" . "~/.elmo/cache")
1386 ("docs" . "~/documents")))
1389 Above definition defines two index aliases.
1396 to execute a namazu search with keyword @samp{wanderlust} using a index in the
1397 directory @file{~/.elmo/cache}.
1399 @subsubsection Multiple indices
1401 You can specify a list for @code{elmo-nmz-default-index-path} and
1402 @code{elmo-nmz-index-alias-alist}.
1403 When list is specified, all index contained in the list is used as the
1409 (setq elmo-nmz-index-alias-alist
1410 '(("all" . ("~/.elmo/cache" "~/documents"))
1411 ("cache" . "~/.elmo/cache")))
1414 Using above alias setting, you can specify
1420 to execute a namazu search with keyword @samp{wanderlust} using indices in the
1421 directory @file{~/.elmo/cache} and @file{~/documents}.
1423 @node Multi Folder, Filter Folder, Namazu Folder, Folders
1424 @section Multi Folder
1426 @cindex Multi Folder
1427 @cindex Folder, Multiple
1428 @cindex Folder, Marge
1430 A folder to access virtual folder which collects messages from
1437 @samp{*} @var{folder-1} [@samp{,} @var{folder-2}] @dots{} [@samp{,} @var{folder-N}]
1441 After @samp{*} character, specify multiple folders you want to collect
1442 separated by @samp{,} like
1443 @samp{@var{folder-1},@var{folder-2},@dots{},@var{folder-N}}.
1449 *-fj.editor.xemacs,-fj.editor.mule,-fj.editor.emacs
1450 -> -fj.editor.xemacs, -fj.editor.mule and -fj.editor.emacs are
1451 treated as one folder.
1453 *+inbox,-fj.rec.tv,%inbox
1454 -> +inbox, -fj.rec.tv and %inbox are treated as one folder.
1459 @node Filter Folder, Pipe Folder, Multi Folder, Folders
1460 @section Filter Folder
1462 @cindex Filter Folder
1463 @cindex Folder, Filtering
1464 @cindex Folder, Virtual
1465 @cindex Folder, Conditional
1468 A folder to access virtual folder which collects all messages that
1469 satisfy a condition.
1474 @samp{/} @var{condition} @samp{/} @var{target-folder}
1477 In the @var{condition} part, you can specify following.
1481 Partial filter: @samp{first:@var{number}}, @samp{last:@var{number}}
1483 first: @var{number} messages are picked from top of folder.
1484 last: @var{number} messages are picked from bottom of folder.
1490 /last:10/-fj.os.linux -> Latest 10 messages from -fj.os.linux are picked.
1491 /first:20/%inbox -> First 20 messages from %inbox are picked.
1496 Date filter: @samp{since:@var{date}}, @samp{before:@var{date}}
1498 since: only messages arrived since @var{date} are picked.
1499 before: only messages arrived before @var{date} are picked.
1501 You can specify following as @var{date}.
1505 yesterday -> a day before today.
1506 lastweek -> same day of last week.
1507 lastmonth -> same day of last month.
1508 lastyear -> same day of last year.
1509 @var{number}daysago -> @var{number} days ago. (e.x. '3daysago')
1510 @var{day}-@var{month}-@var{year} -> specify date directly (ex. 1-Nov-1998)
1518 /since:3daysago/+inbox -> messages arrived since 3 days ago in +inbox
1520 /before:yesterday/+inbox -> messages arrived before yesterday in +inbox
1526 Field filter: @samp{@var{field}:@var{value}}
1528 All messages that have @var{field} and its value is @var{value} are picked.
1529 @var{field} and @var{value} are case insensitive.
1535 /from:teranisi/+inbox -> In +inbox, messages which have From: field
1536 and its value includes "teranisi" string are picked.
1537 /body:foo/%inbox -> In %inbox, messages which have "foo" text
1543 Flag filter: @samp{flag:@var{flag-name}}
1545 Pick up messages with flag specified by @var{flag-name}.
1547 You can specify following flag names:
1552 important -> important
1554 digest -> unread or important
1555 any -> unread or important or replied
1559 You can also use flags which you have set as global flag.
1560 @xref{Internal Folder}.
1566 /flag:digest/%inbox -> a folder consist of unread or important
1568 /flag:wl/+ML/Wanderlust -> a folder consist of messages with global flag
1569 wl in +ML/Wanderlust.
1576 A condition starting with @samp{!} indicates a negation.
1577 If you combine conditions by character @samp{|}, it is considered as OR condition.
1578 @samp{&} is considered as AND condition, likewise.
1579 Condition can be grouped by parentheses (@samp{(}, and @samp{)}).
1581 @samp{/tocc:xxxx/} is an abbreviation of @samp{/to:xxxx|cc:xxxx/}.
1582 @samp{/!tocc:xxxx/} is an abbreviation of @samp{/!to:xxxx&!cc:xxxx/}.
1588 /from:teranisi&!to:teranisi/+inbox
1589 -> In +inbox, messages are picked if the message's
1590 From: field includes "teranisi" and
1591 To: field doesn't include "teranisi".
1593 /tocc:"Yuuichi Teranishi"/+inbox
1594 -> In +inbox, messages are picked if the
1595 message's To: field or Cc: field includes
1596 "Yuuichi Teranishi".
1598 /(from:yt|from:teranisi)&subject:report/+inbox
1599 -> In +inbox, messages are picked if the message's
1600 From: field includes "yt" or "teranisi", and
1601 Subject includes "report".
1607 Tip for string description:
1609 Space character, @samp{"}, @samp{/},@samp{)},@samp{|} and @samp{&}
1610 should be enclosed with @samp{"} in @var{value} string. (@samp{"}
1611 should be escaped with @samp{\} in it). You can enclose the string with
1612 @samp{"} even it does not contain these characters.
1618 *%inbox,/from:teranisi/%inbox@@server
1619 -> Messages in %inbox or
1620 message is in the %inbox@@server folder and it's From field
1621 includes "teranisi" are collected.
1623 /last:100//to:teranisi/*+inbox,%inbox
1624 -> Latest 100 messages which is in the +inbox or %inbox folder
1625 and To: field matches "teranisi".
1627 /from:hogehoge//last:20//tocc:teranisi/%#mh/inbox@@localhost
1628 -> Pick messages which have From: field and it includes "hogehoge"
1629 from latest 20 messages in the %#mh/inbox@@localhost
1630 and To: or Cc: field includes "teranisi".
1633 @node Pipe Folder, Internal Folder, Filter Folder, Folders
1634 @section Pipe Folder
1638 @cindex Download Message
1639 @cindex Incorporate Message
1641 In the pipe folder, messages are automatically transferred from the source
1642 folder to destination folder.
1647 @samp{|} @var{source-folder} @samp{|} @var{destination-folder}
1650 When you access the pipe folder, messages are automatically transferred
1651 from @var{source-folder} to @var{destination-folder}.
1652 It is convenient if you want to download messages to local disk via POP.
1653 For example, if you specify following
1656 |&username@@popserver|+inbox
1660 and access it, Wanderlust downloads messages from
1661 @samp{&username@@popserver} to @samp{+inbox} automatically.
1663 On the other hand, if you put @samp{|:} instead of second @samp{|},
1664 then messages are copied to the destination folder (not deleted from
1665 source-folder). At the next time you access that folder, copies new
1669 @samp{|} @var{source-folder} @samp{|:} @var{destination-folder}
1672 If you want to copy messages from POP server and view them, specify the
1676 |&username@@popserver|:+inbox
1679 where messages will be kept on the server.
1685 |%inbox|%myinbox -> Download %inbox to %myinbox.
1686 |*&user@@popserver1,&user@@popserver2|+inbox
1687 -> Download from &user@@popserver1 and &user@@popserver2 to +inbox.
1688 |-gnu.emacs.sources|:+sources
1689 -> Copy messages from -gnu.emacs.sources to +sources.
1693 After messages are moved, a hook @code{elmo-pipe-drained-hook} is called.
1695 @node Internal Folder, File Folder, Pipe Folder, Folders
1696 @section Internal folder
1698 @cindex Internal Folder
1699 @cindex Folder, @samp{$} mark
1702 @c @cindex Folder, Null
1704 A folder to access internal messages of Wanderlust.
1710 @samp{'flag} [@samp{/} @var{global-flag}]
1712 @samp{'cache/00} - @samp{'cache/1F}
1716 A folder named @samp{'flag} is a special virtual folder which collects
1717 messages which have @var{global-flag}.
1719 There is @samp{important} flag defined as @var{global-flag} by default.
1720 You can review important messages at once after you put important marks
1721 on the messages in the different folders. If @var{global-flag} is omitted,
1722 it is treated as @samp{important} flag is specified.
1724 In addition, in summary mode, to be described later, you can freely
1725 define global flags and put them on messages.
1726 @xref{Usage of Summary mode}.
1728 In this folder, if you delete message, @var{global-flag} put on the
1729 message is removed. If you append messages to this folder, the message
1730 will have @var{global-flag}.
1733 A folder named @samp{'sendlog} is a virtual folder which collects
1734 cached messages which are recoded on @file{~/.elmo/sendlog}.
1735 It might be useful when you forgot to add cc for yourself.
1736 To use this, you should set @code{wl-draft-use-cache} to non-nil
1737 so that sent messages are cached.
1740 You can access cached messages fetched via network by accessing
1741 folders named @samp{'cache/00} - @samp{'cache/1F}. 00 - 1F are
1742 the name of the subdirectories of the cache directory
1743 (@file{~/.elmo/cache}).
1746 @node File Folder, , Internal Folder, Folders
1747 @section File folder
1751 @node Folder, Summary, Folders, Top
1752 @chapter Folder mode
1755 After you start Wanderlust, folder mode is appeared firstly.
1756 It contains folder list you subscribed.
1757 You can select and edit folders in this mode.
1760 * Selecting Folder:: Select folder you want to read
1761 * Folder Manager:: Editing folders
1765 @node Selecting Folder, Folder Manager, Folder, Folder
1766 @section Selecting Folder
1767 @cindex Selecting Folder
1769 @subsection Usage (TIPS)
1771 @subsubsection Check new, unread number
1773 Folder mode looks like this.
1774 (In XEmacs, it looks much nicer @t{;-)})
1778 [-]Desktop:14186/35580/67263
1783 [-]Emacsen:0/34/4837
1784 Wanderlust ML:0/0/558
1787 XEmacs Beta:0/29/255
1798 @var{folder-name}:@var{new-number}/@var{unread-number}/@var{all-number}
1802 @kbd{s} key on the folder line updates these numbers.
1803 It changes its color if it has many new messages.
1805 The whole folder mode is a folder group named @samp{Desktop}.
1806 Folder group open/close by return key.
1807 A operation to a folder group is treated as operations on the
1809 For example, when you type @kbd{s} on @samp{[-]Emacsen},
1810 six children folders update its unread number status.
1812 @subsubsection Select Folder
1814 To enter summary mode of the folder, type return (or space) key on
1816 If the variable @code{wl-stay-folder-window} has non-nil value,
1817 summary window appears on the right of the folder mode window.
1819 @subsection Key bindings
1821 Folder mode's key binding (related to selecting folders) is following.
1826 @kindex @key{SPC} (Folder)
1827 @kindex @key{RET} (Folder)
1828 @findex wl-folder-jump-to-current-entity
1829 Enter to the summary mode of the folder at the current cursor point.
1830 With prefix argument, enter the sticky summary.
1831 If the cursor is on the top of folder group line,
1832 the folder group is opened or closed.
1833 When the cursor is on the access group and this command is called
1834 with prefix argument, folder children list is updated to the newest one.
1835 (Children list is updated recursively if the access folder has hierarchical
1837 (@code{wl-folder-jump-to-current-entity})
1840 @kindex M-@key{RET} (Folder)
1841 @findex wl-folder-update-recursive-current-entity
1842 Folder children list of the access group at the current cursor point
1843 is updated to the newest one.
1844 (Children list is updated recursively if the access folder has hierarchical
1846 (@code{wl-folder-update-recursive-current-entity})
1851 Create a new draft message.
1856 @findex wl-folder-write-current-folder
1857 If the current cursor point is on the NNTP folder, create a new draft
1858 message which already has @samp{Newsgroups:} field. If the current
1859 cursor point is on the folder for mailing list (refile destination),
1860 create a new draft message which already has @samp{To:} field with
1861 guessed mailing list address (If @code{wl-subscribed-mailing-list} is
1863 (@code{wl-folder-write-current-folder})
1866 @kindex C-c C-o (Folder)
1867 @findex wl-jump-to-draft-buffer
1868 Move to the draft buffer if available. If multiple draft buffer exists,
1869 moved to one after another. If prefix argument is specified, load draft
1870 folder's message to the draft buffer and jump to it.
1871 (@code{wl-jump-to-draft-buffer})
1875 @findex wl-folder-check-current-entity
1876 Update new and unread number information of the folder at the current
1878 (@code{wl-folder-check-current-entity})
1882 @findex wl-folder-sync-current-entity
1883 Update summary information of the folder at the current cursor point.
1884 (@code{wl-folder-sync-current-entity})
1887 @kindex r s (Folder)
1888 @findex wl-folder-check-region
1889 Update new and unread number information of the folders in the currently
1891 (@code{wl-folder-check-region})
1894 @kindex r S (Folder)
1895 @findex wl-folder-sync-region
1896 Update summary information of the folders in the currently selected region.
1897 (@code{wl-folder-sync-region})
1901 @findex wl-status-update
1902 Sync up address book status with @file{~/.addresses}'s content.
1903 (@code{wl-status-update})
1907 @findex wl-folder-prev-unread
1908 Jump cursor to the folder which have unread messages on the upward from
1909 current cursor point.
1910 (@code{wl-folder-prev-unread})
1914 Jump cursor to the folder which have unread messages on the downward
1915 from current cursor point.
1916 (@code{wl-folder-next-unread})
1920 Move cursor to the folder on the previous line.
1921 (@code{wl-folder-prev-entity})
1925 Move cursor to the folder on the next line.
1926 (@code{wl-folder-next-entity})
1930 Jump to the folder specified by the user input.
1931 (@code{wl-folder-jump-folder})
1935 @findex wl-folder-prefetch-current-entity
1936 Prefetch new messages of the folder at the current cursor point by
1937 @code{wl-summary-incorporate}.
1938 If the cursor is on the folder group, it is executed recursively.
1939 (@code{wl-folder-prefetch-current-entity})
1943 @findex wl-folder-mark-as-read-all-current-entity
1944 Mark all unread messages of the folder at the current cursor point as read.
1945 If the cursor is on the folder group, it is executed recursively.
1946 (@code{wl-folder-mark-as-read-all-current-entity})
1950 @findex wl-folder-goto-first-unread-folder
1951 Enter summary mode of the first unread folder.
1952 (@code{wl-folder-goto-first-unread-folder})
1956 @findex wl-folder-empty-trash
1958 (@code{wl-folder-empty-trash})
1962 @findex wl-folder-flush-queue
1964 (@code{wl-folder-flush-queue})
1968 @findex wl-folder-virtual
1969 Move to the virtual folder (filter folder) with the condition specified.
1970 (@code{wl-folder-virtual})
1974 @findex wl-folder-pick
1975 Search the folders with the condition specified.
1976 (@code{wl-folder-pick})
1980 @findex wl-folder-open-all-unread-folder
1981 All unread folder is opened.
1982 (@code{wl-folder-open-all-unread-folder})
1986 @findex wl-folder-open-close
1987 Folder group is opened/closed.
1988 (@code{wl-thread-open-close})
1992 All folder group is opened.
1993 (@code{wl-folder-open-all})
1997 All folder group is closed.
1998 (@code{wl-folder-close-all})
2008 (@code{wl-folder-suspend})
2011 @kindex M-s (Folder)
2012 Save current folder status.
2016 @kindex M-t (Folder)
2017 Toggle Wanderlust's offline/online status.
2018 (@code{wl-toggle-plugged})
2021 @kindex C-t (Folder)
2022 Start Wanderlust's plug-status manager.
2023 (@code{wl-plugged-change})
2026 @subsection Customize variables
2029 @item wl-folders-file
2030 @vindex wl-folders-file
2031 The initial setting is @file{~/.folders}.
2032 Subscribed folders are described (saved) in this file.
2034 @item wl-folder-info-save
2035 @vindex wl-folder-info-save
2036 The initial setting is @code{t}. If non-nil, unread information is
2037 saved and used in the next Wanderlust session.
2039 @item wl-stay-folder-window
2040 @vindex wl-stay-folder-window
2041 The initial setting is @code{nil}.
2042 If non-nil, summary window is appeared on the right side of the folder buffer.
2044 @item wl-folder-window-width
2045 @vindex wl-folder-window-width
2046 The initial setting is 20.
2047 Folder mode's window width when @code{wl-stay-folder-window} is non-nil.
2049 @item wl-folder-use-frame
2050 @vindex wl-folder-use-frame
2051 The initial setting is @code{nil}.
2052 If non-nil, use new frame for the folder window.
2054 @item wl-folder-many-unsync-threshold
2055 @vindex wl-folder-many-unsync-threshold
2056 The initial setting is 70.
2057 If the number of unread messages is more than this value,
2058 folder color is changed.
2060 @item wl-highlight-folder-by-numbers
2061 @vindex wl-highlight-folder-by-numbers
2062 This option controls how to highlight each line in the folder buffer.
2063 The default value is @code{t}, highlighting with various colors based on
2064 the message numbers. If it is @code{nil}, highlighting with various
2065 colors based on the folder status. In addition, if it is a number
2066 (e.g. 1), highlighting will be done based on both the message numbers
2067 and the folder status.
2069 @item wl-folder-desktop-name
2070 @vindex wl-folder-desktop-name
2071 The initial setting is @samp{Desktop}.
2072 The name of top folder group.
2074 @item wl-folder-petname-alist
2075 @vindex wl-folder-petname-alist
2076 The initial setting is @code{nil}.
2077 An alist of folder's realname and its nickname.
2079 @item wl-folder-access-subscribe-alist
2080 @vindex wl-folder-access-subscribe-alist
2081 The initial setting is @code{nil}.
2083 Control automatic subscribing and unsubscribing of the children list
2089 (@var{regexp-of-access-folder} . (@var{subscribe-flag} @var{regexp-of-folders} @dots{}))
2093 If @var{subscribe-flag} is non-nil, folders which have name matched to
2094 @var{regexp-of-folders} are displayed. Otherwise, hidden. However,
2095 already unsubscribed folder is not displayed even when the
2096 @var{subscribe-flag} is non-nil. Multiple @var{regexp-of-folders} can be
2103 '(("^-fj$" . (t "^-fj\\.\\(comp\\|editor\\|mail\\)"
2104 "^-fj\\.\\(net\\|news\\|os\\|rec\\)"))
2105 ("^-$" . (t "^-\\(fj\\|tnn\\|japan\\|gnu\\|comp\\)"))
2106 ("^\\+ml$" . (nil "^\\+ml$" "^\\+ml/tmp")))
2110 @item wl-folder-hierarchy-access-folders
2111 @vindex wl-folder-hierarchy-access-folders
2112 A list of regular expressions for access groups which creates children
2113 folder list hierarchically.
2115 For example, if you specify
2116 @code{wl-folder-hierarchy-access-folders} like following,
2120 (setq wl-folder-hierarchy-access-folders
2121 '("^-[^\\.]*$" "^-comp.unix$" "^-comp.unix.bsd$"))
2126 you obtain the access group hierarchy as follows.
2132 -fj.comp.announce:0/0/2
2133 -fj.comp.dev.cdrom:0/0/0
2135 [+]-japan:238/238/1688
2138 -comp.unix.admin:0/0/0
2139 -comp.unix.dos-under-unix:0/0/0
2140 -comp.unix.programmer:0/0/0
2141 [-]-comp.unix.bsd:0/0/23
2142 -comp.unix.bsd.freebsd.announce:0/0/0
2147 If you opened @samp{-} in this example, only the direct children is created
2148 (@samp{-fj}, @samp{-japan}, @samp{-tnn}, @dots{}).
2149 second hierarchy (@samp{-fj.comp.announce}, @dots{}, @samp{-comp.unix}, @dots{})
2150 is not created until the children access group is opened.
2154 @node Folder Manager, , Selecting Folder, Folder
2155 @section Editing Folders
2156 @cindex Folder Manager
2157 @cindex Folder, Edit
2158 @cindex Folder, Subscribe
2159 @cindex Folder, Unsubscribe
2161 As described before, subscribed folder list is saved in @file{~/.folders} file.
2162 But you don't have to edit @file{~/.folders} directly.
2163 You can append, delete, edit folders from folder mode.
2165 @subsection Usage (Tips)
2167 @subsubsection Append Folder
2169 @kbd{m a} appends new folder to the folder mode.
2170 @kbd{m g} appends new folder group.
2171 To append new folder to this group, firstly open it,
2172 then execute append command in the next line.
2174 @subsubsection Edit Folder
2176 You can cut folder by @kbd{C-k}, paste by @kbd{C-y}.
2177 Thus, you can change folder position as if you were editing a normal file.
2179 @subsubsection Create Multi Folder.
2183 Type @kbd{m q} to clear @code{wl-fldmgr-cut-entity-list}.
2185 Cut folder by @kbd{C-k} or copy folder by @kbd{M-c}.
2187 Type @kbd{m m}, then you can create multi folder.
2190 @subsubsection Delete Nickname, Filter
2192 You can delete nickname or filter by putting ``''(@var{NULL}) from the
2193 minibuffer while appending.
2195 @subsubsection Append Folder to Empty Group
2197 To append new folder to the empty folder group
2198 (after you create folder group by typing @kbd{m g}),
2199 firstly open it, then execute append command in the next line.
2200 If it is closed, folder is appended on the same level with
2201 the folder group above. It is difficult to explain by words so try it.
2202 In other words, appended position depends on the
2203 open/close status of the upper one.
2205 @subsubsection Charset of the Folders File.
2207 @code{wl-mime-charset} is used for saving @code{wl-folders-file}.
2209 @subsubsection Create Filter
2211 @kbd{m f} adds filter to the folder at the current cursor point. To
2212 create new filter folder and leave the current folder unchanged, copy it
2213 @kbd{M-c}, make filter @kbd{m f} and paste it @kbd{C-y}. Multiple
2214 filter can be specified while appending filter. If you put
2215 ``''(@var{NULL}), filter is deleted.
2217 @subsubsection Sort Folders
2219 Sorting of the folders is executed by the function specified by
2220 @code{wl-fldmgr-sort-function}.
2221 The initial setting is @code{wl-fldmgr-sort-standard},
2222 which sorts alphabetically.
2223 Sorting affects only on the current folder group. It does not
2224 affect on the child groups.
2226 @subsubsection Hiding Folders in the Access Group
2228 Usually, access group displays all children folders, but you can set
2229 some folders hidden. Following operations are only available on access
2232 Command @code{wl-fldmgr-unsubscribe} (@kbd{u}) toggles the visibility
2233 (subscribe/unsubscribe) of the folder at current cursor point. Against
2234 this, @code{wl-fldmgr-unsubscribe-region} (@kbd{U}) hides folders in the
2237 Note that @code{wl-fldmgr-unsubscribe-region} does not toggle while
2238 @code{wl-fldmgr-unsubscribe} toggles. These two commands accept prefix
2239 argument and if the argument has positive number, the unsubscribe it.
2240 If the prefix argument has negative value, folder becomes visible and if
2241 zero, folder visibility is toggled.
2243 The other commands, @code{wl-fldmgr-subscribe} and
2244 @code{wl-fldmgr-subscribe-region} are also prepared (not binded to the
2247 Moreover, if @code{wl-fldmgr-cut} or @code{wl-fldmgr-cut-region} is
2248 executed in the access group, they have a same effect with
2249 @code{wl-fldmgr-unsubscribe} and @code{wl-fldmgr-unsubscribe-region}.
2250 The difference is that cut commands deletes folders from the current
2253 @subsubsection Operations in the Access Group
2255 You can insert and delete folders in the access group like usual folder
2256 group. But insert and delete commands can be only available for the
2257 children folders of the access group and they only sets the subscribe
2258 status. In other words, insertion of the folder means subscribing,
2259 deletion means unsubscribing.
2260 @footnote{In the current implementation,
2261 it is faster to delete region than to unsubscribe region.}
2263 To update the access group when children folders are inserted or deleted
2264 by other way (other than Wanderlust),
2265 open the access group by typing @kbd{C-u @key{RET}}.
2266 @xref{Selecting Folder}.
2268 The order of children folders of access group is saved after
2269 insertion/deletion/sorting.
2270 If you set @code{wl-force-fetch-folders} to non-nil or open access group
2271 by typing @kbd{C-u @key{RET}}, disappeared folders are deleted and
2272 newly created folders are inserted on the top of the access group.
2274 @subsection Key bindings
2275 @cindex Keybind, Folder Mode
2276 @cindex Keybind, Folder Buffer
2278 Key bindings on the folder mode related to folder editing are shown below.
2279 All bindings starts with @kbd{m}, and primary commands are binded to
2280 one stroke key binding.
2284 @kindex m a (Folder)
2285 @findex wl-fldmgr-add
2287 (@code{wl-fldmgr-add})
2292 @kindex m g (Folder)
2293 @findex wl-fldmgr-make-group
2294 Create a folder group.
2295 (@code{wl-fldmgr-make-group})
2298 @kindex m A (Folder)
2299 @findex wl-fldmgr-make-access-group
2300 Create an access group.
2301 (@code{wl-fldmgr-make-access-group})
2304 @kindex m d (Folder)
2305 @findex wl-fldmgr-delete
2306 Delete folder itself and msgdb.
2307 If the folder itself cannot be deleted like NNTP folder,
2308 only msgdb is deleted.
2309 (@code{wl-fldmgr-delete})
2314 @kindex m R (Folder)
2315 @findex wl-fldmgr-rename
2316 Change the name of folder or folder group.
2317 msgdb's path is also changed.
2318 (@code{wl-fldmgr-rename})
2324 @findex wl-fldmgr-make-multi
2325 Create a multi folders in the cutlist (cut, copied folders).
2326 (@code{wl-fldmgr-make-multi})
2331 @kindex m f (Folder)
2332 @findex wl-fldmgr-make-filter
2333 Create a filter folder. (Put a filter on the folder).
2334 (@code{wl-fldmgr-make-filter})
2338 @kindex M-c (Folder)
2339 @kindex m c (Folder)
2340 @findex wl-fldmgr-copy
2341 Copy folder (it is not available on folder group).
2342 (@code{wl-fldmgr-copy})
2346 @kindex M-w (Folder)
2347 @kindex m W (Folder)
2348 @findex wl-fldmgr-copy-region
2349 Copy folders in the specified region.
2350 (@code{wl-fldmgr-copy-region})
2354 @kindex C-k (Folder)
2355 @kindex m k (Folder)
2356 @findex wl-fldmgr-cut
2357 Cut folder. Folder itself is not deleted.
2358 (@code{wl-fldmgr-cut})
2362 @kindex C-w (Folder)
2363 @kindex m C-w (Folder)
2364 @findex wl-fldmgr-cut-region
2365 Cut folders in the specified region.
2366 (@code{wl-fldmgr-cut-region})
2370 @kindex C-y (Folder)
2371 @kindex m y (Folder)
2372 @findex wl-fldmgr-yank
2373 Paste folders that are copied or cut (folders in the cut-list).
2374 (@code{wl-fldmgr-yank})
2377 @kindex m p (Folder)
2378 @findex wl-fldmgr-set-petname
2379 Put nickname on the folder.
2380 (@code{wl-fldmgr-set-petname})
2383 @kindex m q (Folder)
2384 @findex wl-fldmgr-clear-cut-entity-list
2385 Clear the cut-list. (cut, copied folder information is cleared,
2386 you cannot paste after this)
2387 (@code{wl-fldmgr-clear-cut-entity-list})
2390 @kindex m s (Folder)
2391 @findex wl-fldmgr-sort
2392 Sort folders in the current folder group.
2393 (@code{wl-fldmgr-sort})
2396 @kindex m C-s (Folder)
2397 @findex wl-fldmgr-save
2398 Save current folder view to the @file{wl-folders-file}.
2399 (@code{wl-fldmgr-save})
2402 [Following commands are only available on the access groups]
2408 @kindex m u (Folder)
2409 @findex wl-fldmgr-unsubscribe
2410 Set the visibility of folder (subscribe/unsubscribe).
2411 (@code{wl-fldmgr-unsubscribe})
2416 @kindex r u (Folder)
2417 @findex wl-fldmgr-unsubscribe-region
2418 Set the visibility of the folders (subscribe/unsubscribe) in the
2420 (@code{wl-fldmgr-unsubscribe-region})
2425 @kindex m l (Folder)
2426 @findex wl-fldmgr-access-display-normal
2427 List folders that are currently available.
2428 (@code{wl-fldmgr-access-display-normal})
2433 @kindex m L (Folder)
2434 @findex wl-fldmgr-access-display-all
2435 List all folders regardless of the subscription status.
2436 (@code{wl-fldmgr-access-display-all})
2440 @subsection Customize variables
2443 @item wl-interactive-save-folders
2444 @vindex wl-interactive-save-folders
2445 The initial setting is @code{t}. If non-nil and folder view is
2446 modified, confirm saving it before Wanderlust or Emacs exits. If
2447 @code{nil}, save without confirmation.
2449 @item wl-fldmgr-make-backup
2450 @vindex wl-fldmgr-make-backup
2451 The initial setting is @code{t}. If non-nil, @file{~/.folders.bak} is
2452 created before saving the folder status.
2454 @item wl-fldmgr-sort-function
2455 @vindex wl-fldmgr-sort-function
2456 The initial setting is @code{wl-fldmgr-sort-standard}. A function to
2457 sort folders. By default function, folders are sorted alphabetically
2458 and folder group is put on top (when @code{wl-fldmgr-sort-group-first}
2461 @item wl-fldmgr-sort-group-first
2462 @vindex wl-fldmgr-sort-group-first
2463 The initial setting is @code{t}. If non-nil,
2464 @code{wl-fldmgr-sort-standard} precedes folder group. If @code{nil}, it
2465 does not care whether it is folder group or not.
2467 @item wl-folder-check-async
2468 @vindex wl-folder-check-async
2469 The initial setting is @code{t}. If non-nil, check folder's unread
2470 status asynchronously. It boosts newsgroup checking.
2472 @item wl-folder-check-fast
2473 @vindex wl-folder-check-fast
2474 The initial setting is @code{nil}.
2475 If non-nil, it does not update folder status while checking.
2477 @item wl-folder-notify-deleted
2478 @vindex wl-folder-notify-deleted
2479 The initial setting is @code{nil}.
2481 If non-nil, negative value is displayed when the message is deleted. If
2482 @code{sync}, folder is synchronized when the message is deleted. If
2483 @code{nil}, message deletion is ignored.
2485 @item wl-fldmgr-add-complete-with-current-folder-list
2486 @vindex wl-fldmgr-add-complete-with-current-folder-list
2487 The initial setting is @code{nil}.
2488 Non-nil means call @code{elmo-folder-list-subfolders} and get completion
2489 candidate for @code{wl-fldmgr-add}.
2492 @subsection Miscellanea
2494 Following is a note for folder editing.
2498 cut or copy stacks the folder in the @code{wl-fldmgr-cut-entity-list}.
2499 paste(yank) command pastes the folders on one cut or copy command
2500 (If copy command is executed by region, folders in the region are pasted
2501 by one paste command)
2504 You cannot cut @samp{Desktop} group.
2505 Also, you cannot paste folders at the outside of the @samp{Desktop}.
2508 You cannot copy folder group.
2511 Operations on the access group are only available for the folders
2512 in the same access group.
2515 You cannot create a folder which has same name with the folders already exist.
2518 You cannot insert folders which have same name in one group.
2519 You can insert them in the different groups.
2520 You cannot put same nickname to the different folders.
2524 @node Summary, Message, Folder, Top
2525 @chapter Summary Mode
2527 After you select the folder via folder mode, you enter to the summary
2531 * Usage of Summary Mode:: TIPS
2532 * Thread Operations:: Thread operations
2533 * Cache:: File cache, Buffer cache, and Prefetch
2534 * Auto Refile:: Auto refile settings
2535 * Sticky Summary:: Summary make sticky
2536 * Summary View:: Format of summary lines
2537 * Mark and Action:: Temporary marks and their effect
2538 * Key Bindings of Summary:: Key bindings
2539 * Variables of Summary:: Customize Summary Mode
2543 @node Usage of Summary Mode, Thread Operations, Summary, Summary
2544 @section Usage (Tips)
2546 @subsection Summary Content
2548 In the summary mode, messages are displayed like following.
2552 377 09/16(Wed)11:57 [+1: Takuro Kitame ] Bug?
2553 381 09/17(Thu)00:16 [+3: Fujikazu Okuni ] elmo-lha.el -- LHA interface
2554 384 09/17(Thu)01:32 [+1: Yuuichi Terani ] wl-0.6.2
2555 389 N09/18(Fri)01:07 [+2: Yuuichi Terani ] wl-0.6.3
2562 @var{Message number}, @var{Temporal mark}, @var{Persistent mark}, @var{Date}, @var{Sender}, @var{Subject}
2566 If you want to know how to change the format for this, please refer
2567 the section format of Summary lines.
2568 @xref{Summary View}.
2570 @var{Message number} is the message's unique number in the folder. In
2571 the NNTP folder, it is article number, in the IMAP folder, it is UID and
2572 in the MH folder, it is the filename of the message.
2574 @var{Temporal mark} and @var{Persistent mark} are described later.
2576 @var{Date} is displayed like @samp{@var{Month}/@var{Day}(@var{Week
2577 Day})@var{Hour}:@var{Minute}}. Default setting displays week day in
2578 Japanese, but if you want to display it in English, set the value of
2579 @code{wl-summary-weekday-name-lang} as @samp{en}.
2581 @var{Sender}'s indentation corresponds to the depth of the thread.
2582 Sender name is displayed as nickname if it is defined in the address
2583 book. Set @code{wl-use-petname} as @code{nil}, if you want to quit
2584 displaying with nickname.
2586 If number is printed at the head of @var{Sender} part like @samp{+2},
2587 that means the message have 2 follow messages.
2589 @var{Subject} is the @samp{Subject:} header field of the message. If
2590 the message have same @samp{Subject:} with the parent message, it is not
2591 displayed. Some mailing list puts its sequence number in the
2592 @samp{Subject:} field, but it is
2593 ignored. @code{wl-summary-no-subject-message} is displayed when the
2594 message has empty subject field.
2596 @subsection Temporary Marks
2597 @cindex Mark, Temporary
2599 There are four temporary marks,
2600 @samp{*}, @samp{d}, @samp{D}, @samp{o}, @samp{O}, @samp{i} and @samp{~}.
2601 Temporary marks indicates message operations.
2606 You can execute a command on the all messages that have @samp{*} mark,
2607 with the key bindings which begins with @kbd{m}.
2610 The mark to dispose. You can put @samp{d} by typing @kbd{d} key.
2613 The mark to force delete. You can put @samp{D} by typing @kbd{D} key.
2617 After you type @kbd{o} key, prompt appears to input refile destination.
2618 Your answer is printed in the summary line.
2622 You can put this mark by typing @kbd{O} key.
2623 The difference between this mark and refile mark is,
2624 this mark does not delete the message while latter does.
2627 The mark to prefetch reserved.
2628 You can put this mark by typing @kbd{i} key.
2631 The mark to resend reserved.
2632 After you type @kbd{~} key, prompt appears to input address to resend.
2633 Your answer is printed in the summary line.
2636 @kbd{x} key executes action for temporary marks, respectively.
2638 @subsection Persistent Marks
2640 There are five persistent marks, @samp{N}, @samp{?}, @samp{U}, @samp{!},
2641 @samp{u}, @samp{A}, @samp{&} and @samp{$}.
2643 The persistent mark indicates the message's status and it is saved.
2644 Each persistent mark indicates:
2650 It is new but cached message.
2652 It is unread message.
2654 It is unread but cached message.
2656 It is read but it is not cached.
2658 It is already replied message.
2660 It is already replied but cached message.
2662 It is a message with some global flag. It is convenient to put this
2663 mark on the messages to remember (If you want to remember to write a
2664 reply for the message, for example) because this mark remains after
2665 you exited Emacs. Messages with the @samp{$} mark can be reviewed in
2666 the @samp{'flag} folder even the message itself is deleted in the actual
2667 folder. You can put global flag by typing @kbd{$} or @kbd{F} key.
2670 If the message is read and cached (or local message),there are no
2674 @samp{N}, @samp{U}, @samp{u}, @samp{A} indicates that the message have
2675 no cache. Messages with the marks other than these, you can read them
2676 in the offline status even they are in the IMAP folder or netnews
2679 Among messages with persistent marks, ones with marks specified by
2680 @code{wl-summary-expire-reserve-marks} are excluded from the expiration
2681 (as a function of wanderlust) explained later. @xref{Expire and Archive}.
2683 @subsection How To Read
2685 Basically, you can read messages only typing space key again and again.
2687 To update summary status to the newest status (synchronize),
2690 You can jump to next unread message by typing @kbd{N} key, and @kbd{n} key
2691 moves cursor to the next message.
2692 Enter message buffer by typing @kbd{j} key.
2693 To operate multipart, you have to enter to the message buffer.
2696 @subsection Pack the Message Numbers
2697 You can pack the message numbers in Summary by
2698 @kbd{M-x wl-summary-pack-number}. Note that only MH Folder,
2699 News Spool Folder and Maildir Folder are supported folder types.
2702 @node Thread Operations, Cache, Usage of Summary Mode, Summary
2703 @section Thread Operations
2705 For example, the following line indicates one thread (a context of a topic).
2708 384 09/17(Thu)01:32 [+1: Teranishi ] wl-0.6.2
2712 If you type @kbd{/} on this line, the thread is opened and it changes
2713 the appearance like following.
2717 384 09/17(Thu)01:32 [ Teranishi ] wl-0.6.2
2718 388 09/17(Thu)22:34 +-[ Murata san ]
2722 (Message 388 is the replied message to the message 384.)
2723 If you type @kbd{/} key once again, the thread is closed.
2724 With prefix argument, @kbd{/} opens all children threads.
2726 If you type @kbd{[}, opens all threads in summary. @kbd{]} closes all
2729 Commands with the key binding that begins with @kbd{t} executes commands
2730 on the messages in the thread.
2731 @xref{Key Bindings of Summary}.
2733 @subsection reconstruct thread by hand
2735 You can reconstruct the thread manually. In Summary, @kbd{M-w}
2736 (@code{wl-summary-save-current-message}) at the corresponding message,
2737 and @kbd{C-y} (@code{wl-summary-yank-saved-message}) at the new parent
2738 message then you have the reconstructed thread.
2741 @node Cache, Auto Refile, Thread Operations, Summary
2744 @subsection Cache File
2746 The messages which have to access via network (e.x. IMAP, NNTP folder)
2747 are cached as a local file so as to save network traffic or to enable
2748 off-line operation. The cache file is saved under the directory
2749 @file{~/.elmo/cache}. To expire cache, type @kbd{M-x
2750 elmo-cache-expire-by-size}. The command deletes cache files to the
2751 specified size by the order of last accessed time.
2753 @subsection Buffer Cache and Prefetching
2755 The messages that are read are kept in the cache buffer so as to make
2756 the behavior fast when you are to read the message again. It is called
2757 `buffer cache'. The number of cache buffer is specified by
2758 @code{wl-message-buffer-cache-size}.
2760 There are message prefetching mechanism in the Wanderlust that
2761 prefetches next message while you are reading.
2763 You can control the message prefetching mechanism by these two
2767 @item wl-message-buffer-prefetch-folder-type-list
2768 @vindex wl-message-buffer-prefetch-folder-type-list
2769 The initial setting is @code{t}. In this case, prefetch messages in all
2771 If it is a list of folder types, it specifies the folder types in which
2772 message prefetching is enabled.
2773 Following is an example (prefetch messages in nntp and imap4 folders)
2777 (setq wl-message-buffer-prefetch-folder-type-list
2782 In this case, multi folder that contains localdir and imap4 prefetches
2783 only imap4 messages. This variable precedes the value of
2784 @code{wl-message-buffer-prefetch-folder-list}.
2786 @item wl-message-buffer-prefetch-folder-list
2787 @vindex wl-message-buffer-prefetch-folder-list
2788 The initial setting is @code{nil}.
2789 A list of regexp of folders to enable message prefetching.
2791 @item wl-message-buffer-prefetch-depth
2792 @vindex wl-message-buffer-prefetch-depth
2793 The initial setting is 3. The number of messages for automatical prefetch.
2795 @item wl-message-buffer-prefetch-idle-time
2796 @vindex wl-message-buffer-prefetch-idle-time
2797 The initial setting is 0.2 (in seconds). The period of automatical prefetch.
2799 @item wl-message-buffer-prefetch-threshold
2800 @vindex wl-message-buffer-prefetch-threshold
2801 The initial setting is 30000 (bytes). If prefetching message has larger
2802 size than this value, Wanderlust does not prefetch automatically.
2803 If @code{wl-message-buffer-prefetch-threshold} is @code{nil},
2804 the message is not checked for the size.
2806 @item wl-auto-prefetch-first
2807 @vindex wl-auto-prefetch-first
2808 The initial setting is @code{nil}.
2809 If non-nil, first message is automatically prefetched to the buffer
2810 when you enter the folder.
2814 @node Auto Refile, Sticky Summary, Cache, Summary
2815 @section Auto Refile
2816 @vindex elmo-msgdb-extra-fields
2817 @vindex wl-refile-rule-alist
2818 @findex wl-summary-auto-refile
2820 You can refile messages automatically, by typing @kbd{C-o}
2821 (@code{wl-summary-auto-refile}). It decides destination of refile by
2822 the content of the message header information (information in the msgdb).
2824 By default, @samp{From:}, @samp{Subject:}, @samp{To:} and @samp{Cc:} is
2825 available. If you want to decide destination by other header fields,
2826 set the variable @code{elmo-msgdb-extra-fields} like following.
2830 (setq elmo-msgdb-extra-fields
2840 By this setting, Wanderlust saves extra fields in the msgdb. You have
2841 to type @kbd{s all} to get extra fields for the messages that are
2842 already exists in the summary.
2844 Then, specify the refile rule. The refile target folder of auto
2845 refiling is decided by the value of @code{wl-refile-rule-alist}.
2846 @code{wl-refile-rule-alist} is a list of a rule:
2850 (@var{field} (@var{regexp} . @var{target})
2851 (@var{regexp} . @var{target})
2856 Each rule means `if @var{field} value matches @var{regexp},
2857 then refile to @var{target} folder'.
2858 The rule matched first is applied.
2860 @var{field} is a string of field name. You can specify a list of field name
2861 string, too. In this case, if one of these fields is matched, then the
2862 rule is fired (i.e. OR condition).
2864 @var{regexp} is a regular expression for field value. @var{target} is a target
2865 folder string. You can specify a rule at @var{target} part, too. In this
2866 case, If the field value of the rule and the current rule is matched,
2867 then the current rule is fired (i.e. AND condition).
2869 You can refer matched substring of @var{regexp} to specify @var{target} part.
2870 To refer substring, use following keys:
2874 means substitute original matched text.
2877 means substitute what matched the @var{N}th `\(@dots{}\)'.
2878 (@var{N} is a number.)
2881 Following is an example of @code{wl-refile-rule-alist}.
2885 (setq wl-refile-rule-alist
2887 ("^Wanderlust" . "+wl")
2888 ("^Elisp" . "+elisp"))
2890 ("\\([a-z]+\\)@@gohome\\.org" . "+\\1"))
2892 ("me@@gohome\\.org" . ("To" ("you@@gohome\\.org" .
2893 "+from-me-to-you"))))))
2897 After these settings, refile marks are automatically put on the condition
2898 matched messages by typing @kbd{C-o} (@code{wl-summary-auto-refile}).
2900 Messages which have @code{wl-summary-auto-refile-skip-marks} is skipped
2902 By default, @samp{N}, @samp{U} and @samp{!} is specified, so the messages
2903 with these persistent marks are not automatically refiled.
2904 It means Wanderlust does not execute auto refile on unread messages by
2905 the default setting.
2906 To execute auto refile on all messages, set following.
2909 (setq wl-summary-auto-refile-skip-marks nil)
2913 @node Sticky Summary, Summary View, Auto Refile, Summary
2914 @section Sticky Summary
2915 @cindex Summary, Sticky
2916 @cindex Sticky Summary
2918 The buffer of the `sticky summary' does not killed by typing @kbd{q}.
2920 By entering the summary by typing @kbd{Shift RET} in Folder mode or
2921 @kbd{G} in some suummary sticky summary buffer is created.
2922 Also typing @kbd{M-s} (@code{wl-summary-stick}) on the normal summary
2923 makes current one sticky.
2925 The buffer name of the sticky summary becomes like
2926 @samp{Summary:@var{folder-name}}.
2927 You can visit the sticky summary at any time by @kbd{C-x b}
2928 (@code{switch-to-buffer}), or you can go round summary buffers by
2929 @kbd{C-c C-n} (@code{wl-summary-previous-buffer}) and @kbd{C-c C-p}
2930 (@code{wl-summary-next-buffer}) in summary mode.
2932 In sticky summary, the summary buffer is preserved after @kbd{g} or
2933 @kbd{q}. To delete sticky summary, type @kbd{C-u q} to exit or move to
2934 another summary by @kbd{C-u g}. Other operations in the sticky summary
2935 are same as normal summary.
2937 @code{wl-summary-always-sticky-folder-list} specifies the folders that
2938 are automatically stuck.
2941 @node Summary View, Mark and Action, Sticky Summary, Summary
2942 @section Format of summary lines
2943 @cindex Format of summary lines
2944 You can alter the format of lines in Summary mode.
2946 Summary line format is specified by @code{wl-summary-line-format}.
2947 You can use control strings defined by
2948 @code{wl-summary-line-format-spec-alist}.
2954 ;; @r{number temporary-mark persistent-mark date branch}
2955 ;; @r{[ (number-of-children) sender ] subject}
2956 (setq wl-summary-line-format "%n%T%P%M/%D(%W) %t%[%17(%c %f%) %] %s")
2960 Where the number set the column number of the field (for negative value,
2963 Major control strings defined by @code{wl-summary-line-format-spec-alist}
2964 are displayed in the following list.
2975 %t branch of the thread
2976 %[ [ (< for re-connected child)
2977 %] ] (> for re-connected child)
2981 %c +number-of-children: (display only for opened thread)
2982 %C [+number-of-children] (display only for opened thread)
2983 %T temporary mark (mandatory)
2984 %P persistent mark (mandatory)
2988 @code{wl-summary-line-format} must contain temporary mark (@samp{%T})
2989 and persistent mark (@samp{%P}). Furthermore, these marks must appear at
2990 the constant column. For example, if you specify @samp{%T} or
2991 @samp{%P} after the @samp{%t}, which changes its length by thread
2992 position, marks are not treated correctly.
2994 If the format string is enclosed by @samp{%number(} and @samp{%)}, the
2995 column of the enclosed region is justified to the `number'. Multiple
2996 level @samp{%number(} parenthesis can be defined. It is useful to
2997 justify the column of the multiple control strings. For example, in the
2998 above @code{wl-summary-line-format},
3004 means ``Adjust number-of-children and sender string to the 17 column''.
3006 You can specify the format by each folders with
3007 @code{wl-folder-summary-line-format-alist}. Please set regular
3008 expression for folder names and summary line format as the following
3013 (setq wl-folder-summary-line-format-alist
3014 '(("^%" . "%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s")
3015 ("^+" . "%n%T%P%M/%D %[ %17f %] %t%C%s")))
3019 @subsection on the format for sender name
3021 The format string @samp{%f} displays the return value of the function specified
3022 by @code{wl-summary-from-function}. If you use the function
3023 @code{wl-summary-default-from} (default), it displays sender name ordinarily,
3024 while displays the recipient names if the folder name matches with
3025 @code{wl-summary-showto-folder-regexp} and the sender is yourself.
3026 If the value of @code{wl-use-petname} is Non-nil, it uses petname to display.
3028 For example, to display recipient names for the message in @samp{+backup} if
3029 its sender is yourself, set up as follows.
3032 (setq wl-summary-showto-folder-regexp "^\\+backup$")
3036 @node Mark and Action, Key Bindings of Summary, Summary View, Summary
3037 @section Temporary marks and their effect
3038 @cindex Mark and Action
3040 You can define temporary marks and corresponding procedure by
3041 @code{wl-summary-mark-action-list}. Initially, refile (@samp{o}), copy
3042 (@samp{O}), dispose (@samp{d}), delete (@samp{D}), prefetch (@samp{i})
3043 and resend (@samp{~}) are defined.
3045 Each element of @code{wl-summary-mark-action-list} consists of
3048 (@samp{MARK} @samp{SYMBOL}
3049 @samp{ARGUMENT-FUNCTION} @samp{SET-MARK-FUNCTION} @samp{EXEC-FUNCTION}
3050 @samp{FACE} @samp{DOC-STRING})
3053 @samp{MARK} is a temporary mark string, and @samp{SYMBOL} is the name of
3054 the action to be defined. @samp{ARGUMENT-FUNCTION} is a function to
3055 generate argument to be given to @samp{SET-MARK-FUNCTION}, which will be
3056 described next, and it takes arguments:
3059 (@samp{ACTION} @samp{NUMBER})
3062 Where @samp{ACTION} equals to @samp{SYMBOL}, and @samp{NUMBER} is message
3063 number. @samp{SET-MARK-FUNCTION} is a function to be called when the mark
3064 is put. It takes arguments:
3067 (@samp{NUMBER} @samp{MARK} @samp{DATA})
3070 Where @samp{NUMBER} is target message number, @samp{MARK} is a temporary
3071 mark string, and @samp{DATA} is given by @samp{ARGUMENT-FUNCTION}.
3073 @samp{EXEC-FUNCTION} is a function to be called when the action is
3074 executed. Its argument is a list of @samp{MARK-INFO}. Here @samp{MARK-INFO}
3075 means a list consists of
3078 (@samp{NUMBER} @samp{MARK} @samp{DATA})
3081 @samp{FACE} is a face to be used for highlighting.
3084 @node Key Bindings of Summary, Variables of Summary, Mark and Action, Summary
3085 @section Key bindings
3086 @cindex Keybind, Summary Mode
3087 @cindex Keybind, Summary Buffer
3089 Key bindings of the summary mode are shown below.
3093 @kindex @key{SPC} (Summary)
3094 @findex wl-summary-read
3095 Proceed reading a message at the current cursor point.
3096 (@code{wl-summary-read})
3100 @findex wl-summary-redisplay
3101 Redisplay a message at the current cursor point.
3102 If this command is called with prefix argument,
3103 Redisplay message regardless of the message cache (message is re-loaded
3105 (@code{wl-summary-redisplay})
3109 @findex wl-summary-display-top
3110 Display the top message in the folder.
3111 (@code{wl-summary-display-top})
3115 @findex wl-summary-display-bottom
3116 Display the bottom message in the folder.
3117 (@code{wl-summary-display-bottom})
3121 @kindex @key{BS} (Summary)
3122 @kindex @key{DEL} (Summary)
3123 Display the previous page of the message at the current cursor point.
3124 @findex wl-summary-prev-page
3125 (@code{wl-summary-prev-page})
3128 @kindex @key{RET} (Summary)
3129 @findex wl-summary-next-line-content
3130 Display the next line of the message at the current cursor point.
3131 Display the message at the current cursor point if it is not displayed yet.
3132 (@code{wl-summary-next-line-content})
3137 @kindex M-@key{RET} (Summary)
3138 @findex wl-summary-prev-line-content
3139 Display the previous line of the message at the current cursor point.
3140 Display the message at the current cursor point if it is not displayed yet.
3141 (@code{wl-summary-prev-line-content})
3145 @findex wl-thread-open-close
3146 Toggle open or close the thread at the current cursor point.
3147 (@code{wl-thread-open-close})
3152 @findex wl-thread-open-all
3153 (@code{wl-thread-open-all})
3158 @findex wl-thread-close-all
3159 (@code{wl-thread-close-all})
3163 @findex wl-summary-goto-folder
3165 (@code{wl-summary-goto-folder})
3169 Mark all messages in the folder as read.
3170 @findex wl-summary-mark-as-read-all
3171 (@code{wl-summary-mark-as-read-all})
3175 @findex wl-summary-reply
3176 Prepare a draft for reply the message at the current cursor point.
3177 (@code{wl-summary-reply})
3181 @findex wl-summary-reply-with-citation
3182 Prepare a draft for reply the message at the current cursor point.
3183 (@code{wl-summary-reply-with-citation})
3187 @findex wl-summary-cancel-message
3188 If the message at current cursor point is your own netnews article,
3190 (@code{wl-summary-cancel-message})
3194 @findex wl-summary-reedit
3195 Prepare a draft for re-editing the message at current cursor point.
3196 If the message at current cursor point is your own netnews article,
3197 a draft for `supersedes message' for the message is prepared.
3198 (@code{wl-summary-reedit})
3201 @kindex M-E (Summary)
3202 @findex wl-summary-resend-bounced-mail
3203 If the message at current cursor point is a bounced message,
3204 a draft for re-sending original message is prepared.
3205 (@code{wl-summary-resend-bounced-mail})
3209 @findex wl-summary-forward
3210 A draft for forwarding the message at current cursor point is prepared.
3211 (@code{wl-summary-forward})
3215 @findex wl-summary-mark-as-important
3216 Put @samp{important} flag on the message at current cursor point.
3217 If already flagged as @samp{important}, remove the flag. If it is
3218 called with prefix argument, ask global flag to put similarly to @kbd{F}.
3219 (@code{wl-summary-mark-as-important})
3223 @findex wl-summary-set-flags
3224 Put arbitrary global flag entered in the minibuffer. If you use Emacs
3225 21 or later, you can specify multiple flags separated by @samp{,}
3226 simultaneously. If it is called with prefix argument, remove existent
3228 (@code{wl-summary-set-flags})
3234 Save the message at current cursor point.
3235 @findex wl-summary-save
3236 (@code{wl-summary-save})
3240 @findex wl-summary-next
3241 Move cursor to the next message.
3242 If message is marked with a temporal mark in
3243 @code{wl-summary-skip-mark-list}, cursor is not moved to it.
3244 In the offline mode, cursor is not moved to the messages which are not cached
3246 (@code{wl-summary-next})
3250 @findex wl-summary-prev
3251 Move cursor to the previous message.
3252 If message is marked with a temporal mark in
3253 @code{wl-summary-skip-mark-list}, cursor is not moved to it.
3254 In the offline mode, cursor is not moved to the messages which are not cached
3256 (@code{wl-summary-prev})
3260 @findex wl-summary-down
3261 Move cursor to the downward message which is unread or marked
3263 In the offline mode, cursor is not moved to the messages which are not cached
3265 If there are messages which have target mark @samp{*} in the summary,
3266 cursor is moved to the downward message which have a target mark.
3267 This behavior is changed according to the value of @code{wl-summary-move-order}.
3268 (@code{wl-summary-down})
3272 @findex wl-summary-up
3273 Move cursor to the upward message which is unread or marked
3275 In the offline mode, cursor is not moved to the messages which are not cached
3277 If there are messages which have target mark @samp{*} in the summary,
3278 cursor is moved to the downward message which have a target mark.
3279 This behavior is changed according to the value of @code{wl-summary-move-order}.
3280 (@code{wl-summary-up})
3284 @findex wl-summary-write
3285 Prepare a new draft.
3286 (@code{wl-summary-write})
3290 @findex wl-summary-write-current-folder
3291 Prepare a new draft. If the current folder is NNTP folder,
3292 @samp{Newsgroups:} field is completed. If the current folder is mailing
3293 list folder (refile destination), guess @samp{To:} field and completed
3294 (If @code{wl-subscribed-mailing-list} is valid list)
3295 (@code{wl-summary-write-current-folder})
3299 @findex wl-summary-redisplay-all-header
3300 Redisplay the message at current cursor point with all header fields.
3301 (@code{wl-summary-redisplay-all-header})
3305 @findex wl-summary-redisplay-no-mime
3306 Redisplay the message at current cursor point without MIME analysis.
3307 (@code{wl-summary-redisplay-no-mime})
3311 @findex wl-summary-burst
3312 If the message at current cursor point has
3313 encapsulates multiple messages using MIME,
3314 de-capsulate and extract them on the current folder.
3315 If it is invoked in non-writable folder or it is called with prefix
3316 argument, it asks the destination folder.
3317 (@code{wl-summary-burst})
3320 @kindex @@ (Summary)
3321 @findex wl-summary-edit-addresses
3322 Append/change/delete the message's sender information to the address
3323 book @file{~/.addresses} interactively. If this command is called with
3324 prefix argument, arbitrary address can be edited.
3325 (@code{wl-summary-edit-petname})
3329 @findex wl-status-update
3330 Sync up address book status with @file{~/.addresses}'s content.
3331 (@code{wl-status-update})
3335 @findex wl-summary-pipe-message
3336 Pipe current message's content to the external process.
3337 (@code{wl-summary-pipe-message})
3341 @findex wl-summary-print-message
3342 Print out current message's content.
3343 It uses @code{ps-print} module in Emacs 20.x.
3344 If you don't use color printer, you might want to set
3345 @code{wl-ps-print-buffer-function} to @code{ps-print-buffer}.
3348 (setq wl-ps-print-buffer-function 'ps-print-buffer)
3351 (@code{wl-summary-print-message})
3355 @findex wl-summary-exit
3356 Exit current folder.
3357 (@code{wl-summary-exit})
3361 @findex wl-summary-jump-to-current-message
3362 Jump cursor to the currently displayed message's window.
3363 (@code{wl-summary-jump-to-current-message})
3367 Jump cursor to the other message.
3368 @findex wl-summary-jump-to-msg
3369 (@code{wl-summary-jump-to-msg})
3373 Update summary status and
3374 prefetch all messages which have marks included in the
3375 @code{wl-summary-incorporate-marks}.
3376 @findex wl-summary-incorporate
3377 (@code{wl-summary-incorporate})
3380 @kindex M-j (Summary)
3381 @findex wl-summary-jump-to-msg-by-message-id
3382 Jump cursor to the message which have specified @samp{Message-Id:}. If
3383 @code{elmo-use-database} is non-nil, other folder is also searched.
3384 (@code{wl-summary-jump-to-msg-by-message-id})
3388 Jump to parent message.
3389 @findex wl-summary-jump-to-parent-message
3390 (@code{wl-summary-jump-to-parent-message})
3394 @findex wl-summary-mark-as-unread
3395 Mark as unread the message at current cursor point.
3396 (@code{wl-summary-mark-as-unread})
3400 @findex wl-summary-sync
3401 Synchronize summary view after prompting the update range.
3402 You can specify one of the follows.
3406 all Discard present msgdb and retrieve all informations.
3407 Do not retrieve killed messages.
3408 all-entirely Discard present msgdb and retrieve all informations.
3409 Retrieve killed messages, too.
3410 update Update the difference between informations in present
3411 msgdb and in current folder instance.
3412 Do not retrieve killed messages.
3413 update-entirely Update the difference between informations in present
3414 msgdb and in current folder instance.
3415 Retrieve killed messages, too.
3416 rescan Redisplay summary by rescanning present msgdb.
3417 rescan-noscore Redisplay summary by rescanning present msgdb.
3418 Display messages killed by score, too.
3419 cache-status Sync the all marks with the real status of cache.
3422 first:NUM Move to the filter folder(partial filter).
3423 last:NUM Move to the filter folder(partial filter).
3428 (@code{wl-summary-sync})
3432 @findex wl-summary-sort
3434 You can sort by @samp{date}, @samp{from}, @samp{number} and @samp{subject}.
3435 (@code{wl-summary-sort})
3439 @findex wl-summary-toggle-thread
3440 Toggle the threading. The state will be preserved after exiting
3441 Wanderlust. You can alter default state for newly created summary
3442 by @code{wl-summary-default-view} or @code{wl-summary-default-view-alist}.
3443 Threading status is displayed on the modeline.
3444 @samp{@{S@}} means threading is off (Sequence) and
3445 @samp{@{T@}} means threading is on (Thread).
3446 (@code{wl-summary-toggle-thread})
3450 @findex wl-summary-toggle-disp-folder
3451 Toggle displaying of folder window.
3452 (@code{wl-summary-toggle-disp-folder})
3456 Toggle displaying of message window.
3457 @findex wl-summary-toggle-disp-msg
3458 (@code{wl-summary-toggle-disp-msg})
3462 Move to the virtual folder (filter folder) with the condition specified.
3463 If called with prefix argument and current folder is virtual, exit it.
3464 @findex wl-summary-virtual
3465 (@code{wl-summary-virtual})
3468 @kindex @key{TAB} (Summary)
3469 @findex wl-summary-goto-last-displayed-msg
3470 Jump to the message which is displayed last.
3471 (@code{wl-summary-goto-last-displayed-msg})
3475 Put @samp{*} mark on the messages that satisfies the specified condition.
3476 @findex wl-summary-pick
3477 (@code{wl-summary-pick})
3481 @findex wl-summary-mark-as-read
3482 Mark as read the message at the current cursor point.
3483 (@code{wl-summary-mark-as-read})
3487 Execute action for all temporary marks in the summary buffer.
3488 @findex wl-summary-exec
3489 (@code{wl-summary-exec})
3493 @findex wl-summary-target-mark-line
3494 Put target mark on the message at the current cursor point.
3495 (@code{wl-summary-target-mark-line}) @xref{Mark and Action}.
3499 Put refile mark on the message at the current cursor point.
3500 @findex wl-summary-refile
3501 (@code{wl-summary-refile}) @xref{Mark and Action}.
3504 @kindex C-o (Summary)
3505 Execute auto refile.
3506 @findex wl-summary-auto-refile
3507 (@code{wl-summary-auto-refile})
3511 Put copy mark on the message at the current cursor point.
3512 @findex wl-summary-copy
3513 (@code{wl-summary-copy}) @xref{Mark and Action}.
3516 @kindex M-o (Summary)
3517 Put refile mark on the message at the current cursor point with the destination
3518 previously specified.
3519 @findex wl-summary-refile-prev-destination
3520 (@code{wl-summary-refile-prev-destination})
3524 @findex wl-summary-dispose
3525 Put disposal mark on the message at the current cursor point.
3526 The result of disposal is controlled by @code{wl-dispose-folder-alist},
3527 refiled to @code{wl-trash-folder} by default.
3528 (@code{wl-summary-dispose}) @xref{Mark and Action}.
3532 @findex wl-summary-delete
3533 Put force deletion mark on the message at the current cursor point.
3534 (@code{wl-summary-delete}) @xref{Mark and Action}.
3538 Put prefetch reservation mark on the message at the current cursor point.
3539 @findex wl-summary-prefetch
3540 (@code{wl-summary-prefetch}) @xref{Mark and Action}.
3544 @findex wl-summary-resend
3545 Put resend reservation mark on the message at the current cursor point.
3546 (@code{wl-summary-resend}) @xref{Mark and Action}.
3550 @findex wl-summary-unmark
3551 Unmark the temporal mark on the message at the current cursor point.
3552 (@code{wl-summary-unmark})
3556 Unmark all the temporal marks.
3557 @findex wl-summary-unmark-all
3558 (@code{wl-summary-unmark-all})
3561 @kindex r R (Summary)
3562 @findex wl-summary-mark-as-read-region
3563 Mark as read messages in the specified region.
3564 (@code{wl-summary-mark-as-read-region})
3567 @kindex r $ (Summary)
3568 @findex wl-summary-mark-as-important-region
3569 Put @samp{important} flag on messages in the specified region.
3570 If already flagged as @samp{important}, remove the flag.
3571 (@code{wl-summary-mark-as-important-region})
3574 @kindex r F (Summary)
3575 @findex wl-summary-set-flags-region
3576 Put arbitrary global flag entered in the minibuffer on messages in
3578 (@code{wl-summary-set-flags-region})
3581 @kindex r ! (Summary)
3582 @findex wl-summary-mark-as-unread-region
3583 Mark as unread messages in the specified region.
3584 (@code{wl-summary-mark-as-unread-region})
3587 @kindex r x (Summary)
3588 @findex wl-summary-exec-region
3589 Execute action for each temporary marks on the messages in the
3591 (@code{wl-summary-exec-region})
3594 @kindex r * (Summary)
3595 @findex wl-summary-target-mark-region
3596 Put target mark on the messages in the specified region.
3597 (@code{wl-summary-target-mark-region}) @xref{Mark and Action}.
3600 @kindex r o (Summary)
3601 @findex wl-summary-refile-region
3602 Put refile mark on the messages in the specified region.
3603 (@code{wl-summary-refile-region}) @xref{Mark and Action}.
3606 @kindex r O (Summary)
3607 @findex wl-summary-copy-region
3608 Put copy mark on the messages in the specified region.
3609 (@code{wl-summary-copy-region}) @xref{Mark and Action}.
3612 @kindex r d (Summary)
3613 @findex wl-summary-dispose-region
3614 Put disposal mark on the messages in the specified region.
3615 (@code{wl-summary-dispose-region}) @xref{Mark and Action}.
3618 @kindex r D (Summary)
3619 @findex wl-summary-delete-region
3620 Put force deletion mark on the messages in the specified region.
3621 (@code{wl-summary-delete-region}) @xref{Mark and Action}.
3624 @kindex r i (Summary)
3625 @findex wl-summary-prefetch-region
3626 Put prefetch reservation mark on messages in the specified region.
3627 (@code{wl-summary-prefetch-region}) @xref{Mark and Action}.
3630 @kindex r u (Summary)
3631 @findex wl-summary-unmark-region
3632 Delete temporal mark on the messages in the specified region.
3633 (@code{wl-summary-unmark-region})
3636 @kindex r y (Summary)
3637 Save messages in the specified region.
3638 @findex wl-summary-save-region
3639 (@code{wl-summary-save-region})
3642 @kindex t R (Summary)
3643 @findex wl-thread-mark-as-read
3644 Mark as read messages which are the descendant of the current thread.
3645 With prefix argument, it affects on the all messages in the thread tree.
3646 (@code{wl-thread-mark-as-read})
3649 @kindex t $ (Summary)
3650 @findex wl-thread-mark-as-important
3651 Put @samp{important} flag on the messages which are the descendant of
3652 the current thread. If already flagged as @samp{important}, remove the
3653 flag. With prefix argument, it affects on the all messages in the
3655 (@code{wl-thread-mark-as-important})
3658 @kindex t F (Summary)
3659 @findex wl-thread-set-flags
3660 Put arbitrary global flag entered in the minibuffer on the messages
3661 which are the descendant of the current thread. With prefix argument,
3662 it affects on the all messages in the thread tree.
3663 (@code{wl-thread-set-flags})
3666 @kindex t ! (Summary)
3667 @findex wl-thread-mark-as-unread
3668 Mark as unread messages which are the descendant of the current thread.
3669 With prefix argument, it affects on the all messages in the thread tree.
3670 (@code{wl-thread-mark-as-unread})
3673 @kindex t x (Summary)
3674 @findex wl-thread-exec
3675 Execute action for temporary marks on the messages which are
3676 the descendant of the current thread. With prefix argument, it affects
3677 on the all messages in the thread tree.
3678 (@code{wl-thread-exec})
3681 @kindex t * (Summary)
3682 @findex wl-thread-target-mark
3683 Put target mark @samp{*} on the messages which are the descendant of the
3684 current thread. With prefix argument, it affects on the all messages in
3686 (@code{wl-thread-target-mark}) @xref{Mark and Action}.
3689 @kindex t o (Summary)
3690 @findex wl-thread-refile
3691 Put refile mark on the messages which are the descendant of the current thread.
3692 With prefix argument, it affects on the all messages in the thread tree.
3693 (@code{wl-thread-refile}) @xref{Mark and Action}.
3696 @kindex t O (Summary)
3697 @findex wl-thread-copy
3698 Put copy mark on the messages which are the descendant of the current thread.
3699 With prefix argument, it affects on the all messages in the thread tree.
3700 (@code{wl-thread-copy}) @xref{Mark and Action}.
3703 @kindex t d (Summary)
3704 @findex wl-thread-dispose
3705 Put disposal mark on the messages which are the descendant of the current thread.
3706 With prefix argument, it affects on the all messages in the thread tree.
3707 (@code{wl-thread-dispose}) @xref{Mark and Action}.
3710 @kindex t D (Summary)
3711 @findex wl-thread-delete
3712 Put force deletion mark on the messages which are the descendant of the
3714 (@code{wl-thread-delete}) @xref{Mark and Action}.
3717 @kindex t i (Summary)
3718 @findex wl-thread-prefetch
3719 Put prefetch reservation mark on messages which are the descendant of
3721 (@code{wl-thread-prefetch}) @xref{Mark and Action}.
3724 @kindex t u (Summary)
3725 @findex wl-thread-unmark
3726 Unmark temporal mark on the messages which are the descendant of the
3727 current thread. With prefix argument, it affects on the all messages in
3729 (@code{wl-thread-unmark})
3732 @kindex t y (Summary)
3733 @findex wl-thread-save
3734 Save messages which are the descendant of the current thread.
3735 With prefix argument, it affects on the all messages in the thread tree.
3736 (@code{wl-thread-save})
3739 @kindex m R (Summary)
3740 @findex wl-summary-target-mark-mark-as-read
3741 Mark as read all messages which have target mark @samp{*}.
3742 (@code{wl-summary-target-mark-mark-as-read})
3745 @kindex m $ (Summary)
3746 @findex wl-summary-target-mark-mark-as-important
3747 Put @samp{important} flag on all messages which have target mark @samp{*}.
3748 If already flagged as @samp{important}, remove the flag.
3749 (@code{wl-summary-target-mark-mark-as-important})
3752 @kindex m F (Summary)
3753 @findex wl-summary-target-mark-set-flags
3754 Put arbitrary global flag entered in the minibuffer on all messages
3755 which have target mark @samp{*}.
3756 (@code{wl-summary-target-mark-set-flags})
3759 @kindex m ! (Summary)
3760 @findex wl-summary-target-mark-mark-as-unread
3761 Mark as unread all messages which have target mark @samp{*}.
3762 (@code{wl-summary-target-mark-mark-as-unread})
3765 @kindex m o (Summary)
3766 @findex wl-summary-target-mark-refile
3767 Put refile mark on the messages which have target mark @samp{*}.
3768 (@code{wl-summary-target-mark-refile}) @xref{Mark and Action}.
3771 @kindex m O (Summary)
3772 @findex wl-summary-target-mark-copy
3773 Put copy mark on the messages which have target mark @samp{*}.
3774 (@code{wl-summary-target-mark-copy}) @xref{Mark and Action}.
3777 @kindex m d (Summary)
3778 @findex wl-summary-target-mark-dispose
3779 Put disposal mark on the messages which have target mark @samp{*}.
3780 (@code{wl-summary-target-mark-dispose}) @xref{Mark and Action}.
3783 @kindex m D (Summary)
3784 @findex wl-summary-target-mark-delete
3785 Put force deletion mark on the messages which have target mark @samp{*}.
3786 (@code{wl-summary-target-mark-delete}) @xref{Mark and Action}.
3789 @kindex m i (Summary)
3790 @findex wl-summary-target-mark-prefetch
3791 Put prefetch reservation mark on messages which have target mark @samp{*}.
3792 (@code{wl-summary-target-mark-prefetch}) @xref{Mark and Action}.
3795 @kindex m y (Summary)
3796 @findex wl-summary-target-mark-save
3797 Save messages which have target mark @samp{*}.
3798 (@code{wl-summary-target-mark-save})
3801 @kindex m u (Summary)
3802 Unmark all temporal marks.
3803 (@code{wl-summary-delete-all-temp-marks})
3804 @findex wl-summary-delete-all-temp-marks
3807 @kindex m a (Summary)
3808 Put target mark @samp{*} on the all messages.
3809 (@code{wl-summary-target-mark-all})
3810 @findex wl-summary-target-mark-all
3813 @kindex m t (Summary)
3814 Put target mark @samp{*} on the messages in the current thread.
3815 @findex wl-summary-target-mark-thread
3816 (@code{wl-summary-target-mark-thread})
3819 @kindex m r (Summary)
3820 @findex wl-summary-target-mark-region
3821 Put target mark @samp{*} on the messages in the specified region.
3822 (@code{wl-summary-target-mark-region})
3825 @kindex m A (Summary)
3826 @findex wl-summary-target-mark-reply-with-citation
3827 Prepare a draft which cites all messages which have target mark @samp{*}.
3828 (@code{wl-summary-target-mark-reply-with-citation})
3831 @kindex m f (Summary)
3832 @findex wl-summary-target-mark-forward
3833 Prepare a draft which forwards all messages which have target mark @samp{*}.
3834 (@code{wl-summary-target-mark-forward})
3837 @kindex m U (Summary)
3838 @findex wl-summary-target-mark-uudecode
3839 Uudecode the messages which have target mark @samp{*}.
3840 (@code{wl-summary-target-mark-uudecode})
3843 @kindex m ? (Summary)
3844 @findex wl-summary-target-mark-pick
3845 Pick messages from the @samp{*} marked messages.
3846 That is, @samp{*} marks on the messages are remained
3847 if the specified condition is satisfied.
3848 (@code{wl-summary-target-mark-pick})
3851 @kindex m # (Summary)
3852 @findex wl-summary-target-mark-print
3853 Print out all messages which have target mark @samp{*}.
3854 (@code{wl-summary-target-mark-print})
3857 @kindex m | (Summary)
3858 @findex wl-summary-target-mark-pipe
3859 Pipe content of each message with target mark @samp{*} to some specified
3861 (@code{wl-summary-target-mark-pipe})
3864 @kindex M-t (Summary)
3865 @findex wl-toggle-plugged
3866 Toggle offline/online status of Wanderlust.
3867 (@code{wl-toggle-plugged})
3870 @kindex C-t (Summary)
3871 Start Wanderlust's plug-status manager.
3872 (@code{wl-plugged-change})
3875 @kindex C-c C-o (Summary)
3876 @findex wl-jump-to-draft-buffer
3877 Move to the draft buffer if available. If multiple draft buffer exists,
3878 moved to one after another. If prefix argument is specified, load draft
3879 folder's message to the draft buffer and jump to it.
3880 (@code{wl-jump-to-draft-buffer})
3883 @kindex M-w (Summary)
3884 @findex wl-summary-save-current-message
3885 Save the message at the current cursor point.
3886 (@code{wl-summary-save-current-message})
3889 @kindex C-y (Summary)
3890 @findex wl-summary-yank-saved-message
3891 Regard the message at the current cursor point as
3892 parent, connect the message saved by
3893 @code{wl-summary-save-current-message}
3895 (@code{wl-summary-yank-saved-message})
3898 @kindex C-x C-s (Summary)
3899 @findex wl-summary-save-status
3900 Save the current summary.
3901 (@code{wl-summary-save-status})
3905 @node Variables of Summary, , Key Bindings of Summary, Summary
3906 @section Customiziable variables
3909 @item wl-summary-move-order
3910 @vindex wl-summary-move-order
3911 The initial setting is @code{unread}. Specify cursor moving policy. If
3912 you want to precede new messages, set @code{new}. If you want to
3913 precede unread messages, set @code{unread}. If @code{nil}, proceed to
3916 @item wl-auto-select-first
3917 @vindex wl-auto-select-first
3918 The initial setting is @code{nil}.
3919 If non-nil, first message is automatically displayed when you enter
3922 @item wl-auto-select-next
3923 @vindex wl-auto-select-next
3924 The initial setting is @code{nil}. This controls behavior when there is
3925 no unread message in current summary.
3928 nil: asks whether you want to go back to folder mode
3929 'unread: asks whether you want to go to next unread folder
3930 If the next one comes to be possessing no unread message
3931 by treatment of cross-posted messages or Scoring, then
3932 asks whether you want to go to next to next folder.
3933 'skip-no-unread: similar as unread
3934 But does not ask before going to next to next folder.
3935 otherwise: asks whether you want to go to next unread folder
3938 It might be useful to set @code{'skip-no-unread} for people who
3939 want to continue reading by just pressing and pressing space key.
3941 @item wl-thread-insert-opened
3942 @vindex wl-thread-insert-opened
3943 The initial setting is @code{nil}.
3944 If non-nil, thread is inserted as opened.
3946 @item wl-thread-open-reading-thread
3947 @vindex wl-thread-open-reading-thread
3948 The initial setting is @code{t}. If non-nil, reading thread is
3949 automatically opened though it is closed thread.
3951 @item wl-summary-exit-next-move
3952 @vindex wl-summary-exit-next-move
3953 The initial setting is @code{t}. If non-nil, move to next folder at
3956 @item wl-folder-move-cur-folder
3957 @vindex wl-folder-move-cur-folder
3958 The initial setting is @code{nil}. If non-nil, cursor position on the
3961 @item wl-summary-weekday-name-lang
3962 @vindex wl-summary-weekday-name-lang
3963 Specify language of the weekday.
3964 @samp{en} displays English, @samp{fr} displays French, @samp{de}
3965 displays Deutsch. You should rescan summary view after changing this value.
3967 @item wl-summary-fix-timezone
3968 @vindex wl-summary-fix-timezone
3969 The initial setting is @code{nil}.
3970 Time zone of the date string in summary mode is adjusted using this value.
3971 If @code{nil}, it is adjust to the default time zone information
3972 (system's default time zone or environment variable @samp{TZ}).
3974 @item wl-use-petname
3975 @vindex wl-use-petname
3976 The initial setting is @code{t}.
3977 If non-nil, sender part displays nickname.
3979 @item wl-break-pages
3980 @vindex wl-break-pages
3981 The initial setting is @code{t}.
3982 If non-nil, message is split as pages by @samp{^L}.
3984 @item wl-message-window-size
3985 @vindex wl-message-window-size
3986 The initial setting is '(1 . 4).
3987 A cons cell to specify the rate of summary and message window.
3988 car:cdr corresponds summary:message.
3990 @item wl-summary-from-function
3991 @vindex wl-summary-from-function
3992 Format function to display sender in summary.
3993 The initial setting is @code{wl-summary-default-from}.
3995 @item wl-summary-no-from-message
3996 @vindex wl-summary-no-from-message
3997 The initial setting is @samp{nobody@@nowhere?}. A string which is
3998 displayed when there's no @samp{From:} field in the message.
4000 @item wl-summary-subject-function
4001 @vindex wl-summary-subject-function
4002 Format function to display subject in summary.
4003 The initial setting is @code{wl-summary-default-subject} and
4004 it will cut the list name part etc. on the top of the subject.
4005 To display subject as it is, set as follows.
4008 (setq wl-summary-subject-function 'identity)
4011 @item wl-summary-no-subject-message
4012 @vindex wl-summary-no-subject-message
4013 The initial setting is @samp{(WL:No Subject in original.)}. A string
4014 which is displayed when there's no @samp{Subject:} field in the message.
4016 @item wl-summary-default-view
4017 @vindex wl-summary-default-view
4018 The initial setting is @code{'thread}.
4019 The default state for newly created summary. You can set either
4020 @code{'thread} for thread view or @code{'sequence} for sequential view.
4022 @item wl-summary-use-frame
4023 @vindex wl-summary-use-frame
4024 The initial setting is @code{nil}.
4025 If non-nil, use new frame for the summary.
4027 @item wl-use-folder-petname
4028 @vindex wl-use-folder-petname
4029 The initial setting is the list shown below:
4038 A list of display policy (symbol) of folder nickname. Available symbols
4043 Display folder petname on modeline.
4045 Destination folder is notified as nickname if
4046 @code{wl-auto-select-next} is non-nil.
4048 You can input folder name by nickname in the function
4049 @code{wl-summary-read-folder}.
4052 @item wl-summary-move-direction-toggle
4053 @vindex wl-summary-move-direction-toggle
4054 The initial setting is @code{t}. If non-nil, last executed @kbd{p},
4055 @kbd{P}, @kbd{n}, @kbd{N} toggles the direction of cursor move. If you
4056 want to aware of reading direction, set this to @code{t}.
4058 @item wl-summary-width
4059 @vindex wl-summary-width
4060 The initial setting is 80.
4061 Width of summary line. If @code{nil}, summary line's width is as is.
4063 @item wl-summary-print-argument-within-window
4064 @vindex wl-summary-print-argument-within-window
4065 The initial setting is @code{nil}.
4066 If non-nil, the action argument is always printed on right side of
4069 @item wl-summary-indent-length-limit
4070 @vindex wl-summary-indent-length-limit
4071 The initial setting is 46.
4072 Specify the limit of thread indent level. @code{nil} means unlimited
4074 If you set this to @code{nil} you should set @code{wl-summary-width}
4077 @item wl-summary-max-thread-depth
4078 @vindex wl-summary-max-thread-depth
4079 The initial setting is 15.
4080 If thread depth of the message is larger than this value,
4081 the thread is divided.
4083 @item wl-summary-recenter
4084 @vindex wl-summary-recenter
4085 The initial setting is t.
4086 If non-nil, cursor point is moved to the center of the summary window.
4088 @item wl-summary-divide-thread-when-subject-changed
4089 @vindex wl-summary-divide-thread-when-subject-changed
4090 The initial setting is @code{nil}. If non-nil, thread is split if
4091 the subject is changed.
4093 @item wl-summary-search-via-nntp
4094 @vindex wl-summary-search-via-nntp
4095 The initial setting is @code{confirm}.
4097 If non-nil and @code{wl-summary-jump-to-msg-by-message-id} failed, call
4098 @code{wl-summary-jump-to-msg-by-message-id-via-nntp} and search message
4099 from the NNTP server @code{elmo-nntp-default-server}. The value of
4100 @code{elmo-nntp-default-user}, @code{elmo-nntp-default-port},
4101 @code{elmo-nntp-default-stream-type} are used.
4103 If @code{confirm}, server name can be specified. You can specify NNTP
4104 folder format like @samp{-:username@@servername:119!}.
4106 @item wl-summary-keep-cursor-command
4107 @vindex wl-summary-keep-cursor-command
4108 The initial setting is the list shown below:
4112 (wl-summary-goto-folder wl-summary-goto-last-visited-folder)
4117 When you entered to summary by these commands and the target summary
4118 buffer already exists, summary status is not automatically updated and
4119 cursor position is saved.
4121 @item elmo-folder-update-threshold
4122 @vindex elmo-folder-update-threshold
4123 The initial setting is 500. If updated message number is larger than
4124 this value, confirm whether drop them or not (in the case where the value
4125 of @code{elmo-folder-update-confirm} is non-nil).
4127 @item elmo-folder-update-confirm
4128 @vindex elmo-folder-update-confirm
4129 The initial setting is @code{t}. If the value is non-nil, do check with
4130 @code{elmo-folder-update-threshold}.
4132 @item wl-summary-always-sticky-folder-list
4133 @vindex wl-summary-always-sticky-folder-list
4134 The initial setting is @code{nil}.
4135 @code{wl-summary-always-sticky-folder-list} specifies the folders that
4136 are automatically stuck. Each element is regexp of folder name.
4138 @item wl-summary-reserve-mark-list
4139 @vindex wl-summary-reserve-mark-list
4140 The initial setting is the list shown below:
4144 ("o" "O" "D" "d" "i")
4149 If a message is already marked as temporal marks in this list, the
4150 message is not marked by any mark command.
4152 @item wl-summary-skip-mark-list
4153 @vindex wl-summary-skip-mark-list
4154 The initial setting is the list shown below:
4163 If a message is already marked as temporal marks in this list, the
4164 message is skipped at cursor move.
4166 @item elmo-message-fetch-threshold
4167 @vindex elmo-message-fetch-threshold
4168 The initial setting is 30000 (bytes). If displaying message has larger
4169 size than this value, Wanderlust confirms whether fetch the message or
4170 not (in the case where the value of @code{elmo-message-fetch-confirm}
4173 @item elmo-message-fetch-confirm
4174 @vindex elmo-message-fetch-confirm
4175 The initial setting is @code{t}. If the value is non-nil, do check with
4176 @code{elmo-message-fetch-threshold}.
4178 @item wl-prefetch-threshold
4179 @vindex wl-prefetch-threshold
4180 The initial setting is 30000 (bytes). If prefetching message has larger
4181 size than this value and @code{wl-prefetch-confirm} is non-nil,
4182 Wanderlust confirms whether prefetch the message or not. If
4183 @code{wl-prefetch-threshold} is @code{nil}, the message is prefetched
4184 without confirmation.
4186 @item wl-prefetch-confirm
4187 @vindex wl-prefetch-confirm
4188 The initial setting is @code{t}. If non-nil, Wanderlust confirms whether
4189 prefetch the message or not if the message has larger size than
4190 @code{wl-prefetch-threshold}.
4192 @item elmo-imap4-use-cache
4193 @vindex elmo-imap4-use-cache
4194 The initial setting is @code{t}. If non-nil, messages read via IMAP4
4197 @item elmo-nntp-use-cache
4198 @vindex elmo-nntp-use-cache
4199 The initial setting is @code{t}. If non-nil, messages read via NNTP are
4202 @item elmo-pop3-use-cache
4203 @vindex elmo-pop3-use-cache
4204 The initial setting is @code{t}. If non-nil, messages read via POP3 are
4207 @item elmo-shimbun-use-cache
4208 @vindex elmo-shimbun-use-cache
4209 The initial setting is @code{t}. If non-nil, messages read in Shimbun
4212 @item wl-folder-process-duplicates-alist
4213 @vindex wl-folder-process-duplicates-alist
4214 The initial setting is @code{nil}.
4215 This list determines how to deal with duplicated messages in the same folder.
4216 Each item in the list is regexp of folder name and action; you can specify any
4217 one of the following in the place of action:
4220 @code{nil} : do nothing for duplicated messages.
4221 @code{hide} : hide duplicated messages from the summary.
4222 @code{read} : set duplicated messages as read.
4226 Following is an example (hide duplicated messages in multi folders)
4230 (setq wl-folder-process-duplicates-alist
4231 '(("^\\+draft$" . nil) ("^\\+trash$" . nil)
4232 ("^\\*.*" . hide) (".*" . read)))
4236 @item wl-summary-flag-alist
4237 @vindex wl-summary-flag-alist
4238 The initial setting is as follows:
4242 ((important "orange"))
4246 Specify the color of message in summary buffer with flag. If multiple
4247 global flags are on one message, the former flag in this list is
4252 @node Message, Draft, Summary, Top
4253 @chapter Message Buffer
4255 Message Buffers utilize MIME-View mode of SEMI. For operational
4256 procedures and key bindings, refer to respective documents.
4257 @xref{MIME-View, , ,mime-ui-en, a MIME user interface for GNU Emacs}.
4258 You can also see help by @kbd{?} in message buffer.
4260 @kbd{p} at the top of a message or @kbd{n} at the bottom of a message
4261 brings you back to Summary mode. @kbd{l} toggles display of Summary
4264 @section Key Bindings
4270 @findex wl-message-toggle-disp-summary
4271 Toggles display of Summary buffer.
4272 (@code{wl-message-toggle-disp-summary})
4275 @findex wl-message-refer-article-or-url
4276 @kindex Button-2 (Message)
4277 Assumes @samp{Message-ID:} at the mouse pointer, and shows the
4278 corresponding message if found.
4279 (@code{wl-message-refer-article-or-url})
4281 @item Button-4 (upward movement of a wheel)
4282 @kindex Button-4 (Message)
4283 @findex wl-message-wheel-down
4284 Scrolls the message backwards. When the top of the message is hit,
4285 moves to the previous message.
4286 (@code{wl-message-wheel-down})
4288 @item Button-5 (downward movement of a wheel)
4289 @kindex Button-5 (Message)
4290 @findex wl-message-wheel-up
4291 Scrolls the message forward. When the bottom of the message is hit,
4292 moves to the next message.
4293 (@code{wl-message-wheel-up})
4297 @findex wl-message-delete-current-part
4298 Delete the part under cursor. In fact it appends modified message to
4299 the current folder then moves old one to trash folder. Therefore the
4300 message number will be changed.
4301 (@code{wl-message-delete-current-part})
4304 @section Customizable Variables
4307 @item wl-message-window-size
4308 @vindex wl-message-window-size
4309 Initial setting is @code{'(1 . 4)}. It is a cons cell and the ratio of
4310 its car and cdr value corresponds to the ratio of Summary and Message
4313 @item wl-message-ignored-field-list
4314 @vindex wl-message-ignored-field-list
4315 Initial setting is @code{nil}.
4316 All fields that match this list will be hidden in message buffer.
4317 Each elements are regexp of field-name.
4318 If @code{nil}, the value of @code{mime-view-ignored-field-list} is used.
4320 @item wl-message-visible-field-list
4321 @vindex wl-message-visible-field-list
4322 Initial setting is @code{nil}.
4323 All fields that match this list will be display in message buffer.
4324 Each elements are regexp of field-name. This value precedes
4325 @code{wl-message-ignored-field-list}.
4326 If @code{nil}, the value of @code{mime-view-visible-field-list} is used.
4328 @item wl-message-sort-field-list
4329 @vindex wl-message-sort-field-list
4331 '("Return-Path" "Received" "^To" "^Cc" "Newsgroups" "Subject" "^From").
4332 Header fields in message buffer are ordered by this value.
4333 Each elements are regexp of field-name.
4335 @item wl-message-truncate-lines
4336 @vindex wl-message-truncate-lines
4337 The initial value is the value of @code{default-truncate-lines}.
4338 If it is non-nil, truncate long lines in message buffer.
4341 @node Draft, Disconnected Operations, Message, Top
4342 @chapter Draft Buffer
4344 At Summary mode, pressing @kbd{w} and the like creates a new draft
4345 buffer. You can edit and send mail and news articles in this buffer.
4347 By pressing @kbd{W}, Wanderlust guess addressees and prepare draft buffer
4348 with those if possible.
4351 * Usage of Draft Mode:: TIPS
4352 * Key Bindings of Draft:: Key bindings
4353 * Variables of Draft Mode:: Customize Draft Mode
4356 @node Usage of Draft Mode, Key Bindings of Draft, Draft, Draft
4359 Basically it is Emacs-standard mail mode.
4363 * Editing Message Body::
4364 * Dynamical Message Re-arrangement::
4369 @node Editing Header, Editing Message Body, Usage of Draft Mode, Usage of Draft Mode
4370 @subsection Editing Message Header
4372 You can freely edit header region above @samp{--text follows this line--},
4373 until you invoke the sending operation.
4375 Initially, the cursor is at the @samp{To:} field. Fill in recipients
4376 addresses. @kbd{@key{TAB}} completes them.
4378 You can use following headers to specify recipients. Add some of them
4379 by yourself. Field names can be completed by @kbd{@key{TAB}}.
4382 @item @samp{Newsgroups:}
4383 Specify newsgroups to which you post the news article.
4386 Specify addresses to send a copy (Carbon Copy) of the message.
4389 Following ones are removed from the header contents before sending.
4393 Specify addresses to send a copy (Blind Carbon Copy) of the message.
4396 Specify folders in which a copy of the message is saved.
4399 Specify recipients to send encapsulated copy of the message.
4402 You can add initial headers by following variables.
4408 The initial setting is @code{nil}.
4409 If non-nil, the value of this variable is inserted as a @samp{Fcc:} of
4410 the draft when it is prepared. If function is specified, its return
4415 The initial setting is @code{nil}.
4416 If non-nil, the value of this variable is inserted as a @samp{Bcc:} of
4417 the draft when it is prepared.
4420 @node Editing Message Body, Dynamical Message Re-arrangement, Editing Header, Usage of Draft Mode
4421 @subsection Editing Messages
4423 As a matter of course, editing message body can be performed in the same
4424 way as usual writing. You may write message body under
4425 @samp{--text follows this line--} line. (NOTE: Be sure to leave the line
4426 @samp{--text follows this line--} intact.)
4428 Multi-part editing utilize MIME edit mode of SEMI. For procedures of
4429 editing, refer to respective documents. @xref{MIME-Edit, , ,mime-ui-en,
4430 a MIME user interface for GNU Emacs}.
4431 You can also see help by @kbd{C-c C-x ?} in draft buffer.
4433 If you save the draft buffer you are editing, it is appended to the
4434 folder specified by @code{wl-draft-folder}.
4436 @node Dynamical Message Re-arrangement, Template, Editing Message Body, Usage of Draft Mode
4437 @subsection Dynamic Modification of Messages
4438 @vindex wl-draft-config-alist
4439 @c @cindex Change Message
4440 @c @cindex Message, Change Dynamic
4442 You can set @code{wl-draft-config-alist} so that header and body of the
4443 message will automatically modified depending on information of header
4446 The initial setting of @code{wl-draft-config-alist} is @code{nil}.
4448 In the example below, the header is modified when
4449 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked. You
4450 can set @code{wl-interactive-send} to non-nil so as to confirm changes
4451 before sending the message.
4455 (setq wl-draft-config-alist
4456 '(((string-match "aaa\\.example\\.com$" (system-name))
4457 ;; @r{applied if the expression is non-nil}
4458 (wl-smtp-posting-server . "mailserver-B")
4459 (wl-nntp-posting-server . "newsserver-B")
4460 ;; @r{settings of temporary variables}
4462 ("^To: .*user@@aaa\\.bbb\\.example\\.com"
4463 ;; @r{applied if it matches the header of the draft buffer}
4464 ("Organization" . (format "Go %s" my-webpage)))
4465 ;; @r{you can write elisp expressions here (eval only)}
4466 (top . "Hello.\n") ;; @r{inserted at the top of the body}
4467 (bottom . "\nBye.\n") ;; @r{inserted at the bottom of the body}
4472 The format of @code{wl-draft-config-alist} is:
4476 '(("@var{regexp of the header}" or @var{elisp expression}
4477 ("@var{Field}" . value(@var{elisp expression}))
4478 (@var{variable} . value(@var{elisp expression}))
4479 (@var{sub-function} . value(@var{elisp expression}))
4482 ("@var{regexp of the header}" or @var{elisp expression}
4483 ("@var{Field}" . value(@var{elisp expression}))
4488 Per default, there are 13 following sub-functions.
4491 'header: Inserts the specified string at the bottom of the header.
4492 'header-top: Inserts the specified string at the top of the header.
4493 'header-file: Inserts the specified file at the bottom of the header.
4494 'x-face: Inserts @samp{X-Face:} field with the content of the specified file.
4495 'top: Inserts the specified string at the top of the body.
4496 'top-file: Inserts the specified file at the top of the body.
4497 'body: Replaces the body with the specified string.
4498 Specifying @code{nil} deletes the entire body string.
4499 'body-file: Replaces the body with the content of the specified file.
4500 'bottom: Inserts the specified string at the bottom of the body.
4501 'bottom-file: Inserts the specified file at the top of the body.
4502 'part-top: Inserts the specified string at the top of the current part.
4503 'part-bottom: Inserts the specified string at the bottom of the current part.
4504 'template: Applies the specified template.
4505 (refer to the next subsection)
4508 These are defined in @code{wl-draft-config-sub-func-alist} and you can
4509 change them or add your own functions. If you read the code, you can
4510 easily find how to write the functions.
4512 At the first of each item, @var{a regular expression of the header} or
4513 an @var{elisp expression} should be specified. In the case of an elisp
4514 expression, the item is applied when the expression is evaluated
4517 Per default, when multiple items match or are evaluated non-nil, all
4518 such items are applied, but if you set a variable
4519 @code{wl-draft-config-matchone} to @code{t}, only the first matching one
4522 At the second of the item, a cons or a list of functions should be
4523 specified. The car part of the cons should be a header field, a
4524 variable, or a sub-function. When a header field is specified, the
4525 field will be modified. If a variable is specified, the value of the
4526 variable will be modified temporarily.
4528 In the cdr part of a cons, not only a variable but also an elisp
4529 expression can be specified as is. If the car part is a header field
4530 and the cdr part is @code{nil}, the field will be deleted.
4532 See the next example as well:
4536 (setq wl-draft-config-alist
4538 "X-ML-Name: \\(Wanderlust\\|emacs-mime-ja\\|apel-ja\\)"
4539 ;; @r{applied if it matches the header of the buffer being replied}
4540 (body . " Hello.\n")
4541 (template . "default")
4546 As in the (1) above, if a header regexp is prepended with @code{reply},
4547 it is applied when the draft is prepared by @code{wl-summary-reply} for
4548 example, and when it matches the header being replied. It is ignored
4549 when there is no buffer being replied, like after @code{wl-draft} was
4552 If you want to use name of parent folder, you can refer the buffer local
4553 variable @code{wl-draft-parent-folder}. In the following example, Wanderlust
4554 changes From according to the folder name of the summary in which the draft
4559 (setq wl-draft-config-alist
4560 '(((string-match \".*@@domain1$\" wl-draft-parent-folder)
4561 (\"From\" . \"user@@domain1\"))
4562 ((string-match \".*@@domain2$\" wl-draft-parent-folder)
4563 (\"From\" . \"user@@domain2\"))))
4568 Note that @code{wl-draft-config-alist} is applied only once when
4569 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked.
4570 Therefore, if you want to apply @code{wl-draft-config-alist} again after
4571 aborting transmission, execute @kbd{C-c C-e}
4572 (@code{wl-draft-config-exec}) explicitly.
4574 If you don't want to apply @code{wl-draft-config-alist} when
4575 @code{wl-draft-send-and-exit} or @code{wl-draft-send} is invoked,
4579 (remove-hook 'wl-draft-send-hook 'wl-draft-config-exec)
4582 If you want to apply @code{wl-draft-config-alist} when a draft buffer is
4583 prepared, do the following:
4586 (add-hook 'wl-mail-setup-hook 'wl-draft-config-exec)
4589 If you want to apply @code{wl-draft-config-alist} when you re-edit a mail
4590 from summary mode by typing @kbd{E}(@code{wl-summary-reedit}), do the
4594 (add-hook 'wl-draft-reedit-hook 'wl-draft-config-exec)
4597 @node Template, POP-before-SMTP, Dynamical Message Re-arrangement, Usage of Draft Mode
4598 @subsection Inserting Templates
4600 @cindex Apply Template
4602 Set a variable @code{wl-template-alist}, and type @kbd{C-c C-j} or
4603 @kbd{M-x wl-template-select} in the draft buffer.
4605 The format of @code{wl-template-alist} is almost the same as
4606 @code{wl-draft-config-alist}.
4607 @xref{Dynamical Message Re-arrangement}.
4611 (setq wl-template-alist
4614 ("Organization" . "Example Co.Ltd.")
4615 (body . "Hello.\n"))
4617 (template . "default") ;; @r{(a)}
4618 ("To" . "boss@@example.com")
4619 ("Subject" . "Report")
4620 (body-file . "~/work/report.txt")
4626 As you can see, the only difference is item (template) names such as
4627 @samp{default} and @samp{report}, instead of a regexp of header.
4628 Because definition of each item is the same as
4629 @code{wl-draft-config-alist}, you can call another template, like (a).
4631 Executing the command @code{wl-template-select} results in template
4632 selection, but the result differs depending on variable
4633 @code{wl-template-visible-select}.
4635 If @code{wl-template-visible-select} is @code{t} (default), a buffer
4636 window is shown below the draft buffer. You can select a template by
4637 @kbd{n} and @kbd{p} seeing the buffer window.
4639 Press the @key{RET} key and the template is actually applied to the draft
4640 buffer. If you press @kbd{q}, nothing is applied. In addition, you can
4641 adjust the window size by @code{wl-template-buffer-lines}.
4643 If @code{wl-template-visible-select} is @code{nil}, you should type the
4644 name of the template in the mini buffer.
4646 As shown in the example in @code{wl-draft-config-alist}, you can select
4647 @samp{default} template by writing:
4650 (template . "default")
4653 @node POP-before-SMTP, , Template, Usage of Draft Mode
4654 @subsection Sending mail by POP-before-SMTP
4655 @cindex POP-before-SMTP
4657 You can send mail by POP-before-SMTP with this single line:
4660 (setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)
4664 Configure the following variables if you need.
4667 @item wl-pop-before-smtp-user
4668 The POP user name for POP-before-SMTP authentication.
4669 If unset, @code{elmo-pop3-default-user} is used.
4671 @item wl-pop-before-smtp-server
4672 The POP server name for POP-before-SMTP authentication.
4673 If unset, @code{elmo-pop3-default-server} is used.
4675 @item wl-pop-before-smtp-authenticate-type
4676 The POP authentication method for POP-before-SMTP authentication.
4677 If unset, @code{elmo-pop3-default-authenticate-type} is used.
4679 @item wl-pop-before-smtp-port
4680 The POP port number for POP-before-SMTP authentication.
4681 If unset, @code{elmo-pop3-default-port} is used.
4683 @item wl-pop-before-smtp-stream-type
4684 If @code{ssl}, POP connection is established using SSL. If
4685 @code{starttls}, STARTTLS (RFC2595) connection will be established. If
4686 unset, @code{elmo-pop3-default-stream-type} is used.
4689 If variables for POP-before-SMTP (@code{wl-pop-before-smtp-*}) are
4690 unset, settings for POP folders (@code{elmo-pop3-default-*}) are
4692 Therefore, if SMTP server and POP server are actually the same, and if
4693 POP folder per default (such as @samp{&}) is available, no settings are
4696 Refer to the following URL about POP-before-SMTP.
4700 http://spam.ayamura.org/tools/smPbS.html
4701 http://www.iecc.com/pop-before-smtp.html
4706 @node Key Bindings of Draft, Variables of Draft Mode, Usage of Draft Mode, Draft
4707 @section Key Bindings
4708 @cindex Keybind, Draft Mode
4709 @cindex Keybind, Draft Buffer
4714 @kindex C-c C-y (Draft)
4715 @findex wl-draft-yank-original
4716 Cites the content of the current message buffer (the part under cursor).
4717 If the region is active, cites the region (it affects only if
4718 @code{transient-mark-mode} (on GNU Emacs) or @code{zmacs-regions}
4719 (on XEmacs) is Non-nil).
4720 (@code{wl-draft-yank-original})
4723 @kindex C-c C-p (Draft)
4724 @findex wl-draft-preview-message
4725 Previews the content of the current draft.
4726 This is useful for previewing MIME multi-part messages.
4727 (@code{wl-draft-preview-message})
4730 @kindex C-c C-s (Draft)
4731 @findex wl-draft-send
4732 Sends the content of the current draft. Does not erase the draft buffer.
4733 This is useful for sending multiple messages, which are a little different
4735 (@code{wl-draft-send})
4738 @kindex C-c C-c (Draft)
4739 @findex wl-draft-send-and-exit
4740 Sends the content of the current draft and erases the draft buffer.
4741 (@code{wl-draft-send-and-exit})
4744 @kindex C-x C-s (Draft)
4745 @findex wl-draft-save
4746 Save the current draft.
4747 (@code{wl-draft-save})
4750 @kindex C-c C-k (Draft)
4751 @findex wl-draft-kill
4752 Kills the current draft.
4753 (@code{wl-draft-kill})
4756 @kindex C-x k (Draft)
4757 @findex wl-draft-mimic-kill-buffer
4758 Kills the current draft.
4759 (@code{wl-draft-mimic-kill-buffer})
4762 @kindex C-c C-z (Draft)
4763 @findex wl-draft-save-and-exit
4764 Saves the current draft, and erases the draft buffer.
4765 This is useful if you want to suspend editing of the draft.
4766 You can resume editing by pressing @kbd{E} (@code{wl-summary-reedit}) in
4767 the @samp{+draft} folder.
4768 (@code{wl-draft-save-and-exit})
4771 @kindex C-c C-r (Draft)
4772 @findex wl-caesar-region
4773 Encodes or decodes the specified region in Caesar cipher.
4774 (@code{wl-caesar-region})
4778 @findex wl-draft-highlight-and-recenter
4779 Recenter and rehighlight current draft.
4780 (@code{wl-draft-highlight-and-recenter})
4784 @findex wl-toggle-plugged
4785 Toggles off-line/on-line states of Wanderlust.
4786 (@code{wl-toggle-plugged})
4789 @kindex C-c C-o (Draft)
4790 @findex wl-jump-to-draft-buffer
4791 Jumps to the other draft buffer, if exists.
4792 With prefix argument, reads a file (if any) from the draft folder when
4793 there is no such buffer.
4794 (@code{wl-jump-to-draft-buffer})
4797 @kindex C-c C-e (Draft)
4798 @findex wl-draft-config-exec
4799 Applies @code{wl-draft-config-alist}.
4800 (@code{wl-draft-config-exec})
4803 @kindex C-c C-j (Draft)
4804 @findex wl-template-select
4806 (@code{wl-template-select})
4809 @kindex C-c C-a (Draft)
4811 Enter Address Manager.
4812 @xref{Address Manager}.
4816 @kindex C-c C-d (Draft)
4817 @findex wl-draft-elide-region
4818 Elide the text between point and mark (@code{wl-draft-elide-region}).
4819 The text is killed and replaced with the contents of the variable
4820 @code{wl-draft-elide-ellipsis}. The default value is to use an ellipsis
4824 @node Variables of Draft Mode, , Key Bindings of Draft, Draft
4825 @section Customizable Variables
4829 @item wl-subscribed-mailing-list
4830 @vindex wl-subscribed-mailing-list
4831 The initial setting is @code{nil}. Mailing lists to which you
4832 subscribe. If any of these are contained in @samp{To:} or @samp{Cc:}
4833 field of a reply draft, removes your own address from
4834 @samp{Mail-Followup-To:} and @samp{Cc:}. And if any of these are
4835 contained in @samp{To:} or @samp{Cc:} field of a message to be
4836 automatically re-filed, the destination folder will be leaned in
4837 connection with the address.
4843 (setq wl-subscribed-mailing-list
4844 '("wl@@lists.airs.net"
4846 "emacs-mime-ja@@m17n.org"))
4850 @item wl-insert-mail-followup-to
4851 @vindex wl-insert-mail-followup-to
4852 The initial setting is @code{nil}. If non-nil, @samp{Mail-Followup-To:}
4853 field is automatically inserted in the draft buffer.
4855 @item wl-insert-mail-reply-to
4856 @vindex wl-insert-mail-reply-to
4857 The initial setting is @code{nil}. If non-nil, @samp{Mail-Reply-To:}
4858 field is automatically inserted in the draft buffer.
4860 @item wl-auto-insert-x-face
4861 @vindex wl-auto-insert-x-face
4862 The initial setting is @code{t}. If non-nil and there is an encoded
4863 X-Face string in a file @file{~/.xface} (the value of the variable
4864 @code{wl-x-face-file}), inserts it as an @samp{X-Face:} field in the
4865 draft buffer. If @code{nil}, it is not automatically inserted.
4867 @item wl-insert-message-id
4868 @vindex wl-insert-message-id
4869 The initial setting is @code{t}. If non-nil, @samp{Message-ID:} field
4870 is automatically inserted on the transmission.
4872 @item wl-message-id-use-wl-from
4873 @vindex wl-message-id-use-wl-from
4874 The initial setting is @code{nil}. If non-nil, the value of
4875 @code{wl-from} will be used as the domain part of @samp{Message-ID:}.
4877 @item wl-local-domain
4878 @vindex wl-local-domain
4879 The initial setting is @code{nil}. If @code{nil}, the return value of
4880 the function @code{system-name} will be used as the domain part of
4883 If @code{system-name} does not return FQDN (i.e. the full name of the
4884 host, like @samp{smtp.gohome.org}), you @strong{must} set this variable
4885 to the string of the local domain name without hostname (like
4886 @samp{gohome.org}). That is, a concatenation of @code{system-name}
4887 @samp{.} @code{wl-local-domain} is used as domain part of the
4890 If your terminal does not have global IP, set the value of
4891 @code{wl-message-id-domain}. (You might be beaten up on the Net News if
4892 you use invalid @samp{Message-ID:}.)
4894 Moreover, concatenation of @code{system-name} @samp{.}
4895 @code{wl-local-domain} will be used as an argument to the HELO command
4898 @item wl-message-id-domain
4899 @vindex wl-message-id-domain
4900 The initial setting is @code{nil}. If non-nil, this value is used as a
4901 domain part of the @samp{Message-ID:}. If your terminal does not have
4902 global IP address, set unique string to this value (e.x. your e-mail
4905 @item wl-unique-id-suffix
4906 @vindex wl-unique-id-suffix
4907 The initial setting is @samp{.wl}. You can specify the string in generated
4908 Message-ID which appear just before @samp{@@}.
4910 @item wl-draft-config-alist
4911 @vindex wl-draft-config-alist
4912 The initial setting is @code{nil}. Modifies the draft message just
4913 before the transmission. The content of @code{wl-draft-config-alist}
4914 will be automatically applied only once on the transmission. If you
4915 want to apply it manually, use @kbd{C-c C-e}. This command can be used
4918 @item wl-template-alist
4919 @vindex wl-template-alist
4920 The initial setting is @code{nil}.
4921 This variable specifies the template to be applied in the draft buffer.
4923 @item wl-draft-config-matchone
4924 @vindex wl-draft-config-matchone
4925 The initial setting is @code{nil}. If non-nil, only the first matching
4926 item is used when @code{wl-draft-config-alist} is applied. If
4927 @code{nil}, all matching items are used.
4929 @item wl-template-visible-select
4930 @vindex wl-template-visible-select
4931 The initial setting is @code{t}.
4932 If non-nil, you can preview the result of the template selection in
4935 @item wl-template-confirm
4936 @vindex wl-template-confirm
4937 The initial setting is @code{nil}.
4938 If non-nil, asks for confirmation when you press the enter key to select
4939 template while previewing.
4941 @item wl-template-buffer-lines
4942 @vindex wl-template-buffer-lines
4943 The initial setting is 7.
4944 If @code{wl-template-visible-select} is non-nil, this variable specifies
4945 the size of the preview window.
4947 @item wl-draft-buffer-style
4948 @vindex wl-draft-buffer-style
4949 The initial setting is @code{full}.
4950 Style of draft buffer window (except for replying and forwarding).
4951 @code{keep} is to use current window,
4952 @code{full} is to use full frame window,
4953 @code{split} is to split current window and use it.
4954 If some function is specified, it is called with the draft buffer
4957 @item wl-draft-reply-buffer-style
4958 @vindex wl-draft-reply-buffer-style
4959 The initial setting is @code{split}.
4960 Style of draft buffer for replying and forwarding.
4961 @code{keep} is to use message buffer window,
4962 @code{full} is to use full frame window,
4963 @code{split} is to split message buffer window and use it.
4964 If some function is specified, it is called with the draft buffer
4967 @item wl-draft-use-frame
4968 @vindex wl-draft-use-frame
4969 The initial setting is @code{nil}.
4970 If non-nil, use new frame for the draft.
4972 @item wl-draft-truncate-lines
4973 @vindex wl-draft-truncate-lines
4974 The initial value is the value of @code{default-truncate-lines}.
4975 If it is non-nil, truncate long lines in draft buffer.
4979 The initial setting is the value of the variable
4980 @code{user-mail-address}. The value of this variable is inserted as a
4981 @samp{From:} field of the draft when it is prepared.
4983 @item wl-envelope-from
4984 @vindex wl-envelope-from
4985 The initial setting is @code{nil}.
4986 The value of this variable is used for envelope from (MAIL FROM).
4987 If @code{nil}, the address part of @code{wl-from} is used.
4989 @item wl-user-mail-address-list
4990 @vindex wl-user-mail-address-list
4991 The initial setting is @code{nil}.
4992 This is the User's address list. If you have multiple addresses,
4995 @item wl-reply-subject-prefix
4996 @vindex wl-reply-subject-prefix
4997 The initial setting is @samp{Re: }.
4998 In the @samp{Subject:} of the reply draft, this string is prepended to
4999 the @samp{Subject:} of being replied. You can specify a function to be
5000 message buffer of the reply target.
5002 @item wl-forward-subject-prefix
5003 @vindex wl-forward-subject-prefix
5004 The initial setting is @samp{Forward: }.
5005 In the @samp{Subject:} of the forwarding draft, this string is prepended
5006 to the @samp{Subject:} of being forwarded. You can specify a function
5007 to be message buffer of the forward target.
5009 @item wl-draft-reply-use-address-with-full-name
5010 @vindex wl-draft-reply-use-address-with-full-name
5011 The initial setting is @code{t}.
5012 If non-nil, insert her full name with address when prepare a draft for
5013 reply a message. If it is @code{nil}, insert her address only.
5015 @item wl-draft-enable-queuing
5016 @vindex wl-draft-enable-queuing
5017 The initial setting is @code{t}.
5018 This flag controls off-line transmission. If non-nil, the draft is
5021 @item wl-draft-use-cache
5022 @vindex wl-draft-use-cache
5023 The initial setting is @code{nil}. If the value is non-nil and
5024 @code{wl-insert-message-id} is nil, cache the message which is sent.
5026 @item wl-fcc-force-as-read
5027 @vindex wl-fcc-force-as-read
5028 The initial setting is @code{nil}. If the value is non-nil,
5029 Mark as read the message saved by @samp{Fcc:}.
5031 @item wl-auto-flush-queue
5032 @vindex wl-auto-flush-queue
5033 The initial setting is t.
5034 This flag controls automatic transmission of the queue when Wanderlust
5035 becomes on-line. If non-nil, the queue is automatically transmitted
5036 (with confirmation by @code{y-or-n-p}). If you want to transmit it
5037 manually, press @kbd{F} in the folder mode.
5039 @item wl-ignored-forwarded-headers
5040 @vindex wl-ignored-forwarded-headers
5041 Initial setting is @samp{\\(received\\|return-path\\|x-uidl\\)}.
5042 All headers that match this regexp will be deleted when forwarding a message.
5044 @item wl-ignored-resent-headers
5045 Initial setting is @samp{\\(return-receipt\\|[bdf]cc\\)}.
5046 All headers that match this regexp will be deleted when resending a message.
5048 @item wl-draft-always-delete-myself
5049 @vindex wl-draft-always-delete-myself
5050 If non-nil, always removes your own address from @samp{To:} and
5051 @samp{Cc:} when you are replying to the mail addressed to you.
5053 @item wl-draft-delete-myself-from-bcc-fcc
5054 @vindex wl-draft-delete-myself-from-bcc-fcc
5055 If any of @code{wl-subscribed-mailing-list} are contained in @samp{To:}
5056 or @samp{Cc:} field, do not insert @samp{Bcc:} or @samp{Fcc:} field.
5058 @item wl-smtp-posting-server
5059 @vindex wl-smtp-posting-server
5060 The initial setting is @code{nil}.
5061 This is the SMTP server name for mail transmission.
5063 @item wl-smtp-posting-port
5064 @vindex wl-smtp-posting-port
5065 The initial setting is @code{nil}.
5066 This is the SMTP port number for mail transmission.
5067 If @code{nil}, default SMTP port number (25) is used.
5069 @item wl-smtp-posting-user
5070 @vindex wl-smtp-posting-user
5071 The initial setting is @code{nil}.
5072 This is the user name for SMTP AUTH authentication.
5074 @item wl-smtp-authenticate-type
5075 @vindex wl-smtp-authenticate-type
5076 The initial setting is @code{nil}.
5077 This string-valued variable specifies the authentication method for SMTP
5078 AUTH authentication. You may specify @code{plain}, @code{cram-md5},
5079 @code{digest-md5}, @code{login}, etc. If @code{nil}, authentication
5080 will not be carried out.
5082 @item wl-smtp-connection-type
5083 @vindex wl-smtp-connection-type
5084 The initial setting is @code{nil}.
5085 This symbol-valued variable specifies how to establish SMTP connections.
5086 If @code{nil}, use default connection type.
5087 If it is @code{starttls}, use STARTTLS (RFC2595).
5088 If it is @code{ssl}, use SSL.
5090 @item wl-nntp-posting-server
5091 @vindex wl-nntp-posting-server
5092 The initial setting is @code{nil}.
5093 This is the NNTP server name used for news submission.
5094 If @code{nil}, @code{elmo-nntp-default-server} is used.
5096 @item wl-nntp-posting-user
5097 @vindex wl-nntp-posting-user
5098 The initial setting is @code{nil}.
5099 This is the user name for AUTHINFO authentication on news submission.
5100 If @code{nil}, @code{elmo-nntp-default-user} is used.
5101 If it is still @code{nil}, AUTHINFO authentication will not be carried out.
5103 @item wl-nntp-posting-port
5104 @vindex wl-nntp-posting-port
5105 The initial setting is @code{nil}.
5106 This is the port number of the NNTP server used for news submission.
5107 If @code{nil}, @code{elmo-nntp-default-server} is used.
5109 @item wl-nntp-posting-stream-type
5110 @vindex wl-nntp-posting-stream-type
5111 The initial setting is @code{nil}.
5112 If @code{nil}, @code{elmo-nntp-default-stream-type} is evaluated. If @code{ssl},
5113 SSL is used for news submission. If @code{starttls}, STARTTLS (RFC2595)
5114 connection will be established.
5116 @item wl-nntp-posting-function
5117 @vindex wl-nntp-posting-function
5118 The initial setting is @code{elmo-nntp-post}.
5119 This is the function to post NNTP message.
5121 @item wl-nntp-posting-config-alist
5122 @vindex wl-nntp-posting-config-alist
5123 The initial setting is @code{nil}.
5124 The value takes an alist to define NNTP server like following example.
5125 It takes precedence over @code{wl-nntp-posting-@{server|user|port|function@}}.
5129 (setq wl-nntp-posting-config-alist
5130 '((",?gmane\\." . "news.gmane.org")
5132 ((server . "news-server")
5133 (user . "newsmaster")
5135 (function . elmo-nntp-post)))
5136 (".*" . "default-news-server")))
5140 @item wl-pop-before-smtp-user
5141 @vindex wl-pop-before-smtp-user
5142 The initial setting is @code{nil}.
5143 This is the POP user name for POP-before-SMTP.
5144 If it is @code{nil}, @code{elmo-pop3-default-user} is used.
5146 @item wl-pop-before-smtp-server
5147 @vindex wl-pop-before-smtp-server
5148 The initial setting is @code{nil}.
5149 This is the POP server name for POP-before-SMTP.
5150 If it is @code{nil}, @code{elmo-pop3-default-server} is used.
5152 @item wl-pop-before-smtp-authenticate-type
5153 @vindex wl-pop-before-smtp-authenticate-type
5154 The initial setting is @code{nil}.
5155 This is the authentication method for POP-before-SMTP authentication.
5156 If it is @code{nil}, @code{elmo-pop3-default-authenticate} is used.
5158 @item wl-pop-before-smtp-port
5159 @vindex wl-pop-before-smtp-port
5160 The initial setting is @code{nil}.
5161 This is the POP port number for POP-before-SMTP. If it is @code{nil},
5162 @code{elmo-pop3-default-port} is used.
5164 @item wl-pop-before-smtp-stream-type
5165 @vindex wl-pop-before-smtp-stream-type
5166 The initial setting is @code{nil}.
5167 This flag controls the use of SSL for POP-before-SMTP. If it is
5168 @code{nil}, @code{elmo-pop3-default-stream-type} is used. If @code{ssl},
5169 SSL is used. If @code{starttls}, STARTTLS (RFC2595) connection will be
5172 @item wl-draft-queue-save-variables
5173 @vindex wl-draft-queue-save-variables
5174 Specifies a list of variable to which queued messages are saved on the
5175 off-line transmission.
5177 @item wl-draft-sendlog
5178 @vindex wl-draft-sendlog
5179 The initial setting is @code{t}.
5180 If @code{t}, transmission log is written in @file{~/.elmo/sendlog}. It
5184 @item drafts are sent by smtp or qmail
5185 @item saved into folders by fcc
5186 @item saved into folders by queuing
5189 (it is written even if the transmission fails).
5190 But transmission by @file{im-wl.el} is not written in the @file{sendlog}
5191 and left to the logging function of @command{imput}.
5194 @item wl-draft-sendlog-max-size
5195 @vindex wl-draft-sendlog-max-size
5196 The initial setting is 20000 (in bytes).
5197 If @code{wl-draft-sendlog} is @code{t}, the log is rotated when it grows
5198 beyond the size specified by this variable.
5202 The initial setting is @code{nil}.
5203 If non-nil, address completion uses LDAP.
5205 @item wl-ldap-server
5206 @vindex wl-ldap-server
5207 The initial setting is @samp{localhost}.
5208 LDAP server name for address completion.
5211 @vindex wl-ldap-port
5212 The initial setting is @code{nil}.
5213 If non-nil, the value is used as port number.
5216 @vindex wl-ldap-base
5217 The initial setting is @samp{c=US}.
5218 LDAP search starting point (base) for address completion.
5220 @item wl-draft-remove-group-list-contents
5221 @vindex wl-draft-remove-group-list-contents
5222 The initial setting is @code{t}.
5223 If non-nil, remove the group-lists' members in the recipients when
5224 sending the message (group-list means the description such as
5225 @samp{Group: foo@@gohome.org, bar@@gohome.org;} in the recipients).
5228 @node Disconnected Operations, Expire and Archive, Draft, Top
5229 @chapter Off-line Management
5230 @cindex Disconnected Operations
5232 Wanderlust has on-line and off-line states.
5235 * Off-line State:: Wanderlust has on-line and off-line states
5236 * Enable Operations:: Enable Disconnected Operations
5237 * Plugged Mode:: Switching On-line/Off-line per Server/Port
5238 * Off-line State settings:: Invoking Wanderlust in the Off-line State
5239 * Variables of Plugged Mode:: Customize Plugged Mode
5243 @node Off-line State, Enable Operations, Disconnected Operations, Disconnected Operations
5244 @section Off-line State
5246 Wanderlust has on-line and off-line states. In the off-line state, you
5247 cannot access messages via network, unless they are cached.
5249 @samp{[ON]} in the mode line indicates the on-line state. @samp{[--]}
5250 in the mode line indicates the off-line state. In folder or summary
5251 modes, press @kbd{M-t} to switch between off- and on-line.
5253 You can invoke Wanderlust in the off-line state by setting
5254 @code{wl-plugged} to @code{nil} in @file{~/.wl} or anything appropriate.
5256 In the off-line mode, @kbd{n} and @kbd{p} command in the summary mode
5257 ignores uncached messages.
5260 @node Enable Operations, Plugged Mode, Off-line State, Disconnected Operations
5261 @section Enable Disconeected Operations
5263 Even in the off-line state, provided that relevant messages are cached,
5264 and the variable @code{elmo-enable-disconnected-operation} (described
5265 later) is non-nil, you can following operations:
5266 @xref{Plugged Mode}, @xref{Off-line State settings}.
5269 * Send Messages off-line:: Transmit Messages
5270 * Re-file and Copy queue:: Re-file and Copy (IMAP4)
5271 * Creation of Folders:: Create Folders off-line (IMAP4)
5272 * Marking:: Mark (IMAP4)
5273 * Pre-fetching Reservations:: Pre-fetch (IMAP4, NNTP)
5276 As soon as Wanderlust becomes on-line, such operations invoked off-line
5277 are reflected in the servers via network.
5280 @node Send Messages off-line, Re-file and Copy queue, Enable Operations, Enable Operations
5281 @subsection Transmission of Messages
5283 You can proceed sending operation for mail/news messages while you are
5284 off-line, then it will be reserved for sending (if you are using
5285 @file{im-wl.el}, it is irrelevant).
5286 Messages reserved for sending while off-line are accumulated in the
5287 queue folder, @samp{+queue}. These messages are transmitted at once when
5288 Wanderlust becomes on-line.
5290 You can visit @samp{+queue} in the off-line state and confirm content of
5291 messages in the queue. You can also remove messages. Removed messages
5292 are not transmitted even in the on-line state.
5295 @node Re-file and Copy queue, Creation of Folders, Send Messages off-line, Enable Operations
5296 @subsection Re-file and Copy (IMAP4)
5298 Re-file and copy operations to IMAP folders invoked during the off-line
5299 state are accumulated in the queue, and reflected in the server side
5300 when Wanderlust becomes on-line. If you visit destination folders after
5301 off-line re-file or copy, it looks as if messages were appended even in
5304 For the safety reasons, messages re-filed off-line are removed from
5305 source folders only if their @samp{Message-ID:} match messages on the
5306 servers. While the queue is processed, messages that failed to be
5307 re-filed or copied to the specified folders are appended to the folder
5311 @node Creation of Folders, Marking, Re-file and Copy queue, Enable Operations
5312 @subsection Creation of Folders (IMAP4)
5314 You can create IMAP folders off-line. The creation of folders are
5315 reflected in the servers when Wanderlust becomes on-line. If the creation
5316 of those folders fails at that time for some reasons, messages
5317 to be re-filed into those are appended to the folder @samp{+lost+found}
5321 @node Marking, Pre-fetching Reservations, Creation of Folders, Enable Operations
5322 @subsection Marking (IMAP4)
5324 Off-line changes in unread/read and importance mark @samp{$} information
5325 are also reflected in the servers when Wanderlust becomes on-line.
5328 @node Pre-fetching Reservations, , Marking, Enable Operations
5329 @subsection Pre-fetching (IMAP4, NNTP)
5331 You can make reservations for pre-fetching messages in IMAP or NNTP
5332 folders. Reserved messages are marked with @samp{!} but not cached
5333 yet. When Wanderlust becomes on-line, they are pre-fetched from
5336 If the variable @code{elmo-enable-disconnected-operation} is @code{nil},
5337 these off-line operations for IMAP4 and NNTP do not take place, and
5338 off-line re-file, copy or suchlike simply results in error.
5340 Because off-line operations use cache files, it is a bad idea to erase
5341 them by hand; it may cause Wanderlust to malfunction.
5343 If you want to remove caches, be sure to execute @kbd{M-x
5344 elmo-cache-expire-by-size}. @code{elmo-cache-expire-by-size} does not
5345 remove caches for messages relevant to off-line operations.
5348 @node Plugged Mode, Off-line State settings, Enable Operations, Disconnected Operations
5349 @section Switching On-line/Off-line per Server/Port
5351 @kbd{M-t} described above switches networking states as a whole, but you
5352 can switch on-line/off-line per server/port.
5354 Pressing @kbd{C-t} in the folder or summary modes brings you in
5355 wl-plugged-mode shown below, in which you can change the plugged state
5360 Queuing:[ON] AutoFlushQueue:[--] DisconnectedOperation:[ON]
5363 [--]smtp +queue: 2 msgs (1,2) @dots{}@r{sending queue}
5364 [--]nntp(119) +queue: 1 msg (3) @dots{}@r{sending queue}
5366 [--]imap4/cram-md5(143) %#mh/wl(prefetch-msgs:3,mark-as-important:1)
5367 %inbox(delete-msgids:1) @dots{}@r{dop queue}
5373 The first line indicates status of the following three variables, and
5374 simply pressing @kbd{@key{SPC}} or @kbd{@key{RET}} in each labeled
5375 column modifies the values of these variables.
5379 "Queuing" @code{wl-draft-enable-queuing}
5380 "AutoFlushQueue" @code{wl-auto-flush-queue}
5381 "DisconnectedOperation" @code{elmo-enable-disconnected-operation}
5385 where @samp{[ON]} means its value is @code{t}, and @samp{[--]} means
5388 The second and after lines indicate on-line/off-line states of servers
5389 and ports, where @samp{[ON]} stands for on-line and @samp{[--]} for
5390 off-line (in XEmacs or Emacs 21, they are shown with icons). Pressing
5391 @kbd{@key{SPC}} or @kbd{@key{RET}} in each line switches its state.
5393 @dfn{sending queue} means messages accumulated in the folder
5394 @samp{+queue} for off-line transmission, and @dfn{dop queue} means
5395 off-line operations when @code{elmo-enable-disconnected-operation} is
5397 @c If the variable @code{elmo-enable-disconnected-operation} is non-nil,
5398 @c off-line operations are enabled.
5400 They are displayed if there are any of them. In the example above, in
5401 the sending queue there are two messages (the first and the second in
5402 the queue folder) for smtp to hosta and one (the third) for nntp to
5403 hosta, and in the dop queue there are one for @samp{%inbox} and two for
5406 If you change @samp{(wl-plugged)} in the second line, the variable
5407 @code{wl-plugged} is changed, so that the mode line indicator and
5408 plugged states of all ports are affected. If you change plugged states
5409 of any servers or ports, @samp{(wl-plugged)} in the second line is
5410 affected depending on @code{elmo-plugged-condition} settings and the
5411 plugged state of each port.
5414 @node Off-line State settings, Variables of Plugged Mode, Plugged Mode, Disconnected Operations
5415 @section Invoking Wanderlust in the Off-line State
5417 As described before, if you set @code{wl-plugged} to @code{nil} in
5418 @file{~/.wl} or anything appropriate, you can invoke Wanderlust in the
5419 off-line state. You can specify off-line state on a per server or port
5420 basis. Refer to @code{wl-reset-plugged-alist} also.
5422 Usually, when Wanderlust starts up, the plugged state of each port is
5423 read from @file{~/.folders} and @code{wl-smtp-posting-server},
5424 @code{wl-nntp-posting-server} and so on. If you want to change the
5425 plugged state of these ports or to add other ports, configure
5426 @code{wl-make-plugged-hook} with a function.
5430 (add-hook 'wl-make-plugged-hook
5432 (elmo-set-plugged plugged-value(t/nil) server port)
5433 ;; @r{add or change plugged states of the port of the server}
5434 (elmo-set-plugged plugged-value(t/nil) server)
5435 ;; @r{if the port is omitted, all ports are affected}
5436 ;; @r{(you cannot omit the port if you newly add the server)}
5442 @node Variables of Plugged Mode, , Off-line State settings, Disconnected Operations
5443 @section Customizable Variables
5448 If this variable is set to @code{nil}, Wanderlust starts up in off-line
5449 mode from the beginning.
5451 @item wl-queue-folder
5452 @vindex wl-queue-folder
5453 The initial setting is @samp{+queue}.
5454 This is the folder in which messages in the transmission queue are
5457 @item wl-auto-flush-queue
5458 @vindex wl-auto-flush-queue
5459 The initial setting is @code{t}.
5460 This flag controls automatic transmission of the queue when Wanderlust
5461 becomes on-line. If non-nil, the queue is automatically transmitted
5462 (with confirmation by @code{y-or-n-p}). If you want to transmit it
5463 manually, press @kbd{F} in the folder mode.
5465 @item elmo-enable-disconnected-operation
5466 @vindex elmo-enable-disconnected-operation
5467 The initial setting is @code{t}. Controls off-line operations
5468 regarding IMAP4. If non-nil, off-line operations are carried out.
5470 @item elmo-lost+found-folder
5471 @vindex elmo-lost+found-folder
5472 The initial setting is @samp{+lost+found}.
5473 This is the folder to which messages are saved when they fails to be
5474 appended while the off-line re-file/copy queue is processed.
5476 @item elmo-plugged-condition
5477 @vindex elmo-plugged-condition
5478 The initial setting is @code{one}.
5479 The value of @code{wl-plugged} reflects the return value of the function
5480 @code{elmo-plugged-p} (without arguments).
5481 This variable @code{elmo-plugged-condition} specifies the condition on
5482 which the return value of @code{(elmo-plugged-p)} should be t depending on the
5483 plugged state of each port.
5486 'one : plugged if one or more ports are plugged.
5487 'all : plugged if all ports are plugged.
5488 'independent : reflects wl-plugged (elmo-plugged) regardless of plugged
5489 states of the ports.
5490 @var{function} : reflects the return value of the @var{function}
5491 functions available per default
5492 'elmo-plug-on-by-servers
5493 : reflects the plugged state of the servers specified by the
5494 variable elmo-plug-on-servers.
5495 'elmo-plug-on-by-exclude-servers
5496 : reflects the plugged state of the servers that are not
5497 in elmo-plug-on-exclude-servers.
5498 elmo-plug-on-exclude-servers defaults to
5501 (system-name)without the domain part)
5507 (setq elmo-plugged-condition 'all)
5509 (setq elmo-plug-on-servers '("smtpserver" "newsserver"))
5510 (setq elmo-plugged-condition 'elmo-plug-on-by-servers)
5512 (setq elmo-plug-on-exclude-servers '("localhost" "myname"))
5513 (setq elmo-plugged-condition 'elmo-plug-on-by-exclude-servers)
5517 @item wl-reset-plugged-alist
5518 @vindex wl-reset-plugged-alist
5519 The initial setting is @code{t}. If non-nil, plugged states are
5520 initialized on a per server or port basis when Wanderlust starts up.
5522 If @code{nil}, plugged states are retained while Emacs is running. In
5523 other words, they are initialized when Emacs is restarted even if the
5524 value is @code{nil}.
5528 @node Expire and Archive, Scoring, Disconnected Operations, Top
5529 @chapter Automatic Expiration and Archiving of Messages
5530 @cindex Expire and Archive
5533 * Expire:: Expiration and Archiving
5534 * Archive:: Archiving All Messages
5538 @node Expire, Archive, Expire and Archive, Expire and Archive
5540 @cindex Expire Message
5542 Expiration means deletion of old messages which have outlasted a
5543 certain period of time.
5545 @code{wl-expire} supports not only simple deletion, but also moving to
5546 specified archiving folders.
5550 Configure @code{wl-expire-alist} and press @kbd{e} in the folder mode,
5551 or @kbd{M-e} in the summary mode.
5553 @subsection Configuring @code{wl-expire-alist}
5555 An example configuration of @code{wl-expire-alist} is shown below.
5556 Everything in this @code{wl-expire-alist} makes a great difference in
5557 expiration, so be careful. I advise you to set @code{wl-expire-use-log}
5558 to @code{t}, especially in the initial stage.
5562 (setq wl-expire-alist
5563 '(("^\\+trash$" (date 14) remove)
5565 ("^\\+tmp$" (date 7) trash)
5566 ;; @r{re-file to @code{wl-trash-folder}}
5567 ("^\\+outbox$" (number 300) "$outbox;lha")
5568 ;; @r{re-file to the specific folder}
5570 ;; @r{do not expire}
5571 ("^\\+ml/wl$" (number 500 510) wl-expire-archive-number1 t)
5572 ;; @r{archive by message number (retaining numbers)}
5573 ("^\\+ml/.*" (number 300 310) wl-expire-archive-number2 t)
5574 ;; @r{archive by a fixed number (retaining numbers)}
5575 ("^\\+diary$" (date 30) wl-expire-archive-date)
5576 ;; @r{archive by year and month (numbers discarded)}
5581 Items in the list has the format of:
5584 (@var{regexp-for-folders} @var{specification-of-messages-to-be-deleted} @var{destination})
5588 The folder is examined if it matches @var{regexp-for-folders} from the
5589 beginning of the list. If you invoke expiration on the folder that does
5590 not match any of them, nothing will happen. And if either the second or
5591 the third element of the item is @code{nil}, expiration will not take
5594 You can use any one of the following for
5595 @var{specification-of-message-to-be-deleted}:
5598 @item (number @var{n1} [@var{n2}])
5599 deletes messages depending on the number of messages in the folder.
5601 @var{n1} is the number of messages which should survive deletion, for example
5602 if its value is 500, the newest 500 messages survive and the rests are
5605 @var{n2} is the number of messages in the folder on which expiration should
5606 take place, which defaults to @var{n1} + 1. For example if its value is 510,
5607 folders with 510 or more messages are expired.
5608 If you configured automatic expiration, frequently used folders may
5609 expire every time it receive messages, and you may be annoyed with the
5610 long delay in reading mail.
5611 In that case, you can set a wide margin between @var{n2} and @var{n1}, so that
5612 expiration would not take place until a certain number of messages
5615 Messages with marks in @code{wl-summary-expire-reserve-marks} (marked
5616 with important/new/unread) are not deleted.
5617 If @code{wl-expire-number-with-reserve-marks} is non-nil, the folder
5618 will expire so as to have 500 messages including such ones.
5619 Otherwise, it will have 500 messages except such ones.
5621 @item (date @var{d1})
5622 deletes messages depending on the dates.
5624 Messages dated @var{d1} or more days ago are deleted, for example if its
5625 value is seven, messages seven days old or more are deleted. Note that
5626 the date is the one in the @samp{Date:} field of the message, not when
5627 the message entered the folder.
5629 Messages with no or invalid @samp{Date:} field does not expire; you
5630 might have to delete them by hand.
5633 You can use any one of the following in the place of @var{destination}:
5637 deletes the messages instantly.
5640 hide the messages from summary (messages are not deleted).
5643 moves the messages to @code{wl-trash-folder}.
5645 @item @var{string}(folder)
5646 moves the messages to the folder specified with @var{string}.
5648 It would be useful for specifying an archiving folder, but because this
5649 does not move important messages, it might be better to use the
5650 standard functions described below.
5652 @item @var{function}
5653 invokes the specified @var{function}.
5655 To the @var{function}, three arguments are passed: a folder name, a list
5656 of messages to be deleted, and msgdb information of the summary. You
5657 can specify function-specific arguments after the name of the
5658 @var{function}. Note that the list contains messages with marks in
5659 @code{wl-summary-expire-reserve-marks}, be careful in writing your own
5662 These are four standard functions; three of them move messages to an archive
5663 folder in the specified way. This means old messages can be compressed
5664 and saved in a file, being deleted from the original folder.
5665 The last one divides messages to some MH folders.
5668 @item wl-expire-archive-number1
5669 re-files to archiving folders corresponding to the message numbers of
5670 the messages being deleted. For example, a message numbered 102 will be
5671 re-filed to @file{wl-00100.zip}, 390 to @file{wl-00300.zip}, and so on.
5672 If @code{wl-expire-archive-files} is 200, messages will be re-filed to
5673 @file{wl-00000.zip}, @file{wl-00200.zip}, @file{wl-00400.zip}, @dots{}.
5675 The archiving folders to which messages are re-filed are determined by
5676 the name of the folder as follows (in this case, archiving folders are
5677 handled as if @code{elmo-archive-treat-file} were non-nil).
5680 @item If the folder type is localdir:
5681 @file{@var{ArchiveDir}/@var{foldername}-xxxxx.zip}
5683 For example, @samp{+ml/wl} corresponds to @samp{$ml/wl;zip}
5684 (@file{~/Mail/ml/wl-00100.zip}).
5686 @item The folder type is other than localdir:
5687 @file{@var{ArchiveDir}/@var{foldertype}/@var{foldername}-xxxxx.zip}
5689 For example, @samp{%#mh/ml/wl} corresponds to
5690 @samp{$imap4/#mh/ml/wl;zip} (@file{~/Mail/imap4/#mh/ml/wl-00100.zip}).
5693 As you can see, in the case of localdir, the folder type is not included
5694 in the path name, but otherwise it is included.
5695 And you can control the prefix to the archiving folder name by
5696 @code{wl-expire-archive-folder-prefix}.
5697 Refer to @code{wl-expire-archive-folder-prefix} for details.
5699 @item wl-expire-archive-number2
5700 re-files every certain number of messages to archiving folders.
5702 This differs from @samp{wl-expire-archive-number1} in that this re-files
5703 to the folder up to the specified number regardless of message numbers.
5704 The archiving folders to which messages are re-filed are determined in the
5705 same way as @code{wl-expire-archive-number1}.
5707 @item wl-expire-archive-date
5708 re-files messages depending on its date (year and month) to archive
5711 For example, a message dated December 1998 is re-filed to
5712 @code{$folder-199812;zip}. The name of the archiving folders except the
5713 date part are determined in the same way as
5714 @code{wl-expire-archive-number1}.
5717 You can set the first argument to these three standard functions to non-nil
5718 in @code{wl-expire-alist} so as to retain message numbers in the folder.
5719 For example, it can be specified just after the name of the function:
5722 ("^\\+ml/wl$" (number 300 310) wl-expire-archive-number1 t)
5725 If you omit the argument, consecutive numbers from 1 are assigned for
5726 each archiving folder.
5728 @item wl-expire-localdir-date
5729 divedes messages depending on its date (year and month) to MH folders
5730 e.g. to @samp{+ml/wl/1999_11/}, @samp{+ml/wl/1999_12/}.
5734 @subsection Treatment for Important or Unread Messages
5736 If you specify any of @code{remove}, @code{trash}, a folder name, or a
5737 standard function, messages with marks in
5738 @code{wl-summary-expire-reserve-marks} (which are called @dfn{reserved
5739 messages} thereafter) are retained.
5741 Per default, this variable include the important, new, and unread marks,
5742 so that messages with these marks are not removed.
5743 Note that you cannot include the temporary mark (i.e. temporary marks
5744 are removed anyway), and be sure to process temporary marks before you
5747 @subsection Auto Expiration
5749 The following setup invokes expiration when you move into the summary
5750 mode. There will be no confirmation, so make sure you made no mistake
5751 in regexp and other settings before you set up this.
5755 (add-hook 'wl-summary-prepared-pre-hook 'wl-summary-expire)
5759 In the folder mode, you can invoke expiration per group as well as per
5760 folder. Therefore, if you specify @samp{Desktop} group, all folders
5761 matching @code{wl-expire-alist} expire.
5765 @subsection Treating archive folders.
5766 To treat archive folders created by @code{wl-expire-archive-number1} and so on,
5767 you must set non-nil value to @code{elmo-archive-treat-file}.
5769 @subsection Confirming
5771 If you are to use @code{remove}, try @code{trash} at first and see
5772 messages move to @code{wl-trash-folder} as expected, then replace it
5773 with @code{remove}. It would be dangerous to use @code{remove} from the
5776 If you are to use @code{wl-expire-archive-number1} and the like, try to
5777 make a folder of the archiver type (@code{zip} or @code{lha}) and see if
5778 you can append messages to it. Even if settings in
5779 @code{wl-expire-alist} and @code{elmo-archive} are correct, messages
5780 would not be saved anywhere and disappeared in case the archiver program
5783 After you make sure you can archive to the folder correctly, you can
5784 invoke expiration and utilize the log.
5786 If you set @code{wl-expire-use-log} to @code{t},
5787 @file{~/.elmo/expired-log} should contain the log, for example:
5791 delete +ml/wl (593 594 595 596 597 598 599)
5792 move +ml/wl -> $ml/wl-00600;tgz;wl (600 601 602)
5796 The first column indicates the operation, i.e. @samp{delete},
5797 @samp{copy}, or @samp{move}. The next is the name of the folder that
5798 expired. In the case of @samp{copy} and @samp{move}, the destination
5799 folder is recorded after @samp{->}. The last is the list of message
5800 numbers that are actually deleted or moved (in the case of @samp{copy}
5801 and @samp{move}, the number is the one in the source folder, rather than
5802 the destination folder).
5804 @subsection Re-filing Reserved Messages
5806 The three standard functions copy reserved messages to the archive
5807 folder, but do not delete them from the source folder. Because
5808 reserved messages and the like always remain, they are recorded in
5809 @file{~/.elmo/expired-alist} so that they are not copied over and over
5810 again. They are not recorded if copied by @code{wl-summary-archive}.
5812 If you enabled logging, usually @samp{move} is recorded for re-filing,
5813 but instead @samp{copy} and @samp{delete} are recorded separately if
5814 reserved messages are involved. This is because it actually copies
5815 messages including reserved, then deletes ones except reserved in that
5818 @section Customizable Variables
5821 @item wl-expire-alist
5822 @vindex wl-expire-alist
5823 The initial setting is @code{nil}.
5824 This variable specifies folders and methods to expire. For details,
5825 refer to @code{wl-expire-alist} settings above.
5827 @item wl-summary-expire-reserve-marks
5828 @vindex wl-summary-expire-reserve-marks
5829 The initial setting is the list below.
5833 (list wl-summary-important-mark
5834 wl-summary-new-uncached-mark
5835 wl-summary-new-cached-mark
5836 wl-summary-unread-mark
5837 wl-summary-unread-uncached-mark
5838 wl-summary-unread-cached-mark)
5842 Messages with these marks are retained in the folder, even after
5844 Only permanent marks can be listed, not temporary marks.
5846 You can list marks one by one as in the default; you can use the
5847 following settings as well:
5851 All messages with permanent marks are retained,
5852 i.e. @code{wl-summary-read-uncached-mark} is included in addition to the
5856 All messages are handled as usual ones that are already read, no matter
5857 what marks they have; even important messages are deleted.
5860 @item wl-expire-archive-files
5861 @vindex wl-expire-archive-files
5862 The initial setting is 100.
5863 This variable specifies the number of messages to be retained in one
5866 @item wl-expire-number-with-reserve-marks
5867 @vindex wl-expire-number-with-reserve-marks
5868 The initial setting is @code{nil}.
5869 If non-nil, if expiring messages are specified by @code{number},
5870 messages with @code{wl-summary-expire-reserve-marks} are also retained.
5872 @item wl-expire-archive-get-folder-function
5873 @vindex wl-expire-archive-get-folder-function
5874 The initial setting is @code{wl-expire-archive-get-folder}.
5876 This variable specifies a function that returns the name of an archiving
5877 folder for standard functions in the place of @var{destination}.
5878 You can use the following three variables for simple modification of
5879 folder names; if you want more complex settings, define your own
5880 function in this variable.
5882 @code{wl-expire-archive-get-folder} can be customized by these
5885 @item @code{wl-expire-archive-folder-name-fmt}
5886 @item @code{wl-expire-archive-folder-type}
5887 @item @code{wl-expire-archive-folder-prefix}
5890 @item wl-expire-archive-folder-name-fmt
5891 @vindex wl-expire-archive-folder-name-fmt
5892 The initial setting is @samp{%s-%%05d;%s}.
5893 This is a @code{format} string for archiving folders used in
5894 @code{wl-expire-archive-number1} and @code{wl-expire-archive-number2}.
5895 Note that you must specify the message number by @samp{%%d}, because it
5896 is parsed twice by @code{format}.
5898 If you modify this, adjust @code{wl-expire-archive-folder-num-regexp} as
5901 @item wl-expire-archive-date-folder-name-fmt
5902 @vindex wl-expire-archive-date-folder-name-fmt
5903 The initial setting is @samp{%s-%%04d%%02d;%s}.
5904 This is a @code{format} string for archiving folders used in
5905 @code{wl-expire-archive-date}. Note that you must specify the message
5906 number by @samp{%%d}, because it is parsed twice by @code{format}.
5907 There should be @samp{%%d} twice, one for the year and the other for the
5910 If you modify this, adjust
5911 @code{wl-expire-archive-date-folder-num-regexp} as well.
5913 @item wl-expire-archive-folder-type
5914 @vindex wl-expire-archive-folder-type
5915 The initial setting is @code{zip}.
5916 This variable specifies an archiver type of the archiving folders.
5918 @item wl-expire-archive-folder-prefix
5919 @vindex wl-expire-archive-folder-prefix
5920 The initial setting is @code{nil}.
5921 This variable specifies the prefix (directory structure) to archiving
5923 Exercise extreme caution in using this feature, as it has not been
5925 In the worst case, there is a fear of destructing archiving folders.
5929 There will be no prefix.
5932 For example, @samp{+ml/wl} will be prefixed by @samp{wl}, resulting in
5933 @samp{$ml/wl-00000;zip;wl}.
5936 For example, @samp{+ml/wl} will be prefixed by prefix @samp{ml/wl},
5939 @samp{$ml/wl-00000;zip;ml/wl}.
5942 @item wl-expire-archive-folder-num-regexp
5943 @vindex wl-expire-archive-folder-num-regexp
5944 The initial setting is @samp{-\\([-0-9]+\\);}.
5945 This variable specifies the regular expression to be used for getting
5946 message numbers from multiple archiving folders specified by
5947 @code{elmo-list-folders}.
5948 Set it in accordance with @code{wl-expire-archive-folder-name-fmt}.
5950 @item wl-expire-archive-date-folder-num-regexp
5951 @vindex wl-expire-archive-date-folder-num-regexp
5952 The initial setting is @samp{-\\([-0-9]+\\);}.
5953 This is the regular expression to be used for getting message numbers
5954 from multiple archiving folders specified by @code{elmo-list-folders}.
5955 Set it in accordance with @code{wl-expire-archive-date-folder-name-fmt}.
5957 @item wl-expire-delete-oldmsg-confirm
5958 @vindex wl-expire-delete-oldmsg-confirm
5959 The initial setting is @code{t}.
5960 If non-nil, messages older than the one with the largest number will be
5961 deleted with confirmation.
5962 If @code{nil}, they are deleted without confirmation.
5964 This feature is valid only if non-nil is specified as a argument to the
5965 standard functions so as to retain numbers.
5967 @item wl-expire-use-log
5968 @vindex wl-expire-use-log
5969 The initial setting is @code{nil}.
5970 If non-nil, expiration logs are recorded in @file{~/.elmo/expired-log}.
5971 They are appended but not truncated or rotated automatically; you might
5972 need to remove it manually.
5974 @item wl-expire-add-seen-list
5975 @vindex wl-expire-add-seen-list
5976 The initial setting is @code{t}.
5978 If non-nil, when messages are re-filed by expiration, read/unread
5979 information is passed to the destination folder.
5981 However if you do not read the destination folder from Wanderlust,
5982 @file{seen} under @file{~/.elmo/} grows larger and larger, so you might
5983 want to set this to @code{nil} if you are simply saving to some
5984 archiving folders. Even if its value is @code{nil}, messages in the
5985 archiving folders are simply treated as unread; it does not affect
5988 @item wl-expire-folder-update-msgdb
5989 @vindex wl-expire-folder-update-msgdb
5990 The initial setting is @code{t}.
5991 If @code{t}, in the folder mode, expiration is carried out after
5992 updating summary information. If you specified a list of regular
5993 expressions of folder names, summary information is updated for matching
5998 @node Archive, , Expire, Expire and Archive
5999 @section Archiving Messages
6001 @subsection Archiving Messages
6002 @kbd{M-x wl-summary-archive} copies the whole folder to archiving
6003 folders. If there are the archiving folders already, only new messages
6006 You can use @code{wl-archive-alist} in order to specify how messages are
6007 archived according to their folder names, as in @code{wl-expire-alist}.
6012 (setq wl-archive-alist
6013 '(("^\\+tmp$" wl-archive-date)
6014 ("^\\+outbox$" wl-archive-number2)
6015 (".*" wl-archive-number1)))
6019 Each item in the list has the following format:
6022 (@var{folders-regexp} @var{deleting-function})
6025 As you can see, you can only use a function after @var{folders-regexp}.
6026 Per default, there are three functions:
6029 @item @code{wl-archive-number1}
6030 @item @code{wl-archive-number2}
6031 @item @code{wl-archive-date}
6034 As inferred from their names, they work similarly to "expire" versions,
6035 other than the following points:
6038 @item No messages are deleted
6039 @item Message numbers are retained even if invoked without arguments
6042 These functions are good to archive all messages in a folder by their
6043 numbers or by their dates.
6044 These are also useful for backup or confirmation purposes before
6046 If you try to re-file them after they are archived, they are deleted but
6049 Per default, the archiving folders to which messages are copied are
6050 determined automatically by @code{wl-expire-archive-get-folder-function}.
6051 You can copy to a specific folder by invoking with a prefix argument,
6052 i.e. @kbd{C-u M-x wl-summary-archive}.
6054 Note that this feature has not been seriously tested, because you can
6055 simply copy to an archiving folder, for example by
6056 @code{wl-summary-copy-region}.
6058 The archiving folders are determined by the same logic as in
6059 @code{wl-summary-expire}; the following customizable variables are
6063 @item @code{wl-expire-archive-files}
6064 @item @code{wl-expire-archive-get-folder-function}
6065 @item @code{wl-expire-archive-folder-name-fmt}
6066 @item @code{wl-expire-archive-folder-type}
6067 @item @code{wl-expire-archive-folder-prefix}
6068 @item @code{wl-expire-archive-folder-num-regexp}
6071 @subsection Customizable Variables
6074 @item wl-archive-alist
6075 @vindex wl-archive-alist
6076 The initial setting is the list shown below:
6080 ((".*" wl-archive-number1))
6085 This variable specifies a function that copies to archiving folders.
6086 To the function, three arguments are passed: a folder name, a list of
6087 messages in the folder, and msgdb information of the summary.
6088 Needless to say, you can use your own function.
6092 @node Scoring, Split messages, Expire and Archive, Top
6093 @chapter Score of the Messages
6095 @c @cindex Kill File
6097 Scoring is the function that associates a score (value) with each
6098 message, and marks as read or deletes from the summary according to it.
6100 You can put target or important marks on essential messages, or read marks
6101 on the ones you do not want to read, for example spam articles.
6103 This scoring function has a capability and a format similar to the one
6104 that Gnus has, although there are some unsupported features and
6105 Wanderlust specifics.
6106 @xref{Scoring, , ,gnus, The gnus Newsreader}.
6109 * Score Commands:: Score Commands
6110 * Score File Format:: Score File Format
6114 @node Score Commands, Score File Format, Scoring, Scoring
6115 @section Score Commands
6116 @cindex Score Commands
6118 @subsection Score File Specification
6120 @code{wl-score-folder-alist} specifies score files or variables in which
6121 scores are defined, corresponding to folder names.
6125 (setq wl-score-folder-alist
6134 If paths to the score files are omitted, the directory specified in the
6135 variable @code{wl-score-files-directory} is assumed.
6137 No matter what you write in @code{wl-score-folder-alist}, the default
6138 score file @code{wl-score-default-file} (@file{all.SCORE}) is always
6139 read (it does not have to exist).
6140 Therefore, in the example above, the three score files,
6141 @file{news.SCORE}, @file{my.SCORE}, and @file{all.SCORE} are read for
6142 the folders that matches @samp{^-.*}.
6144 @subsection Scored Messages
6146 Scores are attached to the messages that are specified by
6147 @code{wl-summary-score-marks} temporarily when the summary is updated;
6148 when you exit from the summary, the scores are removed and reverts to
6151 @subsection Creation of Score Files
6153 In the summary buffer, move to an appropriate message and type @kbd{L}.
6154 Then type @kbd{s}, @kbd{s}, and @kbd{p} at a prompt in a mini-buffer.
6155 The string in Subject is presented. Edit it and press @kbd{@key{RET}}.
6157 This makes @minus{}1000 are scored for messages with the same
6158 @samp{Subject:} as the string you entered. That is, such a score file
6159 is created automatically.
6161 Then, try typing @kbd{h} and @kbd{e} in the same summary buffer.
6162 The score file you just made appears.
6163 This buffer is called @dfn{score editing buffer} thereafter.
6164 When you type @kbd{C-c C-e} in it, you are prompted in the mini-buffer
6165 as you are previously; type @kbd{a}. Then a score entry for "From"
6167 In this way, you can create a score file easily either in the summary
6168 buffer or in the score editing buffer.
6170 By the way, you might be aware the numbers of key strokes are different
6171 between @kbd{s s p} and @kbd{a}.
6172 This is determined by @code{wl-score-header-default-entry}.
6173 This variable specifies the default score entries corresponding to
6175 For example, for "subject" field, a type and a time limit are prompted,
6176 but for "from" field, they are fixed upon automatically as substring and
6177 permanent respectively.
6178 However, score values can be modified by the prefix argument.
6179 Typing @kbd{?} at the mini-buffer shows a help on keys and corresponding
6182 At last, type @kbd{C-c C-c} in the score editing buffer. This saves the
6183 score file and terminates the edit mode. Typing @kbd{C-c C-c} after
6184 erasing contents of the buffer deletes the score file being edited.
6188 @subsubsection Selecting Score Files
6190 You can change score files to which scores are appended by
6191 @code{wl-summary-increase-score} and @code{wl-summary-lower-score} by
6192 @code{wl-score-change-score-file}.
6194 @subsubsection Summing Up the Score
6196 If you add the same entries by @code{wl-summary-increase-score},
6197 @code{wl-summary-lower-score}, and @code{wl-score-edit-insert-entry},
6198 scores for the entry is summed up.
6200 For example, if you create @samp{from} entry with the score of @minus{}1000 by
6201 @kbd{L a} and again @samp{from} with @minus{}200, one entry with the score of
6202 @minus{}1200 will be created as a result.
6204 @subsubsection Creating Thread Key
6206 Creating @samp{Thread} key by @code{wl-summary-increase-score} or
6207 @code{wl-summary-lower-score} appends @samp{Message-ID} of all children.
6209 @subsubsection Creating Followup Key
6211 Creating @samp{Followup} key by @code{wl-summary-increase-score} or
6212 @code{wl-summary-lower-score} appends @samp{Message-ID} of the message
6213 at the cursor to @samp{References} key.
6214 If @code{wl-score-auto-make-followup-entry} is non-nil,
6215 @samp{Message-ID} of all messages to be followed up within dates
6216 specified by @code{wl-score-expiry-days}.
6218 @subsection Key Bindings
6223 @findex wl-summary-increase-score
6224 Increases the score for the current message.
6225 And the score entry is appended to the score file at the same moment.
6226 You can specify the score value by a prefix argument.
6230 @findex wl-summary-lower-score
6231 Decreases the score for the current message.
6232 And the score entry is appended to the score file at the same moment.
6233 You can specify the score value by a prefix argument.
6236 @kindex h R (Summary)
6237 @findex wl-summary-rescore
6238 Re-applies the scoring.
6239 However, already scored messages are not scored anew.
6242 @kindex h c (Summary)
6243 @findex wl-score-change-score-file
6244 Changes the score file currently selected.
6247 @kindex h e (Summary)
6248 @findex wl-score-edit-current-scores
6249 Edits the score file currently selected.
6250 If there are multiple score files, the previously specified one is
6254 @kindex h f (Summary)
6255 @findex wl-score-edit-file
6256 Edits an arbitrary score file and selects it.
6259 @kindex h F (Summary)
6260 @findex wl-score-flush-cache
6261 Erases caches associated to the score files that are read.
6262 If you modified score files directly (from other than Wanderlust), you
6263 need to re-read them after erasing the cache.
6266 @kindex h m (Summary)
6267 @findex wl-score-set-mark-below
6268 Specifies the criterion for scores to be marked as read.
6269 Messages with scores less than this value are marked as read.
6272 @kindex h x (Summary)
6273 @findex wl-score-set-expunge-below
6274 Specifies the criterion for scores to be deleted from the summary.
6275 Messages with scores less than this value are deleted.
6276 "Deleted" means it is not shown; they are not removed from the summary
6277 information or the folder.
6278 The deleted messages can be shown by rescan-noscore again.
6281 @subsection Key Bindings in the Score Editing Buffer
6285 @kindex C-c C-k (Score Mode)
6286 @findex wl-score-edit-kill
6287 Abandons the file being edited.
6290 @kindex C-c C-c (Score Mode)
6291 @findex wl-score-edit-exit
6292 Saves the file being edited, and quits from the edit mode.
6295 @kindex C-c C-p (Score Mode)
6296 @findex wl-score-pretty-print
6300 @kindex C-c C-d (Score Mode)
6301 @findex wl-score-edit-insert-date
6302 Inserts the number of dates from Dec. 31, 1 B.C.
6303 It is used for creating the third factor of time-limited scores.
6306 @kindex C-c C-s (Score Mode)
6307 @findex wl-score-edit-insert-header
6308 Inserts the header of the message selected in the summary buffer.
6311 @kindex C-c C-e (Score Mode)
6312 @findex wl-score-edit-insert-entry
6313 Inserts the score entry of the message selected in the summary buffer.
6316 @subsection Customizable Variables
6319 @item wl-summary-default-score
6320 @vindex wl-summary-default-score
6321 The initial setting is 0 (zero).
6322 This variable specifies the default value of the score.
6323 The score is increased or decreased based upon this value.
6325 @item wl-summary-important-above
6326 @vindex wl-summary-important-above
6327 The initial setting is @code{nil}.
6328 Messages with scores larger than this value are attached with the
6329 important mark (@samp{$}).
6330 If @code{nil}, no important marks are attached.
6332 @item wl-summary-target-above
6333 @vindex wl-summary-target-above
6334 The initial setting is @code{nil}.
6335 Messages with scores larger than this value are attached with the target
6337 If @code{nil}, no target marks are attached.
6339 @item wl-summary-mark-below
6340 @vindex wl-summary-mark-below
6341 The initial setting is 0 (zero).
6342 Messages with scores smaller than this value are marked as read.
6344 @item wl-summary-expunge-below
6345 @vindex wl-summary-expunge-below
6346 The initial setting is @code{nil}.
6347 Messages with scores smaller than this value are deleted from the
6349 If @code{nil}, they are not deleted.
6351 @item wl-summary-score-marks
6352 @vindex wl-summary-score-marks
6353 The initial setting is the list shown below:
6357 (list wl-summary-new-uncached-mark
6358 wl-summary-new-cached-mark)
6363 Messages with these marks are scored.
6365 @item wl-use-scoring
6366 @vindex wl-use-scoring
6367 The initial setting is t.
6368 If non-nil, scoring is enabled.
6370 @item wl-score-files-directory
6371 @vindex wl-score-files-directory
6372 The initial setting is @file{~/.elmo/}.
6373 The default directory for score files.
6375 @item wl-score-interactive-default-score
6376 @vindex wl-score-interactive-default-score
6377 The initial setting is 1000.
6378 This value is used as a score when a score factor is @code{nil} in the
6379 score file. It is also used in @code{wl-summary-increase-score} and
6380 @code{wl-summary-lower-score}, on condition that the value of
6381 @code{wl-score-header-default-entry} is @code{nil}.
6383 @item wl-score-expiry-days
6384 @vindex wl-score-expiry-days
6385 The initial setting is 7.
6386 This is the number of days before time-limited scores are deleted.
6388 @item wl-score-update-entry-dates
6389 @vindex wl-score-update-entry-dates
6390 The initial setting is @code{t}.
6391 If non-nil, it enables deletion of time-limited scores.
6393 @item wl-score-header-default-entry
6394 @vindex wl-score-header-default-entry
6395 Specifies the default value for each header field for score entries
6396 created by @code{wl-summary-increase-score},
6397 @code{wl-summary-lower-score}, and @code{wl-score-edit-insert-entry}.
6399 @item wl-score-simplify-fuzzy-regexp
6400 @vindex wl-score-simplify-fuzzy-regexp
6401 In the case of a type of a score entry is @code{fuzzy}, this specifies a
6402 regular expression to be deleted from the string.
6403 Because this is usually used for Subject, the default is prefixes that
6404 are attached by mailing list programs.
6406 @item wl-summary-rescore-partial-threshold
6407 @vindex wl-summary-rescore-partial-threshold
6408 The initial setting is 200.
6409 When sync-all or rescan is executed, if there are messages more than
6410 this value, only the last same number of messages as this value are
6413 @item wl-summary-auto-sync-marks
6414 @vindex wl-summary-auto-sync-marks
6415 If non-nil, unread/important marks are synchronized when the summary
6417 Unread marks reflect information on the IMAP4 server.
6418 Important marks reflect information on the IMAP4 server (flagged or
6419 not), and contents of @samp{'mark} folder.
6420 The initial setting is @code{t}.
6424 @node Score File Format, , Score Commands, Scoring
6425 @section Score File Format
6426 @cindex Score File Format
6428 The format of score files are the same as Gnus, and basically you can
6429 use Gnus score files as they are. But they are not fully compatible
6430 because some keys are not supported and there are Wanderlust specifics.
6431 @xref{Score File Format, , ,gnus, The gnus Newsreader}.
6436 ("for sale" -1000 nil s)
6437 ("profit" -1000 nil s))
6439 ("spam@@spamspamspam" -10000 nil s))
6441 ("my@@address" 3001 nil s))
6443 (1000000 -10 nil >))
6453 If the key is a string, it is the name of the header to be matched.
6454 The following keys are available:
6455 @code{Subject}, @code{From}, @code{Date}, @code{Message-ID},
6456 @code{References}, @code{To}, @code{Cc}, @code{Chars}, @code{Lines},
6457 @code{Xref}, @code{Extra}, @code{Followup}, @code{Thread}
6458 @code{Chars} and @code{Lines} mean the size and the number of lines of
6459 the message, respectively. @code{Extra}, @code{Followup}, @code{Thread}
6460 are described later.
6461 The rest corresponds the field of the same name.
6463 Arbitrary numbers of core entries are specified after the key.
6464 Each score entry consists of these five factors:
6468 A factor that matches header. This should be a number in the cases of
6469 @code{lines} and @code{chars}, otherwise a string.
6472 A score factor. When the first item matches, the score of the message
6473 is increased or decreased by this value.
6476 A time limiting factor. If @code{nil}, the score is permanent, and in the case
6477 of a number, the score is deleted if it does not match for days
6478 (@code{wl-score-expiry-days}) from the date specified by this.
6479 The date is since Dec. 31, 1 B.C.
6482 A type factor. This specifies the way the first factor matches.
6483 Available types depend on keys.
6486 @item From, Subject, References, Message-ID
6487 For these keys in string, @code{r} and @code{R} (regexp),
6488 @code{s} and @code{S} (substring), @code{e} and @code{E} (exact match),
6489 as well as @code{f} and @code{F} (fuzzy) can be used.
6490 @code{R}, @code{S}, @code{E}, and @code{F} are case sensitive.
6493 For these keys, the following five numerical relative operators can be
6494 used: @code{<}, @code{>}, @code{=}, @code{>=}, @code{<=}.
6497 This key matches @code{From} header, and scores all follow-ups to the
6499 For example, it would be useful for increasing scores for follow-ups to
6502 You can use the same types as @code{From} except for @code{f}.
6503 And a @samp{Followup} entry is automatically appended to the score file.
6506 This key scores (sub-)threads beginning with @code{Message-ID} @var{x}.
6507 A @samp{Thread} entry is automatically appended for each article that
6508 has @var{x} in the @code{References} header.
6509 You can make sure the whole thread including messages that does not have
6510 all ancestors @code{Message-ID} in @code{References} is scored.
6512 You can use the same types as @code{References} except for @code{f}.
6513 And a @samp{Thread} entry is automatically appended to the score file.
6517 A factor for extension header. This is meaningful only if the key is
6519 This specifies headers to be matched other than standard headers like
6520 @code{Subject} and @code{From}.
6521 Note that you should specify the header in
6522 @code{elmo-msgdb-extra-fields} also.
6523 Therefore it does not work in folders where extension headers cannot be
6528 The sum of these scores @emph{after all factors are applied} becomes the
6529 score of the message.
6531 @cindex Score File Atoms
6533 Messages with a score less than this value is marked as read.
6534 The default is @code{wl-summary-mark-below}.
6537 Messages with a score less than this value is deleted from the summary.
6538 The default is @code{wl-summary-expunge-below}.
6540 @item mark-and-expunge
6541 Both @code{mark} and @code{expunge} are applied,
6542 i.e. messages with a score less than this value is marked as read and
6543 deleted from the summary.
6546 Messages with a score greater than this value is attached with temp
6548 The default is @code{wl-summary-target-above}.
6551 Messages with a score greater than this value is attached with important
6553 The default is @code{wl-summary-important-above}.
6558 Not to mention the @code{extra} key, if @code{lines} or @code{xref} keys
6559 are used, you need to set @code{elmo-msgdb-extra-fields}.
6562 (setq elmo-msgdb-extra-fields '("lines" "xref"))
6565 There are other restrictions as shown below:
6568 @item Because @samp{References} field in the summary information
6569 contains only the last @samp{Message-ID}, @code{references} key matches
6573 Keys that can be seen by folder of types:
6577 chars lines xref extra
6578 localdir,localnews Y E E E
6579 nntp (supporting xover) Y E E N
6585 N: cannot be seen (ignored)
6586 E: can be seen with @code{elmo-msgdb-extra-fields} settings
6591 @node Split messages, Address Book, Scoring, Top
6592 @chapter Message splitting
6593 @cindex Split messages
6595 You can use @code{elmo-split} to split message in folder specified by
6596 the variable @code{elmo-split-folder} a la @command{procmail} according
6597 to some specified rules. To use this feature, set as follows in your
6598 @file{~/.emacs} at first.
6601 (autoload 'elmo-split "elmo-split" "Split messages on the folder." t)
6604 Set source folder like following.
6607 (setq elmo-split-folder "%inbox")
6610 And specify the rule in the variable @code{elmo-split-rule} (its format
6611 will be is described below).
6612 Then you can invoke @kbd{M-x elmo-split} to split messages according to
6613 @code{elmo-split-rule}. On the other hand, invoke @kbd{C-u M-x elmo-split}
6614 to do a rehearsal and show result (do not split actually).
6617 We will describe how to specify the rule. First of all, see following
6622 (setq elmo-split-rule
6623 ;; @r{Store messages from spammers into @samp{+junk}}
6624 '(((or (address-equal from "i.am@@spammer")
6625 (address-equal from "dull-work@@dull-boy")
6626 (address-equal from "death-march@@software")
6627 (address-equal from "ares@@aon.at")
6628 (address-equal from "get-money@@richman"))
6630 ;; @r{Store messages from mule mailing list into @samp{%mule}}
6631 ((equal x-ml-name "mule") "%mule")
6632 ;; @r{Store messages from wanderlust mailing list into @samp{%wanderlust}}
6633 ;; @r{and continue evaluating following rules}
6634 ((equal x-ml-name "wanderlust") "%wanderlust" continue)
6635 ;; @r{Store messages from Yahoo user into @samp{+yahoo-@{username@}}}
6636 ((match from "\\(.*\\)@@yahoo\\.com")
6638 ;; @r{Store unmatched mails into @samp{+inbox}}
6643 The basic unit of the rule is a combination like
6646 (@samp{CONDITION} @samp{ACTION} [@code{continue}])
6649 If @samp{CONDITION} is true, @samp{ACTION} is performed.
6650 The 1st element @samp{CONDITION} is a condition represented by a
6651 balanced expression (sexp). Its grammar will be explained below.
6652 The 2nd element @samp{ACTION} is the name of the folder to split
6653 messages into, or a symbol. When the 3rd element @code{continue} is
6654 specified as symbol, evaluating rules is not stopped even when the
6655 condition is satisfied.
6657 The grammar for @samp{CONDITION} is as follows. See example above to
6658 learn how to write the condition practically.
6662 Functions which accept arguments @samp{FIELD-NAME} and @samp{VALUE}.
6663 (@samp{FIELD-NAME} is a symbol that describes the field name)
6667 True if the field value equals to @samp{VALUE}.
6668 Case of the letters are ignored.
6670 True if the field value matches to VALUE.
6671 @samp{VALUE} can contain @code{\&} and @code{\N} which will substitute
6672 from matching @code{\(\)} patterns in the previous @samp{VALUE}.
6673 @item @code{address-equal}
6674 True if one of the addresses in the field equals to
6675 @samp{VALUE}. Case of the letters are ignored.
6676 @item @code{address-match}
6677 True if one of the addresses in the field matches to
6679 @samp{VALUE} can contain @code{\&} and @code{\N} which will substitute
6680 from matching @code{\(\)} patterns in the previous @samp{VALUE}.
6684 Functions which accept an integer argument (@samp{SIZE}).
6688 True if the size of the message is less than @samp{SIZE}.
6690 True if the size of the message is greater than @samp{SIZE}.
6694 Functions which accept any number of arguments.
6698 True if one of the argument returns true.
6700 True if all of the arguments return true.
6706 When a symbol is specified, it is evaluated.
6709 You can specify followings as 2nd @samp{ACTION}.
6715 If some string is specified, it will be regarded as the destination
6716 folder, and the message will be appended to it.
6721 If the symbol @samp{delete} is specified, delete the substance of the
6722 message in @code{elmo-split-folder}
6727 If the symbol @samp{noop} is specified, do nothing on the message and
6733 If some function is specified, execute it.
6736 If the message passes all rules, it will be dealed along @samp{ACTION}
6737 specified by @code{elmo-split-default-action}.
6740 @node Address Book, Spam Filter, Split messages, Top
6741 @chapter Address Book
6742 @cindex Address Book
6744 With address book, you can utilize address completion, and you have
6745 summary displayed with nicknames.
6748 * Mail Addresses:: Definition of Address Book
6749 * Address Manager:: Address Manager
6753 @node Mail Addresses, Address Manager, Address Book, Address Book
6754 @section Address book
6755 @cindex Address book Definition
6757 @cindex Alias, Address
6759 The file @file{~/.addresses} is a simple address book for Wanderlust.
6760 Make address file @file{~/.addresses}, and edit to suit your requirement.
6762 The data written in @file{~/.addresses} are used for address completion
6763 under draft editing mode. Furthermore, they are used when showing names
6764 in summary display mode. You can safely skip this section, if you don't
6765 want to customize address completion and summary display.
6766 It is possible to add/change/remove addresses from @file{~/.addresses} in
6767 summary buffer after Wanderlust is invoked. @refill
6769 The format is very simple. Like this. @refill
6774 # @r{Lines begin with @samp{#} are comment.}
6775 # @r{Empty lines are ignored}
6777 # @r{Format of each line:}
6778 # @var{email-address} "@var{nickname} "@var{realname}"
6780 teranisi@@gohome.org "Yuuichi" "Yuuichi Teranishi"
6781 foo@@bar.gohome.org "Mr. Foo" "John Foo"
6782 bar@@foo.gohome.org "Mr. Bar" "Michael Bar"
6787 One line defines one persons description.
6789 Actually, in default setup, @var{nickname} is used in summary-mode and
6790 @var{realname} is used in draft preparation mode. This behavior is
6791 better understood if you try it and confirmed the function first. You
6792 can write and try a small definition, so you will know the idea of the
6793 address book before writing a big one.
6795 And, if MH alias file is specified in variable @code{wl-alias-file},
6796 it is used as an address information in the draft preparation mode.
6798 If variable @code{wl-use-ldap} is non-nil (initial setting is
6799 @code{nil}), address completion in draft mode uses LDAP information.
6801 If you use LDAP, you have to set @code{wl-ldap-server},
6802 @code{wl-ldap-port} and @code{wl-ldap-base} properly. If your emacs does
6803 not have LDAP feature as built-in feature (Currently only XEmacs can
6804 have built-in LDAP feature), you have to set command exec @env{PATH} to
6805 the program @command{ldapsearch}.
6808 @node Address Manager, , Mail Addresses, Address Book
6809 @section Address Manager
6810 @cindex Address Manager
6812 You can type @kbd{C-c C-a} to enter address manger mode. you can edit
6813 the address book and insert address to draft buffer.
6815 @subsection Key Bindings
6819 @kindex t (Address Manager)
6820 @findex wl-addrmgr-set-to
6821 Add @samp{To:} mark.
6824 @kindex c (Address Manager)
6825 @findex wl-addrmgr-set-cc
6826 Add @samp{Cc:} mark.
6829 @kindex b (Address Manager)
6830 @findex wl-addrmgr-set-bcc
6831 Add @samp{Bcc:} mark.
6834 @kindex u (Address Manager)
6835 @findex wl-addrmgr-unmark
6839 @kindex x (Address Manager)
6840 @findex wl-addrmgr-apply
6842 Insert @samp{To:}, @samp{Cc:}, or @samp{Bcc:} marked addresses to draft
6843 buffer and quit address manager. When no draft buffer, make new draft
6844 with insert marked addresses.
6846 If no mark, quit address manager.
6850 @kindex q (Address Manager)
6851 @findex wl-addrmgr-quit
6852 Quit address manager.
6855 @kindex a (Address Manager)
6856 @findex wl-addrmgr-add
6860 @kindex d (Address Manager)
6861 @findex wl-addrmgr-delete
6865 @kindex e (Address Manager)
6866 @findex wl-addrmgr-edit
6871 @node Spam Filter, Batch Processing, Address Book, Top
6872 @chapter Spam Filter
6875 @code{wl-spam} provides an frontend to external spam filtering programs.
6876 You can register to or judge spam by the filtering program cooperateing
6877 with messages operations on Wanderlust.
6880 * Usage of Spam Filter:: Usage of Spam Filter
6881 * Spam Filter Processors:: Supported spam filters
6884 @node Usage of Spam Filter, Spam Filter Processors, Spam Filter, Spam Filter
6885 @section Usage of Spam Filter
6887 @subsection Initial Setting
6889 To use @code{wl-spam}, write in @file{~/.wl} as follows:
6893 ;; @r{Use @samp{bogofilter} as spam back end}
6894 ;; @r{Set @samp{scheme} here as the spam filter you will use.}
6895 ;; @r{@xref{Spam Filter Processor}}
6896 (setq elmo-spam-scheme 'bogofilter)
6901 @subsection spam mark
6903 The spam mark (@samp{s}) will be provided as new temporary mark.
6904 Messages marked by this will be refiled into @code{wl-spam-folder} when
6905 the action is called for execution. Marked messages will be skipped by
6906 summary walking in ordinary way.
6908 The spam mark is be put on by spam judgement described later, or by
6909 invoking @kbd{k m} at any time.
6911 @subsection spam judgment
6913 You can judge spam messages by following ways:
6917 Make judgement on execution of auto-refile.
6919 Insert @code{wl-refile-guess-by-spam} to arbitrary position in
6920 @code{wl-auto-refile-guess-functions} as follows.
6924 (setq wl-auto-refile-guess-functions
6925 '(wl-refile-guess-by-rule
6926 wl-refile-guess-by-spam))
6930 In this example, judge spam if it could not decide refile destination by
6931 @code{wl-refile-rule-alist}.
6934 Make judgement on entering the summary of specified folder.
6936 Specify the value of @code{wl-spam-auto-check-folder-regexp-list}
6937 as the list of regular expressions for folder names to be
6938 automatically judged by spam filter.
6941 (setq wl-spam-auto-check-folder-regexp-list '("\\+inbox"))
6944 In this example, judgement will be processed when you enter summary of
6945 the folder whose name contains @samp{+inbox}.
6948 Make judgement on splitting messages with @code{elmo-split}.
6950 It provides new function @code{spam-p} to be specified as @samp{CONDITION}
6951 in @code{elmo-split-rule}. This function returns true when the message
6953 @xref{Split messages}
6955 You can also process learning by the result of judgement. (You would
6956 better turn on this feature after learning to some extent)
6962 (setq elmo-split-rule
6963 '(((spam-p) "+spam")
6964 ;; @r{to learn by the judgement, use following instead}
6965 ;((spam-p :register t) "+spam")
6971 @subsection spam learning
6973 @code{wl-spam} automatically learn spam with refiling messages.
6975 At first, @code{wl-spam} classifies the folders controlled by Wanderlust
6976 into following 4 domains by the class of containig messages
6980 Folders containing messages judged as spam.
6981 (The folder specified by @code{wl-spam-folder})
6983 Folders containing messages judged as non-spam.
6985 Folders containing messages not yet judged. Folders without
6986 pre-distribution may belong to this domain e.g. @samp{+inbox}.
6987 (specified by @code{wl-spam-undecided-folder-regexp-list})
6989 Foldes have nothing to do with spam processing e.g.
6990 @code{wl-trash-folder} or @code{wl-draft-folder}. (specified by
6991 @code{wl-spam-ignored-folder-regexp-list})
6994 When you refile messages across different domains, it automatically
6995 learn messages as @samp{spam} or @samp{non-spam} according to domains
6996 it belongs before and after.
6998 To put it concretely, it will learn by following rule:
7001 @item undecide -> spam
7004 learn as spam and cancel previous study as non-spam.
7005 @item undecide -> good
7008 learn as non-spam and cancel previous study as spam.
7011 It do not learn anything in other cases.
7013 @subsection Key Bindings
7014 @cindex Keybind, spam filter
7018 @kindex k m (Summary)
7019 @findex wl-summary-spam
7020 Put spam mark (@samp{s}) on current message.
7023 @kindex k c (Summary)
7024 @findex wl-summary-test-spam
7025 Test current message and put spam mark if judged as spam.
7028 @kindex k C (Summary)
7029 @findex wl-summary-mark-spam
7030 Test messages with the mark in @code{wl-spam-auto-check-marks},
7031 and put spam mark if judged as spam. If it is called with prefix
7032 argument, test all messages regardless of their marks.
7035 @kindex k s (Summary)
7036 @findex wl-summary-register-as-spam
7037 Register current message as spam.
7040 @kindex k S (Summary)
7041 @findex wl-summary-register-as-spam-all
7042 Register all messages in the folder as spam.
7045 @kindex k n (Summary)
7046 @findex wl-summary-register-as-good
7047 Register current message as non-spam.
7050 @kindex k N (Summary)
7051 @findex wl-summary-register-as-good-all
7052 Register all messages in the folder as non-spam.
7055 @kindex m k (Summary)
7056 @findex wl-summary-target-mark-spam
7057 Put spam mark (@samp{s}) on messages with the target mark @samp{*}.
7060 @kindex m s (Summary)
7061 @findex wl-summary-target-mark-register-as-spam
7062 Register messages with the target mark @samp{*} as spam.
7065 @kindex m n (Summary)
7066 @findex wl-summary-target-mark-register-as-good
7067 Register messages with the target mark @samp{*} as non-spam.
7070 @subsection Customizable Variables
7073 @item wl-spam-folder
7074 @vindex wl-spam-folder
7075 Specify the name of destination folder for the spam messages.
7076 The initial setting is @samp{+spam}.
7078 @item wl-spam-undecided-folder-regexp-list
7079 @vindex wl-spam-undecided-folder-regexp-list
7080 Specify the list of regexp of folder names which contain messages
7081 not yet decided as spam or non-spam.
7082 The initial setting is @code{'("inbox")}.
7084 @item wl-spam-ignored-folder-regexp-list
7085 @vindex wl-spam-ignored-folder-regexp-list
7086 The initial setting is as follows.
7090 (list (regexp-opt (list wl-draft-folder
7096 Folders of no effect against spam judgement, specified by the list of
7097 folder name regular expressions.
7099 @item wl-spam-auto-check-folder-regexp-list
7100 @vindex wl-spam-auto-check-folder-regexp-list
7101 Folders to make spam judgement on entering the summary of them,
7102 specified by the list of folder name regular expressions.
7103 The initial setting is @code{nil}.
7105 @item wl-spam-auto-check-marks
7106 @vindex wl-spam-auto-check-marks
7107 The initial setting is the following list:
7111 (list wl-summary-new-uncached-mark
7112 wl-summary-new-cached-mark)
7116 Messages with mark specified by this variable will be processed
7117 by whole-folder judgement including auto test by
7118 @code{wl-spam-auto-check-folder-regexp-list}.
7119 Persistent marks can be used in this method, but temporary marks cannot.
7121 You can specify the list of marks as the initial setting, or you can
7122 specify follwing symbol:
7126 Process all messages regardless of persistent marks.
7131 @node Spam Filter Processors, , Usage of Spam Filter, Spam Filter
7132 @section Supported Spam Filters
7133 @cindex Spam Filter, Bogofilter
7134 @cindex Spam Filter, Spamfilter
7136 Supported spam filtering libraries are following ones.
7139 * bogofilter:: bogofilter
7140 * spamfilter:: spamfilter.el
7141 * bsfilter:: bsfilter
7142 * SpamAssassin:: SpamAssassin
7143 * Regular Expressions Header Matching:: Header regexp
7147 @node bogofilter, spamfilter, Spam Filter Processors, Spam Filter Processors
7148 @subsection bogofilter
7151 bogofilter (@uref{http://bogofilter.sourceforge.net/}) is a spam filter
7152 implemented by C language.
7154 To use spam filter with bogofilter, write following setting in
7155 @file{~/.wl} or somewhere else.
7159 (setq elmo-spam-scheme 'bogofilter)
7163 @subsubsection Customizable Variables
7166 @item elmo-spam-bogofilter-program
7167 @vindex elmo-spam-bogofilter-program
7168 The initial setting is @file{bogofilter}.
7169 Specify the name of executable of bogofilter. If the executable
7170 is not in your environmental variable @env{PATH}, you should
7171 set this by full path.
7173 @item elmo-spam-bogofilter-args
7174 @vindex elmo-spam-bogofilter-args
7175 The initial setting is @code{nil}.
7176 Specify arguments to be supplied for bogofilter executable.
7178 @item elmo-spam-bogofilter-database-directory
7179 @vindex elmo-spam-bogofilter-database-directory
7180 Specify the directory for statistical database to be used.
7181 @code{nil} to use default directory (@file{~/.bogofilter}).
7182 The initial setting is @code{nil}.
7184 @item elmo-spam-bogofilter-max-messages-per-process
7185 @vindex elmo-spam-bogofilter-max-messages-per-process
7186 The initial setting is 30. This variable specifies the number of
7187 messages to be learned by one process.
7189 @item elmo-spam-bogofilter-debug
7190 @vindex elmo-spam-bogofilter-debug
7191 The initial setting is @code{nil}.
7192 If you specify non-nil, the output from @command{bogofilter} is
7193 stored in the buffer named @code{"*Debug ELMO SPAM Bogofilter*"}.
7197 @node spamfilter, bsfilter, bogofilter, Spam Filter Processors
7198 @subsection spamfilter.el
7201 @file{spamfilter.el}
7202 (@uref{http://www.geocities.co.jp/SiliconValley-PaloAlto/7043/}) is a
7203 spam filtering library implemented by Emacs Lisp.
7205 Corresponding modules will be compiled/installed, if you have
7206 @file{spamfilter.el} within @code{load-path} when you are to install wl.
7209 To use @file{spamfilter.el}, write following setting in @file{~/.wl} or
7211 (Of cource, you have to have settings for @file{spamfilter.el} itself)
7215 (setq elmo-spam-scheme 'spamfilter)
7219 @subsubsection Customizable Variables
7222 @item elmo-spam-spamfilter-corpus-filename
7223 @vindex elmo-spam-spamfilter-corpus-filename
7224 The initial setting is @file{~/.elmo/.spamfilter}.
7225 It specifies the name of corpus file.
7228 @node bsfilter, SpamAssassin, spamfilter, Spam Filter Processors
7229 @subsection bsfilter
7232 bsfilter (@uref{http://bsfilter.org/index-e.html}) is a spam filter
7233 implemented by Ruby language.
7235 To use spam filter with bsfilter, write following setting in
7236 @file{~/.wl} or somewhere else.
7240 (setq elmo-spam-scheme 'bsfilter)
7244 @subsubsection Customizable Variables
7247 @item elmo-spam-bsfilter-program
7248 @vindex elmo-spam-bsfilter-program
7249 The initial setting is @file{bsfilter}.
7250 Specify the name of executable of @command{bsfilter}. If the executable
7251 is not in your environmental variable @env{PATH}, you should
7252 set this by full path.
7254 @item elmo-spam-bsfilter-args
7255 @vindex elmo-spam-bsfilter-args
7256 The initial setting is @code{nil}.
7257 Specify arguments to be supplied for bsfilter executable.
7259 @item elmo-spam-bsfilter-database-directory
7260 @vindex elmo-spam-bsfilter-database-directory
7261 Specify the directory for statistical database to be used.
7262 @code{nil} to use default directory (@file{~/.bsfilter}).
7263 The initial setting is @code{nil}.
7265 @item elmo-spam-bsfilter-debug
7266 @vindex elmo-spam-bsfilter-debug
7267 The initial setting is @code{nil}.
7268 If you specify non-nil, the output from @command{bsfilter} is
7269 stored in the buffer named @code{"*Debug ELMO Bsfilter*"}.
7271 @item elmo-spam-bsfilter-shell-program
7272 @vindex elmo-spam-bsfilter-shell-program
7273 The initial setting is @file{ruby}.
7274 Specify the shell to execute @command{bsfilter}. If the shell is not
7275 in your environmental variable @env{PATH}, you should set this by full path.
7277 @item elmo-spam-bsfilter-shell-switch
7278 @vindex elmo-spam-bsfilter-shell-switch
7279 The initial setting is @code{nil}.
7280 Specify options to give to the shell executing @command{bsfilter}.
7282 @item elmo-spam-bsfilter-update-switch
7283 @vindex elmo-spam-bsfilter-update-switch
7284 The initial setting is @code{"--synchronous-auto-update"}.
7285 Specify options to give to @command{bsfilter} for learning messages.
7289 @node SpamAssassin, Regular Expressions Header Matching, bsfilter, Spam Filter Processors
7290 @subsection SpamAssassin
7291 @cindex SpamAssassin
7293 SpamAssassin (@uref{http://spamassassin.org/}) is one of the most
7294 popular spam filtering program implemented on Perl. SpamAssassin
7295 attempts to identify spam using text analysis and several internet-based
7296 realtime blacklists. SpamAssassin also uses a Bayesian learning filter
7297 which enables more accurate spam filtering.
7299 To use @file{SpamAssassin} on Wanderlust, write following setting
7300 in @file{~/.wl} or somewhere else.
7301 (Of course, you have to install SpamAssassin beforehand.)
7305 (setq elmo-spam-scheme 'sa)
7309 @subsubsection Customize Variables
7312 @item elmo-spam-spamassassin-program
7313 @vindex elmo-spam-spamassassin-program
7314 The initial setting is @file{spamassassin}.
7315 Specify the name of executable @command{spamassassin}. If the executable
7316 is not in your environmental variable @env{PATH}, you should
7317 set this by full path.
7319 @item elmo-spam-spamassassin-learn-program
7320 @vindex elmo-spam-spamassassin-learn-program
7321 The initial setting is @file{sa-learn}.
7322 Specify the name of the SpamAssassin's Bayesian filtering learner
7323 program, @command{sa-learn}. If the executable is not in your
7324 environmental variable @env{PATH}, you should set this by full path.
7326 @item elmo-spam-spamassassin-program-arguments
7327 @vindex elmo-spam-spamassassin-program-arguments
7328 The initial setting is @code{'("-e")}.
7329 Specify the arguments to be supplied for @command{spamassassin} executable.
7330 You have to specify the argument to exit the program with an error exit code
7331 when the result is spam. For example, if you want to use @command{spamc}
7332 instead of @command{spamassassin}, you should specify @code{'("-c")}.
7334 @item elmo-spam-spamassassin-learn-program-arguments
7335 @vindex elmo-spam-spamassassin-lern-program-arguments
7336 The initial setting is @code{nil}.
7337 Specify the arguments to be supplied for @command{sa-learn}.
7339 @item elmo-spamassassin-debug
7340 @vindex elmo-spamassassin-debug
7341 The initial setting is @code{nil}.
7342 If you specify @code{t}, the output from @command{spamassassin} is
7343 stored in the buffer named @code{"*Debug ELMO SpamAssassin*"}.
7347 @node Regular Expressions Header Matching, , SpamAssassin, Spam Filter Processors
7348 @subsection Regular Expressions Header Matching
7349 @cindex Regular Expressions Header Matching
7351 Examine if regular expression matches corresponding field in message heaeder,
7352 and decide spam or not. To use this backend, add following setting to @file{~/.wl}.
7356 (setq elmo-spam-scheme 'header)
7360 If you want to check fields not included in the default overview
7361 information, add one into @code{elmo-msgdb-extra-fields}. Then it will
7362 do examination by the overview information and avoid loading whole
7363 message body as far as possible.
7365 @subsubsection Customize Variables
7368 @item elmo-spam-header-good-alist
7369 @vindex elmo-spam-header-good-alist
7370 The initial setting is the following list:
7373 '(("X-Spam-Flag" . "No"))
7376 Specify a list of regular expressions to match with header field name
7377 for making non-spam decision. It takes precedence over
7378 @code{elmo-spam-header-spam-alist}.
7380 @item elmo-spam-header-spam-alist
7381 @vindex elmo-spam-header-spam-alist
7382 The initial setting is the following list:
7385 '(("X-Spam-Flag" . "Yes"))
7388 Specify a list of regular expressions to match with header field name
7389 for making spam decision.
7393 @node Batch Processing, Customization, Spam Filter, Top
7394 @chapter Batch Processing
7395 @cindex Batch Processing
7397 You can request wanderlust to do some job on the command line.
7398 For now, you can invoke prefetching new messages in specified folders.
7400 Specify target folders in @code{wl-batch-prefetch-folder-list} then
7401 invoke as follows to execute prefetching:
7404 emacs -batch -l wl-batch -f wl-batch-prefetch
7407 @section Customize Variables
7410 @item wl-batch-prefetch-folder-list
7411 @vindex wl-batch-prefetch-folder-list
7412 Target folders of prefetching by @code{wl-batch-prefetch}, specified as
7413 a list of folder names.
7417 @node Customization, Migration, Batch Processing, Top
7418 @chapter Customizing Wanderlust
7419 @cindex Customization
7422 * Living with other packages:: Cooperating with other packages
7423 * Highlights:: Highlights
7424 * Biff:: Notify Mail arrival
7425 * Advanced Settings:: Advanced Settings
7426 * Customizable Variables:: Customizable Variables
7431 @node Living with other packages, Highlights, Customization, Customization
7432 @section Living with other packages
7434 Examples with other packages.
7437 * imput:: imput (im-wl.el)
7438 * BBDB:: The Insidious Big Brother Database
7439 * LSDB:: The Lovely Sister Database
7440 * supercite:: supercite.el
7441 * mu-cite:: mu-cite.el
7442 * X-Face:: x-face,bitmap-mule
7443 * dired-dd:: dired-dd.el
7445 * Addrbook:: Addrbook
7446 * mime-w3m:: mime-w3m.el
7450 @node imput, BBDB, Living with other packages, Living with other packages
7455 Place @file{util/im-wl.el} on the @code{load-path} and do the following
7460 (autoload 'wl-draft-send-with-imput-async "im-wl")
7461 (setq wl-draft-send-function 'wl-draft-send-with-imput-async)
7466 @node BBDB, LSDB, imput, Living with other packages
7470 To use The Insidious Big Brother Database (@uref{http://bbdb.sourceforge.net/})
7471 with Wanderlust, place @file{util/bbdb-wl.el} on the @code{load-path}
7472 and do the following settings.
7474 If BBDB is on the @code{load-path} at the installation, @file{bbdb-wl.el} is
7475 byte-compiled and installed.
7483 ;; @r{enable pop-ups}
7484 (setq bbdb-use-pop-up t)
7485 ;; @r{auto collection}
7486 (setq bbdb/mail-auto-create-p t)
7487 ;; @r{exceptional folders against auto collection}
7488 (setq bbdb-wl-ignore-folder-regexp "^@@")
7489 (setq signature-use-bbdb t)
7490 (setq bbdb-north-american-phone-numbers-p nil)
7491 ;; @r{shows the name of bbdb in the summary} :-)
7492 (setq wl-summary-from-function 'bbdb-wl-from-func)
7493 ;; @r{automatically add mailing list fields}
7494 (add-hook 'bbdb-notice-hook 'bbdb-auto-notes-hook)
7495 (setq bbdb-auto-notes-alist '(("X-ML-Name" (".*$" ML 0))))
7499 You can complete address with BBDB by @kbd{M-@key{TAB}}
7503 @node LSDB, supercite, BBDB, Living with other packages
7507 The following is an example setting to use
7508 The Lovely Sister Database (@uref{http://sourceforge.jp/projects/lsdb/})
7515 (add-hook 'wl-draft-mode-hook
7517 (define-key wl-draft-mode-map "\M-\t" 'lsdb-complete-name)))
7521 In this example, bind @kbd{M-@key{TAB}} to @code{lsdb-complete-name}
7522 (complete address with LSDB).
7525 @node supercite, mu-cite, LSDB, Living with other packages
7526 @subsection sc.el(supercite), sc-register.el
7530 The same setting as usual mailers should be OK. The following is an
7531 example of settings:
7535 (autoload 'sc-cite-original "supercite" nil t)
7536 (add-hook 'mail-citation-hook 'sc-cite-original)
7541 @node mu-cite, X-Face, supercite, Living with other packages
7542 @subsection mu-cite.el
7545 The same setting as usual mailers should be OK. The following is an
7546 example of settings.
7548 If you use mu-cite version 8.0 or earlier:
7552 (autoload 'mu-cite/cite-original "mu-cite" nil t)
7553 (setq mail-citation-hook 'mu-cite/cite-original)
7557 If you use mu-cite version 8.1 or later:
7561 (autoload 'mu-cite-original "mu-cite" nil t)
7562 (add-hook 'mail-citation-hook (function mu-cite-original))
7566 @node X-Face, dired-dd, mu-cite, Living with other packages
7570 If you have installed one of the following, you can decode
7571 @samp{X-Face:} field in message buffer and you will see face image.
7574 * x-face-xmas:: XEmacs case
7575 * x-face-mule:: Emacs case
7578 If there is an encoded X-Face string in a file @file{~/.xface} (the
7579 value of the variable @code{wl-x-face-file}), it is inserted as a
7580 @samp{X-Face:} field in the draft buffer (if
7581 @code{wl-auto-insert-x-face} is non-nil).
7583 @node x-face-xmas, x-face-mule, X-Face, X-Face
7584 @subsubsection x-face-xmas (for XEmacs)
7587 If you use @file{x-face-xmas.el} in x-face (@uref{ftp://jpl.org/pub/elisp/})
7588 1.3.6.13 or later, do the following:
7592 (autoload 'x-face-xmas-wl-display-x-face "x-face")
7593 (setq wl-highlight-x-face-function 'x-face-xmas-wl-display-x-face)
7597 @node x-face-mule, , x-face-xmas, X-Face
7598 @subsubsection x-face-mule (for Emacs)
7602 If you use @file{x-face-mule.el} in bitmap-mule
7603 (@uref{ftp://ftp.jpl.org/pub/elisp/bitmap/}) 8.0 or later, do the following:
7607 (autoload 'x-face-decode-message-header "x-face-mule")
7608 (setq wl-highlight-x-face-function 'x-face-decode-message-header)
7612 @subsubsection x-face-e21 (for Emacs 21.x)
7615 With Emacs 21.x, you can use @file{x-face-e21.el}
7616 (@uref{ftp://jpl.org/pub/elisp/}) instead of @file{x-face-mule.el}
7617 to display X-Face. In this case, bitmap-mule is not required.
7622 (autoload 'x-face-decode-message-header "x-face-e21")
7623 (setq wl-highlight-x-face-function 'x-face-decode-message-header)
7628 @node dired-dd, MHC, X-Face, Living with other packages
7629 @subsection dired-dd(Dired-DragDrop)
7630 @pindex Dired-DragDrop
7632 @cindex Drag and Drop
7634 If you embed @file{dired-dd-mime.el} in the dired-dd package, you can
7635 compose multi-part by simple Drag-and-Drop from dired to the draft
7636 buffer being edited in GNU Emacs (this feature is not Wanderlust
7637 specific, but general-purpose for SEMI).
7641 ;; @r{dired-dd:} http://www.asahi-net.or.jp/~pi9s-nnb/dired-dd-home.html
7647 ;; @r{Set dired-x variables here.}
7648 ;; @r{To and flo@dots{}}
7650 (progn (require 'dired-dd)
7651 (require 'dired-dd-mime))))))
7655 @node MHC, Addrbook, dired-dd, Living with other packages
7659 Message Harmonized Calendaring system
7660 (@uref{http://www.quickhack.net/mhc/})
7662 By using MHC, you can make a calendar from the messages.
7668 (setq mhc-mailer-package 'wl)
7669 (autoload 'mhc-mode "mhc" nil t)
7670 (add-hook 'wl-summary-mode-hook 'mhc-mode)
7671 (add-hook 'wl-folder-mode-hook 'mhc-mode)
7679 (autoload 'mhc-wl-setup "mhc-wl")
7680 (add-hook 'wl-init-hook 'mhc-wl-setup)
7684 @node Addrbook, mime-w3m, MHC, Living with other packages
7685 @subsection wl-addrbook.el
7689 (@uref{http://www.mew.org/})
7691 Place @file{util/wl-addrbook.el} and @file{util/wl-complete.el} on the
7692 @code{load-path} and do the following settings.
7696 (require 'wl-addrbook)
7701 @node mime-w3m, , Addrbook, Living with other packages
7702 @subsection mime-w3m.el
7705 You can display html part by using @file{mime-w3m.el}
7706 distributed with emacs-w3m (@uref{http://emacs-w3m.namazu.org/}).
7707 You can find the usage in comment region at the head of @file{mime-w3m.el}.
7710 @node Highlights, Biff, Living with other packages, Customization
7713 @subsection Customizable Variables
7716 @item wl-summary-highlight
7717 @vindex wl-summary-highlight
7718 The initial setting is @code{t}.
7719 If non-nil, the summary is highlighted.
7721 @item wl-highlight-max-summary-lines
7722 @vindex wl-highlight-max-summary-lines
7723 The initial setting is 10000.
7724 The summary is not highlighted if it has more lines than this value.
7726 @item wl-summary-highlight-partial-threshold
7727 @vindex wl-summary-highlight-partial-threshold
7728 The initial setting is 1000.
7729 This is a threshold whether the whole summary is highlighted.
7730 If there are more lines of messages in the summary, it is partially
7733 @item wl-summary-partial-highlight-above-lines
7734 @vindex wl-summary-partial-highlight-above-lines
7735 The initial setting is 30. If there are more lines of messages than
7736 @code{wl-summary-highlight-partial-threshold} in the summary, messages
7737 after the point that is the same number of lines as this value above the
7738 cursor line are highlighted partially. (If this value is @code{nil},
7739 the last same number of lines as the value of
7740 @code{wl-summary-highlight-partial-threshold} are highlighted.)
7742 @item wl-highlight-body-too
7743 @vindex wl-highlight-body-too
7744 The initial setting is @code{t}.
7745 If non-nil, bodies of drafts and messages are also highlighted.
7747 @item wl-highlight-message-header-alist
7748 @vindex wl-highlight-message-header-alist
7749 When highlighting headers of drafts and messages, this variable
7750 specifies which faces are allocated to important
7751 (@code{wl-highlight-message-important-header-contents}), secondly
7752 important (@code{wl-highlight-message-important-header-contents2}), and
7753 unimportant (@code{wl-highlight-message-unimportant-header-contents})
7755 Similarly, it can be used for allocating arbitrary faces to arbitrary
7756 regular expressions.
7758 @item wl-highlight-citation-prefix-regexp
7759 @vindex wl-highlight-citation-prefix-regexp
7760 Specifies a regular expression to which quoted lines in bodies of
7761 drafts and messages match.
7762 Bodies matching to this regular expression are highlighted by the faces
7763 specified by (@code{wl-highlight-message-cited-text-*}).
7765 @item wl-highlight-highlight-citation-too
7766 @vindex wl-highlight-highlight-citation-too
7767 The initial setting is @code{nil}.
7768 If non-nil, the quoting regular expression itself given by
7769 @code{wl-highlight-citation-prefix-regexp} is also highlighted.
7771 @item wl-highlight-citation-header-regexp
7772 @vindex wl-highlight-citation-header-regexp
7773 Specifies a regular expression that denotes beginning of quotation.
7774 Bodies matching to this regular expression are highlighted by the face
7775 specified by @code{wl-highlight-message-headers}.
7777 @item wl-highlight-max-header-size
7778 @vindex wl-highlight-max-header-size
7779 The initial setting is @code{nil}. If a header size is larger than this
7780 value, it will not be highlighted. If @code{nil}, always highlighted
7781 (ignore header size).
7783 @item wl-highlight-max-message-size
7784 @vindex wl-highlight-max-message-size
7785 The initial setting is 10000.
7786 If a message is larger than this value, it will not be highlighted.
7787 With this variable, highlight is suppressed for uuencode or huge digest
7790 @item wl-highlight-signature-separator
7791 @vindex wl-highlight-signature-separator
7792 Specifies regular expressions that denotes the boundary of a signature.
7793 It can be a regular expression, or a list of ones.
7794 Messages after the place that matches this regular expression are
7795 highlighted by the face specified by
7796 @code{wl-highlight-message-signature}.
7798 @item wl-max-signature-size
7799 @vindex wl-max-signature-size
7800 The initial setting is 400.
7801 This is the largest size for a signature to be highlighted.
7803 @item wl-use-highlight-mouse-line
7804 @vindex wl-use-highlight-mouse-line
7805 The initial setting is @code{t}.
7806 If non-nil, the line pointed by the mouse is highlighted in the folder
7807 mode, summary mode, and the like.
7810 @subsection Setting Colors and Fonts of the Characters
7812 If you want to change colors or fonts of the characters, you need to
7813 modify faces defined in Wanderlust. Use @code{set-face-font} if you
7814 want to change fonts, and @code{set-face-foreground} for colors, and so
7815 on. You cannot write face settings in @file{.emacs}; write in
7818 For example, if you want to change the color for signatures to yellow,
7822 (set-face-foreground 'wl-highlight-message-signature "yellow")
7828 Faces defined in Wanderlust:
7831 @item wl-highlight-message-headers
7832 The face for field names of message headers.
7834 @item wl-highlight-message-header-contents
7835 The face for field bodies of message headers.
7837 @item wl-highlight-message-important-header-contents
7838 The face for important parts of message headers.
7839 Per default, this face is used for a body of @samp{Subject:} field.
7840 You can change its value by editing
7841 @code{wl-highlight-message-header-alist}.
7843 @item wl-highlight-message-important-header-contents2
7844 The face for secondly important parts of message headers.
7845 Per default, this face is used for bodies of @samp{From:} and @samp{To:}
7846 fields. You can change its value by editing
7847 @code{wl-highlight-message-header-alist}.
7849 @item wl-highlight-message-unimportant-header-contents
7850 The face for unimportant parts of message headers.
7851 Per default, this face is used for bodies of @samp{X-} fields
7852 @samp{User-Agent:} fields. You can change its value by editing
7853 @code{wl-highlight-message-header-alist}.
7855 @item wl-highlight-message-citation-header
7856 The face for headers of quoted messages.
7858 @item wl-highlight-message-cited-text-*
7859 The face for texts of quoted messages. The last @samp{*} is a
7860 @var{single figure} so that 10 different colors can be used according to
7863 @item wl-highlight-message-signature
7864 The face for signatures of messages. The initial settings are
7865 @samp{khaki} for light background colors, and @samp{DarkSlateBlue} for
7866 dark background colors.
7868 @item wl-highlight-header-separator-face
7869 The face for header separators of draft messages.
7871 @item wl-highlight-summary-important-face
7872 The face for message lines with important marks in the summary.
7874 @item wl-highlight-summary-new-face
7875 The face for message lines with new marks in the summary.
7877 @item wl-highlight-summary-displaying-face
7878 The face for the message line that is currently displayed.
7879 This face is overlaid.
7881 @item wl-highlight-thread-indent-face
7882 The face for the threads that is currently displayed.
7884 @item wl-highlight-summary-unread-face
7885 The face for message lines with unread marks in the summary.
7887 @item wl-highlight-summary-deleted-face
7888 The face for message lines with delete marks in the summary.
7890 @item wl-highlight-summary-refiled-face
7891 The face for message lines with re-file marks in the summary.
7893 @item wl-highlight-refile-destination-face
7894 The face for re-file information part of message lines with re-file
7895 marks in the summary.
7897 @item wl-highlight-summary-copied-face
7898 The face for message lines with copy marks in the summary.
7900 @item wl-highlight-summary-target-face
7901 The face for message lines with target marks @samp{*} in the summary.
7903 @item wl-highlight-summary-thread-top-face
7904 The face for message lines that are on the top of the thread in the
7907 @item wl-highlight-summary-normal-face
7908 The face for message lines that are not on top of the thread in the
7911 @item wl-highlight-folder-unknown-face
7912 The face for folders that are not known to have how many unsync messages
7915 @item wl-highlight-folder-zero-face
7916 The face for folders that have no unsync messages in the folder mode.
7918 @item wl-highlight-folder-few-face
7919 The face for folders that have some unsync messages in the folder mode.
7921 @item wl-highlight-folder-many-face
7922 The face for folders that have many unsync messages in the folder mode.
7923 The boundary between `some' and `many' is specified by the variable
7924 @code{wl-folder-many-unsync-threshold}.
7926 @item wl-highlight-folder-unread-face
7927 The face for folders that have no unsync but unread messages in the
7930 @item wl-highlight-folder-killed-face
7931 The face for folders that are deleted from the access group in the
7934 @item wl-highlight-folder-opened-face
7935 The face for open groups in the folder mode.
7936 It is meaningful when @code{wl-highlight-folder-by-numbers} is
7937 @code{nil} or a @var{number}.
7939 @item wl-highlight-folder-closed-face
7940 The face for close groups in the folder mode.
7941 It is meaningful when @code{wl-highlight-folder-by-numbers} is
7942 @code{nil} or a @var{number}.
7944 @item wl-highlight-folder-path-face
7945 The face for the path to the currently selected folder in the folder
7948 @item wl-highlight-logo-face
7949 The face for logo in the demo.
7951 @item wl-highlight-demo-face
7952 The face for strings (for example, a version number) in the demo.
7956 @node Biff, Advanced Settings, Highlights, Customization
7957 @section Notify Mail arrival
7960 Following setting is to notify mail arrival of @samp{%inbox}
7961 by the indicator on the modeline
7964 (setq wl-biff-check-folder-list '("%inbox"))
7967 @subsection Customizable Variables
7969 @item wl-biff-check-folder-list
7970 @vindex wl-biff-check-folder-list
7971 The initial setting is @code{nil}.
7972 This is the list of folders to check mail arrival.
7973 If @code{nil}, wl doesn't check mail arrival.
7975 @item wl-biff-check-interval
7976 @vindex wl-biff-check-interval
7977 The initial setting is 40 (in seconds).
7978 Check mail arrival in this period.
7980 @item wl-biff-notify-hook
7981 @vindex wl-biff-notify-hook
7982 This hook is run at the arrival of new mail.
7983 To beep with mail arrival(initial setting), set as follows.
7985 (setq wl-biff-notify-hook '(ding))
7987 For silence, set to @code{nil}.
7991 @node Advanced Settings, Customizable Variables, Biff, Customization
7992 @section Advanced Settings
7995 * Draft for Reply:: Draft for Reply
7996 * Thread Format:: Appearance of Thread
7997 * User-Agent Field:: @samp{User-Agent:} Header Field
8001 @node Draft for Reply, Thread Format, Advanced Settings, Advanced Settings
8002 @subsection Draft for Replay
8003 @vindex wl-draft-reply-with-argument-list
8004 @vindex wl-draft-reply-without-argument-list
8006 If you type @kbd{a} in the Summary Buffer, a draft for reply is prepared.
8007 The addressee for the draft is decided by following rules.
8009 For example, you can set as follows:
8013 (setq wl-draft-reply-without-argument-list
8014 '(("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
8015 ("Followup-To" . (nil nil ("Followup-To")))
8016 (("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
8017 ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
8021 Where each element of the list @code{wl-draft-reply-without-argument-list}
8025 (key . (to-list cc-list newsgroup-list))
8028 and if the field designated by @samp{key} exist in the parent message,
8029 parent's field values designated by @samp{to-list} are copied to @samp{To:}
8030 in the draft. Similarly, parent's fields designated by @samp{cc-list} and
8031 @samp{newsgroup-list} are copied to @samp{Cc:} and @samp{Newsgroups:} in
8032 the draft respectively.
8037 ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
8040 Match if the parent has @samp{Mail-Followup-To} field.
8041 The components of parent's @samp{Mail-Followup-To} and @samp{Newsgroups}
8042 fields are copied to @samp{To} and @samp{Newsgroups} in the draft
8046 (("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
8049 Match if the parent has both @samp{X-ML-Name} and @samp{Reply-To} fields.
8050 Parent's @samp{Reply-To} is copied to @samp{To} in the draft.
8053 ("From" . (("From") ("To" "Cc") ("Newsgroups")))
8056 Copy parent's @samp{From} to @samp{To} in the draft, parent's @samp{To} and
8057 @samp{Cc} to @samp{Cc}, parent's @samp{Newsgroups} to @samp{Newsgroups}
8060 These are evaluated in order and first matched one is used.
8062 Moreover, the behavior of @kbd{a} with prefix argument can
8063 be directed by @code{wl-draft-reply-with-argument-list} as well.
8066 By the way, you can use some function (will be evaluated in the parent
8067 message buffer) in the place of @samp{key} or @samp{to-list} etc.
8069 If you want to write a rule for replying to message written by yourself,
8070 specify function @code{wl-draft-self-reply-p} as @samp{key}.
8072 If you only want to reply to mailing lists in
8073 @code{wl-subscribed-mailing-list} if the parent has some of them,
8078 (defun wl-mailing-list-addresses ()
8082 (nth 1 (std11-extract-address-components addr)))
8085 (elmo-multiple-fields-body-list (list "To" "Cc"))
8087 (when (elmo-string-matched-member to wl-subscribed-mailing-list t)
8088 (setq list-addrs (cons to list-addrs))))
8089 (nreverse list-addrs)))
8091 (setq wl-draft-reply-with-argument-list
8092 '((wl-mailing-list-addresses . (wl-mailing-list-addresses nil nil))
8093 ("Reply-To" . (("Reply-To") nil nil))
8094 ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
8095 ("From" . (("From") nil nil))))
8100 @node Thread Format, User-Agent Field, Draft for Reply, Advanced Settings
8101 @subsection Appearance of Threads
8105 389 09/18(Fri)01:07 [ Teranishi ] wl-0.6.3
8106 390 09/18(Fri)07:25 +-[ Tsumura-san ]
8107 391 09/18(Fri)19:24 +-[ Murata-san ]
8108 392 09/20(Sun)21:49 +-[ Okunishi-san ]
8109 396 09/20(Sun)22:11 | +-[ Tsumura-san ]
8110 398 09/21(Mon)00:17 | +-[ Tsumura-san ]
8111 408 09/21(Mon)22:37 | +-[ Okunishi-san ]
8112 411 09/22(Tue)01:34 | +-[ Tsumura-san ]
8113 412 09/22(Tue)09:28 | +-[ Teranishi ]
8114 415 09/22(Tue)11:52 | +-[ Tsumura-san ]
8115 416 09/22(Tue)12:38 | +-[ Teranishi ]
8116 395 09/20(Sun)21:49 +-[ Okunishi-san ]
8117 397 09/21(Mon)00:15 +-[ Okunishi-san ]
8121 Settings to make appearance of threads like shown above:
8125 (setq wl-thread-indent-level 2)
8126 (setq wl-thread-have-younger-brother-str "+")
8127 (setq wl-thread-youngest-child-str "+")
8128 (setq wl-thread-vertical-str "|")
8129 (setq wl-thread-horizontal-str "-")
8130 (setq wl-thread-space-str " ")
8134 If you do not want to see branches, do the following:
8138 (setq wl-thread-indent-level 2)
8139 (setq wl-thread-have-younger-brother-str " ")
8140 (setq wl-thread-youngest-child-str " ")
8141 (setq wl-thread-vertical-str " ")
8142 (setq wl-thread-horizontal-str " ")
8143 (setq wl-thread-space-str " ")
8148 @node User-Agent Field, , Thread Format, Advanced Settings
8149 @subsection User-Agent Field
8153 If you are eccentric enough to elaborate @samp{X-Mailer:} or
8154 @samp{User-Agent:} fields, define a function that generate appropriate
8155 strings as you like, and set it to variable
8156 @code{wl-generate-mailer-string-function}.
8158 If you do not want verbose @samp{User-Agent:} field, do the following:
8162 (setq wl-generate-mailer-string-function
8163 'wl-generate-user-agent-string-1)
8167 The following is a example:
8171 (setq wl-generate-mailer-string-function nil)
8172 (setq wl-draft-additional-header-alist
8174 (cons 'X-Mailer (lambda () (product-string-1 'wl-version)))))
8179 @node Customizable Variables, Hooks, Advanced Settings, Customization
8180 @section Customizable Variables
8182 Customizable variables that have not been described yet:
8185 @item wl-default-folder
8186 @vindex wl-default-folder
8187 The initial setting is @samp{%inbox}. This is the default value for moving to
8188 a folder and the like.
8190 @item wl-draft-folder
8191 @vindex wl-draft-folder
8192 The initial setting is @samp{+draft}. It is the folder to which drafts are
8193 saved. It must be a writable folder.
8194 Note that variable settings applied by @code{wl-draft-config-exec} is saved
8195 under @code{elmo-msgdb-directory}. That is to say, if you specified remote
8196 folder as @code{wl-draft-folder}, variable settings which are applied by
8197 @code{wl-draft-config-exec} before saving the draft will not affect on the
8198 draft buffer on another host by invoking @code{wl-summary-reedit}.
8200 @item wl-trash-folder
8201 @vindex wl-trash-folder
8202 The initial setting is @samp{+trash}. It is the wastebasket folder.
8203 If you changed this variable, you had better restart Wanderlust.
8205 @item wl-interactive-exit
8206 @vindex wl-interactive-exit
8207 The initial setting is @code{t}.
8208 If non-nil, you are asked for confirmation when Wanderlust terminates.
8210 @item wl-interactive-send
8211 @vindex wl-interactive-send
8212 The initial setting is @code{t}.
8213 If non-nil, you are asked for confirmation when mail is sent.
8215 @item wl-default-sync-range
8216 @vindex wl-default-sync-range
8217 The initial setting is @samp{update}.
8218 Default update range of the summary. You can specify
8219 @samp{all}, @samp{update}, @samp{rescan} or @samp{no-sync}.
8220 See description of @code{wl-summary-sync} for the meaning of ranges.
8222 @item wl-folder-sync-range-alist
8223 @vindex wl-folder-sync-range-alist
8224 The initial setting is the alist shown below:
8229 ("^\\+draft$\\|^\\+queue$" . "all"))
8234 This is an associative list of regular expressions of folder names and
8235 update range of the summary. Update range is one of the @samp{all},
8236 @samp{update}, @samp{rescan} or @samp{no-sync}. If the folder do not
8237 match any of them, the value of @code{wl-default-sync-range} is used
8238 (@samp{update} by default).
8239 See description of @code{wl-summary-sync} for the meaning of ranges.
8242 @vindex wl-ask-range
8243 The initial setting is @code{t}.
8244 If @code{nil}, the value of @code{wl-folder-sync-range-alist} is used
8245 for updating the summary when you changed folders.
8247 @item wl-mime-charset
8248 @vindex wl-mime-charset
8249 The initial setting is @code{x-ctext}.
8250 This is the MIME charset for messages that are not MIME (e.g. without
8251 @samp{Content-Type:}). This value also used as default charset for
8252 summary. (If you want to share Summary on Nemacs and other Emacsen, set
8253 this value as @code{iso-2022-jp}.)
8255 @item wl-highlight-folder-with-icon
8256 @vindex wl-highlight-folder-with-icon
8257 This is meaningful for XEmacs or Emacs 21.. The initial setting depends
8258 on Emacsen (@code{t} for XEmacs or Emacs 21 with icons).
8260 @item wl-strict-diff-folders
8261 @vindex wl-strict-diff-folders
8262 This is a list of regular expressions of folders.
8263 Unread messages are checked, for example when you press @kbd{s} in
8264 the folder mode, usually in a brief way (rapidly processed but not
8266 The folders matching this variable are seriously checked.
8267 You may want to set this variable so as to match conditional filter
8268 folders for IMAP4 folders.
8269 The initial setting is @code{nil}.
8271 @item wl-folder-use-server-diff
8272 @vindex wl-folder-use-server-diff
8273 When unread messages are checked, for example when you press @kbd{s} in
8274 the folder mode, usually (the number of messages on the server) @minus{}
8275 (the number of local messages) will be the number of unread messages.
8276 However, if this variable is non-nil, the number of unread messages on
8277 the server is checked. This affects IMAP4 folders only, but IMAP4
8278 folders in mail boxes matching
8279 @code{elmo-imap4-disuse-server-flag-mailbox-regexp} are not checked for
8280 the number of unread messages on the server, even if they matches this
8281 variable. The initial setting is @code{t}.
8283 @item wl-auto-check-folder-name
8284 @vindex wl-auto-check-folder-name
8285 The initial setting is @code{nil}.
8286 You can specify a folder or a group which is checked for unread message
8287 at the start. You can also specify a list of folders (groups) to be checked.
8288 If the value is @code{nil}, whole Desktop is checked at the start.
8289 If it is @code{none}, no folders are checked.
8291 @item wl-auto-uncheck-folder-list
8292 @vindex wl-auto-uncheck-folder-list
8293 The initial setting is the list shown below:
8302 You can set a list of regular expressions to specify folders
8303 which are not automatically checked even if they are included
8304 in some groups assigned by @code{wl-auto-check-folder-name}.
8306 @item wl-auto-check-folder-list
8307 @vindex wl-auto-check-folder-list
8308 The initial setting is @code{nil}.
8309 You can set a list of regular expressions to specify exceptions
8310 for @code{wl-auto-uncheck-folder-list}.
8312 @item wl-no-save-folder-list
8313 @vindex wl-no-save-folder-list
8314 The initial setting is the list shown below:
8323 This is a list of regular expressions of folders not to be saved.
8325 @item wl-save-folder-list
8326 @vindex wl-save-folder-list
8327 The initial setting is @code{nil}.
8328 This is a list of regular expressions of folders to be saved.
8329 This takes precedence over @code{wl-no-save-folder-list}.
8331 @item wl-folder-mime-charset-alist
8332 @vindex wl-folder-mime-charset-alist
8333 The initial setting is the alist shown below:
8337 (("^-alt\\.chinese" . big5)
8338 ("^-relcom\\." . koi8-r)
8340 ("^-han\\." . euc-kr))
8345 This is an associative list of regular expressions of folder names and
8347 If a folder do not match, @code{wl-mime-charset} is used.
8349 @item wl-folder-init-load-access-folders
8350 @vindex wl-folder-init-load-access-folders
8351 The initial setting is @code{nil}.
8352 This is a list of access groups to be loaded specifically at the start.
8353 If it is @code{nil}, @code{wl-folder-init-no-load-access-folders} is referred.
8355 @item wl-folder-init-no-load-access-folders
8356 @vindex wl-folder-init-no-load-access-folders
8357 The initial setting is @code{nil}.
8358 This is a list of access groups not to be loaded specifically at the
8360 It is ignored if @code{wl-folder-init-load-access-folders} is non-nil.
8362 @item wl-dispose-folder-alist
8363 @vindex wl-dispose-folder-alist
8364 The initial setting is the alist shown below:
8374 This list determines disposition of messages with disposal marks.
8375 Each item in the list is a folder and destination; you can specify any
8376 one of the following in the place of destination:
8379 @code{remove} or @code{null} : deletes the messages instantly.
8380 string : moves the messages to the specific folder.
8381 @code{trash} or others : moves the messages to @code{wl-trash-folder}.
8384 @item wl-x-face-file
8385 @vindex wl-x-face-file
8386 The initial setting is @file{~/.xface}.
8387 The name of the file that contains encoded X-Face strings.
8390 @item wl-demo-display-logo
8391 @vindex wl-demo-display-logo
8392 If non-nil, bitmap image is shown on the opening demo. If you set
8393 @code{xpm} or @code{xbm}, (if possible) display selected image type
8396 @item elmo-use-database
8397 @vindex elmo-use-database
8398 This is meaningful for XEmacs only. The initial setting depends on
8399 XEmacs (@code{t} for XEmacs with dbm).
8400 If non-nil, Message-ID is controlled by dbm.
8402 @item elmo-passwd-alist-file-name
8403 @vindex elmo-passwd-alist-file-name
8404 The initial setting is @file{passwd}.
8405 This is the name of the file in which passwords are saved.
8406 @code{elmo-passwd-alist-save} saves current passwords to the file.
8408 @item elmo-nntp-list-folders-use-cache
8409 @vindex elmo-nntp-list-folders-use-cache
8410 The initial setting is 600 (in seconds).
8411 This is period in seconds during which results of @samp{list} and
8412 @samp{list active} in NNTP are cached. If it is @code{nil}, they are
8415 @item elmo-nntp-max-number-precedes-list-active
8416 @vindex elmo-nntp-max-number-precedes-list-active
8417 The initial setting is @code{nil}.
8418 If non-nil, the number of article obtained by @samp{list active} in NNTP
8419 are used as the maximum article number of the folder.
8420 Set this to @code{t} if you are using for example INN 2.3 as an NNTP server,
8421 and if the number of read messages is not correct.
8423 @item elmo-nntp-default-use-listgroup
8424 @vindex elmo-nntp-default-use-listgroup
8425 The initial setting is @code{t}.
8426 If non-nil, @samp{listgroup} is used for checking the total number of
8427 articles. If it is @code{nil}, @samp{group} is used. In the latter
8428 case, the processing will be a little faster at the sacrifice of
8431 @item elmo-pop3-send-command-synchronously
8432 @vindex elmo-pop3-send-command-synchronously
8433 The initial setting is @code{nil}.
8434 If non-nil, POP3 commands are issued synchronously. Some implementation
8435 of POP3 server fails to get summary information without this setting.
8436 You may have to set this variable to @code{t}, if the process hangs
8437 while looking up POP3.
8439 @item elmo-dop-flush-confirm
8440 @vindex elmo-dop-flush-confirm
8441 The initial setting is @code{t}.
8442 If non-nil, you are asked for confirmation if accumulated off-line
8443 operations are executed.
8445 @item elmo-display-progress-threshold
8446 @vindex elmo-display-progress-threshold
8447 The initial setting is 20.
8448 Threshold for display of progress gauge. If number of renewal is more than
8449 this value, display progress gauge.
8453 @node Hooks, , Customizable Variables, Customization
8459 @node Migration, Terminology, Customization, Top
8460 @chapter Switch from older version of Wanderlust
8463 @node Terminology, Mailing List, Migration, Top
8464 @chapter Terminology around Wanderlust
8467 Here we explain terminologies used in this manual.
8471 A container in which messages are stored.
8474 A set consists of some folders.
8477 A special group consists of automatically collected folders under
8478 some specified path.
8479 @xref{Folder Definition}.
8481 @item summary buffer
8482 A buffer for displaying list of messages in some folder.
8484 @item sticky summary
8485 Compared with ordinary summary buffer which will be destroyed after
8486 exiting from it, this type of summary will be remain even after exiting
8487 by @kbd{q} or @kbd{g}.
8488 @xref{Sticky Summary}.
8491 To delete or put into the archive expired messages.
8498 To cache messages beforehand in order to read messages after you will be
8499 disconnected from the server.
8503 @node Mailing List, Addition, Terminology, Top
8504 @chapter Wanderlust Mailing List
8508 Topics related to Wanderlust are discussed in following mailing lists.
8509 The latest version is also announced there.
8512 Wanderlust Mailing List @t{<wl@@lists.airs.net>}
8515 In this list Japanese is mainly used for discussion. We also have a list
8516 for discussion in English:
8519 Wanderlust List in English @t{<wl-en@@lists.airs.net>}
8521 (Messages posted to this list are also forwarded to the former one.)
8523 A guide can be obtained automatically by sending mail to
8524 @t{wl-ctl@@lists.airs.net} (or to @t{wl-en-ctl@@lists.airs.net} for
8525 the English one) with the body
8531 Please send bug reports or patches to one of those lists. You can post to
8532 the mailing list even though you are not a member of it.
8534 If you send a bug report, please attach Backtrace with it.
8535 @footnote{@uref{http://www.jpl.org/elips/BUGS-ja.html} describes how to
8538 I would like to express my thanks to the members of the mailing list for
8539 valuable advice and many pieces of code they contributed.
8542 @node Addition, Index, Mailing List, Top
8543 @chapter Additional Information
8545 @section Brief History
8548 1998 3/05 Tried to make a prototype that displays MH messages in threads.
8549 3/10 Made a msgdb mechanism by elisp.
8550 3/26 IMAP and NNTP can be displayed in threads.
8551 4/13 Began to assemble thread display modules as elmo.
8552 5/01 Finished 0.1.0, initial version with many defects.
8553 6/12 I made a slip of the tongue and said I was writing elisp
8554 mailer supporting IMAP
8555 6/16 0.1.3 was announced at tm-ja, elisp ML.
8556 6/22 Thanks to Kitame-san, the mailing list started at northeye.org.
8557 7/01 Support for mm-backend (0.3.0).
8558 8/25 multi folder added (0.5.0).
8559 8/28 filter folder added (0.5.1).
8560 9/10 You can open/close threads (0.6.0).
8561 9/11 fldmgr by Murata-san made editing folders easy.
8562 9/18 lha folders added by Okunishi-san (0.6.3).
8563 9/24 Display of branches of threads (0.6.5).
8564 9/28 Compression folder supporting multiple archivers by Okunishi-san.
8565 10/28 Off-line operations (0.7.4).
8566 12/09 Becomes beta version.
8567 12/21 wl-expire by Murata-san.
8568 1999 2/03 auto-refile by Tsumura-san.
8569 4/28 wl-template by Murata-san.
8570 5/18 Released 1.0.0 stable.
8571 7/05 Scoring by Murata-san (2.1.0).
8572 9/26 New plugged system by Murata-san (2.2.2).
8573 12/20 Support Modified UTF7.
8574 2000 3/24 Released 1.1.0 stable.
8575 4/03 CVS development started.
8576 5/07 Thread restoration & Its speed up with Murata-san.
8577 6/12 Address completion with LDAP with Chiba-san & Goto-san.
8578 7/11 killed message feature.
8579 7/18 Use UIDL in POP3.
8580 9/12 biff feature with Satata-san & Yamaoka-san.
8581 10/17 expire-hide by Okada-san.
8582 11/08 Released 2.4.0 stable.
8583 2001 7/04 Released 2.6.0 stable.
8584 8/21 wl-addrmgr by Kitamoto-san.
8585 12/27 Released 2.8.1 stable.
8586 2002 12/11 Released 2.10.0 stable.
8589 See @file{ChangeLog} for details.
8593 According to a dictionary, Wanderlust has the meaning:
8597 n eager longing for or impulse towards travelling in distant lands
8598 [Ger, fr wandern to wander + lust desire, pleasure]
8602 but I had no profound intention. (if farfetched, IMAP @result{} you can
8603 read mail anywhere @result{} desire to wander ?)
8605 Elmo is the abbreviation of @samp{Elisp Library for Message
8606 Orchestration}. At first I meant the red puppet in the Sesame Street,
8607 but you may associate it with Wandering @result{} Drifting @result{}
8608 Guidepost @result{} St.@: Elmo's fire @result{} elmo.
8612 Each versions has code names (they are almost jokes).
8613 Currently they are picked up alphabetically from the top 40 hits of
8614 U.S. Billboard magazines in 1980s.
8616 (@uref{http://lyrics.natalnet.com.br/html/top40/index.html})
8619 @node Index, , Addition, Top
8623 * Concept Index:: Concept Index
8624 * Key Index:: Key Index
8625 * Variable Index:: Variable Index
8626 * Function Index:: Function Index
8629 @node Concept Index, Key Index, Index, Index
8630 @unnumberedsec Concept Index
8633 @node Key Index, Variable Index, Concept Index, Index
8634 @unnumberedsec Key Index
8637 @node Variable Index, Function Index, Key Index, Index
8638 @unnumberedsec Variable Index
8641 @node Function Index, , Variable Index, Index
8642 @unnumberedsec Function Index