Sisimai::RFC5322(3pm)

Sisimai::RFC53223pm

Email address related utilities

Usage

    use Sisimai::RFC5322;

Overview

"Sisimai::RFC5322" provide methods for checking an email address.

Class methods

"received(String)"

received() method returns an array reference including elements in the "Received:" header.

    my $v = 'from mx.example.org (c1.example.org [192.0.2.1]) by neko.libsisimai.org
             with ESMTP id neko20180202nyaan for <[email protected]>; ...';
    my $r = Sisimai::RFC5322->received($v);
    warn Dumper $r;
    $VAR1 = [
          'mx.example.org',
          'neko.libsisimai.org',
          '',
          'ESMTP',
          'neko20180202nyaan',
          '[email protected]'
        ];

"part(String, Array)"

part() method returns an array reference which include error message lines of given message body and the original message part splitted by the 2nd argument.

    my $v = 'Error message here
    Content-Type: message/rfc822
    Return-Path: <[email protected]>';
    my $r = Sisimai::RFC5322->part(\$v, ['Content-Type: message/rfc822']);
    warn Dumper $r;
    $VAR1 = [
        'Error message here',
        'Return-Path: <[email protected]>';
    ];

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

azumakuniyuki

License

This software is distributed under The BSD 2-Clause License.

From libsisimai-perl 5.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.