Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Sisimai::RFC1894(3)   User Contributed Perl Documentation  Sisimai::RFC1894(3)

NAME
       Sisimai::RFC1894	- DSN field defined in RFC3464 (obsoletes RFC1894)

SYNOPSIS
	   use Sisimai::RFC1894;

	   print Sisimai::RFC1894->match('From:	Nyaan <kijitora@libsisimai.org>'); # 0
	   print Sisimai::RFC1894->match('Reporting-MTA: DNS; mx.libsisimai.org'); # 1
	   print Sisimai::RFC1894->match('Final-Recipient: RFC822; cat@nyaan.jp'); # 2

	   my $v = Sisimai::RFC1894->field('Reporting-MTA: DNS;	mx.nyaan.jp');
	   my $r = Sisimai::RFC1894->field('Status: 5.1.1');
	   print Data::Dumper::Dumper $v;  # ['reporting-mta', 'dns', 'mx.nyaan.org', 'host'];
	   print Data::Dumper::Dumper $r;  # ['status',	'', '5.1.1', 'stat'];

DESCRIPTION
       Sisimai::RFC1894	provide	methods	for checking or	getting	DSN fields

CLASS METHODS
   "match(String)"
       "match()" checks	the argument includes a	field defined in RFC3464 or
       not

	   print Sisimai::RFC1894->match('From:	Nyaan <kijitora@libsisimai.org>'); # 0
	   print Sisimai::RFC1894->match('Reporting-MTA: DNS; mx.libsisimai.org'); # 1
	   print Sisimai::RFC1894->match('Final-Recipient: RFC822; cat@nyaan.jp'); # 2

   "field(String)"
       "field()" returns splited values	as an array reference from given a
       string including	DSN fields defined in RFC3464.

	   my $v = Sisimai::RFC1894->field('Remote-MTA:	DNS; mx.nyaan.jp');
	   my $r = Sisimai::RFC1894->field('Status: 5.1.1');
	   print Data::Dumper::Dumper $v;  # ['remote-mta', 'dns', 'mx.nyaan.org', 'host'];
	   print Data::Dumper::Dumper $r;  # ['status',	'', '5.1.1', 'stat'];

AUTHOR
       azumakuniyuki

COPYRIGHT
       Copyright (C) 2018-2020 azumakuniyuki, All rights reserved.

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

perl v5.32.0			  2020-07-17		   Sisimai::RFC1894(3)

NAME | SYNOPSIS | DESCRIPTION | CLASS METHODS | AUTHOR | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Sisimai::RFC1894&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help