Sisimai::RFC5322(3pm) | User Contributed Perl Documentation | Sisimai::RFC5322(3pm) |
Sisimai::RFC5322 - Email address related utilities
use Sisimai::RFC5322;
Sisimai::RFC5322 provide methods for checking email address.
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() 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>'; ];
azumakuniyuki
Copyright (C) 2014-2023 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
2024-03-03 | perl v5.38.2 |