From: Eric Allman Date: Fri, 15 Apr 1994 00:40:52 +0000 (-0800) Subject: add "noreceipts" privacy flag X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/a8d35279179e1bca5d7e1f17aed36b1bfa45c3c4 add "noreceipts" privacy flag SCCS-vsn: usr.sbin/sendmail/src/envelope.c 8.34 SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.87 --- diff --git a/usr/src/usr.sbin/sendmail/src/conf.c b/usr/src/usr.sbin/sendmail/src/conf.c index 0b3ba14886..cfb5cc5472 100644 --- a/usr/src/usr.sbin/sendmail/src/conf.c +++ b/usr/src/usr.sbin/sendmail/src/conf.c @@ -7,7 +7,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)conf.c 8.86 (Berkeley) %G%"; +static char sccsid[] = "@(#)conf.c 8.87 (Berkeley) %G%"; #endif /* not lint */ # include "sendmail.h" @@ -121,6 +121,7 @@ struct prival PrivacyValues[] = "restrictmailq", PRIV_RESTRICTMAILQ, "restrictqrun", PRIV_RESTRICTQRUN, "authwarnings", PRIV_AUTHWARNINGS, + "noreceipts", PRIV_NORECEIPTS, "goaway", PRIV_GOAWAY, NULL, 0, }; diff --git a/usr/src/usr.sbin/sendmail/src/envelope.c b/usr/src/usr.sbin/sendmail/src/envelope.c index c4aca1abb9..56edf1b8cc 100644 --- a/usr/src/usr.sbin/sendmail/src/envelope.c +++ b/usr/src/usr.sbin/sendmail/src/envelope.c @@ -7,7 +7,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)envelope.c 8.33 (Berkeley) %G%"; +static char sccsid[] = "@(#)envelope.c 8.34 (Berkeley) %G%"; #endif /* not lint */ #include "sendmail.h" @@ -184,7 +184,8 @@ dropenvelope(e) ** Send back return receipts as requested. */ - if (e->e_receiptto != NULL && bitset(EF_SENDRECEIPT, e->e_flags)) + if (e->e_receiptto != NULL && bitset(EF_SENDRECEIPT, e->e_flags) + && !bitset(PRIV_NORECEIPTS, PrivacyFlags)) { auto ADDRESS *rlist = NULL;