On Mon January 16 2006 18:36, M. J. [Mike] OBrien wrote:
> That's not DBMail but just bad Perl code.
> The message itself explains the problem.
> Try PerlDoc strict etc.
> 
> best...
> Mike
> 

Not that simple. As I thought, there is an incompatibility between 
Mail::Box::IMAP4 module and DBMail.

In short, dbmail-imapd accepts only 'LOGIN' authentication, while 
Mail::Box::IMAP4 supports only 'CRAM-MD5', 'NTLM' and 'PLAIN' authentication.

I've hacked the perl module to force it to accept the 'LOGIN' capability sent 
by DBMail. This method is then passed to the underlying module 
'Mail::IMAPClient' which happens to know how to connect with this method.

Just a workaround. The solution is to add 'CRAM-MD5' or 'NTLM' capability to 
dbmail-imapd. Beside solving this compatibility problem, this would bring a 
useful security feature.


> 
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, January 16, 2006 7:22 AM
> Subject: [Dbmail] Mail::Box compatibility ?
> 
> 
> Dear All,
> 
> I'm trying to use the Perl Mail::Box modules to access my mailboxes.
> 
> Does somebody has an experience with these modules ?
> 
> It seems that the perl module receives unexpected strings from the server.
> 
> When I try to open a connection,
> 
> ---------------
> my $imap = Mail::Box::IMAP4->new(username => 'zorro',
> password => 'garcia', server_name => 'imap.domain.tld');
> ---------------
> 
> I receive the following error message :
> 
> ---------------
> Can't use string ("LOGIN") as an ARRAY ref while "strict refs" in use 
> at /usr/lib/perl5/vendor_perl/5.8.6/Mail/Transport/IMAP4.pm line 97.
> ---------------
> 
> TIA for any information.
>  
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 

Reply via email to