procmail
[Top] [All Lists]

Re: Scoring for a header

2004-04-30 20:44:49
On Fri, Apr 30, 2004 at 06:55:03PM -0600, LuKreme wrote:
On 28 Apr 2004, at 14:32, Scott Wiersdorf wrote:
<snip>
 :0c
 :0c
 :0c
 :0

That's an awful lot of copies of the same message....  What where you 
trying to do?

I was trying to do what I believed you were asking for: you wanted
each recipient address in the headers that matched the ^TO_ macro,
right? I expanded the ^TO_ macro (I think Ruud posted something
similar, but he did a better job keeping everything in one variable
whereas I use multiple variables for each header found).

If you want to stop at the first match, you don't need the 'c', of
course. I understood that you wanted to get _all_ recipients that
match ^TO_, and the way to do that is to expand ^TO_ manually (see
previous post) and pass the message through each recipe, collecting
headers as they're found. You need the 'c' so processing continues
until all headers expanded from the ^TO_ macro have had a chance to
match.

The only other way (which Ruud also pointed out, I believe) would be
to call something recursively via INCLUDERC. I'm not precisely sure
how that would work off the top of my head. Sorry if I misunderstood
your original and followup post.

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>