Package Info

perl-Email-Address-XS


Parse and format RFC 5322 email addresses and groups


Unspecified

This module implements at https://tools.ietf.org/html/rfc5322 parser and formatter of email addresses and groups. It parses an input string from email headers which contain a list of email addresses or a groups of email addresses (like From, To, Cc, Bcc, Reply-To, Sender, ...). Also it can generate a string value for those headers from a list of email addresses objects. Module is backward compatible with at https://tools.ietf.org/html/rfc2822 and at https://tools.ietf.org/html/rfc822.

Parser and formatter functionality is implemented in XS and uses shared code from Dovecot IMAP server.

It is a drop-in replacement for the Email::Address module which has several security issues. E.g. issue at https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7686, which allows remote attackers to cause denial of service, is still present in Email::Address version 1.908.

Email::Address::XS module was created to finally fix CVE-2015-7686.

Existing applications that use Email::Address module could be easily switched to Email::Address::XS module. In most cases only changing 'use Email::Address' to 'use Email::Address::XS' and replacing every 'Email::Address' occurrence with 'Email::Address::XS' is sufficient.

So unlike Email::Address, this module does not use regular expressions for parsing but instead native XS implementation parses input string sequentially according to RFC 5322 grammar.

Additionally it has support also for named groups and so can be use instead of the Email::Address::List module.

If you are looking for the module which provides object representation for the list of email addresses suitable for the MIME email headers, see Email::MIME::Header::AddressList.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Email-Address-XS

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.05-bp155.1.6 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Email-Address-XS
1.04-bp154.1.25 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Email-Address-XS
1.04-bp153.1.16 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Email-Address-XS
1.04-bp152.3.13 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Email-Address-XS
1.04-bp151.1.1 info GA Release 2019-06-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Email-Address-XS