Rocco Rutte:
[apps/madmutt.git] / doc / manual.txt
1
2 The Mutt Next Generation E-Mail Client
3
4 Andreas Krennmair
5
6    <ak@synflood.at>
7
8 Michael Elkins
9
10    <me@cs.hmc.edu>
11
12    version devel-r473
13
14    Abstract
15
16    Michael Elinks on mutt, circa 1995: ``All mail clients suck. This one just sucks less.''
17
18    Sven Guckes on mutt, ca. 2003: ``But it still sucks!''
19      _________________________________________________________________
20
21    Table of Contents
22
23    1. Introduction
24
25         1. Overview
26         2. Mutt-ng Home Page
27         3. Mailing Lists
28         4. Software Distribution Sites
29         5. IRC
30         6. Weblog
31         7. Copyright
32         8. Manual Conventions
33
34    2. Getting Started
35
36         1. Basic Concepts
37
38               1.1. Screens and Menus
39               1.2. Configuration
40               1.3. Functions
41               1.4. Interaction
42               1.5. Modularization
43               1.6. Patterns
44
45         2. Screens and Menus
46
47               2.1. Index
48               2.2. Pager
49               2.3. File Browser
50               2.4. Sidebar
51               2.5. Help
52               2.6. Compose Menu
53               2.7. Alias Menu
54               2.8. Attachment Menu
55               2.9. Key Menu
56
57         3. Moving Around in Menus
58         4. Editing Input Fields
59         5. Reading Mail - The Index and Pager
60
61               5.1. The Message Index
62               5.2. The Pager
63               5.3. Threaded Mode
64               5.4. Miscellaneous Functions
65
66         6. Sending Mail
67
68               6.1. Composing new messages
69               6.2. Replying
70               6.3. Editing the message header
71               6.4. Using Mutt-ng with PGP
72               6.5. Sending anonymous messages via mixmaster
73
74         7. Forwarding and Bouncing Mail
75         8. Postponing Mail
76
77    3. Configuration
78
79         1. Locations of Configuration Files
80         2. Basic Syntax of Initialization Files
81         3. Expansion within variables
82
83               3.1. Commands' Output
84               3.2. Environment Variables
85               3.3. Configuration Variables
86               3.4. Self-Defined Variables
87               3.5. Pre-Defined Variables
88               3.6. Type Conversions
89
90         4. Defining/Using aliases
91         5. Changing the default key bindings
92         6. Defining aliases for character sets
93         7. Setting variables based upon mailbox
94         8. Keyboard macros
95         9. Using color and mono video attributes
96         10. Ignoring (weeding) unwanted message headers
97         11. Alternative addresses
98         12. Format = Flowed
99
100               12.1. Introduction
101               12.2. Receiving: Display Setup
102               12.3. Sending
103               12.4. Additional Notes
104
105         13. Mailing lists
106         14. Using Multiple spool mailboxes
107         15. Defining mailboxes which receive mail
108         16. User defined headers
109         17. Defining the order of headers when viewing messages
110         18. Specify default save filename
111         19. Specify default Fcc: mailbox when composing
112         20. Specify default save filename and default Fcc: mailbox at once
113         21. Change settings based upon message recipients
114         22. Change settings before formatting a message
115         23. Choosing the cryptographic key of the recipient
116         24. Adding key sequences to the keyboard buffer
117         25. Executing functions
118         26. Message Scoring
119         27. Spam detection
120         28. Setting variables
121         29. Reading initialization commands from another file
122         30. Removing hooks
123         31. Sharing Setups
124
125               31.1. Character Sets
126               31.2. Modularization
127               31.3. Conditional parts
128
129         32. Obsolete Variables
130
131    4. Advanced Usage
132
133         1. Regular Expressions
134         2. Patterns
135
136               2.1. Complex Patterns
137               2.2. Patterns and Dates
138
139         3. Format Strings
140
141               3.1. Introduction
142               3.2. Conditional Expansion
143               3.3. Modifications and Padding
144
145         4. Using Tags
146         5. Using Hooks
147
148               5.1. Message Matching in Hooks
149
150         6. Using the sidebar
151         7. External Address Queries
152         8. Mailbox Formats
153         9. Mailbox Shortcuts
154         10. Handling Mailing Lists
155         11. Editing threads
156
157               11.1. Linking threads
158               11.2. Breaking threads
159
160         12. Delivery Status Notification (DSN) Support
161         13. POP3 Support (OPTIONAL)
162         14. IMAP Support (OPTIONAL)
163
164               14.1. The Folder Browser
165               14.2. Authentication
166
167         15. NNTP Support (OPTIONAL)
168
169               15.1. Again: Scoring
170
171         16. SMTP Support (OPTIONAL)
172         17. Managing multiple IMAP/POP/NNTP accounts (OPTIONAL)
173         18. Start a WWW Browser on URLs (EXTERNAL)
174         19. Compressed folders Support (OPTIONAL)
175
176               19.1. Open a compressed mailbox for reading
177               19.2. Write a compressed mailbox
178               19.3. Append a message to a compressed mailbox
179               19.4. Encrypted folders
180
181    5. Mutt-ng's MIME Support
182
183         1. Using MIME in Mutt
184
185               1.1. Viewing MIME messages in the pager
186               1.2. The Attachment Menu
187               1.3. The Compose Menu
188
189         2. MIME Type configuration with mime.types
190         3. MIME Viewer configuration with mailcap
191
192               3.1. The Basics of the mailcap file
193               3.2. Secure use of mailcap
194               3.3. Advanced mailcap Usage
195               3.4. Example mailcap files
196
197         4. MIME Autoview
198         5. MIME Multipart/Alternative
199         6. MIME Lookup
200
201    6. Security Considerations
202
203         1. Passwords
204         2. Temporary Files
205         3. Information Leaks
206
207               3.1. Message-ID: headers
208               3.2. mailto:-style links
209
210         4. External applications
211
212               4.1. mailcap
213               4.2. Other
214
215    7. Reference
216
217         1. Command line options
218         2. Patterns
219         3. Configuration Commands
220         4. Configuration variables
221         5. Functions
222
223               5.1. generic
224               5.2. index
225               5.3. pager
226               5.4. alias
227               5.5. query
228               5.6. attach
229               5.7. compose
230               5.8. postpone
231               5.9. browser
232               5.10. pgp
233               5.11. editor
234
235    A.
236    8. Acknowledgments
237    9. Hacking Documentation
238    Index
239
240    List of Tables
241
242    2.1. Default Menu Movement Keys
243    2.2. Built-In Editor Functions
244    2.3. Default Index Menu Bindings
245    2.4. Default Pager Menu Bindings
246    2.5. ANSI Escape Sequences
247    2.6. ANSI Colors
248    2.7. Default Thread Function Bindings
249    2.8. Default Mail Composition Bindings
250    2.9. Default Compose Menu Bindings
251    2.10. PGP Key Menu Flags
252    3.1. Alternative Key Names
253    4.1. Default Sidebar Function Bindings
254    7.1. Mutt-NG Command Line Options
255    7.2. Patterns
256    7.3. Obsolete Variables
257
258 Chapter 1. Introduction
259
260    Table of Contents
261
262    1. Overview
263    2. Mutt-ng Home Page
264    3. Mailing Lists
265    4. Software Distribution Sites
266    5. IRC
267    6. Weblog
268    7. Copyright
269    8. Manual Conventions
270
271 1. Overview
272
273    Mutt-ng is a small but very powerful text-based MIME mail client. Mutt-ng is highly configurable, and is well suited to the mail power user with advanced features like key bindings, keyboard macros, mail threading, regular expression searches and a powerful pattern matching language for selecting groups of messages.
274
275    This documentation additionally contains documentation to Mutt-NG ,a fork from Mutt with the goal to fix all the little annoyances of Mutt, to integrate all the Mutt patches that are floating around in the web, and to add other new features. Features specific to Mutt-ng will be discussed in an extra section. Don't be confused when most of the documentation talk about Mutt and not Mutt-ng, Mutt-ng contains all Mutt features, plus many more.
276
277 2. Mutt-ng Home Page
278
279    http://www.muttng.org
280
281 3. Mailing Lists
282
283      * <mutt-ng-users@lists.berlios.de>: This is where the mutt-ng user support happens.
284      * <mutt-ng-devel@lists.berlios.de>: The development mailing list for mutt-ng
285
286 4. Software Distribution Sites
287
288    So far, there are no official releases of Mutt-ng, but you can download daily snapshots from http://mutt-ng.berlios.de/snapshots/
289
290 5. IRC
291
292    Visit channel #muttng on irc.freenode.net (www.freenode.net) to chat with other people interested in Mutt-ng.
293
294 6. Weblog
295
296    If you want to read fresh news about the latest development in Mutt-ng, and get informed about stuff like interesting, Mutt-ng-related articles and packages for your favorite distribution, you can read and/or subscribe to our Mutt-ng development weblog.
297
298 7. Copyright
299
300    Mutt is Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu> and others
301
302    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
303
304    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
305
306    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
307
308 8. Manual Conventions
309
310    This manual contains several (hopefully consistent) conventions to specially layout different items in different fashions.
311      * Configuration and environment variables will be printed in a typewriter font and both prefixed with a dollar sign as it's common for UNIX-like environments. Configuration variables are lower-case only while environment variables are upper-case only.
312      * Muttng-specific commands are enclosed in <> and printed in a typewriter font, too.
313      * As common for UNIX-like environments, references to manual pages are printed with the section enclosed in braces, as in vi(1) or muttngrc(5). Execute man [section] [name] to view the manual page.
314
315    If, while reading this fine manual, you find any inconsistencies of whatever kind, please contact the developers via <mutt-ng-devel@lists.berlios.de> to report it.
316
317 Chapter 2. Getting Started
318
319    Table of Contents
320
321    1. Basic Concepts
322
323         1.1. Screens and Menus
324         1.2. Configuration
325         1.3. Functions
326         1.4. Interaction
327         1.5. Modularization
328         1.6. Patterns
329
330    2. Screens and Menus
331
332         2.1. Index
333         2.2. Pager
334         2.3. File Browser
335         2.4. Sidebar
336         2.5. Help
337         2.6. Compose Menu
338         2.7. Alias Menu
339         2.8. Attachment Menu
340         2.9. Key Menu
341
342    3. Moving Around in Menus
343    4. Editing Input Fields
344    5. Reading Mail - The Index and Pager
345
346         5.1. The Message Index
347         5.2. The Pager
348         5.3. Threaded Mode
349         5.4. Miscellaneous Functions
350
351    6. Sending Mail
352
353         6.1. Composing new messages
354         6.2. Replying
355         6.3. Editing the message header
356         6.4. Using Mutt-ng with PGP
357         6.5. Sending anonymous messages via mixmaster
358
359    7. Forwarding and Bouncing Mail
360    8. Postponing Mail
361
362 1. Basic Concepts
363
364 1.1. Screens and Menus
365
366    mutt-ng offers different screens of which every has its special purpose:
367      * The index displays the contents of the currently opened mailbox.
368      * The pager is responsible for displaying messages, that is, the header, the body and all attached parts.
369      * The file browser offers operations on and displays information of all folders mutt-ng should watch for mail.
370      * The sidebar offers a permanent view of which mailboxes contain how many total, new and/or flagged mails.
371      * The help screen lists for all currently available commands how to invoke them as well as a short description.
372      * The compose menu is a comfortable interface take last actions before sending mail: change subjects, attach files, remove attachements, etc.
373      * The attachement menu gives a summary and the tree structure of the attachements of the current message.
374      * The alias menu lists all or a fraction of the aliases a user has defined.
375      * The key menu used in connection with encryption lets users choose the right key to encrypt with.
376
377    When mutt-ng is started without any further options, it'll open the users default mailbox and display the index.
378
379 1.2. Configuration
380
381    Mutt-ng does not feature an internal configuration interface or menu due to the simple fact that this would be too complex to handle (currently there are several hundred variables which fine-tune the behaviour.)
382
383    Mutt-ng is configured using configuration files which allow users to add comments or manage them via version control systems to ease maintenance.
384
385    Also, mutt-ng comes with a shell script named grml-muttng kindly contributed by users which really helps and eases the creation of a user's configuration file. When downloading the source code via a snapshot or via subversion, it can be found in the contrib directory.
386
387 1.3. Functions
388
389    Mutt-ng offers great flexibility due to the use of functions: internally, every action a user can make mutt-ng perform is named ``function.'' Those functions are assigned to keys (or even key sequences) and may be completely adjusted to user's needs. The basic idea is that the impatient users get a very intuitive interface to start off with and advanced users virtually get no limits to adjustments.
390
391 1.4. Interaction
392
393    Mutt-ng has two basic concepts of user interaction:
394     1. There is one dedicated line on the screen used to query the user for input, issue any command, query variables and display error and informational messages. As for every type of user input, this requires manual action leading to the need of input.
395     2. The automatized interface for interaction are the so called hooks. Hooks specify actions the user wants to be performed at well-defined situations: what to do when entering which folder, what to do when displaying or replying to what kind of message, etc. These are optional, i.e. a user doesn't need to specify them but can do so.
396
397 1.5. Modularization
398
399    Although mutt-ng has many functionality built-in, many features can be delegated to external tools to increase flexibility: users can define programs to filter a message through before displaying, users can use any program they want for displaying a message, message types (such as PDF or PostScript) for which mutt-ng doesn't have a built-in filter can be rendered by arbitrary tools and so forth. Although mutt-ng has an alias mechanism built-in, it features using external tools to query for nearly every type of addresses from sources like LDAP, databases or just the list of locally known users.
400
401 1.6. Patterns
402
403    Mutt-ng has a built-in pattern matching ``language'' which is as widely used as possible to present a consistent interface to users. The same ``pattern terms'' can be used for searching, scoring, message selection and much more.
404
405 2. Screens and Menus
406
407 2.1. Index
408
409    The index is the screen that you usually see first when you start mutt-ng. It gives an overview over your emails in the currently opened mailbox. By default, this is your system mailbox. The information you see in the index is a list of emails, each with its number on the left, its flags (new email, important email, email that has been forwarded or replied to, tagged email, ...), the date when email was sent, its sender, the email size, and the subject. Additionally, the index also shows thread hierarchies: when you reply to an email, and the other person replies back, you can see the other's person email in a "sub-tree" below. This is especially useful for personal email between a group of people or when you've subscribed to mailing lists.
410
411 2.2. Pager
412
413    The pager is responsible for showing the email content. On the top of the pager you have an overview over the most important email headers like the sender, the recipient, the subject, and much more information. How much information you actually see depends on your configuration, which we'll describe below.
414
415    Below the headers, you see the email body which usually contains the message. If the email contains any attachments, you will see more information about them below the email body, or, if the attachments are text files, you can view them directly in the pager.
416
417    To give the user a good overview, it is possible to configure mutt-ng to show different things in the pager with different colors. Virtually everything that can be described with a regular expression can be colored, e.g. URLs, email addresses or smileys.
418
419 2.3. File Browser
420
421    The file browser is the interface to the local or remote file system. When selecting a mailbox to open, the browser allows custom sorting of items, limiting the items shown by a regular expression and a freely adjustable format of what to display in which way. It also allows for easy navigation through the file system when selecting file(s) to attach to a message, select multiple files to attach and many more.
422
423 2.4. Sidebar
424
425    The sidebar comes in handy to manage mails which are spread over different folders. All folders users setup mutt-ng to watch for new mail will be listed. The listing includes not only the name but also the number of total messages, the number of new and flagged messages. Items with new mail may be colored different from those with flagged mail, items may be shortened or compress if they're they to long to be printed in full form so that by abbreviated names, user still now what the name stands for.
426
427 2.5. Help
428
429    The help screen is meant to offer a quick help to the user. It lists the current configuration of key bindings and their associated commands including a short description, and currently unbound functions that still need to be associated with a key binding (or alternatively, they can be called via the mutt-ng command prompt).
430
431 2.6. Compose Menu
432
433    The compose menu features a split screen containing the information which really matter before actually sending a message by mail or posting an article to a newsgroup: who gets the message as what (recipient, newsgroup, who gets what kind of copy). Additionally, users may set security options like deciding whether to sign, encrypt or sign and encrypt a message with/for what keys.
434
435    Also, it's used to attach messages, news articles or files to a message, to re-edit any attachment including the message itself.
436
437 2.7. Alias Menu
438
439    The alias menu is used to help users finding the recipients of messages. For users who need to contact many people, there's no need to remember addresses or names completely because it allows for searching, too. The alias mechanism and thus the alias menu also features grouping several addresses by a shorter nickname, the actual alias, so that users don't have to select each single recipient manually.
440
441 2.8. Attachment Menu
442
443    As will be later discussed in detail, mutt-ng features a good and stable MIME implementation, that is, is greatly supports sending and receiving messages of arbitrary type. The attachment menu displays a message's structure in detail: what content parts are attached to which parent part (which gives a true tree structure), which type is of what type and what size. Single parts may saved, deleted or modified to offer great and easy access to message's internals.
444
445 2.9. Key Menu
446
447    FIXME
448
449 3. Moving Around in Menus
450
451    Information is presented in menus, very similar to ELM. Here is a tableshowing the common keys used to navigate menus in Mutt-ng.
452
453    Table 2.1. Default Menu Movement Keys
454    Key         Function         Description
455    j or Down   <next-entry>     move to the next entry
456    k or Up     <previous-entry> move to the previous entry
457    z or PageDn <page-down>      go to the next page
458    Z or PageUp <page-up>        go to the previous page
459    = or Home   <first-entry>    jump to the first entry
460    * or End    <last-entry>     jump to the last entry
461    q           <quit>           exit the current menu
462    ?           <help>           list all key bindings for the current menu
463
464 4. Editing Input Fields
465
466    Mutt-ng has a builtin line editor which is used as the primary way to input textual data such as email addresses or filenames. The keys used to move around while editing are very similar to those of Emacs.
467
468    Table 2.2. Built-In Editor Functions
469    Key            Function          Description
470    ^A or <Home>   <bol>             move to the start of the line
471    ^B or <Left>   <backward-char>   move back one char
472    Esc B          <backward-word>   move back one word
473    ^D or <Delete> <delete-char>     delete the char under the cursor
474    ^E or <End>    <eol>             move to the end of the line
475    ^F or <Right>  <forward-char>    move forward one char
476    Esc F          <forward-word>    move forward one word
477    <Tab>          <complete>        complete filename or alias
478    ^T             <complete-query>  complete address with query
479    ^K             <kill-eol>        delete to the end of the line
480    ESC d          <kill-eow>        delete to the end of the word
481    ^W             <kill-word>       kill the word in front of the cursor
482    ^U             <kill-line>       delete entire line
483    ^V             <quote-char>      quote the next typed key
484    <Up>           <history-up>      recall previous string from history
485    <Down>         <history-down>    recall next string from history
486    <BackSpace>    <backspace>       kill the char in front of the cursor
487    Esc u          <upcase-word>     convert word to upper case
488    Esc l          <downcase-word>   convert word to lower case
489    Esc c          <capitalize-word> capitalize the word
490    ^G             n/a               abort
491    <Return>       n/a               finish editing
492
493    You can remap the editor functions using the bind command. For example, to make the Delete key delete the character in front of the cursor rather than under, you could use
494
495    bind editor <delete> backspace
496
497 5. Reading Mail - The Index and Pager
498
499    Similar to many other mail clients, there are two modes in which mail isread in Mutt-ng. The first is the index of messages in the mailbox, which is called the ``index'' in Mutt-ng. The second mode is the display of the message contents. This is called the ``pager.''
500
501    The next few sections describe the functions provided in each of these modes.
502
503 5.1. The Message Index
504
505    Table 2.3. Default Index Menu Bindings
506    Key      Function Description
507    c                 change to a different mailbox
508    ESC c             change to a folder in read-only mode
509    C                 copy the current message to another mailbox
510    ESC C             decode a message and copy it to a folder
511    ESC s             decode a message and save it to a folder
512    D                 delete messages matching a pattern
513    d                 delete the current message
514    F                 mark as important
515    l                 show messages matching a pattern
516    N                 mark message as new
517    o                 change the current sort method
518    O                 reverse sort the mailbox
519    q                 save changes and exit
520    s                 save-message
521    T                 tag messages matching a pattern
522    t                 toggle the tag on a message
523    ESC t             toggle tag on entire message thread
524    U                 undelete messages matching a pattern
525    u                 undelete-message
526    v                 view-attachments
527    x                 abort changes and exit
528    <Return>          display-message
529    <Tab>             jump to the next new or unread message
530    @                 show the author's full e-mail address
531    $                 save changes to mailbox
532    /                 search
533    ESC /             search-reverse
534    ^L                clear and redraw the screen
535    ^T                untag messages matching a pattern
536
537 5.1.1. Status Flags
538
539    In addition to who sent the message and the subject, a short summary of the disposition of each message is printed beside the message number. Zero or more of the following ``flags'' may appear, which mean:
540
541    D
542           message is deleted (is marked for deletion)
543
544    d
545           message have attachments marked for deletion
546
547    K
548           contains a PGP public key
549
550    N
551           message is new
552
553    O
554           message is old
555
556    P
557           message is PGP encrypted
558
559    r
560           message has been replied to
561
562    S
563           message is signed, and the signature is succesfully verified
564
565    s
566           message is signed
567
568    !
569           message is flagged
570
571    *
572           message is tagged
573
574    Some of the status flags can be turned on or off using
575      * set-flag (default: w)
576      * clear-flag (default: W)
577
578    Furthermore, the following flags reflect who the message is addressed to. They can be customized with the $to_chars variable.
579
580    +
581           message is to you and you only
582
583    T
584           message is to you, but also to or cc'ed to others
585
586    C
587           message is cc'ed to you
588
589    F
590           message is from you
591
592    L
593           message is sent to a subscribed mailing list
594
595 5.2. The Pager
596
597    By default, Mutt-ng uses its builtin pager to display the body of messages. The pager is very similar to the Unix program less though not nearly as featureful.
598
599    Table 2.4. Default Pager Menu Bindings
600    Key Function Description
601    <Return> go down one line
602    <Space> display the next page (or next message if at the end of a message)
603    - go back to the previous page
604    n search for next match
605    S skip beyond quoted text
606    T toggle display of quoted text
607    ? show key bindings
608    / search for a regular expression (pattern)
609    ESC / search backwards for a regular expression
610    \ toggle search pattern coloring
611    ^ jump to the top of the message
612
613    In addition, many of the functions from the index are available in the pager, such as delete-message or copy-message (this is one advantage over using an external pager to view messages).
614
615    Also, the internal pager supports a couple other advanced features. For one, it will accept and translate the ``standard'' nroff sequences forbold and underline. These sequences are a series of either the letter, backspace (^H), the letter again for bold or the letter, backspace, ``_'' for denoting underline. Mutt-ng will attempt to display these in bold and underline respectively if your terminal supports them. If not, you can use the bold and underline color objects to specify a color or mono attribute for them.
616
617    Additionally, the internal pager supports the ANSI escape sequences for character attributes. Mutt-ng translates them into the correct color and character settings. The sequences Mutt-ng supports are: ESC [ Ps;Ps;Ps;...;Ps m (see table below for possible values for Ps).
618
619    Table 2.5. ANSI Escape Sequences
620    Value Attribute
621    0     All Attributes Off
622    1     Bold on
623    4     Underline on
624    5     Blink on
625    7     Reverse video on
626    3x    Foreground color is x (see table below)
627    4x    Background color is x (see table below)
628
629    Table 2.6. ANSI Colors
630    Number Color
631    0      black
632    1      red
633    2      green
634    3      yellow
635    4      blue
636    5      magenta
637    6      cyan
638    7      white
639
640    Mutt-ng uses these attributes for handling text/enriched messages, and they can also be used by an external autoview script for highlighting purposes. Note: If you change the colors for your display, for example by changing the color associated with color2 for your xterm, then that color will be used instead of green.
641
642 5.3. Threaded Mode
643
644    When the mailbox is sorted by threads ,there are a few additional functions available in the index and pager modes.
645
646    Table 2.7. Default Thread Function Bindings
647    Key   Function             Description
648    ^D    <delete-thread>      delete all messages in the current thread
649    ^U    <undelete-thread>    undelete all messages in the current thread
650    ^N    <next-thread>        jump to the start of the next thread
651    ^P    <previous-thread>    jump to the start of the previous thread
652    ^R    <read-thread>        mark the current thread as read
653    ESC d <delete-subthread>   delete all messages in the current subthread
654    ESC u <undelete-subthread> undelete all messages in the current subthread
655    ESC n <next-subthread>     jump to the start of the next subthread
656    ESC p <previous-subthread> jump to the start of the previous subthread
657    ESC r <read-subthread>     mark the current subthread as read
658    ESC t <tag-thread>         toggle the tag on the current thread
659    ESC v <collapse-thread>    toggle collapse for the current thread
660    ESC V <collapse-all>       toggle collapse for all threads
661    P     <parent-message>     jump to parent message in thread
662
663    Note: Collapsing a thread displays only the first message in the thread and hides the others. This is useful when threads contain so many messages that you can only see a handful of threads onthe screen. See %M in $index_format.
664
665    For example, you could use %?M?(#%03M)&(%4l)? in $index_format to optionally display the number of hidden messages if the thread is collapsed.
666
667    See also the $strict_threads variable.
668
669 5.4. Miscellaneous Functions
670
671    <create-alias> (default: a)
672
673    Creates a new alias based upon the current message (or prompts for a new one). Once editing is complete, an alias command is added to the file specified by the $alias_file variable for future use. Note: Specifying an $alias_file does not add the aliases specified there-in, you must also source the file.
674
675    <check-traditional-pgp> (default: ESC P)
676
677    This function will search the current message for content signed or encrypted with PGP the "traditional" way, that is, without proper MIME tagging. Technically, this function will temporarily change the MIME content types of the body parts containing PGP data; this is similar to the <edit-type> function's effect.
678
679    <display-toggle-weed> (default: h)
680
681    Toggles the weeding of message header fields specified by ignore commands.
682
683    <edit> (default: e)
684
685    This command (available in the ``index'' and ``pager'') allows you to edit the raw current message as it's present in the mail folder. After you have finished editing, the changed message will be appended to the current folder, and the original message will be marked for deletion.
686
687    <edit-type> (default: ) (default: ^E on the attachment menu, and in the pager and index menus; ^T on the compose menu)
688
689    This command is used to temporarily edit an attachment's content type to fix, for instance, bogus character set parameters. When invoked from the index or from the pager, you'll have the opportunity to edit the top-level attachment's content type. On the attach-menu, you can change any attachment's content type. These changes are not persistent, and get lost upon changing folders.
690
691    Note that this command is also available on the compose-menu .There, it's used to fine-tune the properties of attachments you are going to send.
692
693    <enter-command> (default: :)
694
695    This command is used to execute any command you would normally put in a configuration file. A common use is to check the settings of variables, or in conjunction with macro to change settings on the fly.
696
697    <extract-keys> (default: ^K)
698
699    This command extracts PGP public keys from the current or tagged message(s) and adds them to your PGP public key ring.
700
701    <forget-passphrase> (default: ^F)
702
703    This command wipes the passphrase(s) from memory. It is useful, if you misspelled the passphrase.
704
705    <list-reply> (default: L)
706
707    Reply to the current or tagged message(s) by extracting any addresses which match the regular expressions given by the lists commands, but also honor any Mail-Followup-To header(s) if the $honor_followup_to configuration variable is set. Using this when replying to messages posted to mailing lists helps avoid duplicate copies being sent to the author of the message you are replying to.
708
709    <pipe-message> (default: )
710
711    Asks for an external Unix command and pipes the current or tagged message(s) to it. The variables $pipe_decode, $pipe_split, $pipe_decode and $wait_key control the exact behavior of this function.
712
713    <resend-message> (default: ESC e)
714
715    With resend-message, mutt takes the current message as a template for a new message. This function is best described as "recall from arbitrary folders". It can conveniently be used to forward MIME messages while preserving the original mail structure. Note that the amount of headers included here depends on the value of the $weed variable.
716
717    This function is also available from the attachment menu. You can use this to easily resend a message which was included with a bounce message as a message/rfc822 body part.
718
719    <shell-escape> (default: !)
720
721    Asks for an external Unix command and executes it. The $wait_key can be used to control whether Mutt-ng will wait for a key to be pressed when the command returns (presumably to let the user read the output of the command), based on the return status of the named command.
722
723    <toggle-quoted> (default: T)
724
725    The pager uses the $quote_regexp variable to detect quoted text when displaying the body of the message. This function toggles the displayof the quoted material in the message. It is particularly useful when are interested in just the response and there is a large amount of quoted text in the way.
726
727    <skip-quoted> (default: S)
728
729    This function will go to the next line of non-quoted text which come after a line of quoted text in the internal pager.
730
731 6. Sending Mail
732
733    The following bindings are available in the index for sending messages.
734
735    Table 2.8. Default Mail Composition Bindings
736    Key   Function      Description
737    m     <compose>     compose a new message
738    r     <reply>       reply to sender
739    g     <group-reply> reply to all recipients
740    L     <list-reply>  reply to mailing list address
741    f     <forward>     forward message
742    b     <bounce>      bounce (remail) message
743    ESC k <mail-key>    mail a PGP public key to someone
744
745    Bouncing a message sends the message as is to the recipient you specify. Forwarding a message allows you to add comments or modify the message you are forwarding. These items are discussed in greater detail in the next chapter forwarding-mail .
746
747 6.1. Composing new messages
748
749    When you want to send an email using mutt-ng, simply press m on your keyboard. Then, mutt-ng asks for the recipient via a prompt in the last line:
750 To:
751
752    After you've finished entering the recipient(s), press return. If you want to send an email to more than one recipient, separate the email addresses using the comma ",". Mutt-ng then asks you for the email subject. Again, press return after you've entered it. After that, mutt-ng got the most important information from you, and starts up an editor where you can then enter your email.
753
754    The editor that is called is selected in the following way: you can e.g. set it in the mutt-ng configuration:
755 set editor = "vim +/^$/ -c ':set tw=72'"
756 set editor = "nano"
757 set editor = "emacs"
758
759    If you don't set your preferred editor in your configuration, mutt-ng first looks whether the environment variable $VISUAL is set, and if so, it takes its value as editor command. Otherwise, it has a look at $EDITOR and takes its value if it is set. If no editor command can be found, mutt-ng simply assumes vi(1) to be the default editor, since it's the most widespread editor in the Unix world and it's pretty safe to assume that it is installed and available.
760
761    When you've finished entering your message, save it and quit your editor. Mutt-ng will then present you with a summary screen, the compose menu. On the top, you see a summary of the most important available key commands. Below that, you see the sender, the recipient(s), Cc and/or Bcc recipient(s), the subject, the reply-to address, and optionally information where the sent email will be stored and whether it should be digitally signed and/or encrypted.
762
763    Below that, you see a list of "attachments". The mail you've just entered before is also an attachment, but due to its special type (it's plain text), it will be displayed as the normal message on the receiver's side.
764
765    At this point, you can add more attachments, pressing a, you can edit the recipient addresses, pressing t for the "To:" field, c for the "Cc:" field, and b for the "Bcc: field. You can also edit the subject the subject by simply pressing s or the email message that you've entered before by pressing e. You will then again return to the editor. You can even edit the sender, by pressing <esc>f, but this shall only be used with caution.
766
767    Alternatively, you can configure mutt-ng in a way that most of the above settings can be edited using the editor. Therefore, you only need to add the following to your configuration:
768 set edit_headers
769
770    Once you have finished editing the body of your mail message, you are returned to the compose menu. The following options are available:
771
772    Table 2.9. Default Compose Menu Bindings
773    Key   Function            Description
774    a     <attach-file>       attach a file
775    A     <attach-message>    attach message(s) to the message
776    ESC k <attach-key>        attach a PGP public key
777    d     <edit-description>  edit description on attachment
778    D     <detach-file>       detach a file
779    t     <edit-to>           edit the To field
780    ESC f <edit-from>         edit the From field
781    r     <edit-reply-to>     edit the Reply-To field
782    c     <edit-cc>           edit the Cc field
783    b     <edit-bcc>          edit the Bcc field
784    y     <send-message>      send the message
785    s     <edit-subject>      edit the Subject
786    S     <smime-menu>        select S/MIME options
787    f     <edit-fcc>          specify an ``Fcc'' mailbox
788    p     <pgp-menu>          select PGP options
789    P     <postpone-message>  postpone this message until later
790    q     <quit>              quit (abort) sending the message
791    w     <write-fcc>         write the message to a folder
792    i     <ispell>            check spelling (if available on your system)
793    ^F    <forget-passphrase> wipe passphrase(s) from memory
794
795    Note: The attach-message function will prompt you for a folder to attach messages from. You can now tag messages in that folder and theywill be attached to the message you are sending. Note that certainoperations like composing a new mail, replying, forwarding, etc. are not permitted when you are in that folder. The %r in $status_format will change to a 'A' to indicate that you are in attach-message mode.
796
797 6.2. Replying
798
799 6.2.1. Simple Replies
800
801    When you want to reply to an email message, select it in the index menu and then press r. Mutt-ng's behaviour is then similar to the behaviour when you compose a message: first, you will be asked for the recipient, then for the subject, and then, mutt-ng will start the editor with the quote attribution and the quoted message. This can e.g. look like the example below.
802 On Mon, Mar 07, 2005 at 05:02:12PM +0100, Michael Svensson wrote:
803 > Bill, can you please send last month's progress report to Mr.
804 > Morgan? We also urgently need the cost estimation for the new
805 > production server that we want to set up before our customer's
806 > project will go live.
807
808    You can start editing the email message. It is strongly recommended to put your answer below the quoted text and to only quote what is really necessary and that you refer to. Putting your answer on top of the quoted message, is, although very widespread, very often not considered to be a polite way to answer emails.
809
810    The quote attribution is configurable, by default it is set to
811 set attribution = "On %d, %n wrote:"
812
813    It can also be set to something more compact, e.g.
814 set attribution = "attribution="* %n <%a> [%(%y-%m-%d %H:%M)]:"
815
816    The example above results in the following attribution:
817 * Michael Svensson <svensson@foobar.com> [05-03-06 17:02]:
818 > Bill, can you please send last month's progress report to Mr.
819 > Morgan? We also urgently need the cost estimation for the new
820 > production server that we want to set up before our customer's
821 > project will go live.
822
823    Generally, try to keep your attribution short yet information-rich. It is not the right place for witty quotes, long "attribution" novels or anything like that: the right place for such things is - if at all - the email signature at the very bottom of the message.
824
825    When you're done with writing your message, save and quit the editor. As before, you will return to the compose menu, which is used in the same way as before.
826
827 6.2.2. Group Replies
828
829    In the situation where a group of people uses email as a discussion, most of the emails will have one or more recipients, and probably several "Cc:" recipients. The group reply functionalityensures that when you press g instead of r to do a reply, each and every recipient that is contained in the original message will receive a copy of the message, either as normal recipient or as "Cc:" recipient.
830
831 6.2.3. List Replies
832
833    When you use mailing lists, it's generally better to send your reply to a message only to the list instead of the list and the original author. To make this easy to use, mutt-ng features list replies.
834
835    To do a list reply, simply press L. If the email contains a Mail-Followup-To: header, its value will be used as reply address. Otherwise, mutt-ng searches through all mail addresses in the original message and tries to match them a list of regular expressions which can be specified using the lists command. If any of the regular expression matches, a mailing list address has been found, and it will be used as reply address.
836 lists linuxevent@luga\.at vuln-dev@ mutt-ng-users@
837
838    Nowadays, most mailing list software like GNU Mailman adds a Mail-Followup-To: header to their emails anyway, so setting lists is hardly ever necessary in practice.
839
840 6.3. Editing the message header
841
842    When editing the header of your outgoing message, there are a couple of special features available.
843
844    If you specify Fcc:filename Mutt-ng will pick up filename just as if you had used the edit-fcc function in the compose menu.
845
846    You can also attach files to your message by specifying
847 Attach: filename [description]
848
849    where filename is the file to attach and description is an optional string to use as the description of the attached file.
850
851    When replying to messages, if you remove the In-Reply-To: field from the header field, Mutt-ng will not generate a References: field, which allows you to create a new message thread.
852
853    Also see the $edit_headers and $editor_headers variables
854
855 6.4. Using Mutt-ng with PGP
856
857    If you want to use PGP, you can specify
858 Pgp: [E | S | S id]
859
860    ``E'' encrypts, ``S'' signs and ``S<id>'' signs with the given key, setting $pgp_sign_as permanently.
861
862    If you have told mutt to PGP encrypt a message, it will guide you through a key selection process when you try to send the message. Mutt-ng will not ask you any questions about keys which have a certified user ID matching one of the message recipients' mail addresses. However, there may be situations in which there are several keys, weakly certified user ID fields, or where no matching keys can be found.
863
864    In these cases, you are dropped into a menu with a list of keys from which you can select one. When you quit this menu, or mutt can't find any matching keys, you are prompted for a user ID. You can, as usually, abort this prompt using ^G. When you do so, mutt will return to the compose screen.
865
866    Once you have successfully finished the key selection, the message will be encrypted using the selected public keys, and sent out.
867
868    Most fields of the entries in the key selection menu (see also $pgp_entry_format) have obvious meanings. But some explanations on the capabilities, flags, and validity fields are in order.
869
870    The flags sequence (%f) will expand to one of the following flags:
871
872    Table 2.10. PGP Key Menu Flags
873    Flag Description
874    R    The key has been revoked and can't be used.
875    X    The key is expired and can't be used.
876    d    You have marked the key as disabled.
877    c    There are unknown critical self-signature packets.
878
879    The capabilities field (%c) expands to a two-character sequencerepresenting a key's capabilities. The first character gives the key's encryption capabilities: A minus sign (- )means that the key cannot be used for encryption. A dot (. )means that it's marked as a signature key in one of the user IDs, but may also be used for encryption. The letter e indicates that this key can be used for encryption.
880
881    The second character indicates the key's signing capabilities. Once again, a ``-'' implies ``not for signing'', ``.'' implies that the key is marked as an encryption key in one of the user-ids, and ``s'' denotes a key which can be used for signing.
882
883    Finally, the validity field (%t) indicates how well-certified a user-id is. A question mark (?) indicates undefined validity, a minus character (-) marks an untrusted association, a space character means a partially trusted association, and a plus character (+ ) indicates complete validity.
884
885 6.5. Sending anonymous messages via mixmaster
886
887    You may also have configured mutt to co-operate with Mixmaster, an anonymous remailer. Mixmaster permits you to send your messages anonymously using a chain of remailers. Mixmaster support in mutt is for mixmaster version 2.04 (beta 45 appears to be the latest) and 2.03. It does not support earlier versions or the later so-called version 3 betas, of which the latest appears to be called 2.9b23.
888
889    To use it, you'll have to obey certain restrictions. Most important, you cannot use the Cc and Bcc headers. To tell Mutt-ng to use mixmaster, you have to select a remailer chain, using the mix function on the compose menu.
890
891    The chain selection screen is divided into two parts. In the (larger) upper part, you get a list of remailers you may use. In the lower part, you see the currently selected chain of remailers.
892
893    You can navigate in the chain using the chain-prev and chain-next functions, which are by default bound to the left and right arrows and to the h and l keys (think vi keyboard bindings). To insert a remailer at the current chain position, use the insert function. To append a remailer behind the current chain position, use select-entry or append . You can also delete entries from the chain, using the corresponding function. Finally, to abandon your changes, leave the menu, or accept them pressing (by default) the Return key.
894
895    Note that different remailers do have different capabilities, indicated in the %c entry of the remailer menu lines (see $mix_entry_format). Most important is the ``middleman'' capability, indicated by a capital ``M'': This means that the remailer in question cannot be used as the final element of a chain, but will only forward messages to other mixmaster remailers. For details on the other capabilities, please have a look at the mixmaster documentation.
896
897 7. Forwarding and Bouncing Mail
898
899    Often, it is necessary to forward mails to other people. Therefore, mutt-ng supports forwarding messages in two different ways.
900
901    The first one is regular forwarding, as you probably know it from other mail clients. You simply press f, enter the recipient email address, the subject of the forwarded email, and then you can edit the message to be forwarded in the editor. The forwarded message is separated from the rest of the message via the two following markers:
902 ----- Forwarded message from Lucas User <luser@example.com> -----
903
904 From: Lucas User <luser@example.com>
905 Date: Thu, 02 Dec 2004 03:08:34 +0100
906 To: Michael Random <mrandom@example.com>
907 Subject: Re: blackmail
908
909 Pay me EUR 50,000.- cash or your favorite stuffed animal will die
910 a horrible death.
911
912 ----- End forwarded message -----
913
914    When you're done with editing the mail, save and quit the editor, and you will return to the compose menu, the same menu you also encounter when composing or replying to mails.
915
916    The second mode of forwarding emails with mutt-ng is the so-called bouncing: when you bounce an email to another address, it will be sent in practically the same format you send it (except for headers that are created during transporting the message). To bounce a message, press b and enter the recipient email address. By default, you are then asked whether you really want to bounce the message to the specified recipient. If you answer with yes, the message will then be bounced.
917
918    To the recipient, the bounced email will look as if he got it like a regular email where he was Bcc: recipient. The only possibility to find out whether it was a bounced email is to carefully study the email headers and to find out which host really sent the email.
919
920 8. Postponing Mail
921
922    At times it is desirable to delay sending a message that you have already begun to compose. When the postpone-message function is used in the compose menu, the body of your message and attachments are stored in the mailbox specified by the $postponed variable. This means that you can recall the message even if you exit Mutt-ng and then restart it at a later time.
923
924    Once a message is postponed, there are several ways to resume it. From the command line you can use the ``-p'' option, or if you compose a new message from the index or pager you will be prompted if postponed messages exist. If multiple messages are currently postponed, the postponed menu will pop up and you can select which message you would like to resume.
925
926    Note: If you postpone a reply to a message, the reply setting of the message is only updated when you actually finish the message and send it. Also, you must be in the same folder with the message you replied to for the status of the message to be updated.
927
928    See also the $postpone quad-option.
929
930 Chapter 3. Configuration
931
932    Table of Contents
933
934    1. Locations of Configuration Files
935    2. Basic Syntax of Initialization Files
936    3. Expansion within variables
937
938         3.1. Commands' Output
939         3.2. Environment Variables
940         3.3. Configuration Variables
941         3.4. Self-Defined Variables
942         3.5. Pre-Defined Variables
943         3.6. Type Conversions
944
945    4. Defining/Using aliases
946    5. Changing the default key bindings
947    6. Defining aliases for character sets
948    7. Setting variables based upon mailbox
949    8. Keyboard macros
950    9. Using color and mono video attributes
951    10. Ignoring (weeding) unwanted message headers
952    11. Alternative addresses
953    12. Format = Flowed
954
955         12.1. Introduction
956         12.2. Receiving: Display Setup
957         12.3. Sending
958         12.4. Additional Notes
959
960    13. Mailing lists
961    14. Using Multiple spool mailboxes
962    15. Defining mailboxes which receive mail
963    16. User defined headers
964    17. Defining the order of headers when viewing messages
965    18. Specify default save filename
966    19. Specify default Fcc: mailbox when composing
967    20. Specify default save filename and default Fcc: mailbox at once
968    21. Change settings based upon message recipients
969    22. Change settings before formatting a message
970    23. Choosing the cryptographic key of the recipient
971    24. Adding key sequences to the keyboard buffer
972    25. Executing functions
973    26. Message Scoring
974    27. Spam detection
975    28. Setting variables
976    29. Reading initialization commands from another file
977    30. Removing hooks
978    31. Sharing Setups
979
980         31.1. Character Sets
981         31.2. Modularization
982         31.3. Conditional parts
983
984    32. Obsolete Variables
985
986 1. Locations of Configuration Files
987
988    While the default configuration (or ``preferences'') make Mutt-ng usable right out of the box, it is often desirable to tailor Mutt-ng to suit your own tastes. When Mutt-ng is first invoked, it will attempt to read the ``system'' configuration file (defaults set by your local system administrator), unless the ``-n'' commandline option is specified. This file is typically /usr/local/share/muttng/Muttngrc or /etc/Muttngrc , Mutt-ng users will find this file in /usr/local/share/muttng/Muttrc or /etc/Muttngrc. Mutt will next look for a file named .muttrc in your home directory, Mutt-ng will look for .muttngrc. If this file does not exist and your home directory has a subdirectory named .mutt , mutt try to load a file named .muttng/muttngrc.
989
990    .muttrc (or .muttngrc for Mutt-ng) is the file where you will usually place your commands to configure Mutt-ng.
991
992 2. Basic Syntax of Initialization Files
993
994    An initialization file consists of a series of commands .Each line of the file may contain one or more commands. When multiple commands are used, they must be separated by a semicolon (;).
995 set realname='Mutt-ng user' ; ignore x-
996
997    The hash mark, or pound sign (``#''), is used as a ``comment'' character. You can use it to annotate your initialization file. All text after the comment character to the end of the line is ignored. For example,
998 my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
999
1000    Single quotes (') and double quotes (") can be used to quote strings which contain spaces or other special characters. The difference between the two types of quotes is similar to that of many popular shell programs, namely that a single quote is used to specify a literal string (one that is not interpreted for shell variables or quoting with a backslash (see next paragraph), while double quotes indicate a string for which should be evaluated. For example, backtics are evaluated inside of double quotes, but not for single quotes.
1001
1002    \ quotes the next character, just as in shells such as bash and zsh. For example, if want to put quotes ``"'' inside of a string, you can use ``\'' to force the next character to be a literal instead of interpreted character.
1003 set realname="Michael \"MuttDude\" Elkins"
1004
1005    ``\\'' means to insert a literal ``\'' into the line. ``\n'' and ``\r'' have their usual C meanings of linefeed and carriage-return, respectively.
1006
1007    A \ at the end of a line can be used to split commands over multiple lines, provided that the split points don't appear in the middle of command names.
1008
1009    Please note that, unlike the various shells, mutt-ng interprets a ``\'' at the end of a line also in comments. This allows you to disable a command split over multiple lines with only one ``#''.
1010 # folder-hook . \
1011 set realname="Michael \"MuttDude\" Elkins"
1012
1013    When testing your config files, beware the following caveat. The backslash at the end of the commented line extends the current line with the next line - then referred to as a ``continuation line''. As the first line is commented with a hash (#) all following continuation lines are also part of a comment and therefore are ignored, too. So take care of comments when continuation lines are involved within your setup files!
1014
1015    Abstract example:
1016 line1\
1017 line2a # line2b\
1018 line3\
1019 line4
1020 line5
1021
1022    line1 ``continues'' until line4. however, the part after the # is a comment which includes line3 and line4. line5 is a new line of its own and thus is interpreted again.
1023
1024    The commands understood by mutt are explained in the next paragraphs. For a complete list, see the commands.
1025
1026 3. Expansion within variables
1027
1028    Besides just assign static content to variables, there's plenty of ways of adding external and more or less dynamic content.
1029
1030 3.1. Commands' Output
1031
1032    It is possible to substitute the output of a Unix command in an initialization file. This is accomplished by enclosing the command in backquotes (``) as in, for example:
1033 my_hdr X-Operating-System: `uname -a`
1034
1035    The output of the Unix command ``uname -a'' will be substituted before the line is parsed. Note that since initialization files are line oriented, only the first line of output from the Unix command will be substituted.
1036
1037 3.2. Environment Variables
1038
1039    UNIX environments can be accessed like the way it is done in shells like sh and bash: Prepend the name of the environment by a ``$'' sign. For example,
1040 set record=+sent_on_$HOSTNAME
1041
1042    sets the $record variable to the string +sent_on_ and appends the value of the evironment variable $HOSTNAME.
1043
1044    Note: There will be no warning if an environment variable is not defined. The result will of the expansion will then be empty.
1045
1046 3.3. Configuration Variables
1047
1048    As for environment variables, the values of all configuration variables as string can be used in the same way, too. For example,
1049 set imap_home_namespace = $folder
1050
1051    would set the value of $imap_home_namespace to the value to which $folder is currently set to.
1052
1053    Note: There're no logical links established in such cases so that the the value for $imap_home_namespace won't change even if $folder gets changed.
1054
1055    Note: There will be no warning if a configuration variable is not defined or is empty. The result will of the expansion will then be empty.
1056
1057 3.4. Self-Defined Variables
1058
1059    Mutt-ng flexibly allows users to define their own variables. To avoid conflicts with the standard set and to prevent misleading error messages, there's a reserved namespace for them: all user-defined variables must be prefixed with user_ and can be used just like any ordinary configuration or environment variable.
1060
1061    For example, to view the manual, users can either define two macros like the following
1062 macro generic <F1> "!less -r /path/to/manual" "Show manual"
1063 macro pager <F1> "!less -r /path/to/manual" "Show manual"
1064
1065    for generic, pager and index .The alternative is to define a custom variable like so:
1066 set user_manualcmd = "!less -r /path/to_manual"
1067 macro generic <F1> "$user_manualcmd<enter>" "Show manual"
1068 macro pager <F1> "$user_manualcmd<enter>" "Show manual"
1069 macro index <F1> "$user_manualcmd<enter>" "Show manual"
1070
1071    to re-use the command sequence as in:
1072 macro index <F2> "$user_manualcmd | grep '\^[ ]\\+~. '" "Show Patterns"
1073
1074    Using this feature, arbitrary sequences can be defined once and recalled and reused where necessary. More advanced scenarios could include to save a variable's value at the beginning of macro sequence and restore it at end.
1075
1076    When the variable is first defined, the first value it gets assigned is also the initial value to which it can be reset using the reset command.
1077
1078    The complete removal is done via the unset keyword.
1079
1080    After the following sequence:
1081 set user_foo = 42
1082 set user_foo = 666
1083
1084    the variable $user_foo has a current value of 666 and an initial of 42. The query
1085 set ?user_foo
1086
1087    will show 666. After doing the reset via
1088 reset user_foo
1089
1090    a following query will give 42 as the result. After unsetting it via
1091 unset user_foo
1092
1093    any query or operation (except the noted expansion within other statements) will lead to an error message.
1094
1095 3.5. Pre-Defined Variables
1096
1097    In order to allow users to share one setup over a number of different machines without having to change its contents, there's a number of pre-defined variables. These are prefixed with muttng_ and are read-only, i.e. they cannot be set, unset or reset. The reference chapter lists all available variables.
1098
1099    Please consult the local copy of your manual for their values as they may differ from different manual sources. Where the manual is installed in can be queried (already using such a variable) by running:
1100 muttng -Q muttng_docdir
1101
1102    To extend the example for viewing the manual via self-defined variables, it can be made more readable and more portable by changing the real path in:
1103 set user_manualcmd = '!less -r /path/to_manual'
1104
1105    to:
1106 set user_manualcmd = "!less -r $muttng_docdir/manual.txt"
1107
1108    which works everywhere if a manual is installed.
1109
1110    Please note that by the type of quoting, muttng determines when to expand these values: when it finds double quotes, the value will be expanded during reading the setup files but when it finds single quotes, it'll expand it at runtime as needed.
1111
1112    For example, the statement
1113 folder-hook . "set user_current_folder = $muttng_folder_name"
1114
1115    will be already be translated to the following when reading the startup files:
1116 folder-hook . "set user_current_folder = some_folder"
1117
1118    with some_folder being the name of the first folder muttng opens. On the contrary,
1119 folder-hook . 'set user_current_folder = $muttng_folder_name'
1120
1121    will be executed at runtime because of the single quotes so that user_current_folder will always have the value of the currently opened folder.
1122
1123    A more practical example is:
1124 folder-hook . 'source ~/.mutt/score-$muttng_folder_name'
1125
1126    which can be used to source files containing score commands depending on the folder the user enters.
1127
1128 3.6. Type Conversions
1129
1130    A note about variable's types during conversion: internally values are stored in internal types but for any dump/query or set operation they're converted to and from string. That means that there's no need to worry about types when referencing any variable. As an example, the following can be used without harm (besides makeing muttng very likely behave strange):
1131 set read_inc = 100
1132 set folder = $read_inc
1133 set read_inc = $folder
1134 set user_magic_number = 42
1135 set folder = $user_magic_number
1136
1137 4. Defining/Using aliases
1138
1139    Usage: aliaskey address [, address,...]
1140
1141    It's usually very cumbersome to remember or type out the address of someone you are communicating with. Mutt-ng allows you to create ``aliases'' which map a short string to a full address.
1142
1143    Note: if you want to create an alias for a group (by specifying more than one address), you must separate the addresses with a comma (``,'').
1144
1145    To remove an alias or aliases (``*'' means all aliases):
1146
1147    unalias [* | key...]
1148 alias muttdude me@cs.hmc.edu (Michael Elkins)
1149 alias theguys manny, moe, jack
1150
1151    Unlike other mailers, Mutt-ng doesn't require aliases to be defined in a special file. The alias command can appear anywhere in a configuration file, as long as this file is source .Consequently, you can have multiple alias files, or you can have all aliases defined in your muttrc.
1152
1153    On the other hand, the <create-alias> function can use only one file, the one pointed to by the $alias_file variable (which is ~/.muttrc by default). This file is not special either, in the sense that Mutt-ng will happily append aliases to any file, but in order for the new aliases to take effect you need to explicitly source this file too.
1154
1155    For example:
1156 source /usr/local/share/Mutt-ng.aliases
1157 source ~/.mail_aliases
1158 set alias_file=~/.mail_aliases
1159
1160    To use aliases, you merely use the alias at any place in mutt where muttprompts for addresses, such as the To: or Cc: prompt. You can also enter aliases in your editor at the appropriate headers if you have the $editor_headers variable set.
1161
1162    In addition, at the various address prompts, you can use the tab character to expand a partial alias to the full alias. If there are multiple matches, mutt will bring up a menu with the matching aliases. In order to be presented with the full list of aliases, you must hit tab with out a partial alias, such as at the beginning of the prompt or after a comma denoting multiple addresses.
1163
1164    In the alias menu, you can select as many aliases as you want with the select-entry key (default: RET), and use the exit key (default: q) to return to the address prompt.
1165
1166 5. Changing the default key bindings
1167
1168    Usage: bindmapkeyfunction
1169
1170    This command allows you to change the default key bindings (operation invoked when pressing a key).
1171
1172    map specifies in which menu the binding belongs. Multiple maps may be specified by separating them with commas (no additional whitespace isallowed). The currently defined maps are:
1173
1174    generic
1175           This is not a real menu, but is used as a fallback for all of the other menus except for the pager and editor modes. If a key is not defined in another menu, Mutt-ng will look for a binding to use in this menu. This allows you to bind a key to a certain function in multiple menus instead of having multiple bind statements to accomplish the same task.
1176
1177    alias
1178           The alias menu is the list of your personal aliases as defined in your muttrc. It is the mapping from a short alias name to the full email address(es) of the recipient(s).
1179
1180    attach
1181           The attachment menu is used to access the attachments on received messages.
1182
1183    browser
1184           The browser is used for both browsing the local directory structure, and for listing all of your incoming mailboxes.
1185
1186    editor
1187           The editor is the line-based editor the user enters text data.
1188
1189    index
1190           The index is the list of messages contained in a mailbox.
1191
1192    compose
1193           The compose menu is the screen used when sending a new message.
1194
1195    pager
1196           The pager is the mode used to display message/attachment data, and help listings.
1197
1198    pgp
1199           The pgp menu is used to select the OpenPGP keys used for encrypting outgoing messages.
1200
1201    postpone
1202           The postpone menu is similar to the index menu, except is used when recalling a message the user was composing, but saved until later.
1203
1204    key is the key (or key sequence) you wish to bind. To specify a control character, use the sequence \Cx, where x is the letter of the control character (for example, to specify control-A use ``\Ca''). Note that the case of x as well as \C is ignored, so that \CA, \Ca, \cA and \ca are all equivalent. An alternative form is to specify the key as a three digit octal number prefixed with a ``\'' (for example \177 is equivalent to \c?).
1205
1206    In addition, key may consist of:
1207
1208    Table 3.1. Alternative Key Names
1209    Sequence    Description
1210    \t          tab
1211    <tab>       tab
1212    <backtab>   backtab / shift-tab
1213    \r          carriage return
1214    \n          newline
1215    \e          escape
1216    <esc>       escape
1217    <up>        up arrow
1218    <down>      down arrow
1219    <left>      left arrow
1220    <right>     right arrow
1221    <pageup>    Page Up
1222    <pagedown>  Page Down
1223    <backspace> Backspace
1224    <delete>    Delete
1225    <insert>    Insert
1226    <enter>     Enter
1227    <return>    Return
1228    <home>      Home
1229    <end>       End
1230    <space>     Space bar
1231    <f1>        function key 1
1232    <f10>       function key 10
1233
1234    key does not need to be enclosed in quotes unless it contains a space (`` '').
1235
1236    function specifies which action to take when key is pressed. For a complete list of functions, see the functions .The special function noop unbinds the specified key sequence.
1237
1238 6. Defining aliases for character sets
1239
1240    Usage: charset-hookalias charset
1241    Usage: iconv-hookcharset local-charset 
1242
1243    The charset-hook command defines an alias for a character set. This is useful to properly display messages which are tagged with a character set name not known to mutt.
1244
1245    The iconv-hook command defines a system-specific name for a character set. This is helpful when your systems character conversion library insists on using strange, system-specific names for character sets.
1246
1247 7. Setting variables based upon mailbox
1248
1249    Usage: folder-hook [!]regexpcommand
1250
1251    It is often desirable to change settings based on which mailbox you are reading. The folder-hook command provides a method by which you can execute any configuration command. regexp is a regular expression specifying in which mailboxes to execute command before loading. If a mailbox matches multiple folder-hook's, they are executed in the order given in the muttrc.
1252
1253    Note: if you use the ``!'' shortcut for $spoolfile at the beginning of the pattern, you must place it inside of double or single quotes in order to distinguish it from the logical not operator for the expression.
1254
1255    Note that the settings are not restored when you leave the mailbox. For example, a command action to perform is to change the sorting methodbased upon the mailbox being read:
1256 folder-hook mutt set sort=threads
1257
1258    However, the sorting method is not restored to its previous value when reading a different mailbox. To specify a default command, use the pattern ``.'':
1259 folder-hook . set sort=date-sent
1260
1261 8. Keyboard macros
1262
1263    Usage: macromenu keysequence [description]
1264
1265    Macros are useful when you would like a single key to perform a series of actions. When you press key in menu menu ,Mutt-ng will behave as if you had typed sequence. So if you have a common sequence of commands you type, you can create a macro to execute those commands with a singlekey.
1266
1267    menu is the maps which the macro will be bound. Multiple maps may be specified by separating multiple menu arguments by commas. Whitespace may not be used in between the menu arguments and thecommas separating them.
1268
1269    key and sequence are expanded by the same rules as the bind. There are some additions however. The first is that control characters in sequence can also be specified as ^x. In order to get a caret (`^'') you need to use ^^. Secondly, to specify a certain key such as up or to invoke a function directly, you can use the format <key name> and <function name> .For a listing of key names see the section on bind. Functions are listed in the functions.
1270
1271    The advantage with using function names directly is that the macros willwork regardless of the current key bindings, so they are not dependent on the user having particular key definitions. This makes them more robustand portable, and also facilitates defining of macros in files used by more than one user (eg. the system Muttngrc).
1272
1273    Optionally you can specify a descriptive text after sequence, which is shown in the help screens.
1274
1275    Note: Macro definitions (if any) listed in the help screen(s), are silently truncated at the screen width, and are not wrapped.
1276
1277 9. Using color and mono video attributes
1278
1279    Usage: colorobject foregroundbackground [regexp]
1280    Usage: color index foregroundbackgroundpattern
1281    Usage: uncolor index pattern[pattern...]
1282
1283    If your terminal supports color, you can spice up Mutt-ng by creating your own color scheme. To define the color of an object (type of information), you must specify both a foreground color and a background color (it is not possible to only specify one or the other).
1284
1285    object can be one of:
1286      * attachment
1287      * body (match regexp in the body of messages)
1288      * bold (highlighting bold patterns in the body of messages)
1289      * error (error messages printed by Mutt-ng)
1290      * header (match regexp in the message header)
1291      * hdrdefault (default color of the message header in the pager)
1292      * index (match pattern in the message index)
1293      * indicator (arrow or bar used to indicate the current item in a menu)
1294      * markers (the ``+'' markers at the beginning of wrapped lines in the pager)
1295      * message (informational messages)
1296      * normal
1297      * quoted (text matching $quote_regexp in the body of a message)
1298      * quoted1, quoted2, ..., quotedN (higher levels of quoting)
1299      * search (highlighting of words in the pager)
1300      * signature
1301      * status (mode lines used to display info about the mailbox or message)
1302      * tilde (the ``~'' used to pad blank lines in the pager)
1303      * tree (thread tree drawn in the message index and attachment menu)
1304      * underline (highlighting underlined patterns in the body of messages)
1305
1306    foreground and background can be one of the following:
1307      * white
1308      * black
1309      * green
1310      * magenta
1311      * blue
1312      * cyan
1313      * yellow
1314      * red
1315      * default
1316      * colorx
1317
1318    foreground can optionally be prefixed with the keyword bright to make the foreground color boldfaced (e.g., brightred).
1319
1320    If your terminal supports it, the special keyword default can be used as a transparent color. The value brightdefault is also valid. If Mutt-ng is linked against the S-Lang library, you also need to set the $COLORFGBG environment variable to the default colors of your terminal for this to work; for example (for Bourne-like shells):
1321 set COLORFGBG="green;black"
1322 export COLORFGBG
1323
1324    Note: The S-Lang library requires you to use the lightgray and brown keywords instead of white and yellow when setting this variable.
1325
1326    Note: The uncolor command can be applied to the index object only. It removes entries from the list. You must specify the same pattern specified in the color command for it to be removed. The pattern ``*'' is a special token which means to clear the color index list of all entries.
1327
1328    Mutt-ng also recognizes the keywords color0, color1 ,..., colorN-1 (N being the number of colors supported by your terminal). This is useful when you remap the colors for your display (for example by changing the color associated with color2 for your xterm), since color names may then lose their normal meaning.
1329
1330    If your terminal does not support color, it is still possible change the video attributes through the use of the ``mono'' command:
1331
1332    Usage: mono<object> <attribute>[regexp]
1333    Usage: mono index attributepattern
1334    Usage: unmono index pattern [pattern...]
1335
1336    where attribute is one of the following:
1337      * none
1338      * bold
1339      * underline
1340      * reverse
1341      * standout
1342
1343 10. Ignoring (weeding) unwanted message headers
1344
1345    Usage: [un]ignorepattern [pattern...]
1346
1347    Messages often have many header fields added by automatic processing systems, or which may not seem useful to display on the screen. This command allows you to specify header fields which you don't normally want to see.
1348
1349    You do not need to specify the full header field name. For example, ``ignore content-'' will ignore all header fields that begin with the pattern ``content-''. ``ignore *'' will ignore all headers.
1350
1351    To remove a previously added token from the list, use the ``unignore'' command. The ``unignore'' command will make Mutt-ng display headers with the given pattern. For example, if you do ``ignore x-'' it is possible to ``unignore x-mailer''.
1352
1353    ``unignore *'' will remove all tokens from the ignore list.
1354
1355    For example:
1356 # Sven's draconian header weeding
1357 ignore *
1358 unignore from date subject to cc
1359 unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
1360 unignore posted-to:
1361
1362 11. Alternative addresses
1363
1364    Usage: [un]alternatesregexp [regexp...]
1365
1366    With various functions, mutt will treat messages differently, depending on whether you sent them or whether you received them from someone else. For instance, when replying to a message that you sent to a different party, mutt will automatically suggest to send the response to the original message's recipients--responding to yourself won't make much sense in many cases. (See $reply_to.)
1367
1368    Many users receive e-mail under a number of different addresses. To fully use mutt's features here, the program must be able to recognize what e-mail addresses you receive mail under. That's the purpose of the alternates command: It takes a list of regular expressions, each of which can identify an address under which you receive e-mail.
1369
1370    The unalternates command can be used to write exceptions to alternates patterns. If an address matches something in an alternates command, but you nonetheless do not think it is from you, you can list a more precise pattern under an unalternates command.
1371
1372    To remove a regular expression from the alternates list, use the unalternates command with exactly the same regexp . Likewise, if the regexp for a alternates command matches an entry on the unalternates list, that unalternates entry will be removed. If the regexp for unalternates is ``*'', all entries on alternates will be removed.
1373
1374 12. Format = Flowed
1375
1376 12.1. Introduction
1377
1378    Mutt-ng contains support for so-called format=flowed messages. In the beginning of email, each message had a fixed line width, and it was enough for displaying them on fixed-size terminals. But times changed, and nowadays hardly anybody still uses fixed-size terminals: more people nowaydays use graphical user interfaces, with dynamically resizable windows. This led to the demand of a new email format that makes it possible for the email client to make the email look nice in a resizable window without breaking quoting levels and creating an incompatible email format that can also be displayed nicely on old fixed-size terminals.
1379
1380    For introductory information on format=flowed messages, see <http://www.joeclark.org/ffaq.html>.
1381
1382 12.2. Receiving: Display Setup
1383
1384    When you receive emails that are marked as format=flowed messages, and is formatted correctly, mutt-ng will try to reformat the message to optimally fit on your terminal. If you want a fixed margin on the right side of your terminal, you can set the following:
1385 set wrapmargin = 10
1386
1387    The code above makes the line break 10 columns before the right side of the terminal.
1388
1389    If your terminal is so wide that the lines are embarrassingly long, you can also set a maximum line length:
1390 set max_line_length = 120
1391
1392    The example above will give you lines not longer than 120 characters.
1393
1394    When you view at format=flowed messages, you will often see the quoting hierarchy like in the following example:
1395 >Bill, can you please send last month's progress report to Mr.
1396 >Morgan? We also urgently need the cost estimation for the new
1397 >production server that we want to set up before our customer's
1398 >project will go live.
1399
1400    This obviously doesn't look very nice, and it makes it very hard to differentiate between text and quoting character. The solution is to configure mutt-ng to "stuff" the quoting:
1401 set stuff_quoted
1402
1403    This will lead to a nicer result that is easier to read:
1404 > Bill, can you please send last month's progress report to Mr.
1405 > Morgan? We also urgently need the cost estimation for the new
1406 > production server that we want to set up before our customer's
1407 > project will go live.
1408
1409 12.3. Sending
1410
1411    If you want mutt-ng to send emails with format=flowed set, you need to explicitly set it:
1412 set text_flowed
1413
1414    Additionally, you have to use an editor which supports writing format=flowed-conforming emails. For vim(1), this is done by adding w to the formatoptions (see :h formatoptions and :h fo-table) when writing emails.
1415
1416    Also note that format=flowed knows about ``space-stuffing'', that is, when sending messages, some kinds of lines have to be indented with a single space on the sending side. On the receiving side, the first space (if any) is removed. As a consequence and in addition to the above simple setting, please keep this in mind when making manual formattings within the editor. Also note that mutt-ng currently violates the standard (RfC 3676) as it does not space-stuff lines starting with:
1417      * > This is not the quote character but a right angle used for other reasons
1418      * From with a trailing space.
1419      * just a space for formatting reasons
1420
1421    Please make sure that you manually prepend a space to each of them.
1422
1423 12.4. Additional Notes
1424
1425    For completeness, the $delete_space variable provides the mechanism to generate a DelSp=yes parameter on outgoing messages. According to the standard, clients receiving a format=flowed messages should delete the last space of a flowed line but still interpret the line as flowed. Because flowed lines usually contain only one space at the end, this parameter would make the receiving client concatenate the last word of the previous with the first of the current line without a space. This makes ordinary text unreadable and is intended for languages rarely using spaces. So please use this setting only if you're sure what you're doing.
1426
1427 13. Mailing lists
1428
1429    Usage: [un]listsregexp [regexp...]
1430    Usage: [un]subscriberegexp [regexp...]
1431
1432    Mutt-ng has a few nice features for using-lists .In order to take advantage of them, you must specify which addresses belong to mailing lists, and which mailing lists you are subscribed to. Once you have done this, the list-reply function will work for all known lists. Additionally, when you send a message to a subscribed list, mutt will add a Mail-Followup-To header to tell other users' mail user agents not to send copies of replies to your personal address. Note that the Mail-Followup-To header is a non-standard extension which is not supported by all mail user agents. Adding it is not bullet-proof against receiving personal CCs of list messages. Also note that the generation of the Mail-Followup-To header is controlled by the $followup_to configuration variable.
1433
1434    More precisely, Mutt-ng maintains lists of patterns for the addresses of known and subscribed mailing lists. Every subscribed mailing list is known. To mark a mailing list as known, use the ``lists'' command. To mark it as subscribed, use ``subscribe''.
1435
1436    You can use regular expressions with both commands. To mark all messages sent to a specific bug report's address on mutt's bug tracking system as list mail, for instance, you could say ``subscribe [0-9]*@bugs.guug.de''. Often, it's sufficient to just give a portion of the list's e-mail address.
1437
1438    Specify as much of the address as you need to to remove ambiguity. For example, if you've subscribed to the Mutt-ng mailing list, you will receive mail addressed to mutt-users@mutt.org. So, to tell Mutt-ng that this is a mailing list, you could add ``lists mutt-users'' to your initialization file. To tell mutt that you are subscribed to it, add ``subscribe mutt-users'' to your initialization file instead. If you also happen to get mail from someone whose address is mutt-users@example.com, you could use ``lists mutt-users@mutt\\.org'' or ``subscribe mutt-users@mutt\\.org'' to match only mail from the actual list.
1439
1440    The ``unlists'' command is used to remove a token from the list of known and subscribed mailing-lists. Use ``unlists *'' to remove all tokens.
1441
1442    To remove a mailing list from the list of subscribed mailing lists, but keep it on the list of known mailing lists, use ``unsubscribe''.
1443
1444 14. Using Multiple spool mailboxes
1445
1446    Usage: mbox-hook [!]patternmailbox
1447
1448    This command is used to move read messages from a specified mailbox to adifferent mailbox automatically when you quit or change folders. pattern is a regular expression specifying the mailbox to treat as a ``spool'' mailbox and mailbox specifies where mail should be saved when read.
1449
1450    Unlike some of the other hook commands, only the first matching pattern is used (it is not possible to save read mail in more than a single mailbox).
1451
1452 15. Defining mailboxes which receive mail
1453
1454    Usage: [un]mailboxes [!]filename [filename...]
1455
1456    This command specifies folders which can receive mail and which will be checked for new messages. By default, the main menu status bar displays how many of these folders have new messages.
1457
1458    When changing folders, pressing space will cycle through folders with new mail.
1459
1460    Pressing TAB in the directory browser will bring up a menu showing the files specified by the mailboxes command, and indicate which contain new messages. Mutt-ng will automatically enter this mode when invoked from the command line with the -y option.
1461
1462    The ``unmailboxes'' command is used to remove a token from the list of folders which receive mail. Use ``unmailboxes *'' to remove all tokens.
1463
1464    Note: new mail is detected by comparing the last modification time to the last access time. Utilities like biff or frm or any other program which accesses the mailbox might cause Mutt-ng to never detect new mail for that mailbox if they do not properly reset the access time. Backup tools are another common reason for updated access times.
1465
1466    Note: the filenames in the mailboxes command are resolved when the command is executed, so if these names contain shortcuts (such as ``='' and ``!''), any variable definition that affect these characters (like $folder and $spoolfile) should be executed before the mailboxes command.
1467
1468 16. User defined headers
1469
1470    Usage: my_hdrstring
1471    Usage: unmy_hdrfield [field...]
1472
1473    The ``my_hdr'' command allows you to create your own header fields which will be added to every message you send.
1474
1475    For example, if you would like to add an ``Organization:'' header field to all of your outgoing messages, you can put the command
1476 my_hdr Organization: A Really Big Company, Anytown, USA
1477
1478    in your .muttrc.
1479
1480    Note: space characters are not allowed between the keyword and the colon (``:''). The standard for electronic mail (RFC822) says that space is illegal there, so Mutt-ng enforces the rule.
1481
1482    If you would like to add a header field to a single message, you should either set the $edit_headers variable, or use the edit-headers function (default: ``E'') in the send-menu so that you can edit the header of your message along with the body.
1483
1484    To remove user defined header fields, use the ``unmy_hdr'' command. You may specify an asterisk (``*'') to remove all header fields, or the fields to remove. For example, to remove all ``To'' and ``Cc'' header fields, you could use:
1485 unmy_hdr to cc
1486
1487 17. Defining the order of headers when viewing messages
1488
1489    Usage: hdr_orderheader1header2header3
1490
1491    With this command, you can specify an order in which mutt will attempt to present headers to you when viewing messages.
1492
1493    ``unhdr_order *'' will clear all previous headers from the order list, thus removing the header order effects set by the system-wide startup file.
1494 hdr_order From Date: From: To: Cc: Subject:
1495
1496 18. Specify default save filename
1497
1498    Usage: save-hook [!]patternfilename
1499
1500    This command is used to override the default filename used when saving messages. filename will be used as the default filename if the message is From: an address matching regexp or if you are the author and the message is addressed to: something matching regexp .
1501
1502    See pattern-hook for information on the exact format of pattern.
1503
1504    Examples:
1505 save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
1506 save-hook aol\\.com$ +spam
1507
1508    Also see the fcc-save-hook command.
1509
1510 19. Specify default Fcc: mailbox when composing
1511
1512    Usage: fcc-hook [!]patternmailbox
1513
1514    This command is used to save outgoing mail in a mailbox other than $record. Mutt-ng searches the initial list of message recipients for the first matching regexp and uses mailbox as the default Fcc: mailbox. If no match is found the message will be saved to $record mailbox.
1515
1516    See pattern-hook for information on the exact format of pattern.
1517
1518    Example: fcc-hook ]@.[aol\\.com$ +spammers
1519
1520    The above will save a copy of all messages going to the aol.com domain to the `+spammers' mailbox by default. Also see the fcc-save-hook command.
1521
1522 20. Specify default save filename and default Fcc: mailbox at once
1523
1524    Usage: fcc-save-hook [!]patternmailbox
1525
1526    This command is a shortcut, equivalent to doing both a fcc-hook and a save-hook with its arguments.
1527
1528 21. Change settings based upon message recipients
1529
1530    Usage: reply-hook [!]patterncommand
1531    Usage: send-hook [!]patterncommand
1532    Usage: send2-hook [!]patterncommand
1533
1534    v
1535
1536    These commands can be used to execute arbitrary configuration commands based upon recipients of the message. pattern is a regular expression matching the desired address. command is executed when regexp matches recipients of the message.
1537
1538    reply-hook is matched against the message you are replying to, instead of the message you are sending .send-hook is matched against all messages, both new and replies .Note:reply-hooks are matched before the send-hook, regardless of the order specified in the users's configuration file.
1539
1540    send2-hook is matched every time a message is changed, either by editing it, or by using the compose menu to change its recipients or subject. send2-hook is executed after send-hook ,and can, e.g., be used to set parameters such as the $sendmail variable depending on the message's sender address.
1541
1542    For each type of send-hook or reply-hook, when multiple matches occur, commands are executed in the order they are specified in the muttrc (for that type of hook).
1543
1544    See pattern-hook for information on the exact format of pattern.
1545
1546    Example: send-hook mutt "set mime_forward signature=''"
1547
1548    Another typical use for this command is to change the values of the $attribution, $signature and $locale variables in order to change the language of the attributions and signatures based upon the recipients.
1549
1550    Note: the send-hook's are only executed ONCE after getting the initial list of recipients. Adding a recipient after replying or editing the message will NOT cause any send-hook to be executed. Also note that my_hdr commands which modify recipient headers, or the message's subject, don't have any effect on the current message when executed from a send-hook.
1551
1552 22. Change settings before formatting a message
1553
1554    Usage: message-hook [!]patterncommand
1555
1556    This command can be used to execute arbitrary configuration commands before viewing or formatting a message based upon information about the message. command is executed if the pattern matches the message to be displayed. When multiple matches occur, commands are executed in the order they are specified in the muttrc.
1557
1558    See pattern-hook for information on the exact format of pattern.
1559
1560    Example:
1561 message-hook ~A/=A 'set pager=builtin'
1562 message-hook '~f/=f freshmeat-news' 'set pager="less \"+/^  subject:.*\""'
1563
1564 23. Choosing the cryptographic key of the recipient
1565
1566    Usage: crypt-hookpatternkeyid
1567
1568    When encrypting messages with PGP or OpenSSL, you may want to associate a certain key with a given e-mail address automatically, either because the recipient's public key can't be deduced from the destination address, or because, for some reasons, you need to override the key Mutt-ng wouldnormally use. The crypt-hook command provides a method by which you can specify the ID of the public key to be used when encrypting messages to a certain recipient.
1569
1570    The meaning of "key id" is to be taken broadly in this context: You can either put a numerical key ID here, an e-mail address, or even just a real name.
1571
1572 24. Adding key sequences to the keyboard buffer
1573
1574    Usage: pushstring
1575
1576    This command adds the named string to the keyboard buffer. The string may contain control characters, key names and function names like the sequence string in the macro command. You may use it to automatically run a sequence of commands at startup, or when entering certain folders. For example, the following command will automatically collapse all threads when entering a folder:
1577 folder-hook . 'push <collapse-all>'
1578
1579 25. Executing functions
1580
1581    Usage: execfunction [function...]
1582
1583    This command can be used to execute any function. Functions are listed in the functions. ``exec function'' is equivalent to ``push <function>''.
1584
1585 26. Message Scoring
1586
1587    Usage: scorepattern value
1588    Usage: unscorepattern [pattern...]
1589
1590    In situations where you have to cope with a lot of emails, e.g. when you read many different mailing lists, and take part in discussions, it is always useful to have the important messages marked and the annoying messages or the ones that you aren't interested in deleted. For this purpose, mutt-ng features a mechanism called ``scoring''.
1591
1592    When you use scoring, every message has a base score of 0. You can then use the score command to define patterns and a positive or negative value associated with it. When a pattern matches a message, the message's score will be raised or lowered by the amount of the value associated with the pattern.
1593 score "~f/=f nion@muttng\.org" 50
1594 score "~f/=f @sco\.com" -100
1595
1596    If the pattern matches, it is also possible to set the score value of the current message to a certain value and then stop evaluation:
1597 score "~f/=f santaclaus@northpole\.int" =666
1598
1599    What is important to note is that negative score values will be rounded up to 0.
1600
1601    To make scoring actually useful, the score must be applied in some way. That's what the score thresholds are for. Currently, there are three score thresholds:
1602      * flag threshold: when a message has a score value equal or higher than the flag threshold, it will be flagged.
1603      * read threshold: when a message has a score value equal or lower than the read threshold, it will be marked as read.
1604      * delete threshold: when a message has a score value equal or lower than the delete threshold, it will be marked as deleted.
1605
1606    These three thresholds can be set via the variables $score_threshold_read, $score_threshold_flag and $score_threshold_delete.
1607
1608    By default, $score_threshold_read and $score_threshold_delete are set to -1, which means that in the default threshold configuration no message will ever get marked as read or deleted.
1609
1610    Scoring gets especially interesting when combined with the color command and the ~n/=n pattern:
1611 color index  black   yellow  "~n/=n 10-"
1612 color index  red     yellow  "~n/=n 100-"
1613
1614    The rules above mark all messages with a score between 10 and 99 with black and yellow, and messages with a score greater or equal 100 with red and yellow. This might be unusual to you if you're used to e.g. slrn's scoring mechanism, but it is more flexible, as it visually marks different scores.
1615
1616 27. Spam detection
1617
1618    Usage: spampatternformat 
1619    Usage: nospampattern
1620
1621    Mutt-ng has generalized support for external spam-scoring filters. By defining your spam patterns with the spam and nospam commands, you can limit, search, and sort your mail based on its spam attributes, as determined by the external filter. You also can display the spam attributes in your index display using the %H selector in the $index_format variable. (Tip: try %?H?[%H] ? to display spam tags only when they are defined for a given message.)
1622
1623    Your first step is to define your external filter's spam patterns using the spam command. pattern should be a regular expression that matches a header in a mail message. If any message in the mailbox matches this regular expression, it will receive a ``spam tag'' or ``spam attribute'' (unless it also matches a nospam pattern -- see below.) The appearance of this attribute is entirely up to you, and is governed by the format parameter. format can be any static text, but it also can include back-references from the pattern expression. (A regular expression ``back-reference'' refers to a sub-expression contained within parentheses.) %1 is replaced with the first back-reference in the regex, %2 with the second, etc.
1624
1625    If you're using multiple spam filters, a message can have more than one spam-related header. You can define spam patterns for each filter you use. If a message matches two or more of these patterns, and the $spam_separator variable is set to a string, then the message's spam tag will consist of all the format strings joined together, with the value of $spam_separator separating them.
1626
1627    For example, suppose I use DCC, SpamAssassin, and PureMessage. I might define these spam settings:
1628 spam "X-DCC-.*-Metrics:.*(....)=many"         "90+/DCC-%1"
1629 spam "X-Spam-Status: Yes"                     "90+/SA"
1630 spam "X-PerlMX-Spam: .*Probability=([0-9]+)%" "%1/PM"
1631 set spam_separator=", "
1632
1633    If I then received a message that DCC registered with ``many'' hits under the ``Fuz2'' checksum, and that PureMessage registered with a 97% probability of being spam, that message's spam tag would read90+/DCC-Fuz2, 97/PM. (The four characters before ``=many'' in a DCC report indicate the checksum used -- in this case, ``Fuz2''.)
1634
1635    If the $spam_separator variable is unset, then each spam pattern match supersedes the previous one. Instead of getting joined format strings, you'll get only the last one to match.
1636
1637    The spam tag is what will be displayed in the index when you use %H in the $index_format variable. It's also the string that the ~H/=H pattern-matching expression matches against for search and limit functions. And it's what sorting by spam attribute will use as a sort key.
1638
1639    That's a pretty complicated example, and most people's actual environments will have only one spam filter. The simpler your configuration, the more effective mutt can be, especially when it comes to sorting.
1640
1641    Generally, when you sort by spam tag, mutt will sort lexically -- that is, by ordering strings alphnumerically. However, if a spam tag begins with a number, mutt will sort numerically first, and lexically only when two numbers are equal in value. (This is like UNIX's sort -n.) A message with no spam attributes at all -- that is, one that didn't match any of your spam patterns -- is sorted at lowest priority. Numbers are sorted next, beginning with 0 and ranging upward. Finally, non-numeric strings are sorted, with ``a'' taking lowerpriority than ``z''. Clearly, in general, sorting by spam tags is most effective when you can coerce your filter to give you a raw number. But in case you can't, mutt can still do something useful.
1642
1643    The nospam command can be used to write exceptions to spam patterns. If a header pattern matches something in a spam command, but you nonetheless do not want it to receive a spam tag, you can list amore precise pattern under a nospam command.
1644
1645    If the pattern given to nospam is exactly the same as the pattern on an existing spam list entry, the effect will be to remove the entry from the spam list, instead of adding an exception. Likewise, if the pattern for a spam command matches an entry on the nospam list, that nospam entry will be removed. If the pattern for nospam is ``*'', all entries on both lists will be removed. This might be the default action if you use spam and nospam in conjunction with a folder-hook.
1646
1647    You can have as many spam or nospam commands as you like. You can even do your own primitive spam detection within mutt -- for example, if you consider all mail from MAILER-DAEMON to be spam, you can use a spam command like this:
1648 spam "^From: .*MAILER-DAEMON"       "999"
1649
1650 28. Setting variables
1651
1652    Usage: set [no|inv]variable[=value] [variable...]
1653    Usage: togglevariable [variable...]
1654    Usage: unsetvariable [ variable...]
1655    Usage: resetvariable [ variable...]
1656
1657    This command is used to set (and unset) variables .There are four basic types of variables: boolean, number, string and quadoption. boolean variables can be set (true) or unset (false). number variables can be assigned a positive integer value.
1658
1659    string variables consist of any number of printable characters. strings must be enclosed in quotes if they contain spaces or tabs. You may also use the ``C'' escape sequences \n and \t for newline and tab, respectively.
1660
1661    quadoption variables are used to control whether or not to be prompted for certain actions, or to specify a default action. A value of yes will cause the action to be carried out automatically as if you had answered yes to the question. Similarly, a value of no will cause the the action to be carried out as if you had answered ``no.'' A value of ask-yes will cause a prompt with a default answer of ``yes'' and ask-no will provide a default answer of ``no.''
1662
1663    Prefixing a variable with ``no'' will unset it. Example: set noaskbcc .
1664
1665    For boolean variables, you may optionally prefix the variable name with inv to toggle the value (on or off). This is useful when writing macros. Example: set invsmart_wrap.
1666
1667    The toggle command automatically prepends the inv prefix to all specified variables.
1668
1669    The unset command automatically prepends the no prefix to all specified variables.
1670
1671    Using the enter-command function in the index menu, you can query the value of a variable by prefixing the name of the variable with a question mark:
1672 set ?allow_8bit
1673
1674    The question mark is actually only required for boolean and quadoption variables.
1675
1676    The reset command resets all given variables to the compile time defaults (hopefully mentioned in this manual). If you use the command set and prefix the variable with ``&'' this has the same behavior as the reset command.
1677
1678    With the reset command there exists the special variable ``all'', which allows you to reset all variables to their system defaults.
1679
1680 29. Reading initialization commands from another file
1681
1682    Usage: sourcefilename [filename...]
1683
1684    This command allows the inclusion of initialization commands from other files. For example, I place all of my aliases in ~/.mail_aliases so that I can make my ~/.muttrc readable and keep my aliases private.
1685
1686    If the filename begins with a tilde (``~''), it will be expanded to the path of your home directory.
1687
1688    If the filename ends with a vertical bar (|), then filename is considered to be an executable program from which to read input (eg. source ~/bin/myscript|).
1689
1690 30. Removing hooks
1691
1692    Usage: unhook [* | hook-type]
1693
1694    This command permits you to flush hooks you have previously defined. You can either remove all hooks by giving the ``*'' character as an argument, or you can remove all hooks of a specific type by saying something like unhook send.
1695
1696 31. Sharing Setups
1697
1698 31.1. Character Sets
1699
1700    As users may run mutt-ng on different systems, the configuration must be maintained because it's likely that people want to use the setup everywhere they use mutt-ng. And mutt-ng tries to help where it can.
1701
1702    To not produce conflicts with different character sets, mutt-ng allows users to specify in which character set their configuration files are encoded. Please note that while reading the configuration files, this is only respected after the corresponding declaration appears. It's advised to put the following at the very beginning of a users muttngrc:
1703 set config_charset = "..."
1704
1705    and replacing the dots with the actual character set. To avoid problems while maintaining the setup, vim(1) user's may want to use modelines as show in:
1706 # vim:fileencoding=...:
1707
1708    while, again, replacing the dots with the appropriate name. This tells vim(1) as which character set to read and save the file.
1709
1710 31.2. Modularization
1711
1712    ``Modularization'' means to divide the setup into several files while sorting the options or commands by topic. Especially for longer setups (e.g. with many hooks), this helps maintaining it and solving trouble.
1713
1714    When using separation, setups may be, as a whole or in fractions, shared over different systems.
1715
1716 31.3. Conditional parts
1717
1718    When using a configuration on different systems, the user may not always have influence on how mutt-ng is installed and which features it includes.
1719
1720    To solve this, mutt-ng contain a feature based on the ``ifdef'' patch written for mutt. Its basic syntax is:
1721 ifdef <item> <command>
1722 ifndef <item> <command>
1723
1724    ...whereby <item> can be one of:
1725      * a function name
1726      * a variable name
1727      * a menu name
1728      * a feature name
1729
1730    All available functions, variables and menus are documented elsewhere in this manual but ``features'' is specific to these two commands. To test for one, prefix one of the following keywords with feature_: ncurses, slang, iconv, idn, dotlock, standalone, pop, nntp, imap, ssl, gnutls, sasl, sasl2, libesmtp, compressed, color, classic_pgp, classic_smime, gpgme, header_cache
1731
1732    As an example, one can use the following in ~/.muttngrc:
1733 ifdef feature_imap 'source ~/.mutt-ng/setup-imap'
1734 ifdef feature_pop  'source ~/.mutt-ng/setup-pop'
1735 ifdef feature_nntp 'source ~/.mutt-ng/setup-nntp'
1736
1737    ...to only source ~/.mutt-ng/setup-imap if IMAP support is built in, only source ~/.mutt-ng/setup-pop if POP support is built in and only source ~/.mutt-ng/setup-nntp if NNTP support is built in.
1738
1739    An example for testing for variable names can be used if users use different revisions of mutt-ng whereby the older one may not have a certain variable. To test for the availability of $imap_mail_check use:
1740 ifdef imap_mail_check 'set imap_mail_check = 300'
1741
1742    Provided for completeness is the test for menu names. To set $pager_index_lines only if the pager menu is available, use:
1743 ifdef pager 'set pager_index_lines = 10'
1744
1745    For completeness, too, the opposite of ifdef is provided: ifndef which only executes the command if the test fails. For example, the following two examples are equivalent:
1746 ifdef feature_ncurses 'source ~/.mutt-ng/setup-ncurses'
1747 ifndef feature_ncurses 'source ~/.mutt-ng/setup-slang'
1748
1749    ...and...
1750 ifdef feature_slang 'source ~/.mutt-ng/setup-slang'
1751 ifndef feature_slang 'source ~/.mutt-ng/setup-ncurses'
1752
1753 32. Obsolete Variables
1754
1755    In the process of ensuring and creating more consistency, many variables have been renamed and some of the old names were already removed. Please see sect-obsolete for a complete list.
1756
1757 Chapter 4. Advanced Usage
1758
1759    Table of Contents
1760
1761    1. Regular Expressions
1762    2. Patterns
1763
1764         2.1. Complex Patterns
1765         2.2. Patterns and Dates
1766
1767    3. Format Strings
1768
1769         3.1. Introduction
1770         3.2. Conditional Expansion
1771         3.3. Modifications and Padding
1772
1773    4. Using Tags
1774    5. Using Hooks
1775
1776         5.1. Message Matching in Hooks
1777
1778    6. Using the sidebar
1779    7. External Address Queries
1780    8. Mailbox Formats
1781    9. Mailbox Shortcuts
1782    10. Handling Mailing Lists
1783    11. Editing threads
1784
1785         11.1. Linking threads
1786         11.2. Breaking threads
1787
1788    12. Delivery Status Notification (DSN) Support
1789    13. POP3 Support (OPTIONAL)
1790    14. IMAP Support (OPTIONAL)
1791
1792         14.1. The Folder Browser
1793         14.2. Authentication
1794
1795    15. NNTP Support (OPTIONAL)
1796
1797         15.1. Again: Scoring
1798
1799    16. SMTP Support (OPTIONAL)
1800    17. Managing multiple IMAP/POP/NNTP accounts (OPTIONAL)
1801    18. Start a WWW Browser on URLs (EXTERNAL)
1802    19. Compressed folders Support (OPTIONAL)
1803
1804         19.1. Open a compressed mailbox for reading
1805         19.2. Write a compressed mailbox
1806         19.3. Append a message to a compressed mailbox
1807         19.4. Encrypted folders
1808
1809 1. Regular Expressions
1810
1811    All string patterns in Mutt-ng including those in more complex patterns must be specified using regular expressions (regexp) in the ``POSIX extended'' syntax (which is more or less the syntax used by egrep and GNU awk). For your convenience, we have included below a brief description of this syntax.
1812
1813    The search is case sensitive if the pattern contains at least one upper case letter, and case insensitive otherwise. Note that ``\'' must be quoted if used for a regular expression in an initialization command: ``\\''.
1814
1815    A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions.
1816
1817    Note that the regular expression can be enclosed/delimited by either " or ' which is useful if the regular expression includes a white-space character. See muttrc-syntax for more information on " and ' delimiter processing. To match a literal " or ' you must preface it with \ (backslash).
1818
1819    The fundamental building blocks are the regular expressions that match a single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with special meaning may be quoted by preceding it with a backslash.
1820
1821    The period ``.'' matches any single character. The caret ``^'' andthe dollar sign ``$'' are metacharacters that respectively match the empty string at the beginning and end of a line.
1822
1823    A list of characters enclosed by ``]'' and ``['' matches any single character in that list; if the first character of the list is a caret ``^'' then it matches any character not in the list. For example, the regular expression ]0123456789[ matches any single digit. A range of ASCII characters may be specified by giving the first and last characters, separated by a hyphen ``-''. Most metacharacters lose their special meaning inside lists. To include a literal ``['' place it first in the list. Similarly, to include a literal ``^'' place it anywhere but first. Finally, to include a literal hyphen ``-'' place it last.
1824
1825    Certain named classes of characters are predefined. Character classes consist of ``]:'', a keyword denoting the class, and ``:[''. The following classes are defined by the POSIX standard:
1826
1827    ]:alnum:[
1828           Alphanumeric characters.
1829
1830    ]:alpha:[
1831           Alphabetic characters.
1832
1833    ]:blank:[
1834           Space or tab characters.
1835
1836    ]:cntrl:[
1837           Control characters.
1838
1839    ]:digit:[
1840           Numeric characters.
1841
1842    ]:graph:[
1843           Characters that are both printable and visible. (A space is printable, but not visible, while an ``a'' is both.)
1844
1845    ]:lower:[
1846           Lower-case alphabetic characters.
1847
1848    ]:print:[
1849           Printable characters (characters that are not control characters.)
1850
1851    ]:punct:[
1852           Punctuation characters (characters that are not letter, digits, control characters, or space characters).
1853
1854    ]:space:[
1855           Space characters (such as space, tab and formfeed, to name a few).
1856
1857    ]:upper:[
1858           Upper-case alphabetic characters.
1859
1860    ]:xdigit:[
1861           Characters that are hexadecimal digits.
1862
1863    A character class is only valid in a regular expression inside the brackets of a character list. Note that the brackets in these class names are part of the symbolic names, and must be included in addition to the brackets delimiting the bracket list. For example, ]]:digit:[[ is equivalent to ]0-9[.
1864
1865    Two additional special sequences can appear in character lists. These apply to non-ASCII character sets, which can have single symbols (calledcollating elements) that are represented with more than one character, as well as several characters that are equivalent for collating or sorting purposes:
1866
1867    Collating Symbols
1868           A collating symbol is a multi-character collating element enclosed in ``].'' and ``.[''. For example, if ``ch'' is a collating element, then ]].ch.[[ is a regexp that matches this collating element, while ]ch[ is a regexp that matches either ``c'' or ``h''.
1869
1870    Equivalence Classes
1871           An equivalence class is a locale-specific name for a list of characters that are equivalent. The name is enclosed in ``]='' and ``=[''. For example, the name ``e'' might be used to represent all of ``è'' ``é'' and ``e''. In this case, ]]=e=[[ is a regexp that matches any of ``è'', ``é'' and ``e''.
1872
1873    A regular expression matching a single character may be followed by one of several repetition operators:
1874
1875    ?
1876           The preceding item is optional and matched at most once.
1877
1878    *
1879           The preceding item will be matched zero or more times.
1880
1881    +
1882           The preceding item will be matched one or more times.
1883
1884    {n}
1885           The preceding item is matched exactly n times.
1886
1887    {n,}
1888           The preceding item is matched n or more times.
1889
1890    {,m}
1891           The preceding item is matched at most m times.
1892
1893    {n,m}
1894           The preceding item is matched at least n times, but no more than m times.
1895
1896    Two regular expressions may be concatenated; the resulting regular expression matches any string formed by concatenating two substrings that respectively match the concatenated subexpressions.
1897
1898    Two regular expressions may be joined by the infix operator ``|''; the resulting regular expression matches any string matching either subexpression.
1899
1900    Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules.
1901
1902    Note: If you compile Mutt-ng with the GNU rx package, the following operators may also be used in regular expressions:
1903
1904    \\y
1905           Matches the empty string at either the beginning or the end of a word.
1906
1907    \\B
1908           Matches the empty string within a word.
1909
1910    \\<
1911           Matches the empty string at the beginning of a word.
1912
1913    \\>
1914           Matches the empty string at the end of a word.
1915
1916    \\w
1917           Matches any word-constituent character (letter, digit, or underscore).
1918
1919    \\W
1920           Matches any character that is not word-constituent.
1921
1922    \\`
1923           Matches the empty string at the beginning of a buffer (string).
1924
1925    \\'
1926           Matches the empty string at the end of a buffer.
1927
1928    Please note however that these operators are not defined by POSIX, so they may or may not be available in stock libraries on various systems.
1929
1930 2. Patterns
1931
1932    Mutt-ng's pattern language provides a simple yet effective way to set up rules to match messages, e.g. for operations like tagging and scoring. A pattern consists of one or more sub-pattern, which can be logically grouped, ORed, and negated. For a complete listing of these patterns, please refer to table patterns in the Reference chapter.
1933
1934    It must be noted that in this table, EXPR is a regular expression. For ranges, the forms <[MAX], >>[MIN], [MIN]- and -[MAX] are also possible.
1935
1936 2.1. Complex Patterns
1937
1938    It is possible to combine several sub-patterns to a more complex pattern. The most simple possibility is to logically AND several patterns by stringing them together:
1939 ~s/=s 'SPAM' ~U/=U
1940
1941    The pattern above matches all messages that contain ``SPAM'' in the subject and are unread.
1942
1943    To logical OR patterns, simply use the | operator. This one especially useful when using local groups:
1944 ~f/=f ("nion@muttng\.org"|"ak@muttng\.org"|"pdmef@muttng\.org")
1945 (~b/=b mutt-ng|~s/=s Mutt-ng)
1946 !~x/=x '@synflood\.at'
1947
1948    The first pattern matches all messages that were sent by one of the mutt-ng maintainers, while the seconds pattern matches all messages that contain ``mutt-ng'' in the message body or ``Mutt-ng'' in the subject. The third pattern matches all messages that do not contain ``@synflood\.at'' in the References: header, i.e. messages that are not an (indirect) reply to one of my messages. A pattern can be logicall negated using the ! operator.
1949
1950 2.2. Patterns and Dates
1951
1952    When using dates in patterns, the dates must be specified in a special format, i.e. DD/MM/YYYY. If you don't specify month or year, they default to the current month or year. When using date ranges, and you specify only the minimum or the maximum, the specified date will be excluded, e.g. 01/06/2005- matches against all messages after Juni 1st, 2005.
1953
1954    It is also possible to use so-called ``error margins'' when specifying date ranges. You simply specify a date, and then the error margin. This margin needs to contain the information whether it goes ``forth'' or ``back'' in time, by using + and -. Then follows a number and a unit, i.e. y for years, m for months, w for weeks and d for days. If you use the special * sign, it means that the error margin goes to both``directions'' in time.
1955 ~d/=d 01/01/2005+1y
1956 ~d/=d 18/10/2004-2w
1957 ~d/=d 28/12/2004*1d
1958
1959    The first pattern matches all dates between January 1st, 2005 and January 1st 2006. The second pattern matches all dates between October 18th, 2004 and October 4th 2004 (2 weeks before 18/10/2004), while the third pattern matches all dates 1 day around December 28th, 2004 (i.e. Dec 27th, 28th and 29th).
1960
1961    Relative dates are also very important, as they make it possible to specify date ranges between a fixed number of units and the current date. How this works can be seen in the following example:
1962 ~d/=d >2w # messages older than two weeks
1963 ~d/=d <3d # messages newer than 3 days
1964 ~d/=d =1m # messages that are exactly one month old
1965
1966 3. Format Strings
1967
1968 3.1. Introduction
1969
1970    The so called Format Strings offer great flexibility when configuring mutt-ng. In short, they describe what items to print out how in menus and status messages.
1971
1972    Basically, they work as this: for different menus and bars, there's a variable specifying the layout. For every item available, there is a so called expando.
1973
1974    For example, when running mutt-ng on different machines or different versions for testing purposes, it may be interesting to have the following information always printed on screen when one is in the index:
1975      * the current hostname
1976      * the current mutt-ng version number
1977
1978    The setting for the status bar of the index is controlled via the $status_format variable. For the hostname and version string, there's an expando for $status_format: %h expands to the hostname and %v to the version string. When just configuring:
1979 set status_format = "%v on %h: ..."
1980
1981    mutt-ng will replace the sequence %v with the version string and %h with the host's name. When you are, for example, running mutt-ng version 1.5.9i on host mailhost, you'll see the following when you're in the index:
1982 Mutt-ng 1.5.9i on mailhost: ...
1983
1984    In the index, there're more useful information one could want to see:
1985      * which mailbox is open
1986      * how man new, flagged or postponed messages
1987      * ...
1988
1989    To include the mailbox' name is as easy as:
1990 set status_format = "%v on %h: %B: ...
1991
1992    When the currently opened mailbox is Inbox, this will be expanded to:
1993 Mutt-ng 1.5.9i on mailhost: Inbox: ...
1994
1995    For the number of certain types of messages, one more feature of the format strings is extremely useful. If there aren't messages of a certain type, it may not be desired to print just that there aren't any but instead only print something if there are any.
1996
1997 3.2. Conditional Expansion
1998
1999    To only print the number of messages if there are new messages in the current mailbox, further extend $status_format to:
2000 set status_format = "%v on %h: %B %?n?%n new? ...
2001
2002    This feature is called nonzero-printing and works as this: some expandos may be optionally printed nonzero, i.e. a portion of the format string is only evaluated if the value of the expando is different from zero. The basic syntax is:
2003 %?<item>?<string if nonzero>?
2004
2005    which tells mutt-ng to only look at <string if nonzero> if the value of the %<item%gt; expando is different from zero. In our example, we used n as the expando to check for and %n new as the optional nonzero string.
2006
2007    But this is not all: this feature only offers one alternative: ``print something if not zero.'' Mutt-ng does, as you might guess, also provide a logically complete version: ``if zero, print something and else print something else.'' This is achieved by the following syntax for those expandos which may be printed nonzero:
2008 %?<item>?<string if nonzero>&<string if zero>?
2009
2010    Using this we can make mutt-ng to do the following:
2011      * make it print ``n new messages'' whereby n is the count but only if there new ones
2012      * and make it print ``no new messages'' if there aren't any
2013
2014    The corresponding configuration is:
2015 set status_format = "%v on %h: %B: %?n?%n new messages&no new messages? ...
2016
2017    This doubles the use of the ``new messages'' string because it'll get always printed. Thus, it can be shortened to:
2018 set status_format = "%v on %h: %B: %?n?%n&no? new messages ...
2019
2020    As you might see from this rather simple example, one can create very complex but fancy status messages. Please see the reference chapter for expandos and those which may be printed nonzero.
2021
2022 3.3. Modifications and Padding
2023
2024    Besides the information given so far, there're even more features of format strings:
2025      * When specifying %_<item> instead of just %<item>, mutt-ng will convert all characters in the expansion of <item> to lowercase.
2026      * When specifying %:<item> instead of just %<item>, mutt-ng will convert all dots in the expansion of <item> to underscores (_).
2027
2028    Also, there's a feature called Padding supplied by the following two expandos: %|X and %>X .
2029
2030    %|X
2031           When this occurs, mutt-ng will fill the rest of the line with the character X. In our example, filling the rest of the line with dashes is done by setting:
2032
2033 set status_format = "%v on %h: %B: %?n?%n&no? new messages %|-"
2034
2035    %>X
2036           Since the previous expando stops at the end of line, there must be a way to fill the gap between two items via the %>X expando: it puts as many characters X in between two items so that the rest of the line will be right-justified. For example, to not put the version string and hostname of our example on the left but on the right and fill the gap with spaces, one might use (note the space after %>):
2037
2038 set status_format = "%B: %?n?%n&no? new messages %> (%v on %h)"
2039
2040 4. Using Tags
2041
2042    Sometimes it is desirable to perform an operation on a group of messages all at once rather than one at a time. An example might be to save messages to a mailing list to a separate folder, or to delete all messages with a given subject. To tag all messages matching a pattern, use the tag-pattern function, which is bound to ``shift-T'' by default. Or you can select individual messages by hand using the ``tag-message'' function, which is bound to ``t'' by default. See patterns for Mutt-ng's pattern matching syntax.
2043
2044    Once you have tagged the desired messages, you can use the ``tag-prefix'' operator, which is the ``;'' (semicolon) key by default. When the ``tag-prefix'' operator is used, the next operation will be applied to all tagged messages if that operation can be used in that manner. If the $auto_tag variable is set, the next operation applies to the tagged messages automatically, without requiring the ``tag-prefix''.
2045
2046    In macro or push commands, you can use the ``tag-prefix-cond'' operator. If there are no tagged messages, mutt will "eat" the rest of the macro to abort it's execution.Mutt-ng will stop "eating" the macro when it encounters the ``end-cond'' operator; after this operator the rest of the macro will be executed asnormal.
2047
2048 5. Using Hooks
2049
2050    A hook is a concept borrowed from the EMACS editor which allows you to execute arbitrary commands before performing some operation. For example, you may wish to tailor your configuration based upon which mailbox you are reading, or to whom you are sending mail. In the Mutt-ng world, a hook consists of a regexp or patterns along with a configuration option/command. See
2051      * folder-hook
2052      * send-hook
2053      * message-hook
2054      * save-hook
2055      * mbox-hook
2056      * fcc-hook
2057      * fcc-save-hook
2058
2059    for specific details on each type of hook available.
2060
2061    Note: if a hook changes configuration settings, these changes remain effective until the end of the current mutt session. As this is generally not desired, a default hook needs to be added before all other hooks to restore configuration defaults. Here is an example with send-hook and the my_hdr directive:
2062 send-hook . 'unmy_hdr From:'
2063 send-hook ~C/=C'^b@b\.b$' my_hdr from: c@c.c
2064
2065 5.1. Message Matching in Hooks
2066
2067    Hooks that act upon messages (send-hook, save-hook, fcc-hook,message-hook )are evaluated in a slightly different manner. For the other types of hooks, a regexp is sufficient. But in dealing with messages a finer grain of control is needed for matching since for different purposes you want to match different criteria.
2068
2069    Mutt-ng allows the use of the patterns language for matching messages in hook commands. This works in exactly the same way as it would when limiting orsearching the mailbox, except that you are restricted to those operators which match information mutt extracts from the header of the message (i.e. from, to, cc, date, subject, etc.).
2070
2071    For example, if you wanted to set your return address based upon sending mail to a specific address, you could do something like:
2072 send-hook '~t/=t ^me@cs\.hmc\.edu$' 'my_hdr From: Mutt-ng User <user@host>'
2073
2074    which would execute the given command when sending mail to me@cs.hmc.edu.
2075
2076    However, it is not required that you write the pattern to match using the full searching language. You can still specify a simple regular expression like the other hooks, in which case Mutt-ng will translate your pattern into the full language, using the translation specified by the default-hook variable. The pattern is translated at the time the hook is declared, so the value of default-hook that is in effect at that time will be used.
2077
2078 6. Using the sidebar
2079
2080    The sidebar, a feature specific to Mutt-ng, allows you to use a mailbox listing which looks very similar to the ones you probably know from GUI mail clients. The sidebar lists all specified mailboxes, shows the number in each and highlights the ones with new email Use the following configuration commands:
2081 set sidebar_visible="yes"
2082 set sidebar_width=25
2083
2084    If you want to specify the mailboxes you can do so with:
2085 set mbox='=INBOX'
2086 mailboxes INBOX \
2087 MBOX1 \
2088 MBOX2 \
2089 ...
2090
2091    You can also specify the colors for mailboxes with new mails by using:
2092 color sidebar_new red black
2093 color sidebar white black
2094
2095    The available functions are:
2096
2097    Table 4.1. Default Sidebar Function Bindings
2098    Key  Function              Description
2099    none <sidebar-scroll-up>   Scrolls the mailbox list up 1 page
2100    none <sidebar-scroll-down> Scrolls the mailbox list down 1 page
2101    none <sidebar-next>        Highlights the next mailbox
2102    none <sidebar-next-new>    Highlights the next mailbox with new mail
2103    none <sidebar-previous>    Highlights the previous mailbox
2104    none <sidebar-open>        Opens the currently highlighted mailbox
2105
2106    Reasonable key bindings look e.g. like this:
2107 bind index \Cp sidebar-prev
2108 bind index \Cn sidebar-next
2109 bind index \Cb sidebar-open
2110 bind pager \Cp sidebar-prev
2111 bind pager \Cn sidebar-next
2112 bind pager \Cb sidebar-open
2113
2114 macro index B ':toggle sidebar_visible^M'
2115 macro pager B ':toggle sidebar_visible^M'
2116
2117    You can then go up and down by pressing Ctrl-P and Ctrl-N, and switch on and off the sidebar simply by pressing 'B'.
2118
2119 7. External Address Queries
2120
2121    Mutt-ng supports connecting to external directory databases such as LDAP, ph/qi, bbdb, or NIS through a wrapper script which connects to mutt using a simple interface. Using the $query_command variable, you specify the wrapper command to use. For example:
2122 set query_command = "mutt_ldap_query.pl '%s'"
2123
2124    The wrapper script should accept the query on the command-line. It should return a one line message, then each matching response on a single line, each line containing a tab separated address then name thensome other optional information. On error, or if there are no matching addresses, return a non-zero exit code and a one line error message.
2125
2126    An example multiple response output:
2127 Searching database ... 20 entries ... 3 matching:
2128 me@cs.hmc.edu           Michael Elkins  mutt dude
2129 blong@fiction.net       Brandon Long    mutt and more
2130 roessler@guug.de        Thomas Roessler mutt pgp
2131
2132    There are two mechanisms for accessing the query function of mutt. One is to do a query from the index menu using the query function (default: Q). This will prompt for a query, then bring up the query menu which will list the matching responses. From the query menu, you can select addresses to create aliases, or to mail. You can tag multiple addressesto mail, start a new query, or have a new query appended to the current responses.
2133
2134    The other mechanism for accessing the query function is for address completion, similar to the alias completion. In any prompt for address entry, you can use the complete-query function (default: ^T) to run a query based on the current address you have typed. Like aliases, mutt will look for what you have typed back to the last space or comma. If there is a single response for that query, mutt will expand the address in place. If there are multiple responses, mutt will activate the querymenu. At the query menu, you can select one or more addresses to be added to the prompt.
2135
2136 8. Mailbox Formats
2137
2138    Mutt-ng supports reading and writing of four different mailbox formats: mbox, MMDF, MH and Maildir. The mailbox type is autodetected, so there is no need to use a flag for different mailbox types. When creating newmailboxes, Mutt-ng uses the default specified with the $mbox_type variable.
2139
2140    mbox. This is the most widely used mailbox format for UNIX. All messages are stored in a single file. Each message has a line of the form:
2141 From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST
2142
2143    to denote the start of a new message (this is often referred to as the ``From_'' line).
2144
2145    MMDF. This is a variant of the mbox format. Each message is surrounded by lines containing ``^A^A^A^A'' (four control-A's).
2146
2147    MH. A radical departure from mbox and MMDF, a mailbox consists of a directory and each message is stored in a separate file. The filename indicates the message number (however, this is may not correspond to the message number Mutt-ng displays). Deleted messages arerenamed with a comma (,) prepended to the filename. Note: Mutt detects this type of mailbox by looking for either .mh_sequences or .xmhcache (needed to distinguish normal directories from MH mailboxes).
2148
2149    Maildir. The newest of the mailbox formats, used by the Qmail MTA (a replacement for sendmail). Similar to MH, except that it adds three subdirectories of the mailbox: tmp, new and cur .Filenames for the messages are chosen in such a way they are unique, even when twoprograms are writing the mailbox over NFS, which means that no file locking is needed.
2150
2151 9. Mailbox Shortcuts
2152
2153    There are a number of built in shortcuts which refer to specific mailboxes. These shortcuts can be used anywhere you are prompted for a file or mailbox path.
2154      * ! -- refers to your $spoolfile (incoming) mailbox
2155      * > -- refers to your $mbox file
2156      * < -- refers to your $record file
2157      * ^ -- refers to the current mailbox
2158      * - or !! -- refers to the file you've last visited
2159      * ~ -- refers to your home directory
2160      * = or + -- refers to your $folder directory
2161      * @alias -- refers to the save-hook as determined by the address of the alias
2162
2163 10. Handling Mailing Lists
2164
2165    Mutt-ng has a few configuration options that make dealing with large amounts of mail easier. The first thing you must do is to let Mutt know what addresses you consider to be mailing lists (technically this does not have to be a mailing list, but that is what it is most often used for), and what lists you are subscribed to. This is accomplished through the use of the lists commands in your muttrc.
2166
2167    Now that Mutt-ng knows what your mailing lists are, it can do several things, the first of which is the ability to show the name of a list through which you received a message (i.e., of a subscribed list) in the index menu display. This is useful to distinguish between personal and list mail in the same mailbox. In the index-format variable, the escape ``%L'' will return the string ``To <list>'' when ``list'' appears in the ``To'' field, and ``Cc <list>'' when it appears in the ``Cc'' field (otherwise it returns the name of the author).
2168
2169    Often times the ``To'' and ``Cc'' fields in mailing list messages tend to get quite large. Most people do not bother to remove the author of the message they are reply to from the list, resulting in two or more copies being sent to that person. The ``list-reply'' function, which by default is bound to ``L'' in the index menu and pager, helps reduce the clutter by only replying to the known mailing list addresses instead of all recipients (except as specified by Mail-Followup-To, see below).
2170
2171    Mutt-ng also supports the Mail-Followup-To header. When you send a message to a list of recipients which includes one or several subscribed mailing lists, and if the followup-to option is set, mutt will generate a Mail-Followup-To header which contains all the recipients to whom you send this message, but not your address. This indicates that group-replies or list-replies (also known as ``followups'') to this message should only be sent to the original recipients of the message, and not separately to you - you'll receive your copy through one of the mailing lists you are subscribed to.
2172
2173    Conversely, when group-replying or list-replying to a message which has a Mail-Followup-To header, mutt will respect this header if the $honor_followup_to configuration variable is set. Using list-reply will in this case also make sure that the reply goes to the mailing list, even if it's not specified in the list of recipients in the Mail-Followup-To.
2174
2175    Note that, when header editing is enabled, you can create a Mail-Followup-To header manually. Mutt-ng will only auto-generate this header if it doesn't exist when you send the message.
2176
2177    The other method some mailing list admins use is to generate a ``Reply-To'' field which points back to the mailing list address rather than the author of the message. This can create problems when trying to reply directly to the author in private, since most mail clients will automatically reply to the address given in the ``Reply-To'' field. Mutt-ng uses the $reply_to variable to help decide which address to use. If set to ask-yes or ask-no, you will be prompted as to whether or not you would like to use the address given inthe ``Reply-To'' field, or reply directly to the address given in the ``From'' field. When set to yes, the ``Reply-To'' field will be used when present.
2178
2179    The ``X-Label:'' header field can be used to further identify mailing lists or list subject matter (or just to annotate messages individually). The $index_format variable's ``%y'' and ``%Y'' escapes can be used to expand ``X-Label:'' fields in the index, and Mutt-ng's pattern-matcher can match regular expressions to ``X-Label:'' fields with the ``~y/=y'' selector. ``X-Label:'' is not a standard message header field, but it can easily be inserted by procmailand other mail filtering agents.
2180
2181    Lastly, Mutt-ng has the ability to sort the mailbox into threads. A thread is a group of messages which all relate to the same subject. This is usually organized into a tree-like structure where a message and all of its replies are represented graphically. If you've ever used a threaded news client, this is the same concept. It makes dealingwith large volume mailing lists easier because you can easily delete uninteresting threads and quickly find topics of value.
2182
2183 11. Editing threads
2184
2185    Mutt-ng has the ability to dynamically restructure threads that are broken either by misconfigured software or bad behavior from some correspondents. This allows to clean your mailboxes formats) from these annoyances which make it hard to follow a discussion.
2186
2187 11.1. Linking threads
2188
2189    Some mailers tend to "forget" to correctly set the "In-Reply-To:" and "References:" headers when replying to a message. This results in broken discussions because Mutt-ng has not enough information to guess the correct threading. You can fix this by tagging the reply, then moving to the parent message and using the ``link-threads'' function (bound to & by default). The reply will then be connected to this "parent" message.
2190
2191    You can also connect multiple children at once, tagging them and using the tag-prefix command (';') or the auto_tag option.
2192
2193 11.2. Breaking threads
2194
2195    On mailing lists, some people are in the bad habit of starting a new discussion by hitting "reply" to any message from the list and changing the subject to a totally unrelated one. You can fix such threads by using the ``break-thread'' function (boundby default to #), which will turn the subthread starting from the current message into a whole different thread.
2196
2197 12. Delivery Status Notification (DSN) Support
2198
2199    RFC1894 defines a set of MIME content types for relaying information about the status of electronic mail messages. These can be thought of as ``return receipts.''
2200
2201    Users can make use of it in one of the following two ways:
2202      * Berkeley sendmail 8.8.x currently has some command line options in which the mail client can make requests as to what type of status messages should be returned.
2203      * The SMTP support via libESMTP supports it, too.
2204
2205    To support this, there are two variables:
2206      * $dsn_notify is used to request receipts for different results (such as failed message,message delivered, etc.).
2207      * $dsn_return requests how much of your message should be returned with the receipt (headers or full message).
2208
2209    Please see the reference chapter for possible values.
2210
2211 13. POP3 Support (OPTIONAL)
2212
2213    If Mutt-ng was compiled with POP3 support (by running the configure script with the --enable-pop flag), it has the ability to work with mailboxes located on a remote POP3 server and fetch mail for local browsing.
2214
2215    You can access the remote POP3 mailbox by selecting the folder pop://popserver/.
2216
2217    You can select an alternative port by specifying it with the server, i.e.: pop://popserver:port/.
2218
2219    You can also specify different username for each folder, i.e.: pop://username@popserver[:port]/.
2220
2221    Polling for new mail is more expensive over POP3 than locally. For this reason the frequency at which Mutt-ng will check for mail remotely can be controlled by the $pop_mail_check variable, which defaults to every 60 seconds.
2222
2223    If Mutt-ng was compiled with SSL support (by running the configure script with the --with-ssl flag), connections to POP3 servers can be encrypted. This naturally requires that the server supports SSL encrypted connections. To access a folder with POP3/SSL, you should use pops: prefix, ie: pops://[username@]popserver[:port]/.
2224
2225    Another way to access your POP3 mail is the fetch-mail function (default: G). It allows to connect to pop-host ,fetch all your new mail and place it in the local $spoolfile. After this point, Mutt-ng runs exactly as if the mail had always been local.
2226
2227    Note: If you only need to fetch all messages to local mailbox you should consider using a specialized program, such as fetchmail(1).
2228
2229 14. IMAP Support (OPTIONAL)
2230
2231    If Mutt-ng was compiled with IMAP support (by running the configure script with the --enable-imap flag), it has the ability to work with folders located on a remote IMAP server.
2232
2233    You can access the remote inbox by selecting the folder imap://imapserver/INBOX, where imapserver is the name of the IMAP server and INBOX is the special name for your spool mailbox on the IMAP server. If you want to access another mail folder at the IMAP server, you should use imap://imapserver/path/to/folder where path/to/folder is the path of the folder you want to access.
2234
2235    You can select an alternative port by specifying it with the server, i.e.: imap://imapserver:port/INBOX.
2236
2237    You can also specify different username for each folder, i.e.: imap://username@imapserver[:port]/INBOX.
2238
2239    If Mutt-ng was compiled with SSL support (by running the configure script with the --with-ssl flag), connections to IMAP servers can be encrypted. This naturally requires that the server supports SSL encrypted connections. To access a folder with IMAP/SSL, you should use imaps://[username@]imapserver[:port]/path/to/folder as your folder path.
2240
2241    Pine-compatible notation is also supported, i.e. {[username@]imapserver[:port][/ssl]}path/to/folder
2242
2243    Note that not all servers use / as the hierarchy separator. Mutt-ng should correctly notice which separator is being used by the server and convertpaths accordingly.
2244
2245    When browsing folders on an IMAP server, you can toggle whether to look at only the folders you are subscribed to, or all folders with the toggle-subscribed command. See also the $imap_list_subscribed variable.
2246
2247    Polling for new mail on an IMAP server can cause noticeable delays. So, you'll want to carefully tune the $imap_mail_check and $timeout variables.
2248
2249    Note that if you are using mbox as the mail store on UW servers prior tov12.250, the server has been reported to disconnect a client if another client selects the same folder.
2250
2251 14.1. The Folder Browser
2252
2253    As of version 1.2, mutt supports browsing mailboxes on an IMAP server. This is mostly the same as the local file browser, with the following differences:
2254      * Instead of file permissions, mutt displays the string "IMAP", possibly followed by the symbol "+", indicating that the entry contains both messages and subfolders. On Cyrus-like servers folders will often contain both messages and subfolders.
2255      * For the case where an entry can contain both messages and subfolders, the selection key (bound to enter by default) will choose to descend into the subfolder view. If you wish to view the messages in that folder, you must use view-file instead (bound to space by default).
2256      * You can create, delete and rename mailboxes with the create-mailbox, delete-mailbox, and rename-mailbox commands (default bindings: C , d and r, respectively). You may also subscribe and unsubscribe to mailboxes (normally these are bound to s and u, respectively).
2257
2258 14.2. Authentication
2259
2260    Mutt-ng supports four authentication methods with IMAP servers: SASL, GSSAPI, CRAM-MD5, and LOGIN (there is a patch by Grant Edwards to add NTLM authentication for you poor exchange users out there, but it has yet to be integrated into the main tree). There is also support for the pseudo-protocol ANONYMOUS, which allows you to log in to a public IMAP server without having an account. To use ANONYMOUS, simply make your username blank or "anonymous".
2261
2262    SASL is a special super-authenticator, which selects among several protocols (including GSSAPI, CRAM-MD5, ANONYMOUS, and DIGEST-MD5) the most secure method available on your host and the server. Using some of these methods (including DIGEST-MD5 and possibly GSSAPI), your entire session will be encrypted and invisible to those teeming network snoops. It is the best option if you have it. To use it, you must have the Cyrus SASL libraryinstalled on your system and compile mutt with the --with-sasl flag.
2263
2264    Mutt-ng will try whichever methods are compiled in and available on the server, in the following order: SASL, ANONYMOUS, GSSAPI, CRAM-MD5, LOGIN.
2265
2266    There are a few variables which control authentication:
2267      * $imap_user - controls the username under which you request authentication on the IMAP server, for all authenticators. This is overridden by an explicit username in the mailbox path (i.e. by using a mailbox name of the form {user@host}).
2268      * $imap_pass - a password which you may preset, used by all authentication methods where a password is needed.
2269      * $imap_authenticators - a colon-delimited list of IMAP authentication methods to try, in the order you wish to try them. If specified, this overrides mutt's default (attempt everything, in the order listed above).
2270
2271 15. NNTP Support (OPTIONAL)
2272
2273    If compiled with ``--enable-nntp'' option, Mutt-ng can read news from a newsserver via NNTP. You can open a newsgroup with the ``change-newsgroup'' function from the index/pager which is by default bound to i.
2274
2275    The Default newsserver can be obtained from the $NNTPSERVER environment variable. Like other news readers, info about subscribed newsgroups is saved in a file as specified by the $nntp_newsrc variable. Article headers are cached and can be loaded from a file when a newsgroup is entered instead loading from newsserver; currently, this caching mechanism still is different from the header caching for maildir/IMAP.
2276
2277 15.1. Again: Scoring
2278
2279    Especially for Usenet, people often ask for advanced filtering and scoring functionality. Of course, mutt-ng has scoring and allows a killfile, too. How to use a killfile has been discussed in Message Scoring.
2280
2281    What has not been discusses in detail is mutt-ng's built-in realname filter. For may newsreaders including those for ``advanced users'' like slrn or tin, there are frequent request for such functionality. The solutions offered often are complicated regular expressions.
2282
2283    In mutt-ng this is as easy as
2284 score ~*/=* =42
2285
2286    This tells mutt-ng to apply a score of 42 to all messages whose sender specified a valid realname and a valid email address. Using
2287 score !~*/=* =42
2288
2289    on the contrary applies a score of 42 to all messages not matching those criteria which are very strict:
2290      * Email addresses must be valid according to RFC 2822, see <ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt>
2291      * the name must consist of at least 2 fields whereby a field must not end in a dot. This means that ``Joe User'' and ``Joe A.User'' are valid while ``J. User'' and ``J. A. User'' aren't.
2292      * it's assumed that users are interested in reading their own mail and mail from people who they have defined an alias forso that those 2 groups of messages are excluded from the strict rules.
2293
2294 16. SMTP Support (OPTIONAL)
2295
2296    Mutt-ng can be built using a library called ``libESMTP'' which provides SMTP functionality. When configure was called with --with-libesmtp or the output muttng -v contains +USE_LIBESMTP, this will be or is the case already. The SMTP support includes support for Delivery Status Notification (see dsn section) as well as handling the 8BITMIME flag controlled via use-8bitmime .
2297
2298    To enable sending mail directly via SMTP without an MTA such as Postfix or SSMTP and the like, simply set the smtp-host variable pointing to your SMTP server.
2299
2300    Authentication mechanisms are available via the smtp-user and $smtp_pass variables.
2301
2302    Transport Encryption via the StartTLS command is also available. For this to work, first of all Mutt-ng must be built with SSL or GNUTLS. Secondly, the $smtp_use_tls variable must be either set to ``enabled'' or ``required.'' In both cases, StartTLS will be used if the server supports it: for the second case, the connection will fail ifit doesn't while switching back to unencrypted communication for the first one.
2303
2304    Some mail providers require user's to set a particular envelope sender, i.e. they allow for only one value which may not be what the user wants to send as the From: header. In this case, the variable $smtp_envelope may be used to set the envelope different from the From: header.
2305
2306 17. Managing multiple IMAP/POP/NNTP accounts (OPTIONAL)
2307
2308    If you happen to have accounts on multiple IMAP and/or POP servers, you may find managing all the authentication settings inconvenient and error-prone. The account-hook command may help. This hook works like folder-hook but is invoked whenever you access a remote mailbox (including inside the folder browser), not just when you open the mailbox.
2309
2310    Some examples:
2311 account-hook . 'unset imap_user; unset imap_pass; unset tunnel'
2312 account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo'
2313 account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"'
2314
2315 18. Start a WWW Browser on URLs (EXTERNAL)
2316
2317    If a message contains URLs (unified resource locator = address in the WWW space like http://www.mutt.org/), it is efficient to get a menu with all the URLs and start a WWW browser on one of them. This functionality is provided by the external urlview program which can be retrieved at ftp://ftp.mutt.org/mutt/contrib/ > and the configuration commands:
2318 macro index \cb |urlview\n
2319 macro pager \cb |urlview\n
2320
2321 19. Compressed folders Support (OPTIONAL)
2322
2323    If Mutt-ng was compiled with compressed folders support (by running the configure script with the --enable-compressed flag), Mutt can open folders stored in an arbitrary format, provided that the user has a script to convert from/to this format to one of the accepted.
2324
2325    The most common use is to open compressed archived folders e.g. with gzip.
2326
2327    In addition, the user can provide a script that gets a folder in an accepted format and appends its context to the folder in the user-defined format, which may be faster than converting the entire folder to the accepted format, appending to it and converting back to the user-defined format.
2328
2329    There are three hooks defined (open-hook, close-hook and append-hook )which define commands to uncompress and compress a folder and to append messages to an existing compressed folder respectively.
2330
2331    For example:
2332 open-hook \\.gz$ "gzip -cd %f > %t"
2333 close-hook \\.gz$ "gzip -c %t > %f"
2334 append-hook \\.gz$ "gzip -c %t >> %f"
2335
2336    You do not have to specify all of the commands. If you omit append-hook ,the folder will be open and closed again each time you will add to it. If you omit close-hook (or give empty command) , the folder will be open in the mode. If you specify append-hook though you'll be able to append to the folder.
2337
2338    Note that Mutt-ng will only try to use hooks if the file is not in one of the accepted formats. In particular, if the file is empty, mutt supposes it is not compressed. This is important because it allows the use of programs that do not have well defined extensions. Just use "." as a regexp. But this may be surprising if your compressing script produces empty files. In this situation, unset save-empty ,so that the compressed file will be removed if you delete all of the messages.
2339
2340 19.1. Open a compressed mailbox for reading
2341
2342    Usage: open-hookregexp "command"
2343
2344    The command is the command that can be used for opening the folders whose names match regexp.
2345
2346    The command string is the printf-like format string, and it should accept two parameters: %f, which is replaced with the (compressed) folder name, and %t which is replaced with the name of the temporary folder to which to write.
2347
2348    %f and %t can be repeated any number of times in the command string, and all of the entries are replaced with the appropriate folder name. In addition, %% is replaced by %, as in printf, and any other %anything is left as is.
2349
2350    The command should not remove the original compressed file. The command should return non-zero exit status if it fails, so mutt knows something's wrong.
2351
2352    Example:
2353 open-hook \\.gz$ "gzip -cd %f > %t"
2354
2355    If the command is empty, this operation is disabled for this file type.
2356
2357 19.2. Write a compressed mailbox
2358
2359    Usage: close-hookregexp"command"
2360
2361    This is used to close the folder that was open with the open-hook command after some changes were made to it.
2362
2363    The command string is the command that can be used for closing the folders whose names match regexp. It has the same format as in the open-hook command. Temporary folder in this case is the folder previously produced by the open-hook command.
2364
2365    The command should not remove the decompressed file. The command should return non-zero exit status if it fails, so mutt knows something's wrong.
2366
2367    Example:
2368 close-hook \\.gz$ "gzip -c %t > %f"
2369
2370    If the command is empty, this operation is disabled for this file type, and the file can only be open in the readonly mode.
2371
2372    close-hook is not called when you exit from the folder if the folder was not changed.
2373
2374 19.3. Append a message to a compressed mailbox
2375
2376    Usage: append-hookregexp"command"
2377
2378    This command is used for saving to an existing compressed folder. The command is the command that can be used for appending to the folders whose names match regexp. It has the same format as in the open-hook command. The temporary folder in this case contains the messages that are beingappended.
2379
2380    The command should not remove the decompressed file. The command should return non-zero exit status if it fails, so mutt knows something's wrong.
2381
2382    Example:
2383 append-hook \\.gz$ "gzip -c %t >> %f"
2384
2385    When append-hook is used, the folder is not opened, which saves time, but this means that we can not find out what the folder type is. Thus the default ( mbox-type )type is always supposed (i.e. this is the format used for the temporary folder).
2386
2387    If the file does not exist when you save to it, close-hook is called, and not append-hook. append-hook is only for appending to existing folders.
2388
2389    If the command is empty, this operation is disabled for this file type. In this case, the folder will be open and closed again (using open-hook and close-hook respectively) each time you will add to it.
2390
2391 19.4. Encrypted folders
2392
2393    The compressed folders support can also be used to handle encrypted folders. If you want to encrypt a folder with PGP, you may want to usethe following hooks:
2394 open-hook  \\.pgp$ "pgp -f < %f > %t"
2395 close-hook \\.pgp$ "pgp -fe YourPgpUserIdOrKeyId < %t > %f"
2396
2397    Please note, that PGP does not support appending to an encrypted folder, so there is no append-hook defined.
2398
2399    Note: the folder is temporary stored decrypted in the /tmp directory, where it can be read by your system administrator. So thinkabout the security aspects of this.
2400
2401 Chapter 5. Mutt-ng's MIME Support
2402
2403    Table of Contents
2404
2405    1. Using MIME in Mutt
2406
2407         1.1. Viewing MIME messages in the pager
2408         1.2. The Attachment Menu
2409         1.3. The Compose Menu
2410
2411    2. MIME Type configuration with mime.types
2412    3. MIME Viewer configuration with mailcap
2413
2414         3.1. The Basics of the mailcap file
2415         3.2. Secure use of mailcap
2416         3.3. Advanced mailcap Usage
2417         3.4. Example mailcap files
2418
2419    4. MIME Autoview
2420    5. MIME Multipart/Alternative
2421    6. MIME Lookup
2422
2423    Quite a bit of effort has been made to make Mutt-ng the premier text-mode MIME MUA. Every effort has been made to provide the functionality that the discerning MIME user requires, and the conformance to the standards wherever possible. When configuring Mutt-ng for MIME, there are two extratypes of configuration files which Mutt-ng uses. One is the mime.types file, which contains the mapping of file extensions to IANA MIME types. The other is the mailcap file, which specifies the external commands to use for handling specific MIME types.
2424
2425 1. Using MIME in Mutt
2426
2427    There are three areas/menus in Mutt-ng which deal with MIME, they are the pager (while viewing a message), the attachment menu and the compose menu.
2428
2429 1.1. Viewing MIME messages in the pager
2430
2431    When you select a message from the index and view it in the pager, Mutt decodes the message to a text representation. Mutt-ng internally supports a number of MIME types, including text/plain, text/enriched, message/rfc822, and message/news .In addition, the export controlled version of Mutt-ng recognizes a variety of PGP MIME types, including PGP/MIME and application/pgp.
2432
2433    Mutt-ng will denote attachments with a couple lines describing them. These lines are of the form:
2434 [-- Attachment #1: Description --]
2435 [-- Type: text/plain, Encoding: 7bit, Size: 10000 --]
2436
2437    Where the Description is the description or filename given for the attachment, and the Encoding is one of 7bit/8bit/quoted-printable/base64/binary.
2438
2439    If Mutt-ng cannot deal with a MIME type, it will display a message like:
2440 [-- image/gif is unsupported (use 'v' to view this part) --]
2441
2442 1.2. The Attachment Menu
2443
2444    The default binding for view-attachments is `v', which displays the attachment menu for a message. The attachment menu displays a list ofthe attachments in a message. From the attachment menu, you can save, print, pipe, delete, and view attachments. You can apply these operations to a group of attachments at once, by tagging the attachments and by using the ``tag-prefix'' operator. You can also reply to the current message from this menu, and only the current attachment (or the attachments tagged) will be quoted in your reply. You can view attachments as text, or view them using the mailcap viewer definition.
2445
2446    Finally, you can apply the usual message-related functions (like <resend-message>, and the reply and forward functions) to attachments of type message/rfc822.
2447
2448    See the help on the attachment menu for more information.
2449
2450 1.3. The Compose Menu
2451
2452    The compose menu is the menu you see before you send a message. It allows you to edit the recipient list, the subject, and other aspects of your message. It also contains a list of the attachments of your message, including the main body. From this menu, you can print, copy, filter, pipe, edit, compose, review, and rename an attachment or a list of tagged attachments. You can also modifying the attachment information, notably the type, encoding and description.
2453
2454    Attachments appear as follows:
2455 1 [text/plain, 7bit, 1K]             /tmp/mutt-euler-8082-0 <no description>
2456 2 [applica/x-gunzip, base64, 422K]   ~/src/mutt-0.85.tar.gz <no description>
2457
2458    The '-' denotes that Mutt-ng will delete the file after sending (or postponing, or canceling) the message. It can be toggled with the toggle-unlink command (default: u). The next field is the MIME content-type, and can be changed with the edit-type command (default: ^T). The next field is the encoding for the attachment, which allows a binary message to be encoded for transmission on 7bit links. It can be changed with the edit-encoding command (default: ^E). The next field is the size of the attachment, rounded to kilobytes or megabytes. The next field is the filename, which can be changed with the rename-file command (default: R). The final field is the description of the attachment, and can be changed with the edit-description command (default: d).
2459
2460 2.  MIME Type configuration with mime.types
2461
2462    When you add an attachment to your mail message, Mutt-ng searches your personal mime.types file within $HOME and then the system mime.types file at /usr/local/share/mutt/mime.types or /etc/mime.types
2463
2464    The mime.types file consist of lines containing a MIME type and a space separated list of extensions. For example:
2465 application/postscript          ps eps
2466 application/pgp                 pgp
2467 audio/x-aiff                    aif aifc aiff
2468
2469    A sample mime.types file comes with the Mutt-ng distribution, and should contain most of the MIME types you are likely to use.
2470
2471    If Mutt-ng can not determine the mime type by the extension of the file you attach, it will look at the file. If the file is free of binary information, Mutt-ng will assume that the file is plain text, and mark it as text/plain. If the file contains binary information, then Mutt-ng will mark it as application/octet-stream. You can change the MIME type that Mutt-ng assigns to an attachment by using the edit-type command from the compose menu (default: ^T). The MIME type is actually a major mime type followed by the sub-type, separated by a '/'. 6 major types: application, text, image, video, audio, and model have been approved after various internet discussions. Mutt-ng recognises all of these if the appropriate entry is found in the mime.types file. It also recognises other major mime types, such as the chemical type that is widely used in the molecular modelling community to pass molecular data in various forms to various molecular viewers. Non-recognised mime types should only
2472    be used if the recipient of the message is likely to be expecting such attachments.
2473
2474 3.  MIME Viewer configuration with mailcap
2475
2476    Mutt-ng supports RFC 1524 MIME Configuration, in particular the Unix specific format specified in Appendix A of RFC 1524. This file format is commonly referred to as the mailcap format. Many MIME compliant programs utilize the mailcap format, allowing you to specify handling for all MIME types in one place for all programs. Programs known to use this format include Netscape, XMosaic, lynx and metamail.
2477
2478    In order to handle various MIME types that Mutt-ng can not handle internally, Mutt-ng parses a series of external configuration files to find an external handler. The default search string for these files is a colon delimited list set to
2479 ${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
2480
2481    where $HOME is your home directory.
2482
2483    In particular, the metamail distribution will install a mailcap file, usually as /usr/local/etc/mailcap, which contains some baseline entries.
2484
2485 3.1. The Basics of the mailcap file
2486
2487    A mailcap file consists of a series of lines which are comments, blank, or definitions.
2488
2489    A comment line consists of a # character followed by anything you want.
2490
2491    A blank line is blank.
2492
2493    A definition line consists of a content type, a view command, and any number of optional fields. Each field of a definition line is dividedby a semicolon ';' character.
2494
2495    The content type is specified in the MIME standard type/subtype method. For example, text/plain, text/html, image/gif, etc. In addition, the mailcap format includes two formats for wildcards, one using the special '*' subtype, the other is the implicit wild, where you only include the major type. For example, image/* ,or video, will match all image types and video types, respectively.
2496
2497    The view command is a Unix command for viewing the type specified. There are two different types of commands supported. The default is to send the body of the MIME message to the command on stdin. You can change this behavior by using %s as a parameter to your view command. This will cause Mutt-ng to save the body of the MIME message to a temporary file, and then call the view command with the %s replaced by the name of the temporary file. In both cases, Mutt-ng will turn over the terminal to the view program until the program quits, at which time Mutt will remove the temporary file if it exists.
2498
2499    So, in the simplest form, you can send a text/plain message to the external pager more on stdin:
2500 text/plain; more
2501
2502    Or, you could send the message as a file:
2503 text/plain; more %s
2504
2505    Perhaps you would like to use lynx to interactively view a text/html message:
2506 text/html; lynx %s
2507
2508    In this case, lynx does not support viewing a file from stdin, so you must use the %s syntax. Note:Some older versions of lynx contain a bug where they will check the mailcap file for a viewer for text/html. They will find the line which calls lynx, and run it. This causes lynx to continuously spawn itself to view the object.
2509
2510    On the other hand, maybe you don't want to use lynx interactively, youjust want to have it convert the text/html to text/plain, then you can use:
2511 text/html; lynx -dump %s | more
2512
2513    Perhaps you wish to use lynx to view text/html files, and a pager on all other text formats, then you would use the following:
2514 text/html; lynx %s
2515 text/*; more
2516
2517    This is the simplest form of a mailcap file.
2518
2519 3.2. Secure use of mailcap
2520
2521    The interpretation of shell meta-characters embedded in MIME parameters can lead to security problems in general. Mutt-ng tries to quote parameters in expansion of %s syntaxes properly, and avoids risky characters by substituting them, see the mailcap-sanitize variable.
2522
2523    Although mutt's procedures to invoke programs with mailcap seem to be safe, there are other applications parsing mailcap, maybe taking less care of it. Therefore you should pay attention to the following rules:
2524
2525    Keep the %-expandos away from shell quoting. Don't quote them with single or double quotes. Mutt-ng does this for you, the right way, as should any other program which interprets mailcap. Don't put them into backtick expansions. Be highly careful with eval statements, and avoid them if possible at all. Trying to fix broken behaviour with quotes introduces new leaks - there is no alternative to correct quoting in the first place.
2526
2527    If you have to use the %-expandos' values in context where you need quoting or backtick expansions, put that value into a shell variable and reference the shell variable where necessary, as in the following example (using $charset inside the backtick expansion is safe, since it is not itself subject to any further expansion):
2528 text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \
2529 && test "`echo $charset | tr '[A-Z]' '[a-z]'`" != iso-8859-1
2530
2531 3.3. Advanced mailcap Usage
2532
2533 3.3.1. Optional Fields
2534
2535    In addition to the required content-type and view command fields, you can add semi-colon ';' separated fields to set flags and other options. Mutt-ng recognizes the following optional fields:
2536
2537    copiousoutput
2538           This flag tells Mutt-ng that the command passes possibly large amounts of text on stdout. This causes Mutt-ng to invoke a pager (either the internal pager or the external pager defined by the pager variable) on the output of the view command. Without this flag, Mutt-ng assumes that the command is interactive. One could use this to replace the pipe to more in the lynx -dump example in the Basic section:
2539
2540 text/html; lynx -dump %s ; copiousoutput
2541
2542           This will cause lynx to format the text/html output as text/plain and Mutt-ng will use your standard pager to display the results.
2543
2544    needsterminal
2545           Mutt-ng uses this flag when viewing attachments with auto-view ,in order to decide whether it should honor the setting of the $wait_key variable or not. When an attachment is viewed using an interactive program, and the corresponding mailcap entry has a needsterminal flag, Mutt-ng will use $wait_key and the exit statusof the program to decide if it will ask you to press a key after the external program has exited. In all other situations it will not prompt you for a key.
2546
2547    compose=<command>
2548           This flag specifies the command to use to create a new attachment of a specific MIME type. Mutt-ng supports this from the compose menu.
2549
2550    composetyped=<command>
2551           This flag specifies the command to use to create a new attachment of a specific MIME type. This command differs from the compose command in that mutt will expect standard MIME headers on the data. This can be used to specify parameters, filename, description, etc. for a new attachment. Mutt-ng supports this from the compose menu.
2552
2553    print=<command>
2554           This flag specifies the command to use to print a specific MIME type. Mutt-ng supports this from the attachment and compose menus.
2555
2556    edit=<command>
2557           This flag specifies the command to use to edit a specific MIME type. Mutt-ng supports this from the compose menu, and also uses it to compose new attachments. Mutt-ng will default to the defined editor for text attachments.
2558
2559    nametemplate=<template>
2560           This field specifies the format for the file denoted by %s in the command fields. Certain programs will require a certain file extension, for instance, to correctly view a file. For instance, lynx will only interpret a file as text/html if the file ends in .html. So, you would specify lynx as a text/html viewer with a line in the mailcap file like:
2561
2562 text/html; lynx %s; nametemplate=%s.html
2563
2564    test=<command>
2565           This field specifies a command to run to test whether this mailcap entry should be used. The command is defined with the command expansion rules defined in the next section. If the command returns 0, then the test passed, and Mutt-ng uses this entry. If the command returns non-zero, then the test failed, and Mutt-ng continues searching for the right entry. Note:the content-type must match before Mutt-ng performs the test. For example:
2566
2567 text/html; netscape -remote 'openURL(%s)' ; test=RunningX
2568 text/html; lynx %s
2569
2570           In this example, Mutt-ng will run the program RunningX which will return 0 if the X Window manager is running, and non-zero if it isn't. If RunningX returns 0, then Mutt-ng will call netscape to display the text/html object. If RunningX doesn't return 0, then Mutt-ng will go on to the next entry and use lynx to display the text/html object.
2571
2572 3.3.2. Search Order
2573
2574    When searching for an entry in the mailcap file, Mutt-ng will search for the most useful entry for its purpose. For instance, if you are attempting to print an image/gif, and you have the following entries in your mailcap file, Mutt-ng will search for an entry with the print command:
2575 image/*;        xv %s
2576 image/gif;      ; print= anytopnm %s | pnmtops | lpr; \
2577 nametemplate=%s.gif
2578
2579    Mutt-ng will skip the image/* entry and use the image/gif entry with the print command.
2580
2581    In addition, you can use this with auto-view to denote two commands for viewing an attachment, one to be viewed automatically, the other to be viewed interactively from the attachment menu. In addition, you can then use the test feature to determine which viewer to use interactively depending on your environment.
2582 text/html;      netscape -remote 'openURL(%s)' ; test=RunningX
2583 text/html;      lynx %s; nametemplate=%s.html
2584 text/html;      lynx -dump %s; nametemplate=%s.html; copiousoutput
2585
2586    For auto-view, Mutt-ng will choose the third entry because of the copiousoutput tag. For interactive viewing, Mutt will run the program RunningX to determine if it should use the first entry. If the program returns non-zero, Mutt-ng will use the second entry for interactive viewing.
2587
2588 3.3.3. Command Expansion
2589
2590    The various commands defined in the mailcap files are passed to the /bin/sh shell using the system() function. Before the command is passed to /bin/sh -c, it is parsed to expand various special parameters with information from Mutt-ng. The keywords Mutt-ng expands are:
2591
2592    %s
2593           As seen in the basic mailcap section, this variable is expanded to a filename specified by the calling program. This file contains the body of the message to view/print/edit or where the composing program should place the results of composition. In addition, the use of this keyword causes Mutt-ng to not pass the body of the message to the view/print/edit program on stdin.
2594
2595    %t
2596           Mutt-ng will expand %t to the text representation of the content type of the message in the same form as the first parameter of the mailcap definition line, ie text/html or image/gif.
2597
2598    %{<parameter>}
2599           Mutt-ng will expand this to the value of the specified parameter from the Content-Type: line of the mail message. For instance, if Your mail message contains:
2600
2601 Content-Type: text/plain; charset=iso-8859-1
2602
2603           then Mutt-ng will expand %{charset} to iso-8859-1. The default metamail mailcap file uses this feature to test the charset to spawn an xterm using the right charset to view the message.
2604
2605    \%
2606           This will be replaced by a %
2607
2608    Mutt-ng does not currently support the %F and %n keywords specified in RFC 1524. The main purpose of these parameters is for multipart messages, which is handled internally by Mutt-ng.
2609
2610 3.4. Example mailcap files
2611
2612    This mailcap file is fairly simple and standard:
2613 >
2614 # I'm always running X :)
2615 video/*;        xanim %s > /dev/null
2616 image/*;        xv %s > /dev/null
2617
2618 # I'm always running netscape (if my computer had more memory, maybe)
2619 text/html;      netscape -remote 'openURL(%s)'
2620
2621    This mailcap file shows quite a number of examples:
2622 # Use xanim to view all videos   Xanim produces a header on startup,
2623 # send that to /dev/null so I don't see it
2624 video/*;        xanim %s > /dev/null
2625
2626 # Send html to a running netscape by remote
2627 text/html;      netscape -remote 'openURL(%s)'; test=RunningNetscape
2628 # If I'm not running netscape but I am running X, start netscape on the
2629 # object
2630 text/html;      netscape %s; test=RunningX
2631
2632 # Else use lynx to view it as text
2633 text/html;      lynx %s
2634
2635 # This version would convert the text/html to text/plain
2636 text/html;      lynx -dump %s; copiousoutput
2637
2638 # I use enscript to print text in two columns to a page
2639 text/*;         more %s; print=enscript -2Gr %s
2640
2641 # Netscape adds a flag to tell itself to view jpegs internally
2642 image/jpeg;xv %s; x-mozilla-flags=internal
2643
2644 # Use xv to view images if I'm running X
2645 # In addition, this uses the \ to extend the line and set my editor
2646 # for images
2647 image/*;xv %s; test=RunningX; edit=xpaint %s
2648
2649 # Convert images to text using the netpbm tools
2650 image/*;  (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm |
2651 pbmtoascii -1x2 ) 2>&1 ; copiousoutput
2652
2653 # Send excel spreadsheets to my NT box
2654 application/ms-excel; open.pl %s
2655
2656 4. MIME Autoview
2657
2658    In addition to explicitly telling Mutt-ng to view an attachment with theMIME viewer defined in the mailcap file, Mutt-ng has support for automatically viewing MIME attachments while in the pager.
2659
2660    To work, you must define a viewer in the mailcap file which uses the copiousoutput option to denote that it is non-interactive. Usually, you also use the entry to convert the attachment to a text representation which you can view in the pager.
2661
2662    You then use the auto_view muttrc command to list the content-types that you wish to view automatically.
2663
2664    For instance, if you set auto_view to:
2665 auto_view text/html application/x-gunzip application/postscript
2666 image/gif application/x-tar-gz
2667
2668    Mutt-ng could use the following mailcap entries to automatically view attachments of these types.
2669 text/html;      lynx -dump %s; copiousoutput; nametemplate=%s.html
2670 image/*;        anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbmtoascii ; copiousoutput
2671 application/x-gunzip;   gzcat; copiousoutput
2672 application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
2673 application/postscript; ps2ascii %s; copiousoutput
2674
2675    ``unauto_view'' can be used to remove previous entries from the autoview list. This can be used with message-hook to autoview messages based on size, etc. ``unauto_view *'' will remove all previous entries.
2676
2677 5. MIME Multipart/Alternative
2678
2679    Mutt-ng has some heuristics for determining which attachment of a multipart/alternative type to display. First, mutt will check the alternative_order list to determine if one of the available typesis preferred. The alternative_order list consists of a number of MIME types in order, including support for implicit and explicit wildcards, for example:
2680 alternative_order text/enriched text/plain text
2681 application/postscript image/*
2682
2683    Next, mutt will check if any of the types have a defined auto-view, and use that. Failing that, Mutt-ng will look for any text type. As a last attempt, mutt willlook for any type it knows how to handle.
2684
2685    To remove a MIME type from the alternative_order list, use the unalternative_order command.
2686
2687 6. MIME Lookup
2688
2689    Mutt-ng's mime_lookup list specifies a list of mime-types that should not be treated according to their mailcap entry. This option is designed todeal with binary types such as application/octet-stream. When an attachment's mime-type is listed in mime_lookup, then the extension of the filename will be compared to the list of extensions in the mime.types file. The mime-type associated with this extension will then be used to process the attachment according to the rules in the mailcap file and according to any other configuration options (such as auto_view) specified. Common usage would be:
2690 mime_lookup application/octet-stream application/X-Lotus-Manuscript
2691
2692    In addition, the unmime_lookup command may be used to disable this feature for any particular mime-type if it had been set, for example, in a global muttrc.
2693
2694 Chapter 6. Security Considerations
2695
2696    Table of Contents
2697
2698    1. Passwords
2699    2. Temporary Files
2700    3. Information Leaks
2701
2702         3.1. Message-ID: headers
2703         3.2. mailto:-style links
2704
2705    4. External applications
2706
2707         4.1. mailcap
2708         4.2. Other
2709
2710    First of all, mutt-ng contains no security holes included by intention but may contain unknown security holes. As a consequence, please run mutt-ng only with as few permissions as possible.
2711
2712    Please do not run mutt-ng as the super user.
2713
2714    When configuring mutt-ng, there're some points to note about secure setups.
2715
2716    In practice, mutt-ng can be easily made as vulnerable as even the most insecure mail user agents (in their default configuration) just by changing mutt-ng's configuration files: it then can execute arbitrary programs and scripts attached to messages, send out private data on its own, etc. Although this is not believed to the common type of setup, please read this chapter carefully.
2717
2718 1. Passwords
2719
2720    Although mutt-ng can be told the various passwords for accounts, please never store passwords in configuration files. Besides the fact that the system's operator can always read them, you could forget to replace the actual password with asterisks when reporting a bug or asking for help via, for example, a mailing list so that your mail including your password could be archived by internet search engines, etc. Please never store passwords on disk.
2721
2722 2. Temporary Files
2723
2724    Mutt-ng uses many temporary files for viewing messages, verifying digital signatures, etc. The $umask variable can be used to change the default permissions of these files. Please only change it if you really know what you are doing. Also, a different location for these files may be desired which can be changed via the $tmpdir variable.
2725
2726 3. Information Leaks
2727
2728 3.1. Message-ID: headers
2729
2730    In the default configuration, mutt-ng will leak some information to the outside world when sending messages: the generation of Message-ID: headers includes a step counter which is increased (and rotated) with every message sent. If you'd like to hide this information probably telling others how many mail you sent in which time, you at least need to remove the %P expando from the default setting of the $msgid_format variable. Please make sure that you really know how local parts of these Message-ID: headers are composed.
2731
2732 3.2. mailto:-style links
2733
2734    As mutt-ng be can be set up to be the mail client to handle mailto: style links in websites, there're security considerations, too. To keep the old behavior by default, mutt-ng will be strict in interpreting them which means that arbitrary header fields can be embedded in these links which could override existing header fields or attach arbitrary files. This may be problematic if the $edit_headers variable is unset, i.e. the user doesn't want to see header fields while editing the message.
2735
2736    For example, following a link like
2737 mailto:joe@host?Attach=~/.gnupg/secring.gpg
2738
2739    will send out the user's private gnupg keyring to joe@host if the user doesn't follow the information on screen carefully enough.
2740
2741    When unsetting the strict-mailto variable, mutt-ng will
2742      * be less strict when interpreting these links by prepending a X-Mailto- string to all header fields embedded in such a link and
2743      * turn on the $edit_headers variable by force to let the user see all the headers (because they still may leak information.)
2744
2745 4. External applications
2746
2747    Mutt-ng in many places has to rely on external applications or for convenience supports mechanisms involving external applications.
2748
2749 4.1. mailcap
2750
2751    One of these is the mailcap mechanism as defined by RfC 1524. Mutt-ng can be set up to automatically execute any given utility as listed in one of the mailcap files (see the $mailcap_path variable for details.)
2752
2753    These utilities may have a variety of security vulnerabilities, including overwriting of arbitrary files, information leaks or other exploitable bugs. These vulnerabilities may go unnoticed by the user, especially when they are called automatically (and without interactive prompting) from the mailcap file(s). When using mutt-ng's autoview mechanism in combination with mailcap files, please be sure to...
2754      * manually select trustworth applications with a reasonable calling sequence
2755      * periodically check the contents of mailcap files, especially after software installations or upgrades
2756      * keep the software packages referenced in the mailcap file up to date
2757      * leave the $mailcap_sanitize variable in its default state to restrict mailcap expandos to a safe set of characters
2758
2759 4.2. Other
2760
2761    Besides the mailcap mechanism, mutt-ng uses a number of other external utilities for operation.
2762
2763    The same security considerations apply for these as for tools involved via mailcap (for example, mutt-ng is vulnerable to Denial of Service Attacks with compressed folders support if the uncompressed mailbox is too large for the disk it is saved to.)
2764
2765    As already noted, most of these problems are not built in but caused by wrong configuration, so please check your configuration.
2766
2767 Chapter 7. Reference
2768
2769    Table of Contents
2770
2771    1. Command line options
2772    2. Patterns
2773    3. Configuration Commands
2774    4. Configuration variables
2775    5. Functions
2776
2777         5.1. generic
2778         5.2. index
2779         5.3. pager
2780         5.4. alias
2781         5.5. query
2782         5.6. attach
2783         5.7. compose
2784         5.8. postpone
2785         5.9. browser
2786         5.10. pgp
2787         5.11. editor
2788
2789 1. Command line options
2790
2791    Running mutt with no arguments will make Mutt-ng attempt to read your spool mailbox. However, it is possible to read other mailboxes and to send messages from the command line as well.
2792
2793    Table 7.1. Mutt-NG Command Line Options
2794   Option Description
2795   -A     expand an alias
2796   -a     attach a file to a message
2797   -b     specify a blind carbon-copy (BCC) address
2798   -c     specify a carbon-copy (Cc) address
2799   -e     specify a config command to be run after initialization files are read
2800   -f     specify a mailbox to load
2801   -F     specify an alternate file to read initialization commands
2802   -h     print help on command line options
2803   -H     specify a draft file from which to read a header and body
2804   -i     specify a file to include in a message composition
2805   -m     specify a default mailbox type
2806   -n     do not read the system Muttngrc
2807   -p     recall a postponed message
2808   -Q     query a configuration variable
2809   -R     open mailbox in read-only mode
2810   -s     specify a subject (enclose in quotes if it contains spaces)
2811   -t     dump the value of all variables to stdout
2812   -T     dump the value of all changed variables to stdout
2813   -v     show version number and compile-time definitions
2814   -x     simulate the mailx(1) compose mode
2815   -y     show a menu containing the files specified by the mailboxes command
2816   -z     exit immediately if there are no messages in the mailbox
2817   -Z     open the first folder with new message,exit immediately if none
2818
2819    To read messages in a mailbox
2820
2821    mutt ] -nz [ ] -F muttrc [ ] -m type [ ] -f mailbox [
2822
2823    To compose a new message
2824
2825    mutt ] -n [ ] -F muttrc [ ] -a file [ ] -c address [ ] -i filename [ ] -s subject [ address ] address ... [
2826
2827    Mutt-ng also supports a ``batch'' mode to send prepared messages. Simply redirect input from the file you wish to send. For example,
2828
2829    mutt -s "data set for run #2" professor@bigschool.edu < ~/run2.dat
2830
2831    This command will send a message to ``professor@bigschool.edu'' with a subject of ``data set for run #2''. In the body of the message will be the contents of the file ``~/run2.dat''.
2832
2833 2. Patterns
2834
2835    Table 7.2. Patterns
2836    Pattern Modifier Argument Description
2837    ~A/=A all messages
2838    ~b/=b EXPR messages which contain EXPR in the message body
2839    ~B/=B EXPR messages which contain EXPR in the whole message
2840    ~c/=c EXPR messages carbon-copied to EXPR
2841    ~C/=C EXPR message is either to: or cc: EXPR
2842    ~D/=D deleted messages
2843    ~d/=d [MIN]-[MAX] messages with ``date-sent'' in a Date range
2844    ~E/=E expired messages
2845    ~e/=e EXPR message which contains EXPR in the ``Sender'' field
2846    ~F/=F flagged messages
2847    ~f/=f EXPR messages originating from EXPR
2848    ~g/=g cryptographically signed messages
2849    ~G/=G cryptographically encrypted messages
2850    ~H/=H EXPR messages with a spam attribute matching EXPR
2851    ~h/=h EXPR messages which contain EXPR in the message header
2852    ~k/=k message contains PGP key material
2853    ~i/=i EXPR message which match ID in the ``Message-ID'' field
2854    ~L/=L EXPR message is either originated or received by EXPR
2855    ~l/=l message is addressed to a known mailing list
2856    ~m/=m [MIN]-[MAX] message in the range MIN to MAX *)
2857    ~M/=M multipart messages
2858    ~n/=n [MIN]-[MAX] messages with a score in the range MIN to MAX *)
2859    ~N/=N new messages
2860    ~O/=O old messages
2861    ~p/=p message is addressed to you (consults alternates)
2862    ~P/=P message is from you (consults alternates)
2863    ~Q/=Q messages which have been replied to
2864    ~R/=R read messages
2865    ~r/=r [MIN]-[MAX] messages with ``date-received'' in a Date range
2866    ~S/=S superseded messages
2867    ~s/=s EXPR messages having EXPR in the ``Subject'' field.
2868    ~T/=T tagged messages
2869    ~t/=t EXPR messages addressed to EXPR
2870    ~U/=U unread messages
2871    ~u/=u message is addressed to a subscribed mailing list
2872    ~v/=v message is part of a collapsed thread.
2873    ~V/=V cryptographically verified messages
2874    ~w/=w EXPR messages which contain EXPR in the `Newsgroups' field (if compiled with NNTP support)
2875    ~x/=x EXPR messages which contain EXPR in the `References' field
2876    ~y/=y EXPR messages which contain EXPR in the `X-Label' field
2877    ~z/=z [MIN]-[MAX] messages with a size in the range MIN to MAX *)
2878    ~=/== duplicated messages (see $duplicate_threads)
2879    ~$/=$ unreferenced messages (requires threaded view)
2880    ~*/=* ``From'' contains realname and (syntactically) valid address (excluded are addresses matching against alternates or any alias)
2881
2882    Where EXPR are regexp. Special attention has to be made when using regular expressions inside of patterns. Specifically, Mutt-ng's parser for these patterns will strip one level of backslash (\), which is normally used for quoting. If it is your intention to use a backslash in the regular expression, you will need to use two backslashes instead (\\).
2883
2884    *) The forms <]MAX[, >]MIN[ , ]MIN[- and -]MAX[ are allowed, too.
2885
2886 3. Configuration Commands
2887
2888    The following are the commands understood by mutt.
2889      * account-hook pattern command
2890      * alias keyaddress ] , address ,... [
2891      * alias ] * | key ... [
2892      * alternates regexp ] regexp ... [
2893      * alternates ] * | regexp ... [
2894      * alternative-order mimetype ] mimetype ... [
2895      * alternative-order mimetype ] mimetype ... [
2896      * append-hook regexp command
2897      * auto-view mimetype ] mimetype ... [
2898      * auto-view mimetype ] mimetype ... [
2899      * bind map key function
2900      * charset-hook alias charset
2901      * close-hook regexp command
2902      * color objectforegroundbackground ] regexp [
2903      * color indexpattern ] pattern ... [
2904      * exec function ] function ... [
2905      * fcc-hook pattern mailbox
2906      * fcc-save-hook pattern mailbox
2907      * folder-hook pattern command
2908      * hdr-orderheader ] header ... [
2909      * hdr-orderheader ] header ... [
2910      * charset-hook charset local-charset
2911      * ignorepattern ] pattern ... [
2912      * ignorepattern ] pattern ... [
2913      * listsregexp ] regexp ... [
2914      * listsregexp ] regexp ... [
2915      * macro menukeysequence ] description [
2916      * mailboxes filename ] filename ... [
2917      * mbox-hook pattern mailbox
2918      * message-hook pattern command
2919      * mime-lookup mimetype ] mimetype ... [
2920      * mime-lookup mimetype ] mimetype ... [
2921      * color object attribute ] regexp [
2922      * color indexpattern ] pattern ... [
2923      * my-hdr string
2924      * my-hdr field ] field ... [
2925      * open-hook regexp command
2926      * crypt-hook pattern key-id
2927      * push string
2928      * set variable ]variable ... [
2929      * save-hook regexp filename
2930      * score-command pattern value
2931      * score-command pattern ] pattern ... [
2932      * send-hook regexp command
2933      * reply-hook regexp command
2934      * set ]no|inv[variable]=value [ ] variable ... [
2935      * set variable ]variable ... [
2936      * source filename
2937      * spam pattern format
2938      * spam pattern
2939      * listsregexp ] regexp ... [
2940      * listsregexp ] regexp ... [
2941      * set variable ]variable ... [
2942      * unhook hook-type
2943
2944 4. Configuration variables
2945
2946    The following list contains all variables which, in the process of providing more consistency, have been renamed and are partially even removed already. The left column contains the old synonym variables, the right column the full/new name:
2947
2948    Table 7.3. Obsolete Variables
2949    Old Name               New Name
2950    edit_hdrs              $edit_headers
2951    forw_decode            $forward_decode
2952    forw_format            $forward_format
2953    forw_quote             $forward_quote
2954    hdr_format             $index_format
2955    indent_str             $indent_string
2956    mime_fwd               $mime_forward
2957    msg_format             $message_format
2958    pgp_autosign           $crypt_autosign
2959    pgp_autoencrypt        $crypt_autoencrypt
2960    pgp_replyencrypt       $crypt_replyencrypt
2961    pgp_replysign          $crypt_replysign
2962    pgp_replysignencrypted $crypt-replysignencrypted
2963    pgp_verify_sig         $crypt_verify_sig
2964    pgp_create_traditional $pgp_autoinline
2965    pgp_auto_traditional   $pgp_replyinline
2966    forw_decrypt           $forward_decrypt
2967    smime_sign_as          $smime_default_key
2968    post_indent_str        $post_indent_string
2969    print_cmd              $print_command
2970    shorten_hierarchy      $sidebar-shorten-hierarchy
2971    ask_followup_to        $nntp_ask_followup_to
2972    ask_x_comment_to       $nntp_ask_x_comment_to
2973    catchup_newsgroup      $nntp_catchup
2974    followup_to_poster     $nntp_followup_to_poster
2975    group_index_format     $nntp_group_index_format
2976    inews                  $nntp_inews
2977    mime_subject           $nntp_mime_subject
2978    news_cache_dir         $nntp_cache_dir
2979    news_server            $nntp_host
2980    newsrc                 $nntp_newsrc
2981    nntp_poll              $nntp_mail_check
2982    pop_checkinterval      $pop_mail_check
2983    post_moderated         $nntp_post_moderated
2984    save_unsubscribed      $nntp_save_unsubscribed
2985    show_new_news          $nntp_show_new_news
2986    show_only_unread       $nntp_show_only_unread
2987    x_comment_to           $nntp_x_comment_to
2988    smtp_auth_username     $smtp_user
2989    smtp_auth_password     $smtp_pass
2990    user_agent             $agent_string
2991
2992    The contrib subdirectory contains a script named update-config.pl which eases migration.
2993
2994    A complete list of current variables follows.
2995
2996 1. $abort_noattach
2997
2998 2. $abort_nosubject
2999
3000 3. $abort_unmodified
3001
3002 4. $agent_string
3003
3004 5. $alias_file
3005
3006 6. $alias_format
3007
3008 7. $allow_8bit
3009
3010 8. $allow_ansi
3011
3012 9. $arrow_cursor
3013
3014 10. $ascii_chars
3015
3016 11. $askbcc
3017
3018 12. $askcc
3019
3020 13. $assumed_charset
3021
3022 14. $attach_format
3023
3024 15. $attach_remind_regexp
3025
3026 16. $attach_sep
3027
3028 17. $attach_split
3029
3030 18. $attribution
3031
3032 19. $auto_tag
3033
3034 20. $autoedit
3035
3036 21. $beep
3037
3038 22. $beep_new
3039
3040 23. $bounce
3041
3042 24. $bounce_delivered
3043
3044 25. $braille_friendly
3045
3046 26. $certificate_file
3047
3048 27. $charset
3049
3050 28. $check_new
3051
3052 29. $collapse_unread
3053
3054 30. $compose_format
3055
3056 31. $config_charset
3057
3058 32. $confirmappend
3059
3060 33. $confirmcreate
3061
3062 34. $connect_timeout
3063
3064 35. $content_type
3065
3066 36. $copy
3067
3068 37. $crypt_autoencrypt
3069
3070 38. $crypt_autopgp
3071
3072 39. $crypt_autosign
3073
3074 40. $crypt_autosmime
3075
3076 41. $crypt_replyencrypt
3077
3078 42. $crypt_replysign
3079
3080 43. $crypt_replysignencrypted
3081
3082 44. $crypt_timestamp
3083
3084 45. $crypt_use_gpgme
3085
3086 46. $crypt_verify_sig
3087
3088 47. $date_format
3089
3090 48. $debug_level
3091
3092 49. $default_hook
3093
3094 50. $delete
3095
3096 51. $delete_space
3097
3098 52. $delete_untag
3099
3100 53. $digest_collapse
3101
3102 54. $display_filter
3103
3104 55. $dotlock_program
3105
3106 56. $dsn_notify
3107
3108 57. $dsn_return
3109
3110 58. $duplicate_threads
3111
3112 59. $edit_headers
3113
3114 60. $editor
3115
3116 61. $editor_headers
3117
3118 62. $encode_from
3119
3120 63. $entropy_file
3121
3122 64. $envelope_from
3123
3124 65. $escape
3125
3126 66. $fast_reply
3127
3128 67. $fcc_attach
3129
3130 68. $fcc_clear
3131
3132 69. $file_charset
3133
3134 70. $folder
3135
3136 71. $folder_format
3137
3138 72. $followup_to
3139
3140 73. $force_buffy_check
3141
3142 74. $force_name
3143
3144 75. $forward_decode
3145
3146 76. $forward_decrypt
3147
3148 77. $forward_edit
3149
3150 78. $forward_format
3151
3152 79. $forward_quote
3153
3154 80. $from
3155
3156 81. $gecos_mask
3157
3158 82. $hdrs
3159
3160 83. $header
3161
3162 84. $header_cache
3163
3164 85. $header_cache_compress
3165
3166 86. $help
3167
3168 87. $hidden_host
3169
3170 88. $hide_limited
3171
3172 89. $hide_missing
3173
3174 90. $hide_thread_subject
3175
3176 91. $hide_top_limited
3177
3178 92. $hide_top_missing
3179
3180 93. $history
3181
3182 94. $honor_followup_to
3183
3184 95. $hostname
3185
3186 96. $ignore_list_reply_to
3187
3188 97. $imap_authenticators
3189
3190 98. $imap_check_subscribed
3191
3192 99. $imap_delim_chars
3193
3194 100. $imap_headers
3195
3196 101. $imap_home_namespace
3197
3198 102. $imap_keepalive
3199
3200 103. $imap_list_subscribed
3201
3202 104. $imap_login
3203
3204 105. $imap_mail_check
3205
3206 106. $imap_pass
3207
3208 107. $imap_passive
3209
3210 108. $imap_peek
3211
3212 109. $imap_reconnect
3213
3214 110. $imap_servernoise
3215
3216 111. $imap_user
3217
3218 112. $implicit_autoview
3219
3220 113. $include
3221
3222 114. $include_onlyfirst
3223
3224 115. $indent_string
3225
3226 116. $index_format
3227
3228 117. $ispell
3229
3230 118. $keep_flagged
3231
3232 119. $list_reply
3233
3234 120. $locale
3235
3236 121. $mail_check
3237
3238 122. $mailcap_path
3239
3240 123. $mailcap_sanitize
3241
3242 124. $maildir_header_cache_verify
3243
3244 125. $maildir_trash
3245
3246 126. $mark_old
3247
3248 127. $markers
3249
3250 128. $mask
3251
3252 129. $max_display_recips
3253
3254 130. $max_line_length
3255
3256 131. $mbox
3257
3258 132. $mbox_type
3259
3260 133. $menu_context
3261
3262 134. $menu_move_off
3263
3264 135. $menu_scroll
3265
3266 136. $message_format
3267
3268 137. $meta_key
3269
3270 138. $metoo
3271
3272 139. $mh_purge
3273
3274 140. $mh_seq_flagged
3275
3276 141. $mh_seq_replied
3277
3278 142. $mh_seq_unseen
3279
3280 143. $mime_forward
3281
3282 144. $mime_forward_decode
3283
3284 145. $mime_forward_rest
3285
3286 146. $mix_entry_format
3287
3288 147. $mixmaster
3289
3290 148. $move
3291
3292 149. $msgid_format
3293
3294 150. $muttng_bindir
3295
3296 151. $muttng_docdir
3297
3298 152. $muttng_folder_name
3299
3300 153. $muttng_folder_path
3301
3302 154. $muttng_hcache_backend
3303
3304 155. $muttng_pwd
3305
3306 156. $muttng_revision
3307
3308 157. $muttng_sysconfdir
3309
3310 158. $muttng_version
3311
3312 159. $narrow_tree
3313
3314 160. $net_inc
3315
3316 161. $nntp_ask_followup_to
3317
3318 162. $nntp_ask_x_comment_to
3319
3320 163. $nntp_cache_dir
3321
3322 164. $nntp_catchup
3323
3324 165. $nntp_context
3325
3326 166. $nntp_followup_to_poster
3327
3328 167. $nntp_group_index_format
3329
3330 168. $nntp_host
3331
3332 169. $nntp_inews
3333
3334 170. $nntp_load_description
3335
3336 171. $nntp_mail_check
3337
3338 172. $nntp_mime_subject
3339
3340 173. $nntp_newsrc
3341
3342 174. $nntp_pass
3343
3344 175. $nntp_post_moderated
3345
3346 176. $nntp_reconnect
3347
3348 177. $nntp_save_unsubscribed
3349
3350 178. $nntp_show_new_news
3351
3352 179. $nntp_show_only_unread
3353
3354 180. $nntp_user
3355
3356 181. $nntp_x_comment_to
3357
3358 182. $operating_system
3359
3360 183. $pager
3361
3362 184. $pager_context
3363
3364 185. $pager_format
3365
3366 186. $pager_index_lines
3367
3368 187. $pager_stop
3369
3370 188. $pgp_auto_decode
3371
3372 189. $pgp_autoinline
3373
3374 190. $pgp_check_exit
3375
3376 191. $pgp_clearsign_command
3377
3378 192. $pgp_decode_command
3379
3380 193. $pgp_decrypt_command
3381
3382 194. $pgp_encrypt_only_command
3383
3384 195. $pgp_encrypt_sign_command
3385
3386 196. $pgp_entry_format
3387
3388 197. $pgp_export_command
3389
3390 198. $pgp_getkeys_command
3391
3392 199. $pgp_good_sign
3393
3394 200. $pgp_ignore_subkeys
3395
3396 201. $pgp_import_command
3397
3398 202. $pgp_list_pubring_command
3399
3400 203. $pgp_list_secring_command
3401
3402 204. $pgp_long_ids
3403
3404 205. $pgp_mime_auto
3405
3406 206. $pgp_replyinline
3407
3408 207. $pgp_retainable_sigs
3409
3410 208. $pgp_show_unusable
3411
3412 209. $pgp_sign_as
3413
3414 210. $pgp_sign_command
3415
3416 211. $pgp_sort_keys
3417
3418 212. $pgp_strict_enc
3419
3420 213. $pgp_timeout
3421
3422 214. $pgp_use_gpg_agent
3423
3424 215. $pgp_verify_command
3425
3426 216. $pgp_verify_key_command
3427
3428 217. $pipe_decode
3429
3430 218. $pipe_sep
3431
3432 219. $pipe_split
3433
3434 220. $pop_auth_try_all
3435
3436 221. $pop_authenticators
3437
3438 222. $pop_delete
3439
3440 223. $pop_host
3441
3442 224. $pop_last
3443
3444 225. $pop_mail_check
3445
3446 226. $pop_pass
3447
3448 227. $pop_reconnect
3449
3450 228. $pop_user
3451
3452 229. $post_indent_string
3453
3454 230. $postpone
3455
3456 231. $postponed
3457
3458 232. $preconnect
3459
3460 233. $print
3461
3462 234. $print_command
3463
3464 235. $print_decode
3465
3466 236. $print_split
3467
3468 237. $prompt_after
3469
3470 238. $query_command
3471
3472 239. $quit
3473
3474 240. $quote_empty
3475
3476 241. $quote_quoted
3477
3478 242. $quote_regexp
3479
3480 243. $read_inc
3481
3482 244. $read_only
3483
3484 245. $realname
3485
3486 246. $recall
3487
3488 247. $record
3489
3490 248. $reply_regexp
3491
3492 249. $reply_self
3493
3494 250. $reply_to
3495
3496 251. $resolve
3497
3498 252. $reverse_alias
3499
3500 253. $reverse_name
3501
3502 254. $reverse_realname
3503
3504 255. $rfc2047_parameters
3505
3506 256. $save_address
3507
3508 257. $save_empty
3509
3510 258. $save_name
3511
3512 259. $score
3513
3514 260. $score_threshold_delete
3515
3516 261. $score_threshold_flag
3517
3518 262. $score_threshold_read
3519
3520 263. $send_charset
3521
3522 264. $sendmail
3523
3524 265. $sendmail_wait
3525
3526 266. $shell
3527
3528 267. $sidebar_boundary
3529
3530 268. $sidebar_delim
3531
3532 269. $sidebar_newmail_only
3533
3534 270. $sidebar_number_format
3535
3536 271. $sidebar_shorten_hierarchy
3537
3538 272. $sidebar_visible
3539
3540 273. $sidebar_width
3541
3542 274. $sig_dashes
3543
3544 275. $sig_on_top
3545
3546 276. $signature
3547
3548 277. $signoff_string
3549
3550 278. $simple_search
3551
3552 279. $sleep_time
3553
3554 280. $smart_wrap
3555
3556 281. $smileys
3557
3558 282. $smime_ask_cert_label
3559
3560 283. $smime_ca_location
3561
3562 284. $smime_certificates
3563
3564 285. $smime_decrypt_command
3565
3566 286. $smime_decrypt_use_default_key
3567
3568 287. $smime_default_key
3569
3570 288. $smime_encrypt_command
3571
3572 289. $smime_encrypt_with
3573
3574 290. $smime_get_cert_command
3575
3576 291. $smime_get_cert_email_command
3577
3578 292. $smime_get_signer_cert_command
3579
3580 293. $smime_import_cert_command
3581
3582 294. $smime_is_default
3583
3584 295. $smime_keys
3585
3586 296. $smime_pk7out_command
3587
3588 297. $smime_sign_command
3589
3590 298. $smime_sign_opaque_command
3591
3592 299. $smime_timeout
3593
3594 300. $smime_verify_command
3595
3596 301. $smime_verify_opaque_command
3597
3598 302. $smtp_envelope
3599
3600 303. $smtp_host
3601
3602 304. $smtp_pass
3603
3604 305. $smtp_port
3605
3606 306. $smtp_use_tls
3607
3608 307. $smtp_user
3609
3610 308. $sort
3611
3612 309. $sort_alias
3613
3614 310. $sort_aux
3615
3616 311. $sort_browser
3617
3618 312. $sort_re
3619
3620 313. $spam_separator
3621
3622 314. $spoolfile
3623
3624 315. $ssl_ca_certificates_file
3625
3626 316. $ssl_client_cert
3627
3628 317. $ssl_force_tls
3629
3630 318. $ssl_min_dh_prime_bits
3631
3632 319. $ssl_starttls
3633
3634 320. $ssl_use_sslv2
3635
3636 321. $ssl_use_sslv3
3637
3638 322. $ssl_use_tlsv1
3639
3640 323. $ssl_usesystemcerts
3641
3642 324. $status_chars
3643
3644 325. $status_format
3645
3646 326. $status_on_top
3647
3648 327. $strict_mailto
3649
3650 328. $strict_mime
3651
3652 329. $strict_threads
3653
3654 330. $strip_was
3655
3656 331. $strip_was_regex
3657
3658 332. $stuff_quoted
3659
3660 333. $suspend
3661
3662 334. $text_flowed
3663
3664 335. $thorough_search
3665
3666 336. $thread_received
3667
3668 337. $tilde
3669
3670 338. $timeout
3671
3672 339. $tmpdir
3673
3674 340. $to_chars
3675
3676 341. $trash
3677
3678 342. $tunnel
3679
3680 343. $umask
3681
3682 344. $uncollapse_jump
3683
3684 345. $use_8bitmime
3685
3686 346. $use_domain
3687
3688 347. $use_from
3689
3690 348. $use_idn
3691
3692 349. $use_ipv6
3693
3694 350. $visual
3695
3696 351. $wait_key
3697
3698 352. $weed
3699
3700 353. $wrap_search
3701
3702 354. $wrapmargin
3703
3704 355. $write_bcc
3705
3706 356. $write_inc
3707
3708 357. $xterm_icon
3709
3710 358. $xterm_leave
3711
3712 359. $xterm_set_titles
3713
3714 360. $xterm_title
3715
3716 5. Functions
3717
3718    The following is the list of available functions listed by the mapping in which they are available. The default key setting is given, and an explanation of what the function does. The key bindings of these functions can be changed with the bind command.
3719
3720 5.1. generic
3721
3722    The generic menu is not a real menu, but specifies common functions (such as movement) available in all menus except for pager and editor. Changing settings for this menu will affect the default bindings for all menus (except as noted).
3723             bottom-page                L   move to the bottom of the page
3724             current-bottom     not bound   move current entry to bottom of page
3725             current-middle     not bound   move current entry to middle of page
3726             current-top        not bound   move current entry to top of page
3727             enter-command              :   enter a muttngrc command
3728             exit                       q   exit this menu
3729             first-entry                =   move to the first entry
3730             half-down                  ]   scroll down 1/2 page
3731             half-up                    [   scroll up 1/2 page
3732             help                       ?   this screen
3733             jump                  number   jump to an index number
3734             last-entry                 *   move to the last entry
3735             middle-page                M   move to the middle of the page
3736             next-entry                 j   move to the next entry
3737             next-line                  >   scroll down one line
3738             next-page                  z   move to the next page
3739             previous-entry             k   move to the previous entry
3740             previous-line              <   scroll up one line
3741             previous-page              Z   move to the previous page
3742             refresh                   ^L   clear and redraw the screen
3743             search                     /   search for a regular expression
3744             search-next                n   search for next match
3745             search-opposite    not bound   search for next match in opposite
3746             direction
3747             search-reverse         ESC /   search backwards for a regular
3748             expression
3749             select-entry             RET   select the current entry
3750             shell-escape               !   run a program in a subshell
3751             tag-entry                  t   toggle the tag on the current entry
3752             tag-prefix                 ;   apply next command to tagged entries
3753             tag-prefix-cond    not bound   apply next function ONLY to tagged
3754             messages
3755             top-page                   H   move to the top of the page
3756             what-key           not bound   display the keycode for a key press
3757
3758 5.2. index
3759
3760             bounce-message             b   remail a message to another user
3761             change-folder              c   open a different folder
3762             change-folder-readonly ESC c   open a different folder in read only
3763             mode
3764             check-traditional-pgp  ESC P   check for classic pgp
3765             clear-flag                 W   clear a status flag from a message
3766             copy-message               C   copy a message to a file/mailbox
3767             create-alias               a   create an alias from a message
3768             senderdecode-copy            ESC C   decode a message and copy it
3769             to a file/mailbox
3770             decode-save            ESC s   decode a message and save it to a
3771             file/mailbox
3772             delete-message             d   delete the current entry
3773             delete-pattern             D   delete messages matching a pattern
3774             delete-subthread       ESC d   delete all messages in subthread
3775             delete-thread             ^D   delete all messages in thread
3776             display-address            @   display full address of sender
3777             display-toggle-weed        h   display message and toggle header
3778             weeding
3779             display-message          RET   display a message
3780             edit                       e   edit the current message
3781             edit-type                 ^E   edit the current message's
3782             Content-Type
3783             exit                       x   exit without saving changes
3784             extract-keys              ^K   extract PGP public keys
3785             fetch-mail                 G   retrieve mail from POP server
3786             flag-message               F   toggle a message's 'important' flag
3787             forget-passphrase         ^F   wipe PGP passphrase from memory
3788             forward-message            f   forward a message with comments
3789             group-reply                g   reply to all recipients
3790             limit                      l   show only messages matching a
3791             patternlist-reply                 L   reply to specified mailing
3792             list
3793             mail                       m   compose a new mail message
3794             mail-key               ESC k   mail a PGP public key
3795             next-new           not bound   jump to the next new message
3796             next-new-then-unread     TAB   jump to the next new or unread message
3797             next-subthread         ESC n   jump to the next subthread
3798             next-thread               ^N   jump to the next thread
3799             next-undeleted             j   move to the next undeleted message
3800             next-unread        not bound   jump to the next unread message
3801             parent-message             P   jump to parent message in thread
3802             pipe-message               |   pipe message/attachment to a shell
3803             command
3804             previous-new       not bound   jump to the previous new message
3805             previous-new-then-unread
3806                                  ESC TAB   jump to the previous new or unread message
3807
3808             previous-page              Z   move to the previous page
3809             previous-subthread     ESC p   jump to previous subthread
3810             previous-thread           ^P   jump to previous thread
3811             previous-undeleted         k   move to the last undelete message
3812             previous-unread    not bound   jump to the previous unread message
3813             print-message              p   print the current entry
3814             query                      Q   query external program for addresses
3815             quit                       q   save changes to mailbox and quit
3816             read-subthread         ESC r   mark the current subthread as read
3817             read-thread               ^R   mark the current thread as read
3818             recall-message             R   recall a postponed message
3819             reply                      r   reply to a message
3820             resend-message         ESC e   resend message and preserve MIME
3821             structure
3822             save-message               s   save message/attachment to a file
3823             set-flag                   w   set a status flag on a message
3824             show-version               V   show the Mutt-ng version number and
3825             date
3826             show-limit             ESC l   show currently active limit pattern,
3827             if any
3828             sort-mailbox               o   sort messages
3829             sort-reverse               O   sort messages in reverse order
3830             sync-mailbox               $   save changes to mailbox
3831             tag-pattern                T   tag messages matching a pattern
3832             tag-thread             ESC t   tag/untag all messages in the
3833             current thread
3834             toggle-new                 N   toggle a message's 'new' flag
3835             toggle-write               %   toggle whether the mailbox will be
3836             rewritten
3837             undelete-message           u   undelete the current entry
3838             undelete-pattern           U   undelete messages matching a pattern
3839             undelete-subthread     ESC u   undelete all messages in subthread
3840             undelete-thread           ^U   undelete all messages in thread
3841             untag-pattern             ^T   untag messages matching a pattern
3842             view-attachments           v   show MIME attachments
3843
3844 5.3. pager
3845
3846             bottom             not bound   jump to the bottom of the message
3847             bounce-message             b   remail a message to another user
3848             change-folder              c   open a different folder
3849             change-folder-readonly ESC c   open a different folder in read only
3850             mode
3851             check-traditional-pgp  ESC P   check for classic pgp
3852             copy-message               C   copy a message to a file/mailbox
3853             create-alias               a   create an alias from a message
3854             senderdecode-copy            ESC C   decode a message and copy it
3855             to a file/mailbox
3856             decode-save            ESC s   decode a message and save it to a
3857             file/mailbox
3858             delete-message             d   delete the current entry
3859             delete-subthread       ESC d   delete all messages in subthread
3860             delete-thread             ^D   delete all messages in thread
3861             display-address            @   display full address of sender
3862             display-toggle-weed        h   display message and toggle header
3863             weeding
3864             edit                       e   edit the current message
3865             edit-type                 ^E   edit the current message's
3866             Content-Type
3867             enter-command              :   enter a muttngrc command
3868             exit                       i   return to the main-menu
3869             extract-keys              ^K   extract PGP public keys
3870             flag-message               F   toggle a message's 'important' flag
3871             forget-passphrase         ^F   wipe PGP passphrase from memory
3872             forward-message            f   forward a message with comments
3873             group-reply                g   reply to all recipients
3874             half-up            not bound   move up one-half page
3875             half-down          not bound   move down one-half page
3876             help                       ?   this screen
3877             list-reply                 L   reply to specified mailing list
3878             mail                       m   compose a new mail message
3879             mail-key               ESC k   mail a PGP public key
3880             mark-as-new                N   toggle a message's 'new' flag
3881             next-line                RET   scroll down one line
3882             next-entry                 J   move to the next entry
3883             next-new           not bound   jump to the next new message
3884             next-new-then-unread     TAB   jump to the next new or unread message
3885             next-page                      move to the next page
3886             next-subthread         ESC n   jump to the next subthread
3887             next-thread               ^N   jump to the next thread
3888             next-undeleted             j   move to the next undeleted message
3889             next-unread        not bound   jump to the next unread message
3890             parent-message             P   jump to parent message in thread
3891             pipe-message               |   pipe message/attachment to a shell
3892             command
3893             previous-line      BackSpace   scroll up one line
3894             previous-entry             K   move to the previous entry
3895             previous-new       not bound   jump to the previous new message
3896             previous-new-then-unread
3897                                not bound   jump to the previous new or unread message
3898             previous-page              -   move to the previous page
3899             previous-subthread     ESC p   jump to previous subthread
3900             previous-thread           ^P   jump to previous thread
3901             previous-undeleted         k   move to the last undelete message
3902             previous-unread    not bound   jump to the previous unread message
3903             print-message              p   print the current entry
3904             quit                       Q   save changes to mailbox and quit
3905             read-subthread         ESC r   mark the current subthread as read
3906             read-thread               ^R   mark the current thread as read
3907             recall-message             R   recall a postponed message
3908             redraw-screen             ^L   clear and redraw the screen
3909             reply                      r   reply to a message
3910             save-message               s   save message/attachment to a file
3911             search                     /   search for a regular expression
3912             search-next                n   search for next match
3913             search-opposite    not bound   search for next match in opposite
3914             direction
3915             search-reverse         ESC /   search backwards for a regular
3916             expression
3917             search-toggle              \   toggle search pattern coloring
3918             shell-escape               !   invoke a command in a subshell
3919             show-version               V   show the Mutt-ng version number and
3920             date
3921             skip-quoted                S   skip beyond quoted text
3922             sync-mailbox               $   save changes to mailbox
3923             tag-message                t   tag a message
3924             toggle-quoted              T   toggle display of quoted text
3925             top                        ^   jump to the top of the message
3926             undelete-message           u   undelete the current entry
3927             undelete-subthread     ESC u   undelete all messages in subthread
3928             undelete-thread           ^U   undelete all messages in thread
3929             view-attachments           v   show MIME attachments
3930
3931 5.4. alias
3932
3933             search                     /   search for a regular expression
3934             search-next                n   search for next match
3935             search-reverse         ESC /   search backwards for a regular
3936             expression
3937
3938 5.5. query
3939
3940             create-alias               a   create an alias from a message
3941             sendermail                       m   compose a new mail message
3942             query                      Q   query external program for addresses
3943             query-append               A   append new query results to current
3944             results
3945             search                     /   search for a regular expression
3946             search-next                n   search for next match
3947             search-opposite    not bound   search for next match in opposite
3948             direction
3949             search-reverse         ESC /   search backwards for a regular
3950             expression
3951
3952 5.6. attach
3953
3954             bounce-message             b   remail a message to another user
3955             collapse-parts             v   toggle display of subparts
3956             delete-entry               d   delete the current entry
3957             display-toggle-weed        h   display message and toggle header
3958             weeding
3959             edit-type                 ^E   edit the current entry's
3960             Content-Typeextract-keys              ^K   extract PGP public keys
3961             forward-message            f   forward a message with comments
3962             group-reply                g   reply to all recipients
3963             list-reply                 L   reply to specified mailing list
3964             pipe-entry                 |   pipe message/attachment to a shell
3965             command
3966             print-entry                p   print the current entry
3967             reply                      r   reply to a message
3968             resend-message         ESC e   resend message and preserve MIME
3969             structure
3970             save-entry                 s   save message/attachment to a file
3971             undelete-entry             u   undelete the current entry
3972             view-attach              RET   view attachment using mailcap entry
3973             if necessary
3974             view-mailcap               m   force viewing of attachment using
3975             mailcap
3976             view-text                  T   view attachment as text
3977
3978 5.7. compose
3979
3980             attach-file                a   attach a file(s) to this message
3981             attach-message             A   attach message(s) to this message
3982             attach-key             ESC k   attach a PGP public key
3983             copy-file                  C   save message/attachment to a file
3984             detach-file                D   delete the current entry
3985             display-toggle-weed        h   display message and toggle header
3986             weeding
3987             edit-bcc                   b   edit the BCC list
3988             edit-cc                    c   edit the CC list
3989             edit-description           d   edit attachment description
3990             edit-encoding             ^E   edit attachment transfer-encoding
3991             edit-fcc                   f   enter a file to save a copy of this
3992             message in
3993             edit-from              ESC f   edit the from: field
3994             edit-file               ^X e   edit the file to be attached
3995             edit-headers               E   edit the message with headers
3996             edit                       e   edit the message
3997             edit-mime                  m   edit attachment using mailcap entry
3998             edit-reply-to              r   edit the Reply-To field
3999             edit-subject               s   edit the subject of this message
4000             edit-to                    t   edit the TO list
4001             edit-type                 ^T   edit attachment type
4002             filter-entry               F   filter attachment through a shell
4003             command
4004             forget-passphrase         ^F   wipe PGP passphrase from memory
4005             ispell                     i   run ispell on the message
4006             new-mime                   n   compose new attachment using mailcap
4007             entry
4008             pgp-menu                   p   show PGP options
4009             pipe-entry                 |   pipe message/attachment to a shell
4010             command
4011             postpone-message           P   save this message to send later
4012             print-entry                l   print the current entry
4013             rename-file                R   rename/move an attached file
4014             send-message               y   send the message
4015             toggle-unlink              u   toggle whether to delete file after
4016             sending it
4017             view-attach              RET   view attachment using mailcap entry
4018             if necessary
4019             write-fcc              w   write the message to a folder
4020
4021 5.8. postpone
4022
4023             delete-entry               d   delete the current entry
4024             undelete-entry             u   undelete the current entry
4025
4026 5.9. browser
4027
4028             change-dir                 c   change directories
4029             check-new                TAB   check mailboxes for new mail
4030             enter-mask                 m   enter a file mask
4031             search                     /   search for a regular expression
4032             search-next                n   search for next match
4033             search-reverse         ESC /   search backwards for a regular
4034             expression
4035             select-new                 N   select a new file in this directory
4036             sort                       o   sort messages
4037             sort-reverse               O   sort messages in reverse order
4038             toggle-mailboxes         TAB   toggle whether to browse mailboxes
4039             or all files
4040             view-file              SPACE   view file
4041             subscribe                  s   subscribe to current mailbox (IMAP
4042             Only)
4043             unsubscribe                u   unsubscribe to current mailbox (IMAP
4044             Only)
4045             toggle-subscribed          T   toggle view all/subscribed mailboxes
4046             (IMAP Only)
4047
4048 5.10. pgp
4049
4050             view-name                  %   view the key's user id
4051             verify-key                 c   verify a PGP public key
4052
4053 5.11. editor
4054
4055             backspace          BackSpace   delete the char in front of the
4056             cursor
4057             backward-char             ^B   move the cursor one character to the
4058             left
4059             backward-word          ESC b   move the cursor to the previous word
4060             bol                       ^A   jump to the beginning of the line
4061             buffy-cycle            Space   cycle among incoming mailboxes
4062             capitalize-word        ESC c   uppercase the first character in the
4063             word
4064             complete                 TAB   complete filename or alias
4065             complete-query            ^T   complete address with query
4066             delete-char               ^D   delete the char under the cursor
4067             downcase-word          ESC l   lowercase all characters in current
4068             word
4069             eol                       ^E   jump to the end of the line
4070             forward-char              ^F   move the cursor one character to the
4071             right
4072             forward-word           ESC f   move the cursor to the next word
4073             history-down       not bound   scroll down through the history list
4074             history-up         not bound   scroll up through the history list
4075             kill-eol                  ^K   delete chars from cursor to end of
4076             line
4077             kill-eow               ESC d   delete chars from cursor to end of
4078             word
4079             kill-line                 ^U   delete all chars on the line
4080             kill-word                 ^W   delete the word in front of the
4081             cursor
4082             quote-char                ^V   quote the next typed key
4083             transpose-chars    not bound   transpose character under cursor
4084             with previous
4085             upcase-word            ESC u   uppercase all characters in current
4086             word
4087
4088 Chapter 8. Acknowledgments
4089
4090    Kari Hurtta <kari.hurtta@fmi.fi> co-developed the original MIME >parsing code back in the ELM-ME days.
4091
4092    The following people have been very helpful to the development of Mutt (sorted by surnames):
4093      * Vikas Agnihotri <vikasa@writeme.com>
4094      * Francois Berjon < Francois.Berjon@aar.alcatel-alsthom.fr>
4095      * Aric Blumer <aric@fore.com>, John Capo < jc@irbs.com >
4096      * David Champion <dgc@uchicago.edu>
4097      * Brendan Cully <brendan@kublai.com>
4098      * Liviu Daia <daia@stoilow.imar.ro>
4099      * Thomas E. Dickey <dickey@herndon4.his.com>
4100      * David DeSimone <fox@convex.hp.com>
4101      * Nickolay N. Dudorov <nnd@wint.itfs.nsk.su>
4102      * Ruslan Ermilov <ru@freebsd.org>
4103      * Edmund Grimley Evans <edmundo@rano.org>
4104      * Michael Finken <finken@conware.de>
4105      * Sven Guckes <guckes@math.fu-berlin.de>
4106      * Lars Hecking <lhecking@nmrc.ie>
4107      * Mark Holloman <holloman@nando.net>
4108      * Andreas Holzmann <holzmann@fmi.uni-passau.de>
4109      * Marco d'Itri <md@linux.it>
4110      * Björn Jacke <bjacke@suse.com>
4111      * Byrial Jensen <byrial@image.dk>
4112      * David Jeske <jeske@igcom.net>
4113      * Christophe Kalt <kalt@hugo.int-evry.fr>
4114      * Tommi Komulainen <Tommi.Komulainen@iki.fi>
4115      * Felix von Leitner (a.k.a ``Fefe'') < leitner@math.fu-berlin.de >
4116      * Brandon Long <blong@fiction.net>
4117      * Jimmy Mäkeä <jmy@flashback.net>
4118      * Lars Marowsky-Bree <lmb@pointer.in-minden.de>
4119      * Thomas ``Mike'' Michlmayr <mike@cosy.sbg.ac.at>
4120      * Andrew W. Nosenko <awn@bcs.zp.ua>
4121      * David O'Brien <obrien@Nuxi.cs.ucdavis.edu>
4122      * Clint Olsen <olsenc@ichips.intel.com>
4123      * Park Myeong Seok <pms@romance.kaist.ac.kr>
4124      * Thomas Parmelan <tom@ankh.fr.eu.org>
4125      * Ollivier Robert <roberto@keltia.freenix.fr>
4126      * Thomas Roessler <roessler@does-not-exist.org>
4127      * Roland Rosenfeld <roland@spinnaker.de>
4128      * TAKIZAWA Takashi <taki@luna.email.ne.jp>
4129      * Allain Thivillon <Allain.Thivillon@alma.fr>
4130      * Gero Treuner <gero@faveve.uni-stuttgart.de>
4131      * Vsevolod Volkov <vvv@lucky.net>
4132      * Ken Weinert <kenw@ihs.com>
4133
4134    Mutt-ng is developed by the following people:
4135      * Andreas Krennmair <ak@synflood.at>
4136      * Nico Golde <nico@ngolde.de>
4137      * Rocco Rutte <pdmef@cs.tu-berlin.de>
4138
4139    The following people have been very helpful to the development of Mutt-ng (sorted by surnames):
4140      * Christian Gall <cg@cgall.de>
4141      * Iain Lea <iain@bricbrac.de>
4142      * Andreas Kneib <akneib@gmx.net>
4143      * Felix Meinhold <felix.meinhold@gmx.net>
4144      * Carsten Schoelzki <cjs@weisshuhn.de>
4145      * Elimar Riesebieter <riesebie@lxtec.de>
4146
4147 Chapter 9. Hacking Documentation
4148
4149    This manual is written in XML and transformed via a XSLT stylesheet into valid DocBook/XML to be again transformed via a XSLT stylesheet into the final formats.
4150
4151    This two pass processing is required to keep the file size low and to sanitize use, i.e. drastically lower the typing overhead.
4152
4153    To achieve the latter, the sources come with a file called muttng-manual.xsl introducing the muttng-doc namespace which offers the following tags to be used (note: this is far from being complete, any help towards consistency is highly appreciated).
4154
4155    <muttng-doc:man name="" [sect=""]/>
4156           References to manual pages. If the sect parameter is omitted, it'll be 1 for the commands section. There's no auto-indexing yet.
4157
4158    <muttng-doc:envvar name=""/>
4159           References to environment variables. The name parameter must contain upper-case letters only without the dollar sign as it'll be added automatically. Auto-indexing under Environment Variables is done.
4160
4161    <muttng-doc:hook name=""/>
4162           References to hooks. The string -hook will be added automatically to the value given in the name parameter. All entries will be auto-indexed under Hooks.
4163
4164    <muttng-doc:command name=""/>
4165           References to configuration commands. The name is given via the name parameter and will be auto-indexed under Configuration Commands.
4166
4167    <muttng-doc:pattern name=""/>
4168           References to patterns. The name parameter must only contain the letter/symbol for the pattern as the tilde symbol/equal sign will be added automatically. Auto-indexing is done under Patterns.
4169
4170    <muttng-doc:funcdef name="" key=""/>
4171           Defining a command.. It's used to define a command with the name given in the name parameter and a default key binding given via key. The string will be automatically enclosed in <>. Auto-indexing is done under Functions. Also an anchor with id func-[name] will be added with [name] being the value of the name parameter.
4172
4173    <muttng-doc:funcref name=""/>
4174           References to functions.. This is practically the same as the above except that there's no anchor defined.
4175
4176    <muttng-doc:vardef name="" id=""/>
4177           Defining a variable. This is to be used by makedoc only to define a command with a given name and XML-normalized link given via id. Auto-indexing is done under Configuration Variables. The name parameter's value will be prefixed with a dollar sign as for environment variables.
4178
4179    <muttng-doc:varref name="" link=""/>
4180           References to variables. This practically is the same as above except that the text inbetween won't be wrapped within a <sect1> tag. Auto-indexing is the same as for the above. This one is intended for manual use.
4181
4182 Index
4183
4184 C
4185
4186    Configuration Commands
4187
4188         alias, Miscellaneous Functions
4189         bind, Editing Input Fields
4190         color, The Pager
4191
4192    Configuration Variables
4193
4194         abort_noattach, $abort_noattach
4195         abort_nosubject, $abort_nosubject
4196         abort_unmodified, $abort_unmodified
4197         agent_string, Configuration variables, $agent_string
4198         alias_file, Miscellaneous Functions, Defining/Using aliases, $alias_file
4199         alias_format, $alias_format
4200         allow_8bit, $allow_8bit
4201         allow_ansi, $allow_ansi
4202         arrow_cursor, $arrow_cursor
4203         ascii_chars, $ascii_chars
4204         askbcc, $askbcc
4205         askcc, $askcc
4206         assumed_charset, $assumed_charset
4207         attach_format, $attach_format
4208         attach_remind_regexp, $attach_remind_regexp
4209         attach_sep, $attach_sep
4210         attach_split, $attach_split
4211         attribution, Change settings based upon message recipients, $attribution
4212         autoedit, $autoedit
4213         auto_tag, Using Tags, $auto_tag
4214         beep, $beep
4215         beep_new, $beep_new
4216         bounce, $bounce
4217         bounce_delivered, $bounce_delivered
4218         braille_friendly, $braille_friendly
4219         certificate_file, $certificate_file
4220         charset, $charset
4221         check_new, $check_new
4222         collapse_unread, $collapse_unread
4223         compose_format, $compose_format
4224         config_charset, $config_charset
4225         confirmappend, $confirmappend
4226         confirmcreate, $confirmcreate
4227         connect_timeout, $connect_timeout
4228         content_type, $content_type
4229         copy, $copy
4230         crypt-replysignencrypted, Configuration variables
4231         crypt_autoencrypt, Configuration variables, $crypt_autoencrypt
4232         crypt_autopgp, $crypt_autopgp
4233         crypt_autosign, Configuration variables, $crypt_autosign
4234         crypt_autosmime, $crypt_autosmime
4235         crypt_replyencrypt, Configuration variables, $crypt_replyencrypt
4236         crypt_replysign, Configuration variables, $crypt_replysign
4237         crypt_replysignencrypted, $crypt_replysignencrypted
4238         crypt_timestamp, $crypt_timestamp
4239         crypt_use_gpgme, $crypt_use_gpgme
4240         crypt_verify_sig, Configuration variables, $crypt_verify_sig
4241         date_format, $date_format
4242         debug_level, $debug_level
4243         default_hook, $default_hook
4244         delete, $delete
4245         delete_space, Additional Notes, $delete_space
4246         delete_untag, $delete_untag
4247         digest_collapse, $digest_collapse
4248         display_filter, $display_filter
4249         dotlock_program, $dotlock_program
4250         dsn_notify, Delivery Status Notification (DSN) Support, $dsn_notify
4251         dsn_return, Delivery Status Notification (DSN) Support, $dsn_return
4252         duplicate_threads, $duplicate_threads
4253         editor, $editor
4254         editor_headers, Editing the message header, Defining/Using aliases, $editor_headers
4255         edit_headers, Editing the message header, User defined headers, mailto:-style links, Configuration variables, $edit_headers
4256         encode_from, $encode_from
4257         entropy_file, $entropy_file
4258         envelope_from, $envelope_from
4259         escape, $escape
4260         fast_reply, $fast_reply
4261         fcc_attach, $fcc_attach
4262         fcc_clear, $fcc_clear
4263         file_charset, $file_charset
4264         folder, Configuration Variables, Defining mailboxes which receive mail, Mailbox Shortcuts, $folder
4265         folder_format, $folder_format
4266         followup_to, Mailing lists, $followup_to
4267         force_buffy_check, $force_buffy_check
4268         force_name, $force_name
4269         forward_decode, Configuration variables, $forward_decode
4270         forward_decrypt, Configuration variables, $forward_decrypt
4271         forward_edit, $forward_edit
4272         forward_format, Configuration variables, $forward_format
4273         forward_quote, Configuration variables, $forward_quote
4274         from, $from
4275         gecos_mask, $gecos_mask
4276         hdrs, $hdrs
4277         header, $header
4278         header_cache, $header_cache
4279         header_cache_compress, $header_cache_compress
4280         help, $help
4281         hidden_host, $hidden_host
4282         hide_limited, $hide_limited
4283         hide_missing, $hide_missing
4284         hide_thread_subject, $hide_thread_subject
4285         hide_top_limited, $hide_top_limited
4286         hide_top_missing, $hide_top_missing
4287         history, $history
4288         honor_followup_to, Miscellaneous Functions, Handling Mailing Lists, $honor_followup_to
4289         hostname, $hostname
4290         ignore_list_reply_to, $ignore_list_reply_to
4291         imap_authenticators, Authentication, $imap_authenticators
4292         imap_check_subscribed, $imap_check_subscribed
4293         imap_delim_chars, $imap_delim_chars
4294         imap_headers, $imap_headers
4295         imap_home_namespace, Configuration Variables, $imap_home_namespace
4296         imap_keepalive, $imap_keepalive
4297         imap_list_subscribed, IMAP Support (OPTIONAL), $imap_list_subscribed
4298         imap_login, $imap_login
4299         imap_mail_check, Conditional parts, IMAP Support (OPTIONAL), $imap_mail_check
4300         imap_pass, Authentication, $imap_pass
4301         imap_passive, $imap_passive
4302         imap_peek, $imap_peek
4303         imap_reconnect, $imap_reconnect
4304         imap_servernoise, $imap_servernoise
4305         imap_user, Authentication, $imap_user
4306         implicit_autoview, $implicit_autoview
4307         include, $include
4308         include_onlyfirst, $include_onlyfirst
4309         indent_string, Configuration variables, $indent_string
4310         index_format, Threaded Mode, Spam detection, Handling Mailing Lists, Configuration variables, $index_format
4311         ispell, $ispell
4312         keep_flagged, $keep_flagged
4313         list_reply, $list_reply
4314         locale, Change settings based upon message recipients, $locale
4315         mailcap_path, mailcap, $mailcap_path
4316         mailcap_sanitize, mailcap, $mailcap_sanitize
4317         maildir_header_cache_verify, $maildir_header_cache_verify
4318         maildir_trash, $maildir_trash
4319         mail_check, $mail_check
4320         markers, $markers
4321         mark_old, $mark_old
4322         mask, $mask
4323         max_display_recips, $max_display_recips
4324         max_line_length, $max_line_length
4325         mbox, Mailbox Shortcuts, $mbox
4326         mbox_type, Mailbox Formats, $mbox_type
4327         menu_context, $menu_context
4328         menu_move_off, $menu_move_off
4329         menu_scroll, $menu_scroll
4330         message_format, Configuration variables, $message_format
4331         meta_key, $meta_key
4332         metoo, $metoo
4333         mh_purge, $mh_purge
4334         mh_seq_flagged, $mh_seq_flagged
4335         mh_seq_replied, $mh_seq_replied
4336         mh_seq_unseen, $mh_seq_unseen
4337         mime_forward, Configuration variables, $mime_forward
4338         mime_forward_decode, $mime_forward_decode
4339         mime_forward_rest, $mime_forward_rest
4340         mixmaster, $mixmaster
4341         mix_entry_format, Sending anonymous messages via mixmaster, $mix_entry_format
4342         move, $move
4343         msgid_format, Message-ID: headers, $msgid_format
4344         muttng_bindir, $muttng_bindir
4345         muttng_docdir, $muttng_docdir
4346         muttng_folder_name, $muttng_folder_name
4347         muttng_folder_path, $muttng_folder_path
4348         muttng_hcache_backend, $muttng_hcache_backend
4349         muttng_pwd, $muttng_pwd
4350         muttng_revision, $muttng_revision
4351         muttng_sysconfdir, $muttng_sysconfdir
4352         muttng_version, $muttng_version
4353         narrow_tree, $narrow_tree
4354         net_inc, $net_inc
4355         nntp_ask_followup_to, Configuration variables, $nntp_ask_followup_to
4356         nntp_ask_x_comment_to, Configuration variables, $nntp_ask_x_comment_to
4357         nntp_cache_dir, Configuration variables, $nntp_cache_dir
4358         nntp_catchup, Configuration variables, $nntp_catchup
4359         nntp_context, $nntp_context
4360         nntp_followup_to_poster, Configuration variables, $nntp_followup_to_poster
4361         nntp_group_index_format, Configuration variables, $nntp_group_index_format
4362         nntp_host, Configuration variables, $nntp_host
4363         nntp_inews, Configuration variables, $nntp_inews
4364         nntp_load_description, $nntp_load_description
4365         nntp_mail_check, Configuration variables, $nntp_mail_check
4366         nntp_mime_subject, Configuration variables, $nntp_mime_subject
4367         nntp_newsrc, NNTP Support (OPTIONAL), Configuration variables, $nntp_newsrc
4368         nntp_pass, $nntp_pass
4369         nntp_post_moderated, Configuration variables, $nntp_post_moderated
4370         nntp_reconnect, $nntp_reconnect
4371         nntp_save_unsubscribed, Configuration variables, $nntp_save_unsubscribed
4372         nntp_show_new_news, Configuration variables, $nntp_show_new_news
4373         nntp_show_only_unread, Configuration variables, $nntp_show_only_unread
4374         nntp_user, $nntp_user
4375         nntp_x_comment_to, Configuration variables, $nntp_x_comment_to
4376         operating_system, $operating_system
4377         pager, $pager
4378         pager_context, $pager_context
4379         pager_format, $pager_format
4380         pager_index_lines, Conditional parts, $pager_index_lines
4381         pager_stop, $pager_stop
4382         pgp_autoinline, Configuration variables, $pgp_autoinline
4383         pgp_auto_decode, $pgp_auto_decode
4384         pgp_check_exit, $pgp_check_exit
4385         pgp_clearsign_command, $pgp_clearsign_command
4386         pgp_decode_command, $pgp_decode_command
4387         pgp_decrypt_command, $pgp_decrypt_command
4388         pgp_encrypt_only_command, $pgp_encrypt_only_command
4389         pgp_encrypt_sign_command, $pgp_encrypt_sign_command
4390         pgp_entry_format, Using Mutt-ng with PGP, $pgp_entry_format
4391         pgp_export_command, $pgp_export_command
4392         pgp_getkeys_command, $pgp_getkeys_command
4393         pgp_good_sign, $pgp_good_sign
4394         pgp_ignore_subkeys, $pgp_ignore_subkeys
4395         pgp_import_command, $pgp_import_command
4396         pgp_list_pubring_command, $pgp_list_pubring_command
4397         pgp_list_secring_command, $pgp_list_secring_command
4398         pgp_long_ids, $pgp_long_ids
4399         pgp_mime_auto, $pgp_mime_auto
4400         pgp_replyinline, Configuration variables, $pgp_replyinline
4401         pgp_retainable_sigs, $pgp_retainable_sigs
4402         pgp_show_unusable, $pgp_show_unusable
4403         pgp_sign_as, Using Mutt-ng with PGP, $pgp_sign_as
4404         pgp_sign_command, $pgp_sign_command
4405         pgp_sort_keys, $pgp_sort_keys
4406         pgp_strict_enc, $pgp_strict_enc
4407         pgp_timeout, $pgp_timeout
4408         pgp_use_gpg_agent, $pgp_use_gpg_agent
4409         pgp_verify_command, $pgp_verify_command
4410         pgp_verify_key_command, $pgp_verify_key_command
4411         pipe_decode, Miscellaneous Functions, $pipe_decode
4412         pipe_sep, $pipe_sep
4413         pipe_split, Miscellaneous Functions, $pipe_split
4414         pop_authenticators, $pop_authenticators
4415         pop_auth_try_all, $pop_auth_try_all
4416         pop_delete, $pop_delete
4417         pop_host, $pop_host
4418         pop_last, $pop_last
4419         pop_mail_check, POP3 Support (OPTIONAL), Configuration variables, $pop_mail_check
4420         pop_pass, $pop_pass
4421         pop_reconnect, $pop_reconnect
4422         pop_user, $pop_user
4423         postpone, Postponing Mail, $postpone
4424         postponed, Postponing Mail, $postponed
4425         post_indent_string, Configuration variables, $post_indent_string
4426         preconnect, $preconnect
4427         print, $print
4428         print_command, Configuration variables, $print_command
4429         print_decode, $print_decode
4430         print_split, $print_split
4431         prompt_after, $prompt_after
4432         query_command, External Address Queries, $query_command
4433         quit, $quit
4434         quote_empty, $quote_empty
4435         quote_quoted, $quote_quoted
4436         quote_regexp, Miscellaneous Functions, Using color and mono video attributes, $quote_regexp
4437         read_inc, $read_inc
4438         read_only, $read_only
4439         realname, $realname
4440         recall, $recall
4441         record, Environment Variables, Specify default Fcc: mailbox when composing, Mailbox Shortcuts, $record
4442         reply_regexp, $reply_regexp
4443         reply_self, $reply_self
4444         reply_to, Alternative addresses, Handling Mailing Lists, $reply_to
4445         resolve, $resolve
4446         reverse_alias, $reverse_alias
4447         reverse_name, $reverse_name
4448         reverse_realname, $reverse_realname
4449         rfc2047_parameters, $rfc2047_parameters
4450         save_address, $save_address
4451         save_empty, $save_empty
4452         save_name, $save_name
4453         score, $score
4454         score_threshold_delete, Message Scoring, $score_threshold_delete
4455         score_threshold_flag, Message Scoring, $score_threshold_flag
4456         score_threshold_read, Message Scoring, $score_threshold_read
4457         sendmail, Change settings based upon message recipients, $sendmail
4458         sendmail_wait, $sendmail_wait
4459         send_charset, $send_charset
4460         shell, $shell
4461         sidebar-shorten-hierarchy, Configuration variables
4462         sidebar_boundary, $sidebar_boundary
4463         sidebar_delim, $sidebar_delim
4464         sidebar_newmail_only, $sidebar_newmail_only
4465         sidebar_number_format, $sidebar_number_format
4466         sidebar_shorten_hierarchy, $sidebar_shorten_hierarchy
4467         sidebar_visible, $sidebar_visible
4468         sidebar_width, $sidebar_width
4469         signature, Change settings based upon message recipients, $signature
4470         signoff_string, $signoff_string
4471         sig_dashes, $sig_dashes
4472         sig_on_top, $sig_on_top
4473         simple_search, $simple_search
4474         sleep_time, $sleep_time
4475         smart_wrap, $smart_wrap
4476         smileys, $smileys
4477         smime_ask_cert_label, $smime_ask_cert_label
4478         smime_ca_location, $smime_ca_location
4479         smime_certificates, $smime_certificates
4480         smime_decrypt_command, $smime_decrypt_command
4481         smime_decrypt_use_default_key, $smime_decrypt_use_default_key
4482         smime_default_key, Configuration variables, $smime_default_key
4483         smime_encrypt_command, $smime_encrypt_command
4484         smime_encrypt_with, $smime_encrypt_with
4485         smime_get_cert_command, $smime_get_cert_command
4486         smime_get_cert_email_command, $smime_get_cert_email_command
4487         smime_get_signer_cert_command, $smime_get_signer_cert_command
4488         smime_import_cert_command, $smime_import_cert_command
4489         smime_is_default, $smime_is_default
4490         smime_keys, $smime_keys
4491         smime_pk7out_command, $smime_pk7out_command
4492         smime_sign_command, $smime_sign_command
4493         smime_sign_opaque_command, $smime_sign_opaque_command
4494         smime_timeout, $smime_timeout
4495         smime_verify_command, $smime_verify_command
4496         smime_verify_opaque_command, $smime_verify_opaque_command
4497         smtp_envelope, SMTP Support (OPTIONAL), $smtp_envelope
4498         smtp_host, $smtp_host
4499         smtp_pass, SMTP Support (OPTIONAL), Configuration variables, $smtp_pass
4500         smtp_port, $smtp_port
4501         smtp_user, Configuration variables, $smtp_user
4502         smtp_use_tls, SMTP Support (OPTIONAL), $smtp_use_tls
4503         sort, $sort
4504         sort_alias, $sort_alias
4505         sort_aux, $sort_aux
4506         sort_browser, $sort_browser
4507         sort_re, $sort_re
4508         spam_separator, $spam_separator
4509         spoolfile, Setting variables based upon mailbox, Defining mailboxes which receive mail, Mailbox Shortcuts, POP3 Support (OPTIONAL), $spoolfile
4510         ssl_ca_certificates_file, $ssl_ca_certificates_file
4511         ssl_client_cert, $ssl_client_cert
4512         ssl_force_tls, $ssl_force_tls
4513         ssl_min_dh_prime_bits, $ssl_min_dh_prime_bits
4514         ssl_starttls, $ssl_starttls
4515         ssl_usesystemcerts, $ssl_usesystemcerts
4516         ssl_use_sslv2, $ssl_use_sslv2
4517         ssl_use_sslv3, $ssl_use_sslv3
4518         ssl_use_tlsv1, $ssl_use_tlsv1
4519         status_chars, $status_chars
4520         status_format, Composing new messages, Introduction, $status_format
4521         status_on_top, $status_on_top
4522         strict_mailto, $strict_mailto
4523         strict_mime, $strict_mime
4524         strict_threads, Threaded Mode, $strict_threads
4525         strip_was, $strip_was
4526         strip_was_regex, $strip_was_regex
4527         stuff_quoted, $stuff_quoted
4528         suspend, $suspend
4529         text_flowed, $text_flowed
4530         thorough_search, $thorough_search
4531         thread_received, $thread_received
4532         tilde, $tilde
4533         timeout, IMAP Support (OPTIONAL), $timeout
4534         tmpdir, Temporary Files, $tmpdir
4535         to_chars, Status Flags, $to_chars
4536         trash, $trash
4537         tunnel, $tunnel
4538         umask, Temporary Files, $umask
4539         uncollapse_jump, $uncollapse_jump
4540         use_8bitmime, $use_8bitmime
4541         use_domain, $use_domain
4542         use_from, $use_from
4543         use_idn, $use_idn
4544         use_ipv6, $use_ipv6
4545         visual, $visual
4546         wait_key, Miscellaneous Functions, Optional Fields, $wait_key
4547         weed, Miscellaneous Functions, $weed
4548         wrapmargin, $wrapmargin
4549         wrap_search, $wrap_search
4550         write_bcc, $write_bcc
4551         write_inc, $write_inc
4552         xterm_icon, $xterm_icon
4553         xterm_leave, $xterm_leave
4554         xterm_set_titles, $xterm_set_titles
4555         xterm_title, $xterm_title
4556
4557 E
4558
4559    Environment Variables
4560
4561         $COLORFGBG, Using color and mono video attributes
4562         $EDITOR, Composing new messages
4563         $HOME, MIME Type configuration with mime.types, MIME Viewer configuration with mailcap
4564         $HOSTNAME, Environment Variables
4565         $NNTPSERVER, NNTP Support (OPTIONAL)
4566         $VISUAL, Composing new messages
4567
4568 F
4569
4570    Functions
4571
4572         attach-file, Composing new messages
4573         attach-key, Composing new messages
4574         attach-message, Composing new messages
4575         backspace, Editing Input Fields
4576         backward-char, Editing Input Fields
4577         backward-word, Editing Input Fields
4578         bol, Editing Input Fields
4579         bounce, Sending Mail
4580         capitalize-word, Editing Input Fields
4581         check-traditional-pgp, Miscellaneous Functions
4582         collapse-all, Threaded Mode
4583         collapse-thread, Threaded Mode
4584         complete, Editing Input Fields
4585         complete-query, Editing Input Fields
4586         compose, Sending Mail
4587         create-alias, Miscellaneous Functions, Defining/Using aliases
4588         delete-char, Editing Input Fields
4589         delete-subthread, Threaded Mode
4590         delete-thread, Threaded Mode
4591         detach-file, Composing new messages
4592         display-toggle-weed, Miscellaneous Functions
4593         downcase-word, Editing Input Fields
4594         edit, Miscellaneous Functions
4595         edit-bcc, Composing new messages
4596         edit-cc, Composing new messages
4597         edit-description, Composing new messages
4598         edit-fcc, Composing new messages
4599         edit-from, Composing new messages
4600         edit-reply-to, Composing new messages
4601         edit-subject, Composing new messages
4602         edit-to, Composing new messages
4603         edit-type, Miscellaneous Functions
4604         enter-command, Miscellaneous Functions
4605         eol, Editing Input Fields
4606         extract-keys, Miscellaneous Functions
4607         first-entry, Moving Around in Menus
4608         forget-passphrase, Miscellaneous Functions, Composing new messages
4609         forward, Sending Mail
4610         forward-char, Editing Input Fields
4611         forward-word, Editing Input Fields
4612         group-reply, Sending Mail
4613         help, Moving Around in Menus
4614         history-down, Editing Input Fields
4615         history-up, Editing Input Fields
4616         ispell, Composing new messages
4617         kill-eol, Editing Input Fields
4618         kill-eow, Editing Input Fields
4619         kill-line, Editing Input Fields
4620         kill-word, Editing Input Fields
4621         last-entry, Moving Around in Menus
4622         list-reply, Miscellaneous Functions, Sending Mail
4623         mail-key, Sending Mail
4624         next-entry, Moving Around in Menus
4625         next-subthread, Threaded Mode
4626         next-thread, Threaded Mode
4627         page-down, Moving Around in Menus
4628         page-up, Moving Around in Menus
4629         parent-message, Threaded Mode
4630         pgp-menu, Composing new messages
4631         pipe-message, Miscellaneous Functions
4632         postpone-message, Composing new messages
4633         previous-entry, Moving Around in Menus
4634         previous-subthread, Threaded Mode
4635         previous-thread, Threaded Mode
4636         quit, Moving Around in Menus, Composing new messages
4637         quote-char, Editing Input Fields
4638         read-subthread, Threaded Mode
4639         read-thread, Threaded Mode
4640         reply, Sending Mail
4641         resend-message, Miscellaneous Functions, The Attachment Menu
4642         send-message, Composing new messages
4643         shell-escape, Miscellaneous Functions
4644         sidebar-next, Using the sidebar
4645         sidebar-next-new, Using the sidebar
4646         sidebar-open, Using the sidebar
4647         sidebar-previous, Using the sidebar
4648         sidebar-scroll-down, Using the sidebar
4649         sidebar-scroll-up, Using the sidebar
4650         skip-quoted, Miscellaneous Functions
4651         smime-menu, Composing new messages
4652         tag-thread, Threaded Mode
4653         toggle-quoted, Miscellaneous Functions
4654         undelete-subthread, Threaded Mode
4655         undelete-thread, Threaded Mode
4656         upcase-word, Editing Input Fields
4657         write-fcc, Composing new messages
4658
4659 H
4660
4661    Hooks
4662
4663         account-hook, Managing multiple IMAP/POP/NNTP accounts (OPTIONAL), Configuration Commands
4664         append-hook, Compressed folders Support (OPTIONAL), Append a message to a compressed mailbox, Encrypted folders, Configuration Commands
4665         charset-hook, Defining aliases for character sets, Configuration Commands
4666         close-hook, Compressed folders Support (OPTIONAL), Write a compressed mailbox, Append a message to a compressed mailbox, Configuration Commands
4667         crypt-hook, Choosing the cryptographic key of the recipient, Configuration Commands
4668         default-hook, Message Matching in Hooks
4669         fcc-hook, Specify default Fcc: mailbox when composing, Specify default save filename and default Fcc: mailbox at once, Using Hooks, Message Matching in Hooks, Configuration Commands
4670         fcc-save-hook, Specify default save filename, Specify default Fcc: mailbox when composing, Specify default save filename and default Fcc: mailbox at once, Using Hooks, Configuration Commands
4671         folder-hook, Setting variables based upon mailbox, Spam detection, Using Hooks, Managing multiple IMAP/POP/NNTP accounts (OPTIONAL), Configuration Commands
4672         iconv-hook, Defining aliases for character sets
4673         mbox-hook, Using Multiple spool mailboxes, Using Hooks, Configuration Commands
4674         message-hook, Change settings before formatting a message, Using Hooks, Message Matching in Hooks, MIME Autoview, Configuration Commands
4675         open-hook, Compressed folders Support (OPTIONAL), Open a compressed mailbox for reading, Write a compressed mailbox, Append a message to a compressed mailbox, Configuration Commands
4676         pattern-hook, Specify default save filename, Specify default Fcc: mailbox when composing, Change settings based upon message recipients, Change settings before formatting a message
4677         reply-hook, Change settings based upon message recipients, Configuration Commands
4678         save-hook, Specify default save filename, Specify default save filename and default Fcc: mailbox at once, Using Hooks, Message Matching in Hooks, Mailbox Shortcuts, Configuration Commands
4679         send-hook, Change settings based upon message recipients, Using Hooks, Message Matching in Hooks, Configuration Commands
4680         send2-hook, Change settings based upon message recipients
4681
4682 P
4683
4684    Patterns
4685
4686         ~$/=$, Patterns
4687         ~*/=*, Again: Scoring, Patterns
4688         ~=/==, Patterns
4689         ~A/=A, Change settings before formatting a message, Patterns
4690         ~b/=b, Complex Patterns, Patterns
4691         ~B/=B, Patterns
4692         ~C/=C, Using Hooks, Patterns
4693         ~c/=c, Patterns
4694         ~d/=d, Patterns and Dates, Patterns
4695         ~D/=D, Patterns
4696         ~E/=E, Patterns
4697         ~e/=e, Patterns
4698         ~f/=f, Change settings before formatting a message, Message Scoring, Complex Patterns, Patterns
4699         ~F/=F, Patterns
4700         ~g/=g, Patterns
4701         ~G/=G, Patterns
4702         ~H/=H, Spam detection, Patterns
4703         ~h/=h, Patterns
4704         ~i/=i, Patterns
4705         ~k/=k, Patterns
4706         ~L/=L, Patterns
4707         ~l/=l, Patterns
4708         ~m/=m, Patterns
4709         ~M/=M, Patterns
4710         ~n/=n, Message Scoring, Patterns
4711         ~N/=N, Patterns
4712         ~O/=O, Patterns
4713         ~p/=p, Patterns
4714         ~P/=P, Patterns
4715         ~Q/=Q, Patterns
4716         ~R/=R, Patterns
4717         ~r/=r, Patterns
4718         ~s/=s, Complex Patterns, Patterns
4719         ~S/=S, Patterns
4720         ~t/=t, Message Matching in Hooks, Patterns
4721         ~T/=T, Patterns
4722         ~U/=U, Complex Patterns, Patterns
4723         ~u/=u, Patterns
4724         ~v/=v, Patterns
4725         ~V/=V, Patterns
4726         ~w/=w, Patterns
4727         ~x/=x, Complex Patterns, Patterns
4728         ~y/=y, Handling Mailing Lists, Patterns
4729         ~z/=z, Patterns