Sha256: d8bb5dcba553a3165be0add17deb7b6d9e0111582516efc37d100282cdc2f531

Contents?: true

Size: 451 Bytes

Versions: 10

Compression:

Stored size: 451 Bytes

Contents

module Mail
  module Jdec
    module ReferencesFieldPatch
      def initialize(value = nil, charset = 'utf-8')
        if Jdec.enabled?
          if value.is_a?(String)
            value = value.gsub(/>\s*,\s*</, ">\r\n <")
          end
        end
        super
      end
    end
  end
end

unless Mail::ReferencesField.included_modules.include?(Mail::Jdec::ReferencesFieldPatch)
  Mail::ReferencesField.prepend Mail::Jdec::ReferencesFieldPatch
end

Version data entries

10 entries across 10 versions & 1 rubygems

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