Re: [Mimedefang] use Net::LDAP and file descriptor error.

2006-11-02 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 1 Nov 2006, Matthew Schumacher wrote: This code: sub filter_initialize { use Net::LDAP; } Just a sidenote: "use" is a compile-time keyword, hence, it does not matter if you place it in or outern a function. See: http://www.perl.com/do

Re: [Mimedefang] use Net::LDAP and file descriptor error.

2006-11-01 Thread Matthew Schumacher
Dave O'Neill wrote: > It's safe to ignore. That warning's getting removed in a future version > of MIMEDefang anyway. > > The reason you're getting it is because Net::LDAP::Constant is a > shocking abuse of Perl. That module opens its own source, via the DATA > handle, so that it can parse its o

Re: [Mimedefang] use Net::LDAP and file descriptor error.

2006-11-01 Thread Dave O'Neill
On Wed, Nov 01, 2006 at 01:04:11PM -0900, Matthew Schumacher wrote: > Since I'm putting it in filter_initialize and my filters seem to work > fine I'm thinking that I can safely ignore it, but I want to double > check with the list. > > Anyone have thoughts on why this wouldn't work? It's safe to

[Mimedefang] use Net::LDAP and file descriptor error.

2006-11-01 Thread Matthew Schumacher
List, This code: sub filter_initialize { use Net::LDAP; } Causes me to get this error: mimedefang-multiplexor[612]: WARNING: Something in your Perl filter appears to have opened a file descriptor outside of any function. With embedded Perl, you should move any code that opens a file descript