./lib/mail/fields/resent_sender_field.rb in mail-1.1.0 vs ./lib/mail/fields/resent_sender_field.rb in mail-1.2.1

- old
+ new

@@ -29,20 +29,29 @@ class ResentSenderField < StructuredField include Mail::CommonAddress FIELD_NAME = 'resent-sender' + CAPITALIZED_FIELD = 'Resent-Sender' def initialize(*args) - super(FIELD_NAME, strip_field(FIELD_NAME, args.last)) + super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last)) end def addresses [address] end def address result = tree.addresses.first + end + + def encoded + do_encode(CAPITALIZED_FIELD) + end + + def decoded + do_decode end end end