『tm-mh-e 説明書』 by. 守岡 知彦 1994年8月20日 * install ** tiny-mime の install tiny-mime.el を Emacs の変数 load-path で指定された directory に copy します。 ** tm-body の install tm-body.el, tl-list.el, tl-header.el を Emacs の変数 load-path で指 定された directory に copy します。 ** tm-misc の install tm-misc.el, tl-hook.el を Emacs の変数 load-path で指定された directory に copy します。 ** tm-mh-e の install tm-mh-e.el, tm-mh-e3.el を Emacs の変数 load-path で指定した directory に copy します。 tm-mh-e3.el を byte-compile する場合は、mh-e version 3.* を load し た状態で行なって下さい。 * 設定 mime-setup を使って下さい。 mime-setup を使わない場合は .emacs に以下のものを入れます。 [[E ---------------------------------------------------------------------- (if (< (string-to-int emacs-version) 19) (progn (require 'tl-18) (defvar buffer-undo-list nil) )) (add-hook 'mh-folder-mode-hook (function (lambda () (require 'tm-mh-e) ))) ---------------------------------------------------------------------- ]]E また、MH が MH-6.8JP2 の場合、~/.mh_profile に [[E ---------------------------------------------------------------------- scan: -form scan.mime inc: -form inc.mime repl: -form replcomps.mime showproc: mhl ---------------------------------------------------------------------- ]]E を追加してください。また、それ以外の MH の処理は Emacs の側で取り仕切 るので、MH の設定はしないようにしてください。 * 使い方 -------------------------------------------------------------------- | key | 機能 | ==================================================================== | M-t |message header を decode に関する toggle switch | -------------------------------------------------------------------- | v |message body を MIME decode して、再生する (play mode) | | e |message body を MIME decode して、file に落す (extract mode)| |C-c p|message body を MIME decode して、印刷する (print mode) | -------------------------------------------------------------------- message body の MIME decode において、実際に各動作が行なわれるかどう かは、各 Content-Type に対応する tm-body の mthod に依存します。 * metamail を使う方法 tm-mh-e は MIME body の decode に tm-body を使いますが、metamail を 使うように設定することも可能です。但し、metamail と metamail.el が必要 です。 この場合 .emacs に以下のものを入れて下さい。 [[E ---------------------------------------------------------------------- (autoload 'metamail-buffer "metamail" nil t) (setq mime/body-decoding-method (function metamail-buffer)) ---------------------------------------------------------------------- ]]E metamail を使う設定の場合、`v', `e', `C-c p' に対応する動作は metamail にかけるだけになり、同一の動作になります。また、動作は逐次的 になります。