diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-11 12:18:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-11 12:18:18 +0300 |
commit | e8c4245e1a4c8e2cb130cfcefa4474909bcb7906 (patch) | |
tree | 67ded4d51d6b541cf999da0ee4908fdfdc62f067 | |
parent | 175307d1101993b09d7f0d683404709918683afa (diff) | |
download | mailutils-e8c4245e1a4c8e2cb130cfcefa4474909bcb7906.tar.gz mailutils-e8c4245e1a4c8e2cb130cfcefa4474909bcb7906.tar.bz2 |
Document how to set body content-type and encoding in multipart messages
This closes https://savannah.gnu.org/support/?109866
-rw-r--r-- | doc/texinfo/programs/mail.texi | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/doc/texinfo/programs/mail.texi b/doc/texinfo/programs/mail.texi index 999dc50cb..b4c68a100 100644 --- a/doc/texinfo/programs/mail.texi +++ b/doc/texinfo/programs/mail.texi @@ -1445,3 +1445,3 @@ the old contents of your message. Multipart messages (or MIME, for short) can be used to send text in -character set other than ASCII, attach non-text files, send multiple +character sets other than ASCII, attach non-text files, send multiple parts in alternative formats, etc. @@ -1518,3 +1518,18 @@ $ mail --content-type=text/html --attach=in.html \ -Similarly, the encoding to use is set up by the @option{--encoding} +To change the content type of the message body when sending a message +with attachments, use the trailing @option{--content-type} option, +i.e. the option not followed by another @option{--attach} option: + +@example +$ mail --content-type=text/html --attach=in.html \ + --content-type=application/x-tar --attach=archive.tar \ + --content-type=text/plain +@end example + +@nointent +This example adds two attachments with different content types and +switched back to the @samp{text/plain} content type for the message +body. + +The encoding to use is set up by the @option{--encoding} option. As well as @option{--content-type}, this option affects all @@ -1532,2 +1547,5 @@ $ mail --content-type=text/html --encoding=quoted-printable \ +A trailing @option{--encoding} option sets the encoding of the message +body. + Each attachment can also be assigned a @dfn{description} and a |