# include <syslog.h>
# endif LOG
-static char SccsId[] = "@(#)main.c 3.28 %G%";
+static char SccsId[] = "@(#)main.c 3.29 %G%";
/*
** SENDMAIL -- Post mail to a set of destinations.
bool SuprErrs; /* supress errors if set */
bool Verbose; /* set if blow-by-blow desired */
bool GrabTo; /* if set, read recipient addresses from msg */
+bool DontSend; /* mark recipients as QDONTSEND */
int Debug; /* debug level */
int Errors; /* count of errors */
int AliasLevel; /* current depth of aliasing */
** Scan argv and deliver the message to everyone.
*/
+ if (GrabTo)
+ DontSend = TRUE;
for (; argc-- > 0; argv++)
{
p = argv[1];
** Read the input mail.
*/
+ DontSend = FALSE;
collect();
# ifdef DEBUG
# include <pwd.h>
# include "sendmail.h"
-static char SccsId[] = "@(#)recipient.c 3.8 %G%";
+static char SccsId[] = "@(#)recipient.c 3.9 %G%";
/*
** SENDTO -- Designate a send list.
q->q_next = a;
}
a->q_next = NULL;
+ if (DontSend)
+ a->q_flags |= QDONTSEND;
/*
** Alias the name and handle :include: specs.
/*
** SENDMAIL.H -- Global definitions for sendmail.
**
-** @(#)sendmail.h 3.32 %G%
+** @(#)sendmail.h 3.33 %G%
*/
extern bool SaveFrom; /* save leading "From" lines */
extern bool Verbose; /* set if blow-by-blow desired */
extern bool GrabTo; /* if set, get recipients from msg */
+extern bool DontSend; /* mark recipients as QDONTSEND */
extern int Debug; /* debugging level */
extern int Errors; /* set if errors */
extern int ExitStat; /* exit status code */
-static char SccsId[] = "@(#)SendMail version 3.14 of %G%";
+static char SccsId[] = "@(#)SendMail version 3.15 of %G%";
-char Version[] = "3.14 [%G%]";
+char Version[] = "3.15 [%G%]";