improved debugging
[unix-history] / usr / src / usr.sbin / sendmail / src / main.c
index e3e9cca..f312f4c 100644 (file)
@@ -13,7 +13,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     8.70 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     8.71 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -838,33 +838,7 @@ main(argc, argv, envp)
 
                        if (m == NULL)
                                continue;
 
                        if (m == NULL)
                                continue;
-                       printf("mailer %d (%s): P=%s S=%d/%d R=%d/%d M=%ld U=%d:%d F=",
-                               i, m->m_name,
-                               m->m_mailer, m->m_se_rwset, m->m_sh_rwset,
-                               m->m_re_rwset, m->m_rh_rwset, m->m_maxsize,
-                               m->m_uid, m->m_gid);
-                       for (j = '\0'; j <= '\177'; j++)
-                               if (bitnset(j, m->m_flags))
-                                       (void) putchar(j);
-                       printf("L=%d E=", m->m_linelimit);
-                       xputs(m->m_eol);
-                       if (m->m_defcharset != NULL)
-                               printf(" C=%s", m->m_defcharset);
-                       if (m->m_mtstype != NULL)
-                               printf(" T=%s", m->m_mtstype);
-                       if (m->m_argv != NULL)
-                       {
-                               char **a = m->m_argv;
-
-                               printf(" A=");
-                               while (*a != NULL)
-                               {
-                                       if (a != m->m_argv)
-                                               printf(" ");
-                                       xputs(*a++);
-                               }
-                       }
-                       printf("\n");
+                       printmailer(m);
                }
        }
 
                }
        }