File: rmailmm.el.html
Essentially based on the design of Alexander Pohoyda's MIME extensions (mime-display.el and mime.el).
This file provides two operation modes for viewing a MIME message.
(1) When rmail-enable-mime is non-nil (now it is the default), the
function rmail-show-mime is automatically called. That function
shows a MIME message directly in RMAIL's view buffer.
(2) When rmail-enable-mime is nil, the command 'v' (or M-x
rmail-mime) shows a MIME message in a new buffer "*RMAIL*".
Both operations share the intermediate functions rmail-mime-process and rmail-mime-process-multipart as below.
rmail-show-mime
+- rmail-mime-parse
| +- rmail-mime-process <--+------------+
| | +---------+ |
| + rmail-mime-process-multipart --+
|
+ rmail-mime-insert <----------------+
+- rmail-mime-insert-text |
+- rmail-mime-insert-bulk |
+- rmail-mime-insert-multipart --+
rmail-mime
+- rmail-mime-show <----------------------------------+
+- rmail-mime-process |
+- rmail-mime-handle |
+- rmail-mime-text-handler |
+- rmail-mime-bulk-handler |
| + rmail-mime-insert-bulk
+- rmail-mime-multipart-handler |
+- rmail-mime-process-multipart --+
In addition, for the case of rmail-enable-mime being non-nil, this file provides two functions rmail-insert-mime-forwarded-message and rmail-insert-mime-resent-message for composing forwarded and resent messages respectively.
Todo:
Make rmail-mime-media-type-handlers-alist usable in the first operation mode. Handle multipart/alternative in the second operation mode. Offer the option to call external/internal viewers (doc-view, xpdf, etc).
Defined variables (13)
rmail-mime-attachment-dirs-alist | Default directories to save attachments of various types into. |
rmail-mime-coding-system | The first coding-system used for decoding a MIME entity. |
rmail-mime-mbox-buffer | Buffer containing the mbox data. |
rmail-mime-media-type-handlers-alist | Functions to handle various content types. |
rmail-mime-mode-abbrev-table | Abbrev table for ‘rmail-mime-mode’. |
rmail-mime-mode-hook | Hook run after entering ‘rmail-mime-mode’. |
rmail-mime-mode-map | Keymap for ‘rmail-mime-mode’. |
rmail-mime-mode-syntax-table | Syntax table for ‘rmail-mime-mode’. |
rmail-mime-prefer-html | If non-nil, default to showing HTML part rather than text part |
rmail-mime-render-html-function | Function to convert HTML to text. |
rmail-mime-searching | Bound to t inside ‘rmail-search-mime-message’ to suppress expensive |
rmail-mime-show-images | What to do with image attachments that Emacs is capable of displaying. |
rmail-mime-view-buffer | Buffer showing a message. |