Net-APP
view release on metacpan or search on metacpan
my $lines = $self->read_until_dot;
if ( $self->debug ) {
foreach ( @{$lines}, ".\n" ) { $self->debug_print('', $_ ) }
}
if ( $lines->[0] =~ /^(OK|ER)\s+(\d+)\s+(.*)$/ ) {
warn 'OK response with non-zero status!' if $1 eq 'OK' && $2;
warn 'ER response with zero status!' if $1 eq 'ER' && ! $2;
$self->set_status ( $2, $3 );
} else {
$self->set_status ( -1, $lines->[0] );
}
$lines;
}
=back
=head1 INTERNAL SUBROUTINES
These subroutines are not intended to be called by the user.
=over 4
=item _quote
Doubles double quotes.
=cut
sub _quote {
my $string = shift;
$string =~ s/\"/\"\"/g; #consecutive quotes?
$string;
}
=back
=head1 AUTHOR
Ivan Kohler <ivan-netapp_pod@420.am>.
This module is not sponsored or endorsed by Critical Path.
=head1 COPYRIGHT
Copyright (c) 2001 Ivan Kohler.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
=head1 PROTOCOL VERSION
This module currently implements APP v3.3, as documented in the Account
Provisioning Protocol Developers Guide v3.3.
=head1 BUGS
The Account Provisioning Protocol Developer's Guide is not publicly available.
It appears that Safe Passage Secure Tunnel and Stunnel establish standard SSL
connections. It should be possible to use Net::SSLeay and connect to the APP
server directly. Initial prototyping with IO::Socket::SSL was not promising. :(
The get_num_domain_mailboxes, get_mailbox_availability and get_mailbox_status
methods currently return response information. No attempt is (yet) made to
parse this data.
=head1 SEE ALSO
Critical Path <http://www.cp.net/>,
APP documentation <http://support.cp.net/products/email_messaging/documentation/index.jsp>,
Safe Passage Secure Tunnel <http://www.int.c2.net/external/?link=spst/index.php3>,
Stunnel <http://www.stunnel.org>,
L<IO::Socket>, L<Net::Cmd>, perl(1).
=cut
1;
( run in 3.338 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )