summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-03-13 22:42:12 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-03-13 22:42:12 +0200
commit43214185092e714e0c233bf196f571bba5c17be0 (patch)
tree4a1e61dd9d36d2c9108b150ad1239f1283421d23
parentddf85fb13b49c218a8c33d6eda52d23a888aba60 (diff)
downloadmailutils-43214185092e714e0c233bf196f571bba5c17be0.tar.gz
mailutils-43214185092e714e0c233bf196f571bba5c17be0.tar.bz2
mail: force mime mode if at least one attachment was given
This fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918806 * mail/mail.c (cli_attach): Set mime_option.
-rw-r--r--mail/mail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail.c b/mail/mail.c
index 8c12cf2a7..6feb049c4 100644
--- a/mail/mail.c
+++ b/mail/mail.c
@@ -150,6 +150,8 @@ cli_attach (struct mu_parseopt *po, struct mu_option *opt, char const *arg)
default_content_type, default_encoding))
exit (po->po_exit_error);
+ mime_option = 1;
+
free (content_name);
content_name = NULL;
free (content_filename);

Return to:

Send suggestions and report system problems to the System administrator.