diff options
| author | 2006-08-13 20:44:00 +0000 | |
|---|---|---|
| committer | 2006-08-13 20:44:00 +0000 | |
| commit | 13c1030126d3ed93b74b1356293208cd839d8fb5 (patch) | |
| tree | 809b1fa2ea8036c96eb49df2a2a74d444805b7ab /usr.sbin/cron/do_command.c | |
| parent | Uncomment IBSS mode and Host AP chunks, comment monitor mode for now. (diff) | |
| download | wireguard-openbsd-13c1030126d3ed93b74b1356293208cd839d8fb5.tar.xz wireguard-openbsd-13c1030126d3ed93b74b1356293208cd839d8fb5.zip | |
Add Auto-Submitted header in generated mail as per RFC 3834.
OK henning@, ckuethe@, krw@, ian@. From Tamas TEVESZ.
Diffstat (limited to 'usr.sbin/cron/do_command.c')
| -rw-r--r-- | usr.sbin/cron/do_command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c index 970f7b36815..602dc151d7a 100644 --- a/usr.sbin/cron/do_command.c +++ b/usr.sbin/cron/do_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: do_command.c,v 1.29 2004/06/17 22:11:55 millert Exp $ */ +/* $OpenBSD: do_command.c,v 1.30 2006/08/13 20:44:00 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: do_command.c,v 1.29 2004/06/17 22:11:55 millert Exp $"; +static char const rcsid[] = "$OpenBSD: do_command.c,v 1.30 2006/08/13 20:44:00 millert Exp $"; #endif #include "cron.h" @@ -416,6 +416,7 @@ child_process(entry *e, user *u) { fprintf(mail, "Subject: Cron <%s@%s> %s\n", usernm, first_word(hostname, "."), e->cmd); + fprintf(mail, "Auto-Submitted: auto-generated\n"); #ifdef MAIL_DATE fprintf(mail, "Date: %s\n", arpadate(&StartTime)); |
