1 message in net.sourceforge.lists.courier-users[courier-users] courierperlfilter que...
FromSent OnAttachments
Systems AdministratorJan 6, 2004 7:39 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:[courier-users] courierperlfilter questionActions...
From:Systems Administrator (sysa@sunet.com.au)
Date:Jan 6, 2004 7:39:39 pm
List:net.sourceforge.lists.courier-users

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,