add debugging info
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 16 Aug 1982 02:54:00 +0000 (18:54 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 16 Aug 1982 02:54:00 +0000 (18:54 -0800)
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 3.46

usr/src/usr.sbin/sendmail/src/parseaddr.c

index 66492b7..4094509 100644 (file)
@@ -1,6 +1,6 @@
 # include "sendmail.h"
 
 # include "sendmail.h"
 
-SCCSID(@(#)parseaddr.c 3.45            %G%);
+SCCSID(@(#)parseaddr.c 3.46            %G%);
 
 /*
 **  PARSE -- Parse an address
 
 /*
 **  PARSE -- Parse an address
@@ -915,6 +915,11 @@ remotename(name, m, force)
        extern char *getxpart();
        extern ADDRESS *buildaddr();
 
        extern char *getxpart();
        extern ADDRESS *buildaddr();
 
+# ifdef DEBUG
+       if (tTd(12, 1))
+               printf("remotename(%s)\n", name);
+# endif DEBUG
+
        /*
        **  See if this mailer wants the name to be rewritten.  There are
        **  many problems here, owing to the standards for doing replies.
        /*
        **  See if this mailer wants the name to be rewritten.  There are
        **  many problems here, owing to the standards for doing replies.
@@ -923,7 +928,13 @@ remotename(name, m, force)
        */
 
        if (!bitset(M_RELRCPT, m->m_flags) && !force)
        */
 
        if (!bitset(M_RELRCPT, m->m_flags) && !force)
+       {
+# ifdef DEBUG
+               if (tTd(12, 1))
+                       printf("remotename [ditto]\n");
+# endif DEBUG
                return (name);
                return (name);
+       }
 
        /*
        **  Do general rewriting of name.
 
        /*
        **  Do general rewriting of name.
@@ -964,7 +975,7 @@ remotename(name, m, force)
 
 # ifdef DEBUG
        if (tTd(12, 1))
 
 # ifdef DEBUG
        if (tTd(12, 1))
-               printf("remotename(%s) => `%s'\n", name, buf);
+               printf("remotename => `%s'\n", buf);
 # endif DEBUG
        return (buf);
 }
 # endif DEBUG
        return (buf);
 }