NAME
Haineko::SMTPD::Greeting - Create an EHLO response object
SYNOPSIS
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
CLASS METHODS
new( @{EHLO Response lines} )
new()
is a constructor of 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 );
INSTANCE METHODS
mechs( SMTP-AUTH MECHANISM)
mechs()
returns whether specified SMTP-AUTH mechanism is available or not.
print $g->mechs( 'CRAM-MD5' ); # 1
print $g->mechs( 'LOGIN' ); # 0
print $g->mechs( 'DIGETST-MD5' ); # 0
REPOSITORY
Https://github.com/azumakuniyuki/Haineko
AUTHOR
azumakuniyuki <perl.org [at] azumakuniyuki.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.