| 1 | package IO::Socket::CLI::IMAPS; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | IO::Socket::CLI::IMAPS - Command-line interface to an SSL IMAP server. | ||
| 6 | |||
| 7 | =head1 VERSION | ||
| 8 | |||
| 9 | Version 0.04 | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | use IO::Socket::CLI::IMAPS; | ||
| 14 | my $imap = IO::Socket::CLI::IMAPS->new(HOST => '192.168.1.3'); | ||
| 15 | $imap->read(); | ||
| 16 | do { | ||
| 17 | $imap->prompt(); | ||
| 18 | $imap->read(); | ||
| 19 | } while ($imap->is_open()); | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | C<IO::Socket::CLI::IMAPS> provides a command-line interface to | ||
| 24 | L<IO::Socket::INET6> and L<IO::Socket::SSL>. | ||
| 25 | |||
| 26 | =for comment | ||
| 27 | =head1 EXPORT | ||
| 28 | None by default. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | =head1 METHODS | ||
| 33 | |||
| 34 | See C<IO::Socket::CLI>. | ||
| 35 | |||
| 36 | =cut | ||
| 37 | |||
| 38 | 1 | ▶ | use IO::Socket::CLI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | 1 | @ISA = ("IO::Socket::CLI"); | |
| 40 | |||
| 41 | 1 | $IO::Socket::CLI::PORT = '993'; | |
| 42 | 1 | $IO::Socket::CLI::SSL = 1; | |
| 43 | 1 | $IO::Socket::CLI::BYE = qr'^\* BYE( |\r?$)'; # string received when an IMAP server disconnects | |
| 44 | |||
| 45 | =head1 BUGS | ||
| 46 | |||
| 47 | Does not verify SSL connections. Has not been tried with STARTTLS. | ||
| 48 | |||
| 49 | =head1 SUPPORT | ||
| 50 | |||
| 51 | =over 2 | ||
| 52 | |||
| 53 | =item * CPAN Bug Tracker | ||
| 54 | |||
| 55 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=IO-Socket-CLI> | ||
| 56 | |||
| 57 | =item * Code, Pull Requests, alternative Issues Tracker | ||
| 58 | |||
| 59 | L<https://gitable.org/ashley/IO-Socket-CLI.git> | ||
| 60 | |||
| 61 | =back | ||
| 62 | |||
| 63 | =head1 COPYRIGHT AND LICENSE | ||
| 64 | |||
| 65 | Copyright (C) 2012 by Ashley Willis E<lt>ashleyw@cpan.orgE<gt> | ||
| 66 | |||
| 67 | This library is free software; you can redistribute it and/or modify | ||
| 68 | it under the same terms as Perl itself, either Perl version 5.12.4 or, | ||
| 69 | at your option, any later version of Perl 5 you may have available. | ||
| 70 | |||
| 71 | =head1 SEE ALSO | ||
| 72 | |||
| 73 | L<IO::Socket::CLI>, L<IO::Socket::INET6>, L<IO::Socket::INET>, | ||
| 74 | L<IO::Socket::SSL>, L<IO::Socket> | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 1 | 1; | |