Provided by: libsisimai-perl_5.0.1-1_all
NAME
Sisimai::RFC5322 - Email address related utilities
SYNOPSIS
use Sisimai::RFC5322;
DESCRIPTION
Sisimai::RFC5322 provide methods for checking email address.
CLASS METHODS
"received(String)" received() returns array reference which include host names in the Received header. my $v = 'from mx.example.org (c1.example.net [192.0.2.1]) by mx.example.jp'; my $r = Sisimai::RFC5322->received($v); warn Dumper $r; $VAR1 = [ 'mx.example.org', 'mx.example.jp' ]; "part(String, Array)" part() returns array reference which include error message lines of given message body and the original message part split by the 2nd argument. my $v = 'Error message here Content-Type: message/rfc822 Return-Path: <neko@libsisimai.org>'; my $r = Sisimai::RFC5322->part(\$v, ['Content-Type: message/rfc822']); warn Dumper $r; $VAR1 = [ 'Error message here', 'Return-Path: <neko@libsisimai.org>'; ];
AUTHOR
azumakuniyuki
COPYRIGHT
Copyright (C) 2014-2023 azumakuniyuki, All rights reserved.
LICENSE
This software is distributed under The BSD 2-Clause License.