O'Reilly logo

Procmail Companion, The by Martin McCarthy

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

Chapter 3. SIMPLE FILTERING OF EMAIL WITH PROCMAIL

SETTING UP A BASIC .PROCMAILRC FILE

When Procmail runs it will look in various locations for information detailing how to process your email. The most important of these is the .procmailrc file in your home directory.

If you create an empty .procmailrc file Procmail will deliver any incoming email to your normal electronic inbox. If you simply want all mail to be delivered to some other mailbox (let's say the file myMail in your home directory) the following very basic .procmailrc file will achieve this:

:0 :
myMail

These two lines make up a Procmail recipe – indeed, one of the simplest Procmail recipes.

The first line starts with a colon (:) – that colon identifies it as the start of a recipe. All ...

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