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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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) ------------------------------------------------------------------- |
|
|||
|
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. |
|
|||
|
> 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) ------------------------------------------------------------------- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|