address-rfc2822

WebJar for address-rfc2822

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

address-rfc2822
Last Version

Last Version

2.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

address-rfc2822
WebJar for address-rfc2822
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/haraka/node-address-rfc2822

Download address-rfc2822

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/address-rfc2822/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>address-rfc2822</artifactId>
    <version>2.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/address-rfc2822/
implementation 'org.webjars.npm:address-rfc2822:2.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/address-rfc2822/
implementation ("org.webjars.npm:address-rfc2822:2.0.4")
'org.webjars.npm:address-rfc2822:jar:2.0.4'
<dependency org="org.webjars.npm" name="address-rfc2822" rev="2.0.4">
  <artifact name="address-rfc2822" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='address-rfc2822', version='2.0.4')
)
libraryDependencies += "org.webjars.npm" % "address-rfc2822" % "2.0.4"
[org.webjars.npm/address-rfc2822 "2.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : email-addresses jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

Build Status Win Build status Code Climate Coverage Status

address-rfc2822

Parser for RFC 2822 & 5322 (Header) format email addresses.

This module parses RFC 2822 headers containing addresses such as From, To, CC, and BCC headers.

It is almost a direct port of the perl module Mail::Address and I'm grateful to the original authors of that module for the clean code and the tests.

Installation

npm install address-rfc2822

Usage

const addrparser = require('address-rfc2822');

const addresses = addrparser.parse("Matt Sergeant <[email protected]>");
const address = addresses[0];

console.log(`Email address: ${address.address}`);
console.log(`Email name: ${address.name()}`);
console.log(`Reformatted: ${address.format()}`);
console.log(`User part: ${address.user()}`);
console.log(`Host part: ${address.host()}`);

License

This module is MIT licensed.

org.webjars.npm

Haraka

Haraka Mail Server

Versions

Version
2.0.4