That worked. I'll make a note to not compress lines in my procmail
rules too much. Thanks much.
Christopher
On Fri, 2010-03-05 at 14:09 -0500, Charles Gregory wrote:
Move the opening brace onto a separate line. It is being treated as part
of your regex test on Subject....
- C
On Fri, 5 Mar 2010, Christopher L. Barnard wrote:
I am attempting a multi-check rule. It is not working correctly. I am
seeing two errors in my logfile.
In my rc.maillist file, the rule should be:
If the subject: line matches, then the email should go in different mail
folders depending upon the From: line. If the From: line does not
match, go into the everything-else bucket.
(Thats one huge line for the ^Subject, my mailer is trying to be helpful
and injecting <cr> into this email)
rc.maillist snippet:
:0:
* ^Subject:.*(Distribution List for Vault|Tapes brought onsite|Vault
Status|Repo
rt to Accompany off-site Media|Picking List for Robot|Picking List for
Vault|Det
ailed Distribution List|Off-site Inventory|cleaning stats|problems log) {
* ^From:.*<root(_at_)rudun-nbmaster00
/opt/home/cbarnard/bkup.rudu-nbmaster-vault
* ^From:.*dmznb
/opt/home/cbarnard/bkup-dmznb-vault
* ^From:.*nbmaster.cc1.rpslmc.edu
/opt/home/cbarnard/bkup-nbmaster-vault
}
Here is a snip from my (verbose=ON) logfile.
procmail: No match on "^Subject:.*(Distribution List for Vault|Tapes
brought onsite|Vault Status|Report to Accompany off-site Media|Picking List
for Robot|Picking List for Vault|Detailed Distribution List|Off-site
Inventory|cleaning stats|problems log) {"
procmail: Skipped "* ^From:.*dmznb"
procmail: Skipped "/opt/home/cbarnard/bkup-dmznb-vault"
procmail: Skipped "* ^From:.*nbmaster.cc1.rpslmc.edu"
procmail: Skipped "/opt/home/cbarnard/bkup-nbmaster-vault"
procmail: Closing brace unexpected
procmail: Skipped "/opt/home/cbarnard/mail/bkup-fallthrough-vault"
Two questions. First, why is it not even evaluating my first sub-test,
the one for rudun-nbmaster00 servers? And second, why in the logs am I
getting that "Closivg brace unexpected" error? I have an open brace, so
I need to close it.
Christopher
____________________________________________________________
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
____________________________________________________________
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
____________________________________________________________
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