Commit 61852dd4 61852dd4f567f610dad6b1968cd3e5ca7f223c4e by Sergey Poznyakoff

(main): If the send mode was interrupted by

the user, exit with zero status if mailx is set.
1 parent 7684524f
......@@ -359,11 +359,13 @@ main (int argc, char **argv)
/* FIXME: set cmd to "mail [add1...]" */
char *buf = NULL;
int num = 0;
int rc;
if (args.args != NULL)
while (args.args[num] != NULL)
num++;
argcv_string (num, args.args, &buf);
return util_do_command ("mail %s", buf);
rc = util_do_command ("mail %s", buf);
return util_getenv (NULL, "mailx", Mail_env_boolean, 0) ? rc : 0;
}
/* Or acting as a normal reader */
else
......