Tagged with procmail

Debugging Procmail Recipes

Three steps to nirvana: Modify mail fetch frequency in .fetchmailrc to a small value. E.g. In my .fetchmailrc, I forced fetchmail to query server every 30s: set daemon 30 Set the LOGFILE and LOGABSTRACT variables in .procmailrc. The one liner here is, LOGFILE specified where procmail would log the rules processed and LOGABSTRACT controls the … Continue reading »

New mail notification with Procmail

Problem: I have my local mail setup with mutt, fetchmail and procmail. And I would need a way to run an arbitrary script when new mail arrives and _not_ loose the mail from my inbox. Solution: Procmail supports a nice feature called nesting. With nested blocks a procmail recipe can be assigned more than action. … Continue reading »