in reply to Checking muliptle mailboxes on same server with Net::POP3

Have you tried creating a new Net::POP3 object for each user?

i.e.

use strict; use Net::POP3; $|++; my %user = ( a => 1 , b => 2, c => 3); my $host = "host.net"; for my $key ( keys %user){ my $pop = Net::POP3->new($host); print "Working on $key...\n"; my $msg = $pop->login( $key, $user{$key} ); print "$key: $msg\n"; $pop->quit; }
I haven't used Net::POP3 at all but it might be worth a try.

Replies are listed 'Best First'.
Re^2: Checking muliptle mailboxes on same server with Net::POP3
by Popcorn Dave (Abbot) on Apr 13, 2007 at 02:54 UTC
    No I haven't tried that. That never even occurred to me. Thanks!

    That may be the exact problem as like I had said, I can check for a single user, hard coded in the $pop->login portion but it was choking on different users.

    Update: That did the trick! I didn't see anything in the docs about that, but perhaps I missed it.

    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code