lyda / chkcrontab

A tool for checking system crontab files (/etc/crontab and /etc/cron.d normally) for errors and common mistakes.
Other
58 stars 22 forks source link

Check the MAILTO field #24

Open adityavhegde opened 3 years ago

adityavhegde commented 3 years ago

I am running CRON on Debian 9 machine with Vixie CRON. The MAILTO field cannot have space between commas. E.g, this is not legal: MAILTO="abc@xyz.com, pqr@xyz.com" but removing the comma between the two will make it legal: MAILTO="abc@xyz.com,pqr@xyz.com"

Can a warning be added that checks for this case.

Reference: https://serverfault.com/questions/133058/how-to-send-the-output-from-a-cronjob-to-multiple-e-mail-addresses#comment616379_133062