1.5.3 • Published 6 years ago

@valimail/dmarc-subject-parser v1.5.3

Weekly downloads
12
License
MIT
Repository
-
Last release
6 years ago

DMARC SUBJECT PARSER

Email subject line parsing for both Aggregate and Failure DMARC reports.

Installation

yarn add @valimail/dmarc-subject-parser

API

parser.aggregate(subject, from)

Parse the given email subject line. To enable fallback processing, include the optional 'from' argument.

Returns an Object with the following properties:

  • reportDomain: Full reporting domain.
  • reportOrgDomain: Top level domain (from public suffix).
  • submitter: Submitter from subject or host.
  • reportId: Report ID specified in subject.

parser.failure(subject, from)

Parse the given email subject line.

  • subject
  • from (for submitter)

Returns an Object with the following properties:

  • reportDomain: Full reporting domain.
  • reportOrgDomain: Top level domain (from public suffix).
  • submitter: Submitter from host.

parser.parse(type, subject, from)

Provides a generic interface to both the aggregate and failure parsers.

Testing

yarn test
yarn lint

Development

Gulp based auto-test setup with linting.

gulp

Publishing

Must have an active NPMJS.com account within the Valimail account.

npm publish
1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.0.3

7 years ago

1.0.0

7 years ago