Sha256: 0e8a0cb7d56b0177f7df2cbcdd7354f169c8ff512e548e7f191a2bb71a79ce02

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

# encoding: utf-8
# 
# resent-msg-id   =       "Resent-Message-ID:" msg-id CRLF
require 'mail/fields/common/common_message_id'

module Mail
  class ResentMessageIdField < StructuredField
    
    include CommonMessageId
    
    FIELD_NAME = 'resent-message-id'
    CAPITALIZED_FIELD = 'Resent-Message-ID'
    
    def initialize(*args)
      super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last))
      self.parse
      self

    end
    
    def name
      'Resent-Message-ID'
    end
    
    def encoded
      do_encode(CAPITALIZED_FIELD)
    end
    
    def decoded
      do_decode
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail-2.1.5.3 lib/mail/fields/resent_message_id_field.rb
mail-2.1.5.2 lib/mail/fields/resent_message_id_field.rb
mail-2.1.5.1 lib/mail/fields/resent_message_id_field.rb