procmail
[Top] [All Lists]

RE: Rule not being honored. Why?

2009-02-10 13:35:13
More info.

I forced this by sending a test message.  Yes, I could force this by
rerunning the message as well.  Dumping the full message headers
indicate that the From: line does in fact have a single space after it:

From: root on nbmaster001 
<root(_at_)rudun-nbmaster001(_dot_)cc1(_dot_)rush(_dot_)edu>

I have modified my rule to honor both the From_ and From: line.  It is
the From: I am talking about; if I do not tell my mailer to explicitly
dump the headers it writes the 'From: ' as 'From '.

The rule:

[...]
SPACE   =' '
TAB     ='      '
WS      =$SPACE$TAB
[...]
###
VERBOSE=on
:0:
* ^From[$WS]*root(_at_)rudun-nbmaster002\(_dot_)cc1\(_dot_)rush\(_dot_)edu
* ^Subject[$WS]*L700 NetBackup
/opt/home/cbarnard/backups

VERBOSE=on
:0:
* ^From[$WS]*root(_at_)rudun-nbmaster001\(_dot_)cc1\(_dot_)rush\(_dot_)edu
* ^Subject[$WS]*L700 NetBackup
/opt/home/cbarnard/backups
###

in the log when a message comes along:

From root(_at_)rudun-nbmaster001(_dot_)cc1(_dot_)rush(_dot_)edu Tue Feb 10 
11:15:32 2009
 Subject: L700 NetBackup test
  Folder: /var/mail/cbarnard                                       1546
procmail: Assigning"INCLUDERC=/opt/home/cbarnard/.procmail/rc.maillists"
procmail: Assigning "SPACE= "
procmail: Assigning "TAB=       "
procmail: Assigning "WS=        "
procmail: Assigning "VERBOSE=off"
procmail: Extraneous locallockfile ignored
procmail: No match on 
"^From[$WS]*root(_at_)rudun-nbmaster002\(_dot_)cc1\(_dot_)rush
\.edu"
procmail: Assigning "VERBOSE=on"
procmail: No match on 
"^From[$WS]*root(_at_)rudun-nbmaster001\(_dot_)cc1\(_dot_)rush
\.edu"
procmail: No match on "^Subject:.[Rr]e:"
procmail: Executing " formail -xFrom: | /usr/bin/fgrep -i
-f /opt/home/cbarnard/
.procmail/greenlist.dat"
procmail: Match on " formail -xFrom: | /usr/bin/fgrep -i
-f /opt/home/cbarnard/.
procmail/greenlist.dat"
procmail: Assigning "KEEPER=yes"

So it looks like the From: line of the message should match the rule
exactly, but it still thinks there is no match...


Oh, Sean, just to let you know since you mention this in your
disclaimer.  I am running this on my server "sandbox.test.rpslmc.edu".
Thats why I can change things at will.  This is my sandbox...

-- 
Christopher Barnard
--------------------------------------------------------------------------
comment your code as if the maintainer will be a homicidal maniac who
knows where you live.

____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>