5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] parsing mail with a s...
FromSent OnAttachments
ke...@pcintelligent.comMar 5, 2003 6:34 am 
Gregor LawatscheckMar 5, 2003 7:23 am 
ke...@refriedgeeks.comMar 5, 2003 9:55 am 
Gregor LawatscheckMar 5, 2003 10:51 am 
ke...@refriedgeeks.comMar 5, 2003 9:37 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] parsing mail with a scriptActions...
From:Gregor Lawatscheck (gp@mpex.net)
Date:Mar 5, 2003 10:51:59 am
List:net.sourceforge.lists.courier-maildrop

At 17:59 05/03/2003, you wrote:

Hi there,

Thanks, I tried both examples however I am still having problems... I put this line in my .mailfilter file.

xfilter "/usr/local/bin/test.pl"

But I get this in the maillog, maildrop:_error_writing_to_filter./maildrop:_Unable_to_filter_message./

I don't know why it would have a problem, the perms on the file are 755 and I tested the script. It just takes STDIN and dumps it to a file.

I wish the error message was a little more informational cause I have tried several combinations and nothing helped.

Any suggestions?

Unless your program returns with errorcode 0 and provides some a valid output on STDOUT xfilter will fail. What happens if you envoke it through backticks? Try testing your perl script by piping something to it outside of maildrop ( cat testmessage | /usr/local/bin/test.pl ) and see if that works first before debugging it with maildrop...