procmail
[Top] [All Lists]

Re: Catching Re [number here] in Subjects

2001-08-31 08:54:37
On Fri, Aug 31, 2001 at 11:07:52PM -0700, Timothy J. Luoma wrote:

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:

That's b/c the last colon is in the wrong place.  I think this is what
you intended:

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

-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
"Don't give what is holy to dogs, for they might throw them upon
the manure pile. Don't throw pearls [to] pigs, or they might ... it
[...]."
  --Saying 93 from the Gospel of Thomas
--
_______________________________________________
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>