The following commands all understand the numerical prefix. For instance, 3 K v means “view the third MIME part”.
The rest of these MIME commands do not use the numerical prefix in the same manner:
cidscheme, as they are generally considered to be safe, will be processed properly. The message header is added to the beginning of every HTML part unless the prefix argument is given.
Warning: Spammers use links to images (using the
http scheme) in
HTML articles to verify whether you have read the message. As
this command passes the HTML content to the browser without
eliminating these “web bugs” you should only use it for mails from
If you always want to display HTML parts in the browser, set
This command creates temporary files to pass HTML contents
including images if any to the browser, and deletes them when exiting
the group (if you want).
gnus-mime-buttonize-attachments-in-header). This command toggles the display. Note that buttons to be added to the header are only the ones that aren't inlined in the body. If you want those buttons always to be displayed, set
nil. The default is
t. To change the appearance of buttons, customize
gnus-summary-save-parts). Understands the process/prefix convention (see Process/Prefix).
This command looks in the
Content-Type header to determine the
charset. If there is no such header in the article, you can give it a
prefix, which will prompt for the charset to decode as. In regional
groups where people post using some common encoding (but do not
include MIME headers), you can set the
parameter to the required charset (see Group Parameters).
To have all Vcards be ignored, you'd say something like this:
(setq gnus-ignored-mime-types '("text/x-vcard"))
nil, Gnus won't require the ‘MIME-Version’ header before interpreting the message as a MIME message. This helps when reading messages from certain broken mail user agents. The default is
nil, Gnus will look in message bodies to see if it finds these encodings, and if so, it'll run them through the Gnus MIME machinery. The default is
t. Only single-part yEnc encoded attachments can be decoded. There's no support for encoding in Gnus.
gnus-buttonized-mime-types. The default value is
(".*/.*"). This variable is only used when
gnus-unbuttonized-mime-types. The default value is
nil. This variable is only used when
E.g., to see security buttons but no other buttons, you could set this
("multipart/signed") and leave
gnus-unbuttonized-mime-types at the default value.
You could also add
"multipart/alternative" to this list to
display radio buttons that allow you to choose one of two media types
those mails include. See also
(see Display Customization).
nil, then all MIME parts get buttons. The default value is
Here's an example function the does the latter:
(defun my-save-all-jpeg-parts (handle) (when (equal (car (mm-handle-type handle)) "image/jpeg") (with-temp-buffer (insert (mm-get-part handle)) (write-region (point-min) (point-max) (read-file-name "Save jpeg to: "))))) (setq gnus-article-mime-part-function 'my-save-all-jpeg-parts)
If displaying ‘text/html’ is discouraged, see
mm-discouraged-alternatives, images or other material inside a
"multipart/related" part might be overlooked when this variable is
nil. Display Customization.
t, it overrides
Ready-made functions include
mm-file-name-replace-whitespace. The later uses the value of
mm-file-name-replace-whitespace to replace each
whitespace character in a file name with that string; default value
"_" (a single underscore).
The standard functions
upcase-initials may be useful, too.
Everybody knows that whitespace characters in file names are evil, except those who don't know. If you receive lots of attachments from such unenlightened users, you can make live easier by adding
(setq mm-file-name-rewrite-functions '(mm-file-name-trim-whitespace mm-file-name-collapse-whitespace mm-file-name-replace-whitespace))
to your ~/.gnus.el file.