Next Previous Contents

3.15   (procmail) -   Setting Up an email Filter

From Schlake, Mon Mar 20 09:11:07 2000

On Mon, Mar 20, 2000 at 09:07:37AM -0700, Ray Piworunas wrote:

How would I setup a mail filter, for use with mutt, to automatically delete all messages to me that come from me so I don't have to read them or manually delete them?

In /u/ray/.procmailrc put this:

:0: <newline>
* ^From[: ]* <newline>
* ^To[: ]*tcc-.* <newline>

Be sure to test it heavily.   After you are sure it works, and seems to only put the correct mail into the deleted file, change it to deliver the mail to /dev/null instead.

For more on procmail see

William Colburn, "Sysprog"   <>
Computer Center, New Mexico Institute of Mining and Technology

Next Previous Contents