# 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 Mail::UnstructuredField.prepend Mail::Jdec::UnstructuredFieldPatch