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) ...@@ -359,11 +359,13 @@ main (int argc, char **argv)
359 /* FIXME: set cmd to "mail [add1...]" */ 359 /* FIXME: set cmd to "mail [add1...]" */
360 char *buf = NULL; 360 char *buf = NULL;
361 int num = 0; 361 int num = 0;
362 int rc;
362 if (args.args != NULL) 363 if (args.args != NULL)
363 while (args.args[num] != NULL) 364 while (args.args[num] != NULL)
364 num++; 365 num++;
365 argcv_string (num, args.args, &buf); 366 argcv_string (num, args.args, &buf);
366 return util_do_command ("mail %s", buf); 367 rc = util_do_command ("mail %s", buf);
368 return util_getenv (NULL, "mailx", Mail_env_boolean, 0) ? rc : 0;
367 } 369 }
368 /* Or acting as a normal reader */ 370 /* Or acting as a normal reader */
369 else 371 else
......