On Tue, Feb 10, 2009 at 09:06:29AM -0600, Christopher L. Barnard
wrote:
(I will replace those two with the commented out one once the
dust settles. Thanks for the code snippet, Dallman.)
It wasn't from me. It was from Sean Straw.
The logfile:
From root(_at_)rudun-nbmaster002(_dot_)cc1(_dot_)rush(_dot_)edu Tue Feb 10
08:00:08 2009
Subject: L700 NetBackup backup status
Folder: /var/mail/cbarnard 37152
procmail: Assigning"INCLUDERC=/opt/home/cbarnard/.procmail/rc.maillists"
procmail: Extraneous locallockfile ignored
procmail: No match on
"^From:(_dot_)root(_at_)rudun-nbmaster002(_dot_)cc1(_dot_)rush(_dot_)edu"
So it looks like it is not matching on the hostname. Why would it not?
Because your condition is looking at the From: line, not the
From_ line. What does the From: line look like?
procmail: No match on "^Subject:.[Rr]e:"
Fwiw, unless your recipe has a "D" flag on it, procmail
egrep is case-insensitive. You didn't really need the "[Rr]"
(though it didn't hurt anything).
However, your single dot is not robust. First of all,
it can match on any char, so "Subject:Pre:Post" would trigger
the condition. Second, there can be more than one whitespace
char after the colon or none at all. Use:
* ^Subject:[ ]*Re:"
where there are a space and a tab in the brackets. Better yet:
SPACE = ' '
TAB = ' '
WS = $SPACE$TAB
:0
* $ ^Subject:[$WS]*Re:
action
Dallman
____________________________________________________________
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