delete -R flag (RcptLogFile handling)
[unix-history] / usr / src / usr.sbin / sendmail / src / recipient.c
index 4c2a873..f587247 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        6.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        6.15 (Berkeley) %G%";
 #endif /* not lint */
 
 # include <sys/types.h>
 #endif /* not lint */
 
 # include <sys/types.h>
@@ -200,7 +200,6 @@ addrref(a, r)
 */
 
 extern ADDRESS *getctladdr();
 */
 
 extern ADDRESS *getctladdr();
-extern char    *RcptLogFile;
 
 ADDRESS *
 ADDRESS *
 
 ADDRESS *
 ADDRESS *
@@ -295,39 +294,6 @@ recipient(a, sendq, e)
        *pq = a;
        a->q_next = NULL;
 
        *pq = a;
        a->q_next = NULL;
 
-       if (a->q_alias == NULL && RcptLogFile != NULL &&
-           !bitset(QDONTSEND, a->q_flags))
-       {
-               static int RcptLogFd = -1;
-
-               /*
-               **  Log the incoming recipient name before aliasing,
-               **  expanding, forwarding, rewriting, and all that jazz.
-               **  We'll use this to track down out-of-date aliases,
-               **  host names, and so forth.
-               */
-
-               if (RcptLogFd < 0)
-               {
-                       /* try to open the log file */
-                       RcptLogFd = open(RcptLogFile, O_WRONLY|O_APPEND|O_CREAT, 0666);
-                       if (RcptLogFd >= 0)
-                               (void) fcntl(RcptLogFd, F_SETFD, 1);
-               }
-               if (RcptLogFd >= 0)
-               {
-                       int l = strlen(a->q_paddr);
-
-                       a->q_paddr[l] = '\n';
-                       if (write(RcptLogFd, a->q_paddr, l + 1) < 0)
-                       {
-                               (void) close(RcptLogFd);
-                               RcptLogFd = -1;
-                       }
-                       a->q_paddr[l] = '\0';
-               }
-       }
-
        /*
        **  Alias the name and handle special mailer types.
        */
        /*
        **  Alias the name and handle special mailer types.
        */