CROND, SENDMAIL: make them work together

dronnikov at gmail.com dronnikov at gmail.com
Sun Apr 6 12:16:14 UTC 2008


Hello!

Since BB has its own sendmail it is reasonable enough to make BB crond 
be able to use it. This requires changes in both applets.

Since big crond implementations do not agree with each other how to perform mailing of 
results I would like BB crond to behave in clear and intuitive way.
For that I added a per-line variable cl_MailTo which defaults to NULL but can be set 
via MAILTO=mail.results at whom.to line in crontab file. MAILTO=... can occur multiple times 
and, once occured, sets cl_MailTo field for all following lines till next time occured. 
If MAILTO= sets null address it means for the following lines no mailing is performed.
That way crontab becomes significantly more flexible.

Sendmail, on the other hand, must be able to read recipients, subject and message body 
right from stdin (as full-blown sendmail does).

Attached is the patch to both crond and sendmail.
Please, do consider.

--
Vladimir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crond.patch
Type: application/octet-stream
Size: 4995 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080406/afca70f2/attachment-0002.obj 


More information about the busybox mailing list