Sisimai::RFC5322 - Email address related utilities
use Sisimai::RFC5322;
Sisimai::RFC5322 provide methods for checking email address.
received(String)
received() returns array reference including elements in the Received header.
received()
my $v = 'from mx.example.org (c1.example.org [192.0.2.1]) by neko.libsisimai.org with ESMTP id neko20180202nyaan for <michitsuna@nyaan.jp>; ...'; my $r = Sisimai::RFC5322->received($v); warn Dumper $r; $VAR1 = [ 'mx.example.org', 'neko.libsisimai.org', '', 'ESMTP', 'neko20180202nyaan', 'michitsuna@nyaan.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.
part()
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>'; ];
azumakuniyuki
Copyright (C) 2014-2024 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
To install Sisimai, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sisimai
CPAN shell
perl -MCPAN -e shell install Sisimai
For more information on module installation, please visit the detailed CPAN module installation guide.