Responding to Email with procmail

procmail can help you automatically—or selectively—respond to email. As you’ll see, procmail is very similar to forwarding email and using the vacation program, but you’ll probably find procmail much more flexible.

To specify how messages should be filtered (to “write a recipe”):

1.
vi ~/.procmailrc In vi, access your .procmailrc file.
2.
Move to the end of the file, below the setup information.
3.
:0: Start a new recipe with :0:, as shown in Figure 11.18. (Don’t ask why to use :0:. That’s just the way it is.)
Figure 11.18. Add the recipes of your choice to your .procmailrc file.
4. ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.