Going to a new thread with actual tests of technique mentioned in a
different thread
Subject: about procmail regex operators
The question about count style operators was answered in full.
But a technique demonstrated in that thread by Bart S.:
RE1="[a-zA-Z0-9]"
RE2="$RE1$RE1"
RE4="$RE2$RE2"
RE8="$RE4$RE4"
RE16="$RE8$RE8"
to ease the writing of long regex, is not getting the expected result here.
I'm pretty sure its because I'm failing to execute it properly in some
way but not seeing it.
Below I've included
1) the recipe
2) the message
3) logoutput
------- --------- ---=--- --------- --------
procrc (trimmed):
ALNU4=[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]
ALNU8=${ALNU4}${ALNU4}
ALNU16=${ALNU8}${ALNU8}
:0
* ^Subject:.*$ALNU16
t1.bk/.
:0
last.bk/.
------- --------- ---=--- --------- --------
Message:
Just one sample of (trimmed) headers that zipped by that regex
From mptbjviug(_at_)felbers(_dot_)net Sat Mar 6 06:15:03 2010
Return-Path: <mptbjviug(_at_)felbers(_dot_)net>
Received: from reader.local.lan (reader.local.lan [127.0.0.1])
by reader.local.lan (8.14.4/8.14.4) with ESMTP id o26CF3e7025711
for <reader(_at_)localhost>; Sat, 6 Mar 2010 06:15:03 -0600
[...]
Message-ID: <00e501cabdfa$a2cf03b0$18a8c875(_at_)hrpsu>
From: "nquxxfmuck(_at_)felbers(_dot_)net" <nquxxfmuck(_at_)felbers(_dot_)net>
To: "rafeboy333" <reader(_at_)newsguy(_dot_)com>
Subject: AarcccKlllooUllllPPkdkellkjW
Date: Sun, 07 Mar 2010 07:32:15 -0600
MIME-Version: 1.0
[...]
------- --------- ---=--- --------- --------
log output (trimmed and emphasis added with `***'):
[...]
procmail: Assigning "ALNU4=[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]"
procmail: Assigning
"ALNU8=[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]"
procmail: Assigning
"ALNU16=[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]"
****************
procmail: No match on "^Subject:.*$ALNU16"
****************
procmail: Assigning "LASTFOLDER=last.bk/1"
procmail: Opening "last.bk/1"
procmail: Acquiring kernel-lock
From mptbjviug(_at_)felbers(_dot_)net Sat Mar 6 06:15:03 2010
Subject: AarcccKlllooUllllPPkdkellkjW
Folder: last.bk/1 2036
[...]
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail