don't let sendmail add apparently-to lines (always have a To: line)
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 2 Apr 1988 04:30:02 +0000 (20:30 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 2 Apr 1988 04:30:02 +0000 (20:30 -0800)
SCCS-vsn: libexec/bugfiler/redist.c 5.7

usr/src/libexec/bugfiler/redist.c

index 1b48c6f..4843b2a 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)redist.c   5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)redist.c   5.7 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/file.h>
 #endif /* not lint */
 
 #include <sys/file.h>
@@ -51,8 +51,14 @@ redist()
                                        fprintf(pf, "%s", mailhead[SUBJ_TAG].line);
                                else
                                        fputs("Subject: Untitled Bug Report\n", pf);
                                        fprintf(pf, "%s", mailhead[SUBJ_TAG].line);
                                else
                                        fputs("Subject: Untitled Bug Report\n", pf);
-                               if (!mailhead[TO_TAG].line && mailhead[APPAR_TO_TAG].line)
-                                       fprintf(pf, "To%s", index(mailhead[APPAR_TO_TAG].line, ':'));
+                               if (!mailhead[TO_TAG].line) {
+                                       if (mailhead[APPAR_TO_TAG].line)
+                                           fprintf(pf, "To%s",
+                                             index(mailhead[APPAR_TO_TAG].line,
+                                             ':'));
+                                       else
+                                           fprintf(pf, "To: %s\n",  BUGS_ID);
+                               }
                                fputs("Resent-To: ", pf);
                        }
                        /*
                                fputs("Resent-To: ", pf);
                        }
                        /*