Skip to Main Content
Expert Shell Scripting
book

Expert Shell Scripting

by Ron Peters
December 2008
Intermediate to advanced content levelIntermediate to advanced
320 pages
6h 45m
English
Apress
Content preview from Expert Shell Scripting

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Robust Shell Scripting

Robust Shell Scripting

Arnold Robbins
Hacker Techniques, Tools, and Incident Handling

Hacker Techniques, Tools, and Incident Handling

Sean-Philip Oriyano, Michael Gregg

Publisher Resources

ISBN: 9781430218418Purchase book