spamassassin-users December 2011 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: how to check the size of the subject?

Re: how to check the size of the subject?

From: Per Jessen <per_at_nospam>
Date: Fri Dec 02 2011 - 14:49:42 GMT
To: users@spamassassin.apache.org

John Hardin wrote:

> On Thu, 1 Dec 2011, Sergio wrote:
>
>> I want to check for specific subject size, thanks.
>
> Let's keep the discussion on-list so others may benefit.
>
> Larger than:
>
> header __SUBJ_GT_100 Subject =~ /.{101}/
>
> Smaller than or equal to:
>
> header __SUBJ_LE_100 Subject =~ /^.{0,100}$/

For MIME-encoded, does this work on the raw data or the decoded? (raw I
suspect).

/Per Jessen, Z├╝rich