I have been digging for how to do today and found something interesting:
Back in Fedora 20, there was no MTA!
https://www.mhonarc.org/archive/html/procmail/2014-01/msg00000.html
I worked on cron outbut via procmail way back then and used:
CRONDARGS=-m "/usr/bin/procmail -f cron"
So I just tried this and I have one problem with it. No DATE header.
So my new script is better, so far, than procmail. That is until
someone tells me how to get procmail to add a DATE header. Or maybe
better for CRON to put it in, and the DATE/TIME it started the task, not
when PROCMAIL would process the output.
thanks
BTW, Here is my current mycron script:
local]# cat mycron
#!/bin/sh
exec 3>> /var/spool/mail/$USER
currentDate=$(date +'%a %b %d %T %Y')
echo "From cron@localhost $currentDate" >&3
currentDate2=$(date +'%a, %e %b %Y %T %z (%Z)')
echo "Date: $currentDate2" >&3
(cat) >&3
echo "" >&3
Thanks for all the help getting to this point.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx