| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Now let's see how to create multipart messages.
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 provides a location for "~/Mail/attach/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 6.1 on Emacs 22.1
----
This is the body.
----------------------------- attachments -----------------------------
Multipart/Mixed 1/
1 Text/Plain(guess) CoverPage*
2 .
--------0-1-2-3-4-5-6-7-8-9--------------------------------------------
|
Here we designate three regions as follows:
In Draft mode, the key bindings differ according to the region.
To ‘TAB’, for instance, the following functions are assigned:
Completions.
Insert TAB.
Do nothing.
To ‘c’, functions are assigned as follows:
Insert c.
Insert c.
Copy a file.
The following is a summary of commands in the attachments region.
Go to the previous file in the current directory.
Go to the next file in the current directory.
Go to the first subdirectory.
Go to the parent directory.
Copy a file (possibly via networks) on ".". To copy a remote file, use the "/[user@]hostname:/filepath" syntax.
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 do not edit the original file.
Delete this file or this directory.
Create a subdirectory (i.e. multipart) on ".".
Open this file into a buffer.
Open a new file into a buffer on ".".
Link the message which is displayed in Message mode on ".".
Input external-body on ".".
Sampling voice and insert as audio file on ".".
Extract the PGP key for the specified user on ".".
Input a description (Content-Description:).
Change the data type (Content-Type:).
Toggle text and binary for the data type.
Specify input coding-system for a Text/* object.
Specify output coding-system for a Text/* object.
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 currently supported suffixes are as follows:
.txt Text/Plain
.html Text/Html
.xml Text/Xml
.rtf Text/Enriched
.css Text/Css
.sgml Text/Sgml
[0-9]+ Message/Rfc822
.ps Application/Postscript
.pdf Application/Pdf
.doc Application/Msword
.xls Application/Vnd.Ms-Execl
.ppt Application/Vnd.Ms-Powerpoint
.vsd Application/Vnd.Visio
.dat Application/Ms-Tnef
.tar|.tar.|.gz|.Z|.taz|.tgz|.bz2?|.lzh|.zip|.bin|.pgp|.gpg|.exe|.dll
Application/Octet-Stream
.gif Image/Gif
.tiff Image/Tiff
.jpe?g Image/Jpeg
.png Image/Png
.xwd Image/X-Xwd
.xbm Image/X-Xbm
.xpm Image/X-Xpm
.bmp Image/X-Bmp
.pcx Image/X-Pcx
.tga Image/X-Tga
.au Audio/Basic
.wav Audio/X-Wav
.aif?f Auido/X-Aiff
.midi? Auido/X-Midi
.mpga|.mp[23] Audio/X-Mpeg
.mpe?g Video/Mpeg
.mov Video/Quicktime
.avi Video/X-Msvideo
|
Please choose an appropriate suffix for the file name so that Mew can guess its data type. If there is no matched suffix, the data type specified by ‘mew-content-type’ is chosen. Its default value is Text/Plain.
For instance, if you copy files with ‘c’, the part becomes as follows:
----------------------------- 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 a multipart message consists of
You can change data types (Content-Type:) by pressing ‘T’ at any time. If the data type is either text (Text/Plain) or binary (Application/Octet-Stream), you can toggle between them using ‘t’.
Please refer to See section Mark based composer for explanation on changing the mark (Content-Transfer-Encoding:). 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: for Message/*, use ‘P’.
Files are treated as singlepart while directories are treated as being multipart. Therefore you can create very complex multipart MIME messages in the same way as you would create a file system. Very easy, isn't it?
The default data type for directories is Multipart/Mixed. Of course, you can change it by pressing ‘T’.
Once you are ready to send a multipart message, type ‘C-cC-m’ or ‘C-c C-c’ to send it as described the previous subsection.
Next is the explanation of the creation of a Message/External-body by pressing ‘e’. If the access-type is "ftp" or "anon-ftp", you can take advantage of remote filename completion due to the existence of the native Emacs mode of ange-ftp. Of course file completion is available for the access-type of "local-file".
If you want to abort creating multipart and to get back to singlepart, type ‘d’ in the top level of the multipart message.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by U-X61T\saito on June, 6 2008 using texi2html 1.78.