summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sudo/logging.c')
-rw-r--r--usr.bin/sudo/logging.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sudo/logging.c b/usr.bin/sudo/logging.c
index 1e1b997be6a..237434d7972 100644
--- a/usr.bin/sudo/logging.c
+++ b/usr.bin/sudo/logging.c
@@ -514,7 +514,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: ",
+ (void) fprintf(mail, "Auto-Submitted: auto-generated\n"
+ "To: %s\nFrom: %s\nSubject: ",
def_mailto, user_name);
for (p = def_mailsub; *p; p++) {
/* Expand escapes in the subject */