fix problem that caused looping in .forward files on queue runs only
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 28 Feb 1993 03:58:04 +0000 (19:58 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 28 Feb 1993 03:58:04 +0000 (19:58 -0800)
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.20
SCCS-vsn: usr.sbin/sendmail/src/sendmail.h 6.24
SCCS-vsn: usr.sbin/sendmail/src/recipient.c 6.19

usr/src/usr.sbin/sendmail/src/queue.c
usr/src/usr.sbin/sendmail/src/recipient.c
usr/src/usr.sbin/sendmail/src/sendmail.h

index bdb58f5..2077487 100644 (file)
@@ -10,9 +10,9 @@
 
 #ifndef lint
 #ifdef QUEUE
 
 #ifndef lint
 #ifdef QUEUE
-static char sccsid[] = "@(#)queue.c    6.19 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c    6.20 (Berkeley) %G% (with queueing)";
 #else
 #else
-static char sccsid[] = "@(#)queue.c    6.19 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c    6.20 (Berkeley) %G% (without queueing)";
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -430,7 +430,6 @@ runqueue(forkflag)
        }
 
        setproctitle("running queue: %s", QueueDir);
        }
 
        setproctitle("running queue: %s", QueueDir);
-       ForceMail = TRUE;
 
 # ifdef LOG
        if (LogLevel > 69)
 
 # ifdef LOG
        if (LogLevel > 69)
@@ -1337,7 +1336,7 @@ setctluser(user)
                a->q_user = newstr(DefUser);
        }
 
                a->q_user = newstr(DefUser);
        }
 
-       a->q_flags |= QGOODUID        /* flag as a "ctladdr"  */
+       a->q_flags |= QGOODUID|QPRIMARY;        /* flag as a "ctladdr"  */
        a->q_mailer = LocalMailer;
        return a;
 }
        a->q_mailer = LocalMailer;
        return a;
 }
index 061ee52..837387d 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        6.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        6.19 (Berkeley) %G%";
 #endif /* not lint */
 
 # include <sys/types.h>
 #endif /* not lint */
 
 # include <sys/types.h>
@@ -272,7 +272,7 @@ recipient(a, sendq, e)
 
        for (pq = sendq; (q = *pq) != NULL; pq = &q->q_next)
        {
 
        for (pq = sendq; (q = *pq) != NULL; pq = &q->q_next)
        {
-               if (!ForceMail && sameaddr(q, a))
+               if (sameaddr(q, a))
                {
                        if (tTd(26, 1))
                        {
                {
                        if (tTd(26, 1))
                        {
index 8ae8849..7f62001 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sendmail.h  6.23 (Berkeley) %G%
+ *     @(#)sendmail.h  6.24 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -15,7 +15,7 @@
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
-static char SmailSccsId[] =    "@(#)sendmail.h 6.23            %G%";
+static char SmailSccsId[] =    "@(#)sendmail.h 6.24            %G%";
 # endif lint
 # else /*  _DEFINE */
 # define EXTERN extern
 # endif lint
 # else /*  _DEFINE */
 # define EXTERN extern
@@ -598,7 +598,6 @@ struct prival
 
 EXTERN bool    FromFlag;       /* if set, "From" person is explicit */
 EXTERN bool    NoAlias;        /* if set, don't do any aliasing */
 
 EXTERN bool    FromFlag;       /* if set, "From" person is explicit */
 EXTERN bool    NoAlias;        /* if set, don't do any aliasing */
-EXTERN bool    ForceMail;      /* if set, mail even if already got a copy */
 EXTERN bool    MeToo;          /* send to the sender also */
 EXTERN bool    IgnrDot;        /* don't let dot end messages */
 EXTERN bool    SaveFrom;       /* save leading "From" lines */
 EXTERN bool    MeToo;          /* send to the sender also */
 EXTERN bool    IgnrDot;        /* don't let dot end messages */
 EXTERN bool    SaveFrom;       /* save leading "From" lines */