[ale] Re: Procmail recipes
matty91 at bellsouth.net
matty91 at bellsouth.net
Sun Sep 28 20:49:44 EDT 2003
In case anyone is interested, I managed to get the following to work:
:0
* ^(To|Cc|Bcc|Reply-To|From).*mailman.eng.auburn.edu
{
:0:
* ^(To|Cc|Bcc|Reply-To|From).*Veritas-vx
$MAILDIR/Veritas_Volume_Manager
:0: E
* ^(To|Cc|Bcc|Reply-To|From).*veritas-ha
$MAILDIR/Veritas_Cluster
:0: E
* ^(To|Cc|Bcc|Reply-To|From).*ssa-managers
$MAILDIR/SSA_Managers
}
There is prob a more efficient way, but hey, I have spare CPU cycles ;)
- Ryan
On Sun, 28 Sep 2003 matty91 at bellsouth.net wrote:
> I have been scouring the Internet in an attempt to cleanup some procmail
> recipes I have. Does anyone know if you can do the following in one
> recipe:
>
> :0c
> * ^(To|Cc|Bcc|Reply-To|From).*mailing.list.com
> {
> :0
> ^(To|Cc|Bcc|Reply-To|From).*list-chat.*mailing.list.com
> $MAILDIR/List-Chat
>
> :0
> $MAILDIR/List
> }
>
> As it stands today, I have two rules that filter accordingly. Curious if
> there is a way to combine these. I can't figure out if I can use
> if/then/else logic in the recipe body.
>
> Thanks,
> - Ryan
>
Ryan Matteson - UNIX Administrator | GPG ID: 92D5DFFF
Public Key: http://www.daemons.net/~matty/public_key.txt
Fingerprint = 4BEC 6145 30A6 BCE6 5602 FF11 4954 165D 92D5 DFFF
More information about the Ale
mailing list