Module: Dkim

Extended by:
Options
Defined in:
lib/dkim.rb,
lib/dkim/body.rb,
lib/dkim/header.rb,
lib/dkim/options.rb,
lib/dkim/version.rb,
lib/dkim/dkim_header.rb,
lib/dkim/interceptor.rb,
lib/dkim/signed_mail.rb,
lib/dkim/tag_value_list.rb,
lib/dkim/canonicalizable.rb,
lib/dkim/encodings/base64.rb,
lib/dkim/encodings/plain_text.rb,
lib/dkim/canonicalized_headers.rb,
lib/dkim/encodings/dkim_quoted_printable.rb

Defined Under Namespace

Modules: Canonicalizable, Encodings, Options Classes: Body, CanonicalizedHeaders, DkimHeader, Header, Interceptor, SignedMail, TagValueList

Constant Summary collapse

DefaultHeaders =
%w{
From Sender Reply-To Subject Date
Message-ID To Cc MIME-Version
Content-Type Content-Transfer-Encoding Content-ID Content-Description
Resent-Date Resent-From Resent-Sender Resent-To Resent-cc
Resent-Message-ID
In-Reply-To References
List-Id List-Help List-Unsubscribe List-Subscribe
List-Post List-Owner List-Archive}
VERSION =
"1.1.0"

Instance Attribute Summary

Attributes included from Options

#body_canonicalization, #domain, #expire, #header_canonicalization, #identity, #options, #private_key, #selector, #signable_headers, #signing_algorithm, #time

Class Method Summary collapse

Class Method Details

.sign(message, options = {}) ⇒ Object



20
21
22
# File 'lib/dkim.rb', line 20

def sign message, options={}
  SignedMail.new(message, options).to_s
end