vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| add an `Auto-Submitted: auto-generated' header to a couple more applications that send mail, like cron, at and vacation got just before the 4.0 lock. millert timed out. http://marc.theaimsgroup.com/?l=open...0195817541&w=2 http://marc.theaimsgroup.com/?l=open...7068100869&w=2 Index: usr.bin/calendar/io.c ================================================== ================= RCS file: /cvs/src/usr.bin/calendar/io.c,v retrieving revision 1.32 diff -u -r1.32 io.c --- usr.bin/calendar/io.c 2005/11/24 19:36:10 1.32 +++ usr.bin/calendar/io.c 2006/10/20 08:09:20 @@ -73,7 +73,8 @@ { NULL, 0 }, { "\nSubject: ", 10 }, { NULL, 0 }, - { "'s Calendar\nPrecedence: bulk\n\n", 30 }, + { "'s Calendar\nPrecedence: bulk\n", 29 }, + { "Auto-Submitted: auto-generated\n\n", 32 }, }; @@ -425,7 +426,7 @@ header[1].iov_base = header[3].iov_base = pw->pw_name; header[1].iov_len = header[3].iov_len = strlen(pw->pw_name); - writev(pdes[1], header, 7); + writev(pdes[1], header, 8); while ((nread = read(fileno(fp), buf, sizeof(buf))) > 0) (void)write(pdes[1], buf, nread); (void)close(pdes[1]); Index: usr.bin/newsyslog/newsyslog.c ================================================== ================= RCS file: /cvs/src/usr.bin/newsyslog/newsyslog.c,v retrieving revision 1.82 diff -u -r1.82 newsyslog.c --- usr.bin/newsyslog/newsyslog.c 2004/09/14 22:25:33 1.82 +++ usr.bin/newsyslog/newsyslog.c 2006/10/20 08:09:29 @@ -1044,6 +1044,7 @@ warn("openmail"); goto cleanup; } + fprintf(fp, "Auto-Submitted: auto-generated\n"); fprintf(fp, "To: %s\nSubject: LOGFILE NOTIFICATION: %s\n\n\n", ent->whom, ent->log); fwrite(rb, 1, rd, fp); Index: usr.bin/oldrdist/docmd.c ================================================== ================= RCS file: /cvs/src/usr.bin/oldrdist/docmd.c,v retrieving revision 1.19 diff -u -r1.19 docmd.c --- usr.bin/oldrdist/docmd.c 2004/01/16 01:12:35 1.19 +++ usr.bin/oldrdist/docmd.c 2006/10/20 08:09:30 @@ -574,6 +574,7 @@ /* * Output the proper header information. */ + fprintf(pf, "Auto-Submitted: auto-generated\n"); fprintf(pf, "From: rdist (Remote distribution program)\n"); fprintf(pf, "To:"); if (!any('@', to->n_name) && rhost != NULL) Index: usr.bin/rdist/docmd.c ================================================== ================= RCS file: /cvs/src/usr.bin/rdist/docmd.c,v retrieving revision 1.18 diff -u -r1.18 docmd.c --- usr.bin/rdist/docmd.c 2006/02/12 15:51:36 1.18 +++ usr.bin/rdist/docmd.c 2006/10/20 08:09:33 @@ -164,6 +164,7 @@ /* * Output the proper header information. */ + (void) fprintf(pf, "Auto-Submitted: auto-generated\n"); (void) fprintf(pf, "From: rdist (Remote distribution program)\n"); (void) fprintf(pf, "To:"); if (!any('@', to->n_name) && rhost != NULL) Index: usr.bin/skeyaudit/skeyaudit.c ================================================== ================= RCS file: /cvs/src/usr.bin/skeyaudit/skeyaudit.c,v retrieving revision 1.22 diff -u -r1.22 skeyaudit.c --- usr.bin/skeyaudit/skeyaudit.c 2005/10/26 17:06:39 1.22 +++ usr.bin/skeyaudit/skeyaudit.c 2006/10/20 08:09:35 @@ -153,6 +153,7 @@ if (!interactive) (void)fprintf(out, + "Auto-Submitted: auto-generated\n" "To: %s\nSubject: IMPORTANT action required\n", pw->pw_name); if (seq) Index: usr.bin/sudo/logging.c ================================================== ================= RCS file: /cvs/src/usr.bin/sudo/logging.c,v retrieving revision 1.15 diff -u -r1.15 logging.c --- usr.bin/sudo/logging.c 2004/09/28 15:10:51 1.15 +++ usr.bin/sudo/logging.c 2006/10/20 08:09:38 @@ -514,7 +514,8 @@ mail = fdopen(pfd[1], "w"); /* Pipes are all setup, send message via sendmail. */ - (void) fprintf(mail, "To: %s\nFrom: %s\nSubject: ", + (void) fprintf(mail, "Auto-Submitted: auto-generated\n" + "To: %s\nFrom: %s\nSubject: ", def_mailto, user_name); for (p = def_mailsub; *p; p++) { /* Expand escapes in the subject */ Index: usr.bin/vi/common/recover.c ================================================== ================= RCS file: /cvs/src/usr.bin/vi/common/recover.c,v retrieving revision 1.10 diff -u -r1.10 recover.c --- usr.bin/vi/common/recover.c 2006/04/28 19:48:15 1.10 +++ usr.bin/vi/common/recover.c 2006/10/20 08:09:42 @@ -403,14 +403,15 @@ (void)time(&now); (void)gethostname(host, sizeof(host)); len = snprintf(buf, sizeof(buf), - "%s%s\n%s%s\n%s\n%s\n%s%s\n%s%s\n%s\n\n", + "%s%s\n%s%s\n%s\n%s\n%s%s\n%s%s\n%s\n%s\n\n", VI_FHEADER, t, /* Non-standard. */ VI_PHEADER, cp_path, /* Non-standard. */ "Reply-To: root", "From: root (Nvi recovery program)", "To: ", pw->pw_name, "Subject: Nvi saved the file ", p, - "Precedence: bulk"); /* For vacation(1). */ + "Precedence: bulk", /* For vacation(1). */ + "Auto-Submitted: auto-generated"); if (len > sizeof(buf) - 1) goto lerr; if (write(fd, buf, len) != len) Index: usr.sbin/lpr/lpd/printjob.c ================================================== ================= RCS file: /cvs/src/usr.sbin/lpr/lpd/printjob.c,v retrieving revision 1.40 diff -u -r1.40 printjob.c --- usr.sbin/lpr/lpd/printjob.c 2005/04/28 10:14:26 1.40 +++ usr.sbin/lpr/lpd/printjob.c 2006/10/20 08:10:03 @@ -1121,6 +1121,7 @@ _exit(0); } else if (s > 0) { /* parent */ dup2(p[1], 1); + printf("Auto-Submitted: auto-generated\n"); printf("To: %s@%s\n", user, fromhost); printf("Subject: %s printer job \"%s\"\n", printer, *jobname ? jobname : "<unknown>"); -- [-] mkdir /nonexistent |