On 01/21/2014 02:06 PM, Ed Greshko wrote:
On 01/22/14 03:37, Robert Moskowitz wrote:
So I changed the run time to 11am, and procmail DID drop something into /var/spool/mail/rgm, but mutt says it is not a valid mailbox. I have emailed one of my smtp oldtimers for help, but meanwhile here is what is going into my mail (anyone see any obvious mail format problem?):
From: "(Cron Daemon)" <rgm>
To: rgm
Subject: Cron <rgm@lx120e> rsync -tvz ftp.rfc-editor.org::rfcs/*.txt /home/common/ietf/rfcs
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=45>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1000>
X-Cron-Env: <LANG=en_US.utf8>
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=rgm>
X-Cron-Env: <HOME=/home/rgm>
X-Cron-Env: <LOGNAME=rgm>
X-Cron-Env: <USER=rgm>
skipping non-regular file "rfc-ref.txt"
RFCs_for_errata.txt
rfcxx00.txt
sent 3,486 bytes received 125,267 bytes 15,147.41 bytes/sec
total size is 365,871,233 speedup is 2,841.65
As I think I mentioned in the December thread, procmail doesn't add any additional headers that a standard MTA would. For example there is no "Date" header.
To add headers you can always use formail. Not sure what exactly mutt is looking for... But try this....
cat d1.letter | formail -a "Date: `date`" | procmail -f cron
I have read the post, but the fact that the result would not be a valid
mailbox escaped me. The line above works. I will have to figure out
what to put in /etc/sysconfig/crond. Meanwhile, I posted this issue to
the procmail list to see if anyone has a receipt for it.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org