procmail
[Top] [All Lists]

Re: If no subject, then take first line of body...

2001-03-26 07:52:54

Oh!  I think I figured it out!  (Well, I checked my procmail mailbox 
for other $MATCH examples)

This seems to do it, at least with my specific conditions (where there 
is only one line and that line starts and ends with ( and ) 
respectively and no Subject: line)

:0
* ! ^Subject:
{
        :0 B
        * ^\(\/.*[^)]+
        {
                :0fhw
                |formail -I"Subject: $MATCH"
        }
}



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