Sha256: 3eeb0fdd54c99e6eca450955489bd493709f6c200078b8179fc0b6e68408441e

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Mail
  module Jdec
    module UnstructuredFieldPatch
      def initialize(name = nil, value = nil, charset = nil)
        value = Decoder.decode_if_needed(value) if Jdec.enabled?
        super
      end
    end
  end
end

unless Mail::UnstructuredField.included_modules.include?(Mail::Jdec::UnstructuredFieldPatch)
  Mail::UnstructuredField.prepend Mail::Jdec::UnstructuredFieldPatch
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail-jdec-1.1.2 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.1.1 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.1.0 lib/mail/jdec/fields/unstructured_field_patch.rb