Re: procmail testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

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

So you are correct that the formail is needed, as the reader does not have a date to show on displaying the message. It does use the date in the first 'From ' line for the list of messages, and that mislead me yesterday.

But I am having a problem of how to specify this:

CRONDARGS=-m "formail -a "Date: `date`" | /usr/bin/procmail -f cron"

The quoting is wrong.  How do I get the quoting right for this arg list?


--
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux