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:
To `c', functions are assigned as follows:
The following is a summary of commands in attachments.
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.