Haineko::SMTPD::Greeting - Create an EHLO response object
use Haineko::SMTPD::Greeting; my $r = [ '250-PIPELINING', '250-DSN', '250-STARTTLS', '250-SIZE 26214400', '250-AUTH PLAIN CRAM-MD5', '250-8BITMIME', ... ]; my $g = Haineko::SMTPD::Greeting->new( @$r ); print $e->dsn; # 1 print $e->auth; # 1 print $e->starttls; # 1 print $e->size; # 26214400
new( @{EHLO Response lines} )
new() is a constructor of Haineko::SMTPD::Greeting
new()
my $r = [ '250-PIPELINING', '250-DSN', '250-STARTTLS', '250-SIZE 26214400', '250-AUTH PLAIN CRAM-MD5', '250-8BITMIME', ... ]; my $g = Haineko::SMTPD::Greeting->new( @$r );
mechs( SMTP-AUTH MECHANISM)
mechs() returns whether specified SMTP-AUTH mechanism is available or not.
mechs()
print $g->mechs( 'CRAM-MD5' ); # 1 print $g->mechs( 'LOGIN' ); # 0 print $g->mechs( 'DIGETST-MD5' ); # 0
Https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.