procmail
[Top] [All Lists]

Setting up an includerc file

1998-10-07 17:34:17

I've created a receipe that works pretty good, now I want to modify it so
that it can work in a generic case as an rc file.

My first step was to move the who receipe to an rc file and then include the
file. It works. Yea!

The next step, generalizing it seems harder.

I have something like:

0:
* ^TOJohnDoe@
{
    various commands and tasks.....
}

What I want to do is call it by saying something like:

NAME="JohnDoe"  INCLUDERC=filename.rc

How do I generalize the to statement?

Incidently, the receipe works well with email like 
"JohnDoe(_at_)domain(_dot_)com" but
fails when I have "<JohnDoe(_at_)domain(_dot_)com>" or "'John Doe'
<JohnDoe(_at_)domain(_dot_)com>"

Can anyone point me in the right direction?!

Bob