Re: Redirecting email to a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12:21 12 Dec 2004, Robert Canary <phantom@xxxxxxxxxxxxxx> wrote:
| Thanks.  So procmail is the key here to allot of 
| issues I guesss.  Hmmm, I could have allot of fun 
| with this.

Indeed. But for just filing most messages it's complicated and tedious.

So see this:

	http://freshmeat.net/projects/cats2procmailrc/

which is a filter to general procmailrcs for the simple cases; you can
still plug in raw procmail for complicated things. However, most "file
this list traffic to folder X" rules are simple one-test boilerplate.
So my cats2procmailrc rule for this list is:

	unix      RH-List         redhat-list@xxxxxxxxxx

which generated this procmail clause:

	: 0
	* ^(to|cc|bcc):.*\<redhat-list@redhat\.com\>
	{

	  :0whf
	  | formail -f -A 'X-Label: RH-List'

	  : 0
	  unix/
	}

That and a makefile lets me file most stuff with a single line rule.
Handy.

Disclaimer: yeah, I wrote this.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

1993 Explorer - Cage? Hell, it's a prison. - Will Hartung vfr750@xxxxxxxxxx

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux