diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-01-16 07:42:26 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-01-16 07:57:06 +0200 |
commit | 96dd35f02fe175507d5ff91ccdcc2c59ff5a24fd (patch) | |
tree | 3afbed54dca2ec53a02fa67e3746a5978ded299b /NEWS | |
parent | 888e2a9a7cbac3e3c072f04a5bd45894c9d296ad (diff) | |
download | mailutils-96dd35f02fe175507d5ff91ccdcc2c59ff5a24fd.tar.gz mailutils-96dd35f02fe175507d5ff91ccdcc2c59ff5a24fd.tar.bz2 |
mail: new option --skip-empty-attachments
* libmailutils/cli/cli.c (mu_cli): Use "no-" prefix to indicate negation
* mail/mail.c (skip_empty_attachments): New global.
(mail_options): New option --skip-empty-attachments
* mail/mail.h (skip_empty_attachments): New extern.
* mail/send.c (atchinfo) <skip_empty>: New field.
(send_attach_file): Initialize skip_empty
(saveatt): Optionally skip empty attachments
* NEWS: Mention the new option.
* doc/texinfo/programs.texi: Document the new option.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -GNU mailutils NEWS -- history of user-visible changes. 2017-01-13 +GNU mailutils NEWS -- history of user-visible changes. 2017-01-16 Copyright (C) 2002-2017 Free Software Foundation, Inc. See the end of file for copying conditions. @@ -40,6 +40,9 @@ obvious reasons, the interactive mode is suppressed in this case. The `--attach-fd' option is useful when calling `mail' from another program. +The new option `--skip-empty-attachments' instructs `mail' to omit +attachments that have zero-size body. + Example: Suppose that the 'mail' binary is opened at file descriptor 5 and |