procmail
[Top] [All Lists]

Re: Remove string from $MATCH?

2003-02-20 06:58:17
Professional Software Engineering wrote:
David W. Tamkin:
 
There is no general answer, but try adding these two
conditions: 

 * MATCH ?? ^^\/.*-
 * MATCH ?? ^^\/.*[^-]

Those should strip the last hyphen-connected element
from $MATCH. 
 
Which will be problematic if you have a hyphenated
hostname or domain. 

But he already stopped before the @.

-- 
Affijn, Ruud


_______________________________________________
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>