From: Tomas Mraz Date: Thu, 25 Apr 2013 09:02:03 +0000 (+0200) Subject: Make From field in mails from crond RFC compliant. X-Git-Tag: cronie1.4.11~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ed2b6df0d4fd72e6314c3817382440996aa7d4;p=cronie Make From field in mails from crond RFC compliant. --- diff --git a/src/do_command.c b/src/do_command.c index cb3d9e9..1239686 100644 --- a/src/do_command.c +++ b/src/do_command.c @@ -435,7 +435,7 @@ static int child_process(entry * e, char **jobenv) { (void) _exit(ERROR_EXIT); } - fprintf(mail, "From: %s (Cron Daemon)\n", mailfrom); + fprintf(mail, "From: \"(Cron Daemon)\" <%s>\n", mailfrom); fprintf(mail, "To: %s\n", mailto); fprintf(mail, "Subject: Cron <%s@%s> %s\n", usernm, first_word(hostname, "."), e->cmd);