diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-04-19 11:31:41 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-04-19 13:06:46 +0300 |
commit | 7e05a160e2e135006ce612881080d99ed34d4a77 (patch) | |
tree | b905fdb5cea2abf4fd5a125ac300e8b958e95803 /NEWS | |
parent | ff1a8a6e673923ab9407815155834971f1f2235f (diff) | |
download | mailutils-7e05a160e2e135006ce612881080d99ed34d4a77.tar.gz mailutils-7e05a160e2e135006ce612881080d99ed34d4a77.tar.bz2 |
New option --mime
* mail/mail.c (mime_option): New variable.
(main): assume --mime if either or both of --content-type and
--content-encoding are set. Set the mime variable if so.
* mail/mail.h (mailvar_is_true): New prototype.
* mail/send.c (add_attachments): Continue if the mime variable
is set.
(add_body): Rewrite, treating the text read from the stdin as
MIME part in itself.
* mailvar.c (mailvar_tab): New variable "mime"
(mailvar_is_true): New function.
* NEWS: Document --mime
* doc/texinfo/programs.texi: Rewrite the Attachments subsection.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,4 +1,4 @@ -GNU mailutils NEWS -- history of user-visible changes. 2017-04-13 +GNU mailutils NEWS -- history of user-visible changes. 2017-04-19 Copyright (C) 2002-2017 Free Software Foundation, Inc. See the end of file for copying conditions. @@ -90,6 +90,20 @@ defined. Instead, the following constants are defined in config.h: * mail: sending multipart messages +** New option --mime + +This option instructs mail to compose output messages in MIME format. +The options --content-type and --encoding turn this option on. As a +side effect, both --content-type and --encoding now affect the message +body read from the standard input as well. + +** New variable 'mime' + +The 'mime' variable, if set instructs mail to compose output messages +in MIME format. In fact, the '--mime' option is equivalent to +'-E set mime', except that it takes effect after all options are +processed. + ** New option --alternative When used with --attach or --attach-fd options, this option sets the |