5

/var/mail script

view full story
linux-howto

http://forums.fedoraforum.org – Hi all... We have a box that receive a lot of incoming emails. I have a .procmailrc file that in turn invokes a python script, which process each of these incoming email. All is nice and good. However, before the .procmailrc and python script were in place, we still were receiving emails and those emails were obviously not processed by the py script. The emails are stored under /var/mail/ as a single file. Now, I need to run my script on these emails. I was considering changing the script to handle multiple emails but it will result in too many changes and might break it. I was wondering if there is a way using which I can feed one email (from /var/mail/my-mail) at a time to the python script? Thanks (HowTos)