From 277e5c46345857e1f2a22e59eb67a20342737cd6 Mon Sep 17 00:00:00 2001 From: pdmef Date: Sat, 3 Sep 2005 23:21:50 +0000 Subject: [PATCH] Rocco Rutte: - rebuilt manual.txt git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@479 e385b8ad-14ed-0310-8656-cc95a2468c6d --- VERSION.svn | 2 +- doc/manual.txt | 153 ++++++------------------------------------------- 2 files changed, 18 insertions(+), 137 deletions(-) diff --git a/VERSION.svn b/VERSION.svn index 68cb334..bf11029 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -478 +479 diff --git a/doc/manual.txt b/doc/manual.txt index 61cb0fa..57f6f01 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -1262,7 +1262,6 @@ Chapter 2. Getting Started To: - 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, @@ -1277,7 +1276,6 @@ Chapter 2. Getting Started set editor = "nano" set editor = "emacs" - 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 @@ -1312,7 +1310,6 @@ Chapter 2. Getting Started set edit_headers - Once you have finished editing the body of your mail message, you are returned to the compose menu. The following options are available: @@ -1387,7 +1384,6 @@ Chapter 2. Getting Started > production server that we want to set up before our customer's > project will go live. - 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 @@ -1398,12 +1394,10 @@ Chapter 2. Getting Started set attribution = "On %d, %n wrote:" - It can also be set to something more compact, e.g. set attribution = "attribution="* %n <%a> [%(%y-%m-%d %H:%M)]:" - The example above results in the following attribution: * Michael Svensson [05-03-06 17:02]: @@ -1412,7 +1406,6 @@ Chapter 2. Getting Started > production server that we want to set up before our customer's > project will go live. - 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 @@ -1447,7 +1440,6 @@ Chapter 2. Getting Started lists linuxevent@luga\.at vuln-dev@ mutt-ng-users@ - 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. @@ -1591,7 +1583,6 @@ Chapter 2. Getting Started ----- End forwarded message ----- - 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. @@ -1750,14 +1741,12 @@ Chapter 3. Configuration set realname='Mutt-ng user' ; ignore x- - 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, my_hdr X-Disclaimer: Why are you listening to me? # This is a comment - 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 @@ -1774,7 +1763,6 @@ Chapter 3. Configuration set realname="Michael \"MuttDude\" Elkins" - ``\\'' means to insert a literal ``\'' into the line. ``\n'' and ``\r'' have their usual C meanings of linefeed and carriage-return, respectively. @@ -1789,7 +1777,6 @@ Chapter 3. Configuration # folder-hook . \ set realname="Michael \"MuttDude\" Elkins" - 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 @@ -1805,7 +1792,6 @@ Chapter 3. Configuration line4 line5 - 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. @@ -1826,7 +1812,6 @@ Chapter 3. Configuration my_hdr X-Operating-System: `uname -a` - 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. @@ -1839,7 +1824,6 @@ Chapter 3. Configuration set record=+sent_on_$HOSTNAME - sets the record variable to the string +sent_on_ and appends the value of the evironment variable $HOSTNAME. @@ -1853,7 +1837,6 @@ Chapter 3. Configuration set imap_home_namespace = $folder - would set the value of imap-home-namespace to the value to which folder is currently set to. @@ -1877,7 +1860,6 @@ Chapter 3. Configuration macro generic "!less -r /path/to/manual" "Show manual" macro pager "!less -r /path/to/manual" "Show manual" - for generic, pager and index .The alternative is to define a custom variable like so: @@ -1886,12 +1868,10 @@ Chapter 3. Configuration macro pager "$user_manualcmd" "Show manual" macro index "$user_manualcmd" "Show manual" - to re-use the command sequence as in: macro index "$user_manualcmd | grep '\^[ ]\\+~. '" "Show Patterns" - 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 @@ -1907,23 +1887,19 @@ Chapter 3. Configuration set user_foo = 42 set user_foo = 666 - the variable $user_foo has a current value of 666 and an initial of 42. The query set ?user_foo - will show 666. After doing the reset via reset user_foo - a following query will give 42 as the result. After unsetting it via unset user_foo - any query or operation (except the noted expansion within other statements) will lead to an error message. @@ -1941,19 +1917,16 @@ Chapter 3. Configuration muttng -Q muttng_docdir - 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: set user_manualcmd = '!less -r /path/to_manual' - to: set user_manualcmd = "!less -r $muttng_docdir/manual.txt" - which works everywhere if a manual is installed. Please note that by the type of quoting, muttng determines when to expand @@ -1965,19 +1938,16 @@ Chapter 3. Configuration folder-hook . "set user_current_folder = $muttng_folder_name" - will be already be translated to the following when reading the startup files: folder-hook . "set user_current_folder = some_folder" - with some_folder being the name of the first folder muttng opens. On the contrary, folder-hook . 'set user_current_folder = $muttng_folder_name' - 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. @@ -1986,7 +1956,6 @@ Chapter 3. Configuration folder-hook . 'source ~/.mutt/score-$muttng_folder_name' - which can be used to source files containing score commands depending on the folder the user enters. @@ -2005,7 +1974,6 @@ Chapter 3. Configuration set user_magic_number = 42 set folder = $user_magic_number - 4. Defining/Using aliases Usage: alias key address [ , address, ... ] @@ -2024,7 +1992,6 @@ Chapter 3. Configuration alias muttdude me@cs.hmc.edu (Michael Elkins) alias theguys manny, moe, jack - 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 @@ -2042,7 +2009,6 @@ Chapter 3. Configuration source ~/.mail_aliases set alias_file=~/.mail_aliases - 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 @@ -2225,14 +2191,12 @@ Chapter 3. Configuration folder-hook mutt set sort=threads - However, the sorting method is not restored to its previous value when reading a different mailbox. To specify a default command, use the pattern ``.'': folder-hook . set sort=date-sent - 8. Keyboard macros Usage: macro menu key sequence [ description ] @@ -2351,7 +2315,6 @@ Chapter 3. Configuration set COLORFGBG="green;black" export COLORFGBG - Note: The S-Lang library requires you to use the lightgray and brown keywords instead of white and yellow when setting this variable. @@ -2412,7 +2375,6 @@ Chapter 3. Configuration unignore organization organisation x-mailer: x-newsreader: x-mailing-list: unignore posted-to: - 11. Alternative addresses Usage: [un]alternates regexp [ regexp ... ] @@ -2456,7 +2418,7 @@ Chapter 3. Configuration format that can also be displayed nicely on old fixed-size terminals. For introductory information on format=flowed messages, see - . + . 12.2. Receiving: Display Setup @@ -2467,7 +2429,6 @@ Chapter 3. Configuration set wrapmargin = 10 - The code above makes the line break 10 columns before the right side of the terminal. @@ -2476,7 +2437,6 @@ Chapter 3. Configuration set max_line_length = 120 - The example above will give you lines not longer than 120 characters. When you view at format=flowed messages, you will often see the quoting @@ -2487,14 +2447,12 @@ Chapter 3. Configuration >production server that we want to set up before our customer's >project will go live. - 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: set stuff_quoted - This will lead to a nicer result that is easier to read: > Bill, can you please send last month's progress report to Mr. @@ -2502,7 +2460,6 @@ Chapter 3. Configuration > production server that we want to set up before our customer's > project will go live. - 12.3. Sending If you want mutt-ng to send emails with format=flowed set, you need to @@ -2510,7 +2467,6 @@ Chapter 3. Configuration set text_flowed - Additionally, you have to use an editor which supports writing format=flowed-conforming emails. For vim, this is done by adding w to the formatoptions (see :h formatoptions and :h fo-table) when writing emails. @@ -2642,7 +2598,6 @@ Chapter 3. Configuration my_hdr Organization: A Really Big Company, Anytown, USA - in your .muttrc. Note: space characters are not allowed between the keyword and the colon @@ -2661,7 +2616,6 @@ Chapter 3. Configuration unmy_hdr to cc - 17. Defining the order of headers when viewing messages Usage: hdr_order header1 header2 header3 @@ -2675,7 +2629,6 @@ Chapter 3. Configuration hdr_order From Date: From: To: Cc: Subject: - 18. Specify default save filename Usage: save-hook [!]pattern filename @@ -2692,7 +2645,6 @@ Chapter 3. Configuration save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins save-hook aol\\.com$ +spam - Also see the fcc-save-hook command. 19. Specify default Fcc: mailbox when composing @@ -2774,7 +2726,6 @@ Chapter 3. Configuration message-hook ~A 'set pager=builtin' message-hook '~f freshmeat-news' 'set pager="less \"+/^ subject:.*\""' - 23. Choosing the cryptographic key of the recipient Usage: crypt-hook pattern keyid @@ -2826,13 +2777,11 @@ Chapter 3. Configuration score "~f nion@muttng\.org" 50 score "~f @sco\.com" -100 - 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: score "~f santaclaus@northpole\.int" =666 - What is important to note is that negative score values will be rounded up to 0. @@ -2861,7 +2810,6 @@ Chapter 3. Configuration color index black yellow "~n 10-" color index red yellow "~n 100-" - 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 @@ -2907,7 +2855,6 @@ Chapter 3. Configuration spam "X-PerlMX-Spam: .*Probability=([0-9]+)%" "%1/PM" set spam_separator=", " - 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, @@ -2959,7 +2906,6 @@ Chapter 3. Configuration spam "^From: .*MAILER-DAEMON" "999" - 28. Setting variables Usage: set [no|inv]variable [=value] [ variable ... ] Usage: toggle @@ -3002,7 +2948,6 @@ Chapter 3. Configuration set ?allow_8bit - The question mark is actually only required for boolean and quadoption variables. @@ -3054,14 +2999,12 @@ Chapter 3. Configuration set config_charset = "..." - and replacing the dots with the actual character set. To avoid problems while maintaining the setup, vim user's may want to use modelines as show in: # vim:fileencoding=...: - while, again, replacing the dots with the appropriate name. This tells vim as which character set to read and save the file. @@ -3085,7 +3028,6 @@ Chapter 3. Configuration ifdef ifndef - ...whereby can be one of: o a function name @@ -3109,7 +3051,6 @@ Chapter 3. Configuration ifdef feature_pop 'source ~/.mutt-ng/setup-pop' ifdef feature_nntp 'source ~/.mutt-ng/setup-nntp' - ...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. @@ -3120,13 +3061,11 @@ Chapter 3. Configuration ifdef imap_mail_check 'set imap_mail_check = 300' - Provided for completeness is the test for menu names. To set pager-index-lines only if the pager menu is available, use: ifdef pager 'set pager_index_lines = 10' - 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: @@ -3134,13 +3073,11 @@ Chapter 3. Configuration ifdef feature_ncurses 'source ~/.mutt-ng/setup-ncurses' ifndef feature_ncurses 'source ~/.mutt-ng/setup-slang' - ...and... ifdef feature_slang 'source ~/.mutt-ng/setup-slang' ifndef feature_slang 'source ~/.mutt-ng/setup-ncurses' - 32. Obsolete Variables In the process of ensuring and creating more consistency, many variables @@ -3435,9 +3372,8 @@ Chapter 4. Advanced Usage grouped, ORed, and negated. For a complete listing of these patterns, please refer to table patterns in the Reference chapter. - It must be noted that in this table, EXPR, USER , ID and SUBJECT are - regular expressions. For ranges, the forms <[MAX], >>[MIN], [MIN]- and - -[MAX] are also possible. + 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. 2.1. Complex Patterns @@ -3447,7 +3383,6 @@ Chapter 4. Advanced Usage ~s 'SPAM' ~U - The pattern above matches all messages that contain ``SPAM'' in the subject and are unread. @@ -3458,7 +3393,6 @@ Chapter 4. Advanced Usage (~b mutt-ng|~s Mutt-ng) !~x '@synflood\.at' - 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 @@ -3487,7 +3421,6 @@ Chapter 4. Advanced Usage ~d 18/10/2004-2w ~d 28/12/2004*1d - 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 @@ -3502,7 +3435,6 @@ Chapter 4. Advanced Usage ~d <3d # messages newer than 3 days ~d =1m # messages that are exactly one month old - 3. Format Strings 3.1. Introduction @@ -3530,14 +3462,12 @@ Chapter 4. Advanced Usage set status_format = "%v on %h: ..." - 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: Mutt-ng 1.5.9i on mailhost: ... - In the index, there're more useful information one could want to see: o which mailbox is open @@ -3550,12 +3480,10 @@ Chapter 4. Advanced Usage set status_format = "%v on %h: %B: ... - When the currently opened mailbox is Inbox, this will be expanded to: Mutt-ng 1.5.9i on mailhost: Inbox: ... - 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 @@ -3568,7 +3496,6 @@ Chapter 4. Advanced Usage set status_format = "%v on %h: %B %?n?%n new? ... - 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 @@ -3576,7 +3503,6 @@ Chapter 4. Advanced Usage %??? - which tells mutt-ng to only look at if the value of the %?&? - Using this we can make mutt-ng to do the following: o make it print ``n new messages'' whereby n is the count but only if @@ -3601,13 +3526,11 @@ Chapter 4. Advanced Usage set status_format = "%v on %h: %B: %?n?%n new messages&no new messages? ... - This doubles the use of the ``new messages'' string because it'll get always printed. Thus, it can be shortened to: set status_format = "%v on %h: %B: %?n?%n&no? new messages ... - 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. @@ -3634,7 +3557,6 @@ Chapter 4. Advanced Usage set status_format = "%v on %h: %B: %?n?%n&no? new messages %|-" - %>X Since the previous expando stops at the end of line, there must be @@ -3647,7 +3569,6 @@ Chapter 4. Advanced Usage set status_format = "%B: %?n?%n&no? new messages %> (%v on %h)" - 4. Using Tags Sometimes it is desirable to perform an operation on a group of messages @@ -3706,7 +3627,6 @@ Chapter 4. Advanced Usage send-hook . 'unmy_hdr From:' send-hook ~C'^b@b\.b$' my_hdr from: c@c.c - 5.1. Message Matching in Hooks Hooks that act upon messages (send-hook, save-hook, fcc-hook,message-hook @@ -3726,7 +3646,6 @@ Chapter 4. Advanced Usage send-hook '~t ^me@cs\.hmc\.edu$' 'my_hdr From: Mutt-ng User ' - which would execute the given command when sending mail to me@cs.hmc.edu. However, it is not required that you write the pattern to match using the @@ -3748,7 +3667,6 @@ Chapter 4. Advanced Usage set sidebar_visible="yes" set sidebar_width=25 - If you want to specify the mailboxes you can do so with: set mbox='=INBOX' @@ -3757,13 +3675,11 @@ Chapter 4. Advanced Usage MBOX2 \ ... - You can also specify the colors for mailboxes with new mails by using: color sidebar_new red black color sidebar white black - The available functions are: Table 4.1. Default Sidebar Function Bindings @@ -3796,7 +3712,6 @@ Chapter 4. Advanced Usage macro index B ':toggle sidebar_visible^M' macro pager B ':toggle sidebar_visible^M' - 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'. @@ -3809,7 +3724,6 @@ Chapter 4. Advanced Usage set query_command = "mutt_ldap_query.pl '%s'" - 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 @@ -3823,7 +3737,6 @@ Chapter 4. Advanced Usage blong@fiction.net Brandon Long mutt and more roessler@guug.de Thomas Roessler mutt pgp - 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 @@ -3854,7 +3767,6 @@ Chapter 4. Advanced Usage From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST - to denote the start of a new message (this is often referred to as the ``From_'' line). @@ -4187,13 +4099,11 @@ Chapter 4. Advanced Usage score ~* =42 - 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 score !~* =42 - on the contrary applies a score of 42 to all messages not matching those criteria which are very strict: @@ -4250,7 +4160,6 @@ Chapter 4. Advanced Usage account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo' account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"' - 18. Start a WWW Browser on URLs (EXTERNAL) If a message contains URLs (unified resource locator = address in the WWW @@ -4262,7 +4171,6 @@ Chapter 4. Advanced Usage macro index \cb |urlview\n macro pager \cb |urlview\n - 19. Compressed folders Support (OPTIONAL) If Mutt-ng was compiled with compressed folders support (by running the @@ -4288,7 +4196,6 @@ Chapter 4. Advanced Usage close-hook \\.gz$ "gzip -c %t > %f" append-hook \\.gz$ "gzip -c %t >> %f" - 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 @@ -4328,7 +4235,6 @@ Chapter 4. Advanced Usage open-hook \\.gz$ "gzip -cd %f > %t" - If the command is empty, this operation is disabled for this file type. 19.2. Write a compressed mailbox @@ -4350,7 +4256,6 @@ Chapter 4. Advanced Usage close-hook \\.gz$ "gzip -c %t > %f" - If the command is empty, this operation is disabled for this file type, and the file can only be open in the readonly mode. @@ -4374,7 +4279,6 @@ Chapter 4. Advanced Usage append-hook \\.gz$ "gzip -c %t >> %f" - 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 @@ -4396,7 +4300,6 @@ Chapter 4. Advanced Usage open-hook \\.pgp$ "pgp -f < %f > %t" close-hook \\.pgp$ "pgp -fe YourPgpUserIdOrKeyId < %t > %f" - Please note, that PGP does not support appending to an encrypted folder, so there is no append-hook defined. @@ -4463,7 +4366,6 @@ Chapter 5. Mutt-ng's MIME Support [-- Attachment #1: Description --] [-- Type: text/plain, Encoding: 7bit, Size: 10000 --] - Where the Description is the description or filename given for the attachment, and the Encoding is one of 7bit/8bit/quoted-printable/base64/binary. @@ -4472,7 +4374,6 @@ Chapter 5. Mutt-ng's MIME Support [-- image/gif is unsupported (use 'v' to view this part) --] - 1.2. The Attachment Menu The default binding for view-attachments is `v', which displays the @@ -4506,7 +4407,6 @@ Chapter 5. Mutt-ng's MIME Support 1 [text/plain, 7bit, 1K] /tmp/mutt-euler-8082-0 2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz - 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 @@ -4532,7 +4432,6 @@ Chapter 5. Mutt-ng's MIME Support application/pgp pgp audio/x-aiff aif aifc aiff - A sample mime.types file comes with the Mutt-ng distribution, and should contain most of the MIME types you are likely to use. @@ -4568,7 +4467,6 @@ Chapter 5. Mutt-ng's MIME Support ${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap - where $HOME is your home directory. In particular, the metamail distribution will install a mailcap file, @@ -4609,18 +4507,15 @@ Chapter 5. Mutt-ng's MIME Support text/plain; more - Or, you could send the message as a file: text/plain; more %s - Perhaps you would like to use lynx to interactively view a text/html message: text/html; lynx %s - 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 @@ -4632,14 +4527,12 @@ Chapter 5. Mutt-ng's MIME Support text/html; lynx -dump %s | more - 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: text/html; lynx %s text/*; more - This is the simplest form of a mailcap file. 3.2. Secure use of mailcap @@ -4669,7 +4562,6 @@ Chapter 5. Mutt-ng's MIME Support text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \ && test "`echo $charset | tr '[A-Z]' '[a-z]'`" != iso-8859-1 - 3.3. Advanced mailcap Usage 3.3.1. Optional Fields @@ -4690,7 +4582,6 @@ Chapter 5. Mutt-ng's MIME Support text/html; lynx -dump %s ; copiousoutput - 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. @@ -4743,7 +4634,6 @@ Chapter 5. Mutt-ng's MIME Support text/html; lynx %s; nametemplate=%s.html - test= This field specifies a command to run to test whether this mailcap @@ -4757,7 +4647,6 @@ Chapter 5. Mutt-ng's MIME Support text/html; netscape -remote 'openURL(%s)' ; test=RunningX text/html; lynx %s - 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 @@ -4776,7 +4665,6 @@ Chapter 5. Mutt-ng's MIME Support image/gif; ; print= anytopnm %s | pnmtops | lpr; \ nametemplate=%s.gif - Mutt-ng will skip the image/* entry and use the image/gif entry with the print command. @@ -4790,7 +4678,6 @@ Chapter 5. Mutt-ng's MIME Support text/html; lynx %s; nametemplate=%s.html text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput - 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 @@ -4827,7 +4714,6 @@ Chapter 5. Mutt-ng's MIME Support Content-Type: text/plain; charset=iso-8859-1 - 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. @@ -4852,7 +4738,6 @@ Chapter 5. Mutt-ng's MIME Support # I'm always running netscape (if my computer had more memory, maybe) text/html; netscape -remote 'openURL(%s)' - This mailcap file shows quite a number of examples: # Use xanim to view all videos Xanim produces a header on startup, @@ -4889,7 +4774,6 @@ Chapter 5. Mutt-ng's MIME Support # Send excel spreadsheets to my NT box application/ms-excel; open.pl %s - 4. MIME Autoview In addition to explicitly telling Mutt-ng to view an attachment with @@ -4909,7 +4793,6 @@ Chapter 5. Mutt-ng's MIME Support auto_view text/html application/x-gunzip application/postscript image/gif application/x-tar-gz - Mutt-ng could use the following mailcap entries to automatically view attachments of these types. @@ -4919,7 +4802,6 @@ Chapter 5. Mutt-ng's MIME Support application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput application/postscript; ps2ascii %s; copiousoutput - ``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. @@ -4936,7 +4818,6 @@ Chapter 5. Mutt-ng's MIME Support alternative_order text/enriched text/plain text application/postscript image/* - 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. @@ -4958,7 +4839,6 @@ Chapter 5. Mutt-ng's MIME Support mime_lookup application/octet-stream application/X-Lotus-Manuscript - 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. @@ -5044,7 +4924,6 @@ Chapter 6. Security Considerations mailto:joe@host?Attach=~/.gnupg/secring.gpg - will send out the user's private gnupg keyring to joe@host if the user doesn't follow the information on screen carefully enough. @@ -5228,7 +5107,7 @@ Chapter 7. Reference | ~B | EXPR | messages which contain EXPR in the | | | | whole message | |------------------+-------------+---------------------------------------| - | ~c | USER | messages carbon-copied to USER | + | ~c | EXPR | messages carbon-copied to EXPR | |------------------+-------------+---------------------------------------| | ~C | EXPR | message is either to: or cc: EXPR | |------------------+-------------+---------------------------------------| @@ -5244,7 +5123,7 @@ Chapter 7. Reference |------------------+-------------+---------------------------------------| | ~F | | flagged messages | |------------------+-------------+---------------------------------------| - | ~f | USER | messages originating from USER | + | ~f | EXPR | messages originating from EXPR | |------------------+-------------+---------------------------------------| | ~g | | cryptographically signed messages | |------------------+-------------+---------------------------------------| @@ -5258,7 +5137,7 @@ Chapter 7. Reference |------------------+-------------+---------------------------------------| | ~k | | message contains PGP key material | |------------------+-------------+---------------------------------------| - | ~i | ID | message which match ID in the | + | ~i | EXPR | message which match ID in the | | | | ``Message-ID'' field | |------------------+-------------+---------------------------------------| | ~L | EXPR | message is either originated or | @@ -5293,15 +5172,18 @@ Chapter 7. Reference |------------------+-------------+---------------------------------------| | ~S | | superseded messages | |------------------+-------------+---------------------------------------| - | ~s | SUBJECT | messages having SUBJECT in the | + | ~s | EXPR | messages having EXPR in the | | | | ``Subject'' field. | |------------------+-------------+---------------------------------------| | ~T | | tagged messages | |------------------+-------------+---------------------------------------| - | ~t | USER | messages addressed to USER | + | ~t | EXPR | messages addressed to EXPR | |------------------+-------------+---------------------------------------| | ~U | | unread messages | |------------------+-------------+---------------------------------------| + | ~u | | message is addressed to a subscribed | + | | | mailing list | + |------------------+-------------+---------------------------------------| | ~v | | message is part of a collapsed | | | | thread. | |------------------+-------------+---------------------------------------| @@ -5332,12 +5214,11 @@ Chapter 7. Reference | | | against alternates or any alias) | +------------------------------------------------------------------------+ - Where EXPR, USER, ID, and SUBJECT 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 (\\). + 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 (\\). *) The forms <[MAX], >[MIN] , [MIN]- and -[MAX] are allowed, too. @@ -7721,7 +7602,7 @@ Chapter 7. Reference Type: system property - Value: 475 + Value: 477 This is a read-only system property and specifies muttng's subversion revision string. -- 2.20.1