Sha256: 1c62dff8e8a0bb31085c4888c921095c1a99408980c0c46e2d6b6022da51fff6
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require 'dkim/signed_mail' require 'dkim/interceptor' module Dkim 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} class << self attr_accessor :signing_algorithm, :signable_headers, :domain, :selector, :header_canonicalization, :body_canonicalization attr_reader :private_key def private_key= key key = OpenSSL::PKey::RSA.new(key) if key.is_a?(String) @private_key = key end def sign message, options={} SignedMail.new(message, options).to_s end end end Dkim::signable_headers = Dkim::DefaultHeaders Dkim::domain = nil Dkim::selector = nil Dkim::signing_algorithm = 'rsa-sha256' Dkim::private_key = nil Dkim::header_canonicalization = 'relaxed' Dkim::body_canonicalization = 'relaxed'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dkim-0.1.0 | lib/dkim.rb |
dkim-0.0.3 | lib/dkim.rb |