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[: ]*ray@nmt.edu <newline>
* ^To[: ]*tcc-.*@nmt.edu <newline>
    /u/ray/deleted

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 www.procmail.org.

--
William Colburn, "Sysprog"   <wcolburn@nmt.edu>
Computer Center, New Mexico Institute of Mining and Technology
http://infohost.nmt.edu/tcc/       http://www.nmt.edu/~wcolburn


Next Previous Contents