On Wed, Mar 25, 2009 at 08:47:53PM -0400, Michael Bluejay wrote:
I'm unable to pipe messages to my script. My recipe is:
:0
* ^TO_address(_at_)domain(_dot_)com
|/path/to/script.pl
But my script doesn't actually run. The script (in its test form) is
supposed to create a "test.txt" file no matter what input it's passed,
but the file never gets created. The script runs fine from the command
line and creates the file properly. My .procmail log says:
procmail: Assigning "LASTFOLDER=/path/to/script.pl"
procmail: Executing "/path/to/script.pl"
procmail: Notified comsat: "user@:/path/to/script.pl"
From MAILER-DAEMON Wed Mar 25 19:02:44 2009
Subject: Undelivered Mail Returned to Sender
Folder: /path/to/script.pl 2751
Is your procmail invoked on the same server as the one
where you see your script on the command line?
Anyway, your recipe will eat your message. The pipe
will get it, but procmail won't have anything else to
process afterward. You might want a c-flag on the
recipe.
Btw, don't use "domain.com" as a generic domain name in examples.
That is a real domain with hundreds of thousands of customers.
In fact, I would be happy to bypass my script altogether, if I could get
procmail to just save the file somewhere with the Reply-To address as the
filename, but I couldn't figure out how to do that either.
I don't understand why you need the perl thing at all anyway.
In the brackets below are a caret, a space, and a tab.
:0:
* ^Reply-To:.*\/[^ ].*
/path/to/$MATCH
Add a c-flag as desired.
dman
____________________________________________________________
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