From 9d6695ed438a465eba13f26d77e557f3788b786f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Dec 2006 18:21:29 +0000 Subject: [PATCH] Add "Auto-Submitted: auto-generated" line to sudo mail for rfc 3834. --- logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logging.c b/logging.c index 2ec1390ba..a6c773a36 100644 --- a/logging.c +++ b/logging.c @@ -512,8 +512,8 @@ send_mail(line) mail = fdopen(pfd[1], "w"); /* Pipes are all setup, send message via sendmail. */ - (void) fprintf(mail, "To: %s\nFrom: %s\nSubject: ", - def_mailto, user_name); + (void) fprintf(mail, "To: %s\nFrom: %s\nAuto-Submitted: %s\nSubject: ", + def_mailto, user_name, "auto-generated"); for (p = def_mailsub; *p; p++) { /* Expand escapes in the subject */ if (*p == '%' && *(p+1) != '%') { -- 2.40.0