From 96dd35f02fe175507d5ff91ccdcc2c59ff5a24fd Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 16 Jan 2017 07:42:26 +0200 Subject: 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) : 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. --- NEWS | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 79d09c5fe..1885cf269 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1