imap4...
Tom Allison <[email protected]> Tue, 21 Dec 2004 00:05:11 -0500
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
I've noticed that if I do a login using the $login value: my $login = "imap4://$username:$password\@$server/"; my $f = $mgr->open($login, authenticate => 'PLAIN', folder => 'bogofilter' ); print $f->name,"\n"; print scalar $f->messages,"\n"; OUTPUT / 0 my $folder = $mgr->open(type => 'imap4', server_name => $server, username => $username, password => $password, authenticate => 'PLAIN', folder => 'Inbox' ); print $folder->name,"\n"; print scalar $folder->messages,"\n"; OUTPUT Inbox 1500 $folder = $mgr->open(type => 'imap4', server_name => $server, username => $username, password => $password, authenticate => 'PLAIN', authenticate => 'PLAIN', folder=>'bogofilter.hamnew'); print $folder->name,"\n"; print scalar $folder->messages,"\n"; OUTPUT bogofilter.hamnew 5 I'm not very sure where this might be. But my guess is in the sub transporter of IMAP4.pm Then using a $login string of imap://username... the folder is not taken when you specify is as 'folder => ' and if you append the folder to the end of the $login, you fail to log in.