Haineko::SMTPD::RFC5321 - Tools related RFC-5321
use Haineko::SMTPD::RFC5321; my $x = Haineko::SMTPD::RFC5321->is8bit( \$string ); my $y = Haineko::SMTPD::RFC5321->check_ehlo( $ehlo_hostname );
is8bit( \$string )
is8bit() returns whether $string contains non-ascii character or not.
is8bit()
$string
my $x = 'Stray cat'; my $y = '野良猫'; my $z = 'villast köttur'; print Haineko::SMTPD::RFC5321->is8bit( \$x ); # 0 print Haineko::SMTPD::RFC5321->is8bit( \$y ); # 1 print Haineko::SMTPD::RFC5321->is8bit( \$z ); # 1
check_ehlo( EHLO-HOSTNAME)
check_ehlo() checks whether specified hostname is valid as EHLO-HOSTNAME or not.
check_ehlo()
EHLO-HOSTNAME
print Haineko::SMTPD::RFC5321->check_ehlo('[127.0.0.1]'); # 1(OK) print Haineko::SMTPD::RFC5321->check_ehlo('cat.example.jp'); # 1(OK) print Haineko::SMTPD::RFC5321->check_ehlo(''); # 0(NG) print Haineko::SMTPD::RFC5321->check_ehlo('cat@example.jp'); # 0(NG)
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.