diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-11 20:50:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-11 20:50:56 +0000 |
commit | 0caa4c315c8437a04f1cd5e047d0340586e0b619 (patch) | |
tree | 58516db7d059aed170ddc181d2dd09d70de251c0 /usr.bin/calendar | |
parent | d2b521b0da1bea57595069812c57609e558c8d1f (diff) |
rfc 3834 support: Auto-Submitted: auto-generated on lots of things; from Tamas TEVESZ; ok millert
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r-- | usr.bin/calendar/io.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index d0d85a4c418..415bda240ca 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.32 2005/11/24 19:36:10 moritz Exp $ */ +/* $OpenBSD: io.c,v 1.33 2006/12/11 20:50:54 deraadt Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else -static const char rcsid[] = "$OpenBSD: io.c,v 1.32 2005/11/24 19:36:10 moritz Exp $"; +static const char rcsid[] = "$OpenBSD: io.c,v 1.33 2006/12/11 20:50:54 deraadt Exp $"; #endif #endif /* not lint */ @@ -73,7 +73,8 @@ struct iovec header[] = { { 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 @@ closecal(FILE *fp) 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]); |