From: Eric Allman Date: Tue, 22 Sep 1981 09:49:53 +0000 (-0800) Subject: fix suppression of from address in mailing lists. X-Git-Tag: BSD-4_1_snap-Snapshot-Development~822 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/b9ca6d1148dafe320899689da2898032e13f929b fix suppression of from address in mailing lists. SCCS-vsn: usr.sbin/sendmail/src/recipient.c 3.22 SCCS-vsn: usr.sbin/sendmail/src/version.c 3.35 --- diff --git a/usr/src/usr.sbin/sendmail/src/recipient.c b/usr/src/usr.sbin/sendmail/src/recipient.c index 73151ee1a9..1af37646bb 100644 --- a/usr/src/usr.sbin/sendmail/src/recipient.c +++ b/usr/src/usr.sbin/sendmail/src/recipient.c @@ -3,7 +3,7 @@ # include # include "sendmail.h" -static char SccsId[] = "@(#)recipient.c 3.21 %G%"; +static char SccsId[] = "@(#)recipient.c 3.22 %G%"; /* ** SENDTO -- Designate a send list. @@ -140,9 +140,12 @@ recipient(a) } /* - ** Look up this person in the recipient list. If they - ** are there already, return, otherwise continue. - ** If the list is empty, just add it. + ** Look up this person in the recipient list. + ** If they are there already, return, otherwise continue. + ** If the list is empty, just add it. Notice the cute + ** hack to make from addresses suppress things correctly: + ** the QDONTSEND bit will be set in the send list. + ** [Please note: the emphasis is on "hack."] */ for (pq = &m->m_sendq; (q = *pq) != NULL; pq = &q->q_next) @@ -155,6 +158,7 @@ recipient(a) # endif DEBUG if (Verbose && !bitset(QDONTSEND, a->q_flags)) message(Arpa_Info, "duplicate suppressed"); + q->q_flags |= a->q_flags; return; } } diff --git a/usr/src/usr.sbin/sendmail/src/version.c b/usr/src/usr.sbin/sendmail/src/version.c index d03cd2da7d..3067811f2f 100644 --- a/usr/src/usr.sbin/sendmail/src/version.c +++ b/usr/src/usr.sbin/sendmail/src/version.c @@ -1,3 +1,3 @@ -static char SccsId[] = "@(#)SendMail version 3.34 of %G%"; +static char SccsId[] = "@(#)SendMail version 3.35 of %G%"; -char Version[] = "3.34 [%G%]"; +char Version[] = "3.35 [%G%]";