procmail
[Top] [All Lists]

Re: spaces in conditions

2005-08-10 06:57:13
Dallman Ross wrote:
On Tue, Aug 09, 2005 at 04:07:38PM +0000, Stephen Allen wrote:

 
procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE wrote on 09/08/2005 
16:47:21:

   
   How do you include a space in a condition?
     
Isn't is simply?:

     * .*\ cialis\ .*
   

No.

A space doesn't need quoting.

Nor do you need or want ".*" anywhere you've used it here.

  * () cialis ()

would work to do what was requested.  But I don't think
what was requested is very useful.  For one, those could
be tabs.  For two, there could be punctuation, parentheses,
quote marks, etc., before or after.

Perhaps the OP would prefer this, anyway:

  * ()\<cialis\>

Dallman
 

    The * .*\ cialis\ .* suggestion didn't work.  All the test messages 
passed on through to my mailbox.  I didn't try * () cialis () but went 
ahead with the * ()\<cialis\> idea.  It worked perfectly but I don't 
know why as I'm pretty bad at understanding regular expressions.  What 
is this one saying character by character?

Thanks,

Jason
===========

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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