Commit 675b0afa 675b0afafeea42c97aa2392467f8e13146fabe29 by Sergey Poznyakoff

(mail_if): 'if t' is true is stdout is connected to a terminal.

1 parent 749eff46
...@@ -111,8 +111,8 @@ mail_if (int argc, char **argv) ...@@ -111,8 +111,8 @@ mail_if (int argc, char **argv)
111 case 'r': /* Read mode */ 111 case 'r': /* Read mode */
112 cond = strcmp(mode, "send") != 0; 112 cond = strcmp(mode, "send") != 0;
113 break; 113 break;
114 case 't': /* Reading from a terminal */ 114 case 't': /* Stdout is a terminal device? */
115 cond = interactive; 115 cond = isatty (fileno (stdout));
116 break; 116 break;
117 default: 117 default:
118 util_error(_("valid if arguments are: s | r | t")); 118 util_error(_("valid if arguments are: s | r | t"));
......