You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Sergio <se...@gmail.com> on 2011/12/01 20:30:19 UTC

how to check the size of the subject?

Hi all,
is there a way to check the size of a subject on a rule?

Thanks in advance.

Sergio

Re: how to check the size of the subject?

Posted by Sergio <se...@gmail.com>.
Working great! lol


On Thu, Dec 1, 2011 at 5:10 PM, Benny Pedersen <me...@junc.org> wrote:

> On Thu, 1 Dec 2011 16:59:33 -0600, Sergio wrote:
>
>> Sorry, I always reply to the list, this time it flips on me.
>>
>
> try reply now, just testing :-)
>

Re: how to check the size of the subject?

Posted by Benny Pedersen <me...@junc.org>.
On Thu, 1 Dec 2011 16:59:33 -0600, Sergio wrote:
> Sorry, I always reply to the list, this time it flips on me.

try reply now, just testing :-)

Re: how to check the size of the subject?

Posted by Sergio <se...@gmail.com>.
Sorry, I always reply to the list, this time it flips on me.

Thanks!
So, this way I can have a check on the large of the subject as a sub rule
and then check for the content, appreciated.

Regards,

Sergio

On Thu, Dec 1, 2011 at 4:33 PM, John Hardin <jh...@impsec.org> 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}$/
>
>
>  Sergio
>>
>> On Thu, Dec 1, 2011 at 3:41 PM, John Hardin <jh...@impsec.org> wrote:
>>
>>  On Thu, 1 Dec 2011, Sergio wrote:
>>>
>>>   is there a way to check the size of a subject on a rule?
>>>>
>>>
>>> Do you want to know if it's larger than or smaller than some specific
>>> size, or do you want to know about how many characters are in it?
>>>
>>
> --
>  John Hardin KA7OHZ                    http://www.impsec.org/~**jhardin/<http://www.impsec.org/%7Ejhardin/>
>  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
>  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
> ------------------------------**------------------------------**
> -----------
>  Any time law enforcement becomes a revenue center, the system
>  becomes corrupt.
>
> ------------------------------**------------------------------**
> -----------
>  14 days until Bill of Rights day
>

Re: how to check the size of the subject?

Posted by Per Jessen <pe...@computer.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


Re: how to check the size of the subject?

Posted by John Hardin <jh...@impsec.org>.
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}$/

> Sergio
>
> On Thu, Dec 1, 2011 at 3:41 PM, John Hardin <jh...@impsec.org> wrote:
>
>> On Thu, 1 Dec 2011, Sergio wrote:
>>
>>>  is there a way to check the size of a subject on a rule?
>>
>> Do you want to know if it's larger than or smaller than some specific
>> size, or do you want to know about how many characters are in it?

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Any time law enforcement becomes a revenue center, the system
   becomes corrupt.
-----------------------------------------------------------------------
  14 days until Bill of Rights day

Re: how to check the size of the subject?

Posted by John Hardin <jh...@impsec.org>.
On Thu, 1 Dec 2011, Sergio wrote:

> is there a way to check the size of a subject on a rule?

Do you want to know if it's larger than or smaller than some specific 
size, or do you want to know about how many characters are in it?

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Our government should bear in mind the fact that the American
   Revolution was touched off by the then-current government
   attempting to confiscate firearms from the people.
-----------------------------------------------------------------------
  14 days until Bill of Rights day