postfix-users May 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: regular expression in header_check question

Re: regular expression in header_check question

From: donovan jeffrey j <donovan_at_nospam>
Date: Tue May 04 2010 - 14:14:08 GMT
To: Ansgar Wiechers <lists@planetcobalt.net>

On May 4, 2010, at 3:23 AM, Ansgar Wiechers wrote:

> On 2010-05-03 donovan jeffrey j wrote:
>> im working on a header check to filter out anything that says Viagra
>> in the From: line. My question,.. is how do I handle the quotes ?
>>
>> here is a sample header
>>
>> From: "Viagra US supplier" <nujue7241@myfairpoint.net>
>> From: "Viagra US dealer" <izylasaeym6095@bu.edu>
>>
>>
>> here is what i want to use , is this the correct syntax or do I need to double quote those quotes somehow.
>>
>> /^From: "Viagra US supplier"/ DISCARD viagra foo
>> /^From: "Viagra US dealer"/ DISCARD viagra foo
>
> /^From: .*viagra/ DISCARD viagra foo
>

what does the dot asterisk do ?
will that cover the ( " " ) quotes?
-j