procmail
[Top] [All Lists]

Re: testing rc file

2001-03-06 11:51:31
At 12:17 2001-03-06 -0500, Timothy J. Luoma wrote:

I need to test an RC file which has a recipe (which works fine as shell commands
but fails when in procmail, and leaves no clear msg why in the log)

Probably an issue with the path, or shell.

it's something like

        procmail -m /path/to/test.rc < message.txt

Looks fine to me.

When testing, I invoke against a pile of messages:

        formail -s procmail -m testing.rc < messages.mbx

Or, actually (since I gzip archives of messages - such as spam):

        gzip -d -c messages.gz | formail -s procmail -m testing.rc

Does your test.rc set up a procmail environment?

I have a testing.rc "wrapper" that sets up a test environment (LOGFILE and DEFAULT to different paths than my actual mail for instance), then INCLUDERCs my actual test filter.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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