summaryrefslogtreecommitdiff
path: root/usr.bin/vacation
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-08-14 15:49:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-08-14 15:49:29 +0000
commitae27946c0e74d5cec3d1def58ae50b39cfcd1f12 (patch)
treeac8468a4f94a0d8ea3bbf7bccfb6aa53bc175dc9 /usr.bin/vacation
parentdbf6c19015bc8cb84596b21250bebdfdbdced5ae (diff)
Add Auto-Submitted header in generated mail as per RFC 3834.
Diffstat (limited to 'usr.bin/vacation')
-rw-r--r--usr.bin/vacation/vacation.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c
index 85c7f773c35..a34b56d345e 100644
--- a/usr.bin/vacation/vacation.c
+++ b/usr.bin/vacation/vacation.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vacation.c,v 1.23 2004/04/05 07:18:43 deraadt Exp $ */
+/* $OpenBSD: vacation.c,v 1.24 2006/08/14 15:49:28 millert Exp $ */
/* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
#endif
-static char rcsid[] = "$OpenBSD: vacation.c,v 1.23 2004/04/05 07:18:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: vacation.c,v 1.24 2006/08/14 15:49:28 millert Exp $";
#endif /* not lint */
/*
@@ -476,6 +476,7 @@ sendmessage(char *myname)
return;
}
fprintf(sfp, "To: %s\n", from);
+ fputs("Auto-Submitted: auto-replied\n", sfp);
while (fgets(buf, sizeof buf, mfp)) {
char *s = strstr(buf, "$SUBJECT");