diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2006-08-13 20:44:01 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2006-08-13 20:44:01 +0000 |
commit | d81195fae17abd067cd7f96e07ce2cb71bb855af (patch) | |
tree | 1ae57b7e889686b1f47877ccb9a03699649b5ac5 /usr.sbin/cron/atrun.c | |
parent | dc72637be36f5287b9fc46bca51fc7f6a0027475 (diff) |
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/atrun.c')
-rw-r--r-- | usr.sbin/cron/atrun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c index 34c4b54f5bb..a9b28ee335c 100644 --- a/usr.sbin/cron/atrun.c +++ b/usr.sbin/cron/atrun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atrun.c,v 1.14 2005/01/30 20:45:58 millert Exp $ */ +/* $OpenBSD: atrun.c,v 1.15 2006/08/13 20:44:00 millert Exp $ */ /* * Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -21,7 +21,7 @@ */ #if !defined(lint) && !defined(LINT) -static const char rcsid[] = "$OpenBSD: atrun.c,v 1.14 2005/01/30 20:45:58 millert Exp $"; +static const char rcsid[] = "$OpenBSD: atrun.c,v 1.15 2006/08/13 20:44:00 millert Exp $"; #endif #include "cron.h" @@ -551,6 +551,7 @@ run_job(atjob *job, char *atfile) fprintf(mail, "From: %s (Atrun Service)\n", pw->pw_name); fprintf(mail, "To: %s\n", mailto); fprintf(mail, "Subject: Output from \"at\" job\n"); + fprintf(mail, "Auto-Submitted: auto-generated\n"); #ifdef MAIL_DATE fprintf(mail, "Date: %s\n", arpadate(&StartTime)); #endif /*MAIL_DATE*/ |