header checks are not case-insensitive

This is a discussion on header checks are not case-insensitive within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hello, I've configured my postfix (2.0.1) to use header-checks. As far as I understand the documentaion ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-30-2004
Sven Putze
 
Posts: n/a
Default header checks are not case-insensitive

Hello,

I've configured my postfix (2.0.1) to use header-checks.
As far as I understand the documentaion on www.postfix.org headerchecks work
like that:

/SEARCHSTRING/FLAGS ACTION

When I use this, e.g.:

/^Subject:.*Re.*your.+website/i REJECT spam

I would expect my postfix to reject mails with one of the following
subjects:

Re: your website
Re: Your Website
re: yOur WebSitE

The flag i should tell postfix to interpret the regular expression
case-insensitive, but only the first one is rejected.

Where is the point, what am I missing?

--
with kind regards

Sven Putze
http://my-bluetooth.de
-------------------------------------------------------------------
If liberty means anything at all, it means the right to tell people
what they do not want to hear. (George Orwell)
Who controls the past controls the future. Who controls the present
controls the past. (George Orwell)
-------------------------------------------------------------------




Reply With Quote
  #2 (permalink)  
Old 07-31-2004
Jim
 
Posts: n/a
Default Re: header checks are not case-insensitive

On Fri, 30 Jul 2004 14:52:23 +0200, Sven Putze wrote:

> Hello,
>
> I've configured my postfix (2.0.1) to use header-checks.
> As far as I understand the documentaion on www.postfix.org headerchecks work
> like that:
>
> /SEARCHSTRING/FLAGS ACTION
>
> When I use this, e.g.:
>
> /^Subject:.*Re.*your.+website/i REJECT spam
>
> I would expect my postfix to reject mails with one of the following
> subjects:
>
> Re: your website
> Re: Your Website
> re: yOur WebSitE
>
> The flag i should tell postfix to interpret the regular expression
> case-insensitive, but only the first one is rejected.
>
> Where is the point, what am I missing?


From the sample header checks file:

# The general format of a table entry is PATTERN RESULT.
#
# The pattern format is `/regexp/flags' or `!/regexp/flags' where regexp
# is a regular expression as found in re_format(7), and flags are
# i: toggle ignore case (REG_ICASE - default is to ignore case)
# x: toggle extended expression (REG_EXTENDED - default is extended)
# m: toggle multiline mode (REG_NEWLINE - default is non-multiline mode)

Note that the default is ingnore case. The i toggles it to NOT ignore case.

--

Quidquid latine dictum sit, altum viditur.


Reply With Quote
  #3 (permalink)  
Old 07-31-2004
Sven Putze
 
Posts: n/a
Default Re: header checks are not case-insensitive

> From the sample header checks file:
>
> # The general format of a table entry is PATTERN RESULT.
> #
> # The pattern format is `/regexp/flags' or `!/regexp/flags' where regexp
> # is a regular expression as found in re_format(7), and flags are
> # i: toggle ignore case (REG_ICASE - default is to ignore case)
> # x: toggle extended expression (REG_EXTENDED - default is extended)
> # m: toggle multiline mode (REG_NEWLINE - default is non-multiline mode)
>
> Note that the default is ingnore case. The i toggles it to NOT ignore

case.

OK, not exactly RTFM, I just misunderstood that toggle thing (expected perl
behaviour).

Thanks anyway, I'll sleep much better now :-)

--
with kind regards

Sven Putze
http://my-bluetooth.de
-------------------------------------------------------------------
If liberty means anything at all, it means the right to tell people
what they do not want to hear. (George Orwell)
Who controls the past controls the future. Who controls the present
controls the past. (George Orwell)
-------------------------------------------------------------------


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0