I added this feature, so it works great for me :)

On 25-Oct-08, at 1:57 PM, Rick Bolen wrote:

Just tried to enable internet_mail with my gmail account and it fails authentication.
Is this working for anyone else? If yes, what version of MAIL::IMAPClient.pm (and dependencies) is working? 

I use 3.08

After deeper investigation, this currently fails because imap_utils.pl expects an "automatic login" when calling Mail::IMAPClient->new(). However, IMAPClient.pm->new() [v2.2.9... debian etch standard] only gets to login() thru connect() as follows:
    return $self->connect if $self->Server and !$self->Socket;
    return $self;
We already have a socket [before we call new()], so we don't go to connect() and then login().
IMAPClient.pm->new() [v3.1.1, CPAN's current] does this:
    !$self->{Socket} && $self->{Server} ?  $self->connect : $self;
Again, we already have a socket, so we don't call connect(), but even so, connect no longer calls login() in IMAPClient 3.1.1.

The logic (as I remember it), was to set up a socket to the imap server (to allow either SSL or non-SSL connectivity), and then the Mail::IMAPclient->new() creates the session over this socket.  Do I understand you correctly that the newest CPAN (3.1.1) no longer logs into the server upon a new()?

I also noticed that net_mail_account_1_server_port is not being referenced in internet_mail.pl, but only net_mail_account_1_server_send_port. Since gmail requires different servers and ports for imap and smtp, we need different sockets depending on wether we're sending or receiving. I don't think this is currently happening.

You're right, my typo. I set the port to SSl if the service is gmail, so I never noticed this error.

Am I the only one trying to access gmail in the mh web interface?
Nope. I use the mh web interface to quickly check gmail messages.

If not, what are you using? 
Thanks, Rick
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365