procmail
[Top] [All Lists]

Catching Re [number here] in Subjects

2001-08-31 08:15:27

I have been using this recipe for a long time:

:0
* ^Subject:[    ](Re: )?Re:\[[0-9]\]
{

# next line is all one line
SUBJECT=`echo $SUBJECT | sed -e 's/Re\[[0-9]*\]: /Re: /i' -e "s/^Re: Re: /Re: 
/i"`


        :0fhw
        |formail -I"Subject: $SUBJECT" -A"X-Note: Un numbered Re:"
}

Unfortunately it is not working:  I sent a message to myself with Subject 
"Re[5]: Test" and the recipe simply did not match:

Here's the log:

procmail: No match on "^Subject:[       ](Re: )?Re:\[[0-9]\]"

From luomat(_at_)peak(_dot_)org  Fri Aug 31 06:58:55 2001
 Subject: Re[5]: Test
  Folder: /nfs/khan/u5/l/luomat/.mail   


I'm flummoxed.

There is a space & a tab (in that order) in the [ ] after the Subject: line

Thanks
TjL


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