Sha256: 294c178a6891f7440058b2ebd994b75de3b14c7549f7991974d5536929274d61
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
require 'mail' require 'mail/fields' module Mail class DkimField < StructuredField FIELD_NAME = 'dkim-signature' CAPITALIZED_FIELD = 'DKIM-Signature' def initialize(value = nil, charset = 'utf-8') self.charset = charset super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, value), charset) self end def encoded "#{name}:#{value}\n" end def decoded "#{name}:#{value}\n" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dkim-0.2.0 | lib/mail/dkim_field.rb |
dkim-0.1.0 | lib/mail/dkim_field.rb |