O'Reilly logo

Expert Shell Scripting by Ron Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required