]> granicus.if.org Git - cronie/commitdiff
Make From field in mails from crond RFC compliant.
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 25 Apr 2013 09:02:03 +0000 (11:02 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 25 Apr 2013 09:02:03 +0000 (11:02 +0200)
src/do_command.c

index cb3d9e9d17211a93abcb3ec790c9e40aca0a179b..1239686ea14ab02f1dc5894657ac3b25f1543a35 100644 (file)
@@ -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);