P5-email-address-xs

Jul 20, 2023

Parse and format RFC 2822 email addresses and groups

This module implements RFC 2822 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.

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

It is a drop-in replacement for the EmailAddress module which has several security issues. Existing applications that use EmailAddress module could be easily switched to EmailAddressXS module. In most cases only changing use EmailAddress to use EmailAddressXS and replacing every EmailAddress occurrence with EmailAddressXS is sufficient.

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

Additionally it has support also for named groups and so can be use instead of the EmailAddressList module.



Checkout these related ports:
  • Xpbiff -
  • Xmailwatcher - Mailbox checker which displays sender and subject lines of mails
  • Xmailbox - Mailbox checker with sound and animation for X Window System
  • Xmail - X-based interface to the Berkeley mail program
  • Xfce4-mailwatch-plugin - Mail notification applet for the Xfce panel
  • Xfaces - Display shaped icons for mail spool contents
  • Xcite - Exciting Cite for any Mail/News reading modes on Emacs
  • Xbuffy - Replacement for xbiff that handles multiple mail files
  • X-face-e21 - X-Face utilities for Emacs
  • Wmmaiload - Incoming mail monitor dockapp with a similar look to wmcpuload
  • Wmbiff -
  • Whoson - Implementation of `WHO iS ONline' protocol
  • Websieve - Web based Cyrus IMAP user admin client
  • Wanderlust - Mail and news system for Emacs
  • Vrfy - Verify mail address