2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add "Auto-Submitted: auto-generated" line to sudo mail for rfc 3834.

This commit is contained in:
Todd C. Miller
2006-12-11 18:21:29 +00:00
parent 8d97a8d20f
commit 9d6695ed43

View File

@@ -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) != '%') {