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