Jon Rust <[EMAIL PROTECTED]> writes:
> The Net:POP3 login method expects to get a message count back after a
> successful login. Qmail's pop3d does not provide a message count, so
> it's impossible to tell if login succeeded (-> login() always returns
> as a "fail"). Is there a patch available to qmail's pop3d to return
> the number of messages after a successful login?
Qmail's pop3d conforms to the rfc (1939). Net::POP3 attempts to snarf
the number of messages from a comment after the +OK response to PASS,
but if that fails it issues a STAT and gets the number that way.
In short, I don't see a problem here[*]. This test give the correct
result when run against a pop3d server:
perl -MNet::POP3 -le '$p=Net::POP3->new("pop.example.com");
print $p->login("username","password");'
[*] Parsing a comment is reckless, but isn't a problem when the server
is pop3d.
--
Frank Cringle, [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357