Cover by Ron Peters

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

PART 3Useful Scripts

CHAPTER 30Automating E-mail withprocmail

An autonomous mail processor, procmail allows you to process your e-mail based on rules. This is much like setting up rules in your e-mail client for the handling of messages based on, for example, the sender's e-mail address or on specified strings in the subject line. One of procmail's advantages, compared to traditional e-mail clients, is that the rules can be defined in such a way that when specific criteria are met, a script is called to perform a task.

Whatever you can do in a shell script, you can do with procmail. Once you have mastered the art of writing procmail scripts, it is a very powerful skill to have in your arsenal. I have used procmail for quite a few tasks. One ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required