cronie-crond / cronie

Cronie cron daemon project
Other
463 stars 80 forks source link

Hardcoded MAILFMT not compatible with busybox sendmail #40

Open glensc opened 5 years ago

glensc commented 5 years ago

the MAILFMT is hardcoded to source as AC_DEFINE(MAILFMT,"%s -FCronDaemon -i -odi -oem -oi -t -f %s",:

and the -Fx = Set full-name of sender option is not recognized by busybox-v1.30.0:

/usr/lib/sendmail: invalid option -- 'F'
BusyBox v1.30.0 (2019-01-24 15:23:24 CET) multi-call binary.
...

https://github.com/cronie-crond/cronie/blob/cronie-1.5.4/src/do_command.c#L430

glensc commented 5 years ago

EDIT: looks like it is tunable via -m option, but the solution lacks %s templating for mailfrom: