Henrik K wrote:
> On Thu, Oct 15, 2009 at 03:43:52PM -0400, Adam Katz wrote:
>> # @Mike Cappella on sa-users, 20090806 20:50 UTC + 20090822 at 18:19
>> header MC_TAB_IN_FROM From:raw =~ /^\t/m
>> describe MC_TAB_IN_FROM From: Contains a tab
>> score MC_TAB_IN_FROM 0.6 # 20091015, considering bump to 1.2
>
> You missed the important post:
>
> http://mail-archives.apache.org/mod_mbox/spamassassin-users/200908.mbox/%[email protected]%3e
Ah, right. That should be /s rather than /m, as in:
header MC_TAB_IN_FROM From:raw =~ /^\t/s
(Since /^\t/s == /\A\t/m == /\A\t/s == /\A\t/ )
I think carrot is more legible/recognizable than \A, and /\A\t/ and
/\A\t/s are pointless since \A only differs from ^ when using /m.
(Maybe that's just because I use regexps in perl, vim, and javascript.
\A only works this way in perl, while ^ inside /s works everywhere.)
If I'm wrong anywhere, please do correct.
My channel has this update pending for its next release.