tm-edit
*******

tm-edit is a general MIME viewer for GNU Emacs.

tm-edit is based on mime.el by UMEDA Masanobu <umerin@mse.kyutech.ac.jp>, who is famous as the author of GNUS. tm-edit expands following points from mime.el:

  * based on RFC 1521/1522

  * Content-Disposition field (RFC 1806) supports

  * multi-part in multi-part

  * PGP

  * strength automatic specification for parameter of file type

mime/editor-mode
================

mime/editor-mode is a minor mode to compose MIME message. In this mode, tag represents various kinds of data, you can edit multi-part message.

There are 2 kinds of tags:

  * single-part tag

  * multi-part tag

single-part tag represents single part, this form is following:

             --[[TYPE/SUBTYPE;PARAMETERS][ENCODING]
             OPTIONAL-FIELDS]

TYPE/SUBTYPE and PARAMETERS indicates type/subtype and parameters of Content-Type field. TYPE/SUBTYPE is required, PARAMETERS is optional.

ENCODING indicates Content-Transfer-Encoding field. It is optional too.

OPTIONAL-FIELDS is to represent another fields except Content-Type field and Content-Transfer-Encoding field.

multi-part tags represent multi part. They consist of a pair of multi-part beginning tag and multi-part ending tag.

multi-part beginning tag's form is following:

             --<<TYPE>>-{

multi-part ending tag's form is following:

             --}-<<TYPE>>

A region from multi-part beginning tag to multi-part ending tag is called as enclosure.

single-part operations
======================

Operations to make single-part are following:

C-c C-x C-t
     Insert single-part tag indicates text part.

C-c C-x C-i
     Insert file as a MIME attachment.

C-c C-x C-e
     Insert external part.

C-c C-x C-v
     Record audio input until C-g is pressed, and insert as a audio part. (It requires /dev/audio in default.)

C-c C-x C-y
     Insert current (mail or news) message. (It is MUA depended.)

C-c C-x C-m
     Insert mail message. (It is MUA depended.)

C-c C-x C-w, C-c C-x C-s
     Insert signature.

C-c C-x C-k
     Insert PGP public key. (It requires Mailcrypt package.)

C-c C-x t
     Insert any  single-part tag.

enclosure operations
====================

Operations to make enclosure are following:

C-c C-x a
     Enclose specified region as multipart/alternative.

C-c C-x p
     Enclose specified region as multipart/parallel.

C-c C-x m
     Enclose specified region as multipart/mixed.

C-c C-x d
     Enclose specified region as multipart/digest.

C-c C-x s
     Digital-sign to specified region. (*1)

C-c C-x e
     Encrypt to specified region. (*1)

[Notice]

 1. It requires Mailcrypt package and pgp package. In addition, please set symbol pgp-elkins or pgp-kazu to variable mime-editor/signing-type and mime-editor/encrypting-type.

     pgp-elkins indicates draft-elkins-pem-pgp-02.txt, pgp-kazu indicates draft-kazu-pgp-mime-00.txt.

Another operation in mime/editor-mode.
======================================

There are another operations in mime/editor-mode.

C-c C-c
     Send current editing message.

C-c C-x C-p
     Preview current editing message.

C-c C-x C-z
     Exit mime/editor-mode. (M-x mime/edit-again is available to reedit.)

C-c C-x ?
     Display help message.

M-x mime-editor/set-split
     Set current editing message to enable automatic splitting or not. Form of automatic split messages is message/partial.

M-x mime-editor/set-sign
     Set current editing message to digital-sign or not. (*1)

M-x mime-editor/set-encrypt
     Set current editing message to encrypt or not. (*1)

[Notice]

 1. It requires Mailcrypt package and pgp package. In addition, please set symbol pgp-elkins or pgp-kazu to variable mime-editor/signing-type and mime-editor/encrypting-type.

     pgp-elkins indicates draft-elkins-pem-pgp-02.txt, pgp-kazu indicates draft-kazu-pgp-mime-00.txt.