Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 19984
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: jeremy [...] sourceonenet.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: IMAP Connections
Date: Mon, 19 Jun 2006 10:42:55 -0400
To: bug-Mail-IMAPClient [...] rt.cpan.org
From: Jeremy Bailey <jeremy [...] sourceonenet.com>
I found your code (very nice btw) and was using it with my mail server "SmartMail 3.2.2327" I ran into a problem where I could not connect to the IMAP server. I dug deeper into the code and found that the login command you send: "1 LOGIN user@mydomain.com {6} mypass" did not work. I removed the "{6}" from the string In IMAPClient.pm, line 305,306 is now: my $string = "Login " . ( $has_quotes ? $id : qq("$id") ) . " " . " ".$self->Password."\r\n"; Please let me know if this was "proper" -- Jeremy Bailey Senior Development Architect SourceOne Network, Inc. Alarius Web Services Division (518) 436-1101 x4# (518) 436-9248 (Fax)
On Mon Jun 19 10:44:39 2006, jeremy@sourceonenet.com wrote: Show quoted text
> I found your code (very nice btw) and was using it with my > mail server "SmartMail 3.2.2327" > > I ran into a problem where I could not connect to the IMAP server. I > dug deeper into the code and found that the login command you send: > "1 LOGIN user@mydomain.com {6} mypass" did not work. > I removed the "{6}" from the string
According to the specs, there is either a \r\n after the {6}, or there is not {6}. So your fix could be right... but where are those \r\n which are in the code?
there are more servers which do not like the login sequence as literal, so this is changed. Probably, your problem is avoided as well. Closed ticket.