Hi all.  I'm wanting to test a perlfilter script, and from what I
can figure it wants a socket ID in ARGV when it starts.  I'd like to test
this filter without having it run as one of Courier's mail filters.  I can
probably come up with some wrapper around it, etc, but I don't understand
how to pass the file descriptor to the script.  I've tried (in perl):

---------------
open($handle, "mailfile");

$foo = '/usr/local/bin/spamassassin-filter.pl ' . $handle;
print `$foo`;
---------------

        That doesn't work.  Does anyone have any ideas?

        Thanks,

--
Tim Nelson
Systems Administrator
Sunet Internet
Tel:�+61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: [EMAIL PROTECTED]






-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to