Return-Path: X-Original-To: apmail-spamassassin-users-archive@www.apache.org Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D854736D for ; Thu, 1 Dec 2011 23:00:03 +0000 (UTC) Received: (qmail 57274 invoked by uid 500); 1 Dec 2011 23:00:00 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 57253 invoked by uid 500); 1 Dec 2011 23:00:00 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 57246 invoked by uid 99); 1 Dec 2011 23:00:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 23:00:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of secmas@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bw0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 22:59:53 +0000 Received: by bkbzx1 with SMTP id zx1so3516332bkb.37 for ; Thu, 01 Dec 2011 14:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OQFz5BQamI8eJ2LVptqKYoyRhz6nO4WZK71tDqJ5yPw=; b=dgQvL/y9+udl8bRQ4zAOdwnztMz6YJ5nQJlk2n47t1zTrjsvLeyO3pkIY/Z2Vdxdz8 EznO/cPS3OTkv+Bs0phIuW1wge3wg7tov/XYdKX+6AE8MOSR+O3XuIk8hERiK6CQ6Pxb U2PJaAQtb6mULYfN/ewkBt4Q6Jvuv6odm3o5M= MIME-Version: 1.0 Received: by 10.204.149.216 with SMTP id u24mr9371373bkv.73.1322780373367; Thu, 01 Dec 2011 14:59:33 -0800 (PST) Received: by 10.223.101.194 with HTTP; Thu, 1 Dec 2011 14:59:33 -0800 (PST) In-Reply-To: References: Date: Thu, 1 Dec 2011 16:59:33 -0600 Message-ID: Subject: Re: how to check the size of the subject? From: Sergio To: SpamAssassin Users List Content-Type: multipart/alternative; boundary=0015175dd9d2453b5704b30fceb4 X-Virus-Checked: Checked by ClamAV on apache.org --0015175dd9d2453b5704b30fceb4 Content-Type: text/plain; charset=ISO-8859-1 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 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 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 > --0015175dd9d2453b5704b30fceb4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 ru= le and then check for the content, appreciated.

Regards,

Serg= io

On Thu, Dec 1, 2011 at 4:33 PM, John Hardin = <jhardin@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 =A0__SUBJ_GT_100 =A0 Subject =3D~ /.{101}/

Smaller than or equal to:

header =A0__SUBJ_LE_100 =A0 Subject =3D~ /^.{0,100}$/


Sergio

On Thu, Dec 1, 2011 at 3:41 PM, John Hardin <jhardin@impsec.org> wrote:

On Thu, 1 Dec 2011, Sergio wrote:

=A0is 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?

--
=A0John Hardin KA7OHZ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://www.impsec.org/~jhardin/
=A0jhardin@impsec.o= rg =A0 =A0FALaholic #11174 =A0 =A0 pgpk -a jhardin@impsec.org
=A0key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C =A0AF76 D822 E6E6 B873 2E79<= br> -------------------------------------------------------------= ----------
=A0Any time law enforcement becomes a revenue center, the system
=A0becomes corrupt.

-------------------------------------------------------------= ----------
=A014 days until Bill of Rights day

--0015175dd9d2453b5704b30fceb4--