domain-auth-0.2.1: Domain authentication library

Safe HaskellNone

Network.DomainAuth.DKIM

Contents

Description

A library for DKIM (http://www.ietf.org/rfc/rfc4071). Currently, only receiver side is implemented.

Synopsis

Documentation

Authentication with DKIM

runDKIM :: Resolver -> Mail -> IO DAResultSource

Verifying Mail with DKIM.

runDKIM' :: Resolver -> Mail -> DKIM -> IO DAResultSource

Verifying Mail with DKIM. The value of DKIM-Signature: should be parsed beforehand.

Parsing DKIM-Signature:

parseDKIM :: RawFieldValue -> Maybe DKIMSource

Parsing DKIM-Signature:.

data DKIM Source

Instances

dkimDomain :: DKIM -> DomainSource

Getting of the value of the "d" tag in DKIM-Signature:.

dkimSelector :: DKIM -> ByteStringSource

Getting of the value of the "s" tag in DKIM-Signature:.

Field key for DKIM-Signature:

dkimFieldKey :: CanonFieldKeySource

Canonicalized key for DKIM-Signature:.