Sha256: 408e57b95518adc4d0bc3d5239cabe9a014666f1673bcfcdccbc1191aca24fdd

Contents?: true

Size: 395 Bytes

Versions: 11

Compression:

Stored size: 395 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
mail-jdec-1.0.10 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.9 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.8 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.7 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.6 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.5 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.4 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.3 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.2 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.1 lib/mail/jdec/fields/unstructured_field_patch.rb
mail-jdec-1.0.0 lib/mail/jdec/fields/unstructured_field_patch.rb