[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


Composing multipart

OK. Let's see how to create multipart.

When you are writing a message in +draft/1 and type `C-cC-a', the following lines are inserted at the bottom of the draft.

----------------------------- attachments -----------------------------
      Multipart/Mixed                                         1/     
     1  Text/Plain(guess)                                       CoverPage*
     2                                                          .   
--------0-1-2-3-4-5-6-7-8-9--------------------------------------------

"1/" is a temporary directory to create multipart and locates "~/Mail/draft/mime/1". The part 1, "Coverpage", refers to the body. Now the entire draft looks like:

To: mew-dist
Subject: This is header
X-Mailer:Mew version 1.94 on XEmacs 20.4
----
This is body.

----------------------------- attachments -----------------------------
      Multipart/Mixed                                         1/     
     1  Text/Plain(guess)                                       CoverPage*
     2                                                          .   
--------0-1-2-3-4-5-6-7-8-9--------------------------------------------

Here we call three regions as follows:

In Draft mode, key bindings are different on each region.

To `TAB', for instance, functions are assigned as follows:

header
Completions.
body
Insert TAB.
attachments
Do nothing.

To `c', functions are assigned as follows:

header
Insert c.
body
Insert c.
attachments
Copy a file.

The following is a summary of commands in attachments.

`C-p'
Go to the previous file in the current directory.
`C-n'
Go to the next file in the current directory.
`C-f'
Go to the first subdirectory.
`C-b'
Go to the parent directory.
`c'
Copy a file (via networks) on ".". To copy a remote file, use the "/[user@]hostname:/filepath" syntax.
`l'
Link a file with a symbolic link on ".". If you want to edit the attached file, you should `c' instead of `l' so that you don't edit the original file.
`d'
Delete this file or this directory.
`m'
Create a subdirectory(i.e. multipart) on ".".
`f'
Open this file into a buffer.
`F'
Open a new file into a buffer on ".".
`y'
Link the message which is displayed in Message mode on ".".
`e'
Input external-body on ".".
`a'
Sampling voice and insert as audio file on ".".
`p'
Extract the PGP key for the inputed user on ".".
`D'
Input a description(Content-Description:).
`T'
Change the data type(Content-Type:).
`C'
Specify charset for a Text/* object.
`P'
Specify a file name(Content-Disposition:) to save this part in the receiver side. If you type just `RET' without any string, its value is cleared. Then the file name in the sender side is displayed with `*'.

In attachments, data types are guessed by suffix. The current supported suffixes are as follows:

.txt       Text/Plain
.html      Text/Html
.rfc822    Message/Rfc822
[0-9]+     Message/Rfc822
.ext       Message/External-body
.ps        Application/PostScript
.tar       Application/Octet-stream ;; dummy
.gif       Image/Gif
.jpg       Image/Jpeg
.jpeg      Image/Jpeg
.png       Image/Png
.xwd       Image/X-xwd
.xbm       Image/X-xbm
.bmp       Image/X-bmp
.au        Audio/Basic
.mpg       Video/Mpeg
.mpeg      Video/Mpeg
.pgp       Application/Octet-Stream
.pka       Application/Pgp-keys
.*         Text/Plain

For instance, if you copy files with `c', the part becomes as follows:(Please choose an appropriate suffix for the file name so that Mew can guesses its data type.)

----------------------------- attachments -----------------------------
      Multipart/Mixed                                         1/   
     1  Text/Plain(guess)                                       CoverPage*
B    2  Image/Gif                    MagicPoint logo            mgp.gif
Q    3  Application/Postscript       Presentation Material      ohp.ps
     4                                                          .
--------0-1-2-3-4-5-6-7-8-9--------------------------------------------

Each line of multipart consists of

Please refer to See section Mark based composer to know how to change mark (Content-Transfer-Encoding:). You can change data types(Content-Type:) by `T' at any time. You can also insert descriptions(Content-Description:) by `D'. This description column is overwritten when encrypted as described in See section Mark based composer.

Strictly speaking, the fifth column is the copied file name or the value of Content-Disposition:, namely the file name to which the receiver saves the part. If Content-Disposition: exists, Mew displays it. Otherwise, Mew displays the copied file name with `*' appended. When you copy a file, the file name is specified as Content-Disposition:. But this is not true for both Message/* and Multipart/*. To specify Content-Disposition:, use `P'.

Files mean singlepart while directories are regarding with multipart. So, you can create very complex multipart MIME as if you created file system. Very easy, isn't it?

The default data type for directories is Multipart/Mixed. Of course, you can change it by `T'.

After creating multipart, type `C-cC-m'. Amazing! The created file system is transformed to multipart MIME. Of course, multipart of multipart is supported. Just type `C-cC-c' to send it.

If you don't know MIME syntax, please don't modify after `C-cC-m'. If you really want to modify it, please note that the region before the first boundary and the region after the last boundary are ignored.

After transforming multipart, if you want it back, use `C-cC-u'. (Please note that it's not `C-xu' nor `C-_'.

Let's consider Message/External-body by `e'. If access-type is "ftp" or "anon-ftp", you can enjoy completion for a remote file name thanks to ange-ftp. If access-type is "local-file", of course, file completion is available.

If you want to quit creating multipart and to get back to singlepart, type `d' in the top level multipart.


[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]