Authen-Simple-IMAP
view release on metacpan or search on metacpan
is how I use a mock imap object for the unit tests.
* authenticate( $username, $password )
Returns true on success and false on failure.
DEPENDENCIES
Net::IMAP::Simple is required, and Net::IMAP::Simple::SSL is required
for IMAPS. Net::IMAP::Simple::Plus adds some patches to the otherwise
abandoned and broken Net::IMAP::Simple, so I recommend it.
BUGS AND LIMITATIONS
* I've never tried this in mod_perl, so including the mod_perl example
in the synopsis is pure hubris on my part.
* The unit tests are pretty sparse. They don't include any tests
against real IMAP servers. They just do a successful and failed
password against a mock imap server object.
* This module uses Net::IMAP::Simple, which is broken and abandoned. I
should either use something else or implement the IMAP stuff myself.
I wound up wrapping the Net::IMAP::Simple stuff in an alarm+eval
lib/Authen/Simple/IMAP.pm view on Meta::CPAN
Returns true on success and false on failure.
=back
=head1 DEPENDENCIES
Net::IMAP::Simple is required, and Net::IMAP::Simple::SSL is required for IMAPS.
Net::IMAP::Simple::Plus adds some patches to the otherwise abandoned and broken Net::IMAP::Simple, so I recommend it.
=head1 BUGS AND LIMITATIONS
=over 4
=item *
I've never tried this in mod_perl, so including the mod_perl example in
the synopsis is pure hubris on my part.
=item *
( run in 0.279 second using v1.01-cache-2.11-cpan-4d50c553e7e )