Pseudo code included. Is it a small step towards better LSB compliance for sendmail interface?
Regid Ichira <[email protected]> Tue, 24 Jan 2012 14:30:20 -0800 (PST)
| Newsgroups | gmane.mail.nullmailer |
|---|---|
| Message-ID | <[email protected]> |
Continuing
http://lists.untroubled.org/?list=nullmailer&cmd=threadindex&month=201002&threadid=hobkhempdacmpcpddmbi
Is this pseudo code a small step towards better lsb compliance for
sendmail interface?
--- sendmail.cc.orig 2012-01-24 23:42:10.000000000 +0200
+++ sendmail.cc 2012-01-25 00:09:35.000000000 +0200
@@ -92,7 +92,11 @@ int parseargs()
if(!setenvelope(o_from))
return -1;
if (o_mode && !strcmp(o_mode, "s")) {
- ferr << "sendmail: option -bs is unsupported" << endl;
+
+ Wait for input on stdin. What ever 1st line you get
+
+ fstdout << "550 Refuse communication by SMTP commands on stdin/stdoutd" << endl;
+
return -1;
}
return 0;