anyone familiar with actionmailer or the mail gem; is there a way to have actionmailer *not* break a header value (From, Subject, etc.) into multiple lines (it seems to break it into 72 characters) after encoded a UTF-8 header?
unfortunately it breaks the value in the middle of multibye characters (where one half is at the end of the first line and the other half is at the beggining of the new line) which is invalid and Mandrill cannot parse this.
oddly there is a note in the guides that indicates it should be handled properly.. http://guides.rubyonrails.org/v3.2.21/action_mailer_basics.html#auto-encoding-header-values
@Radar: hey, i now it's a super late response. but you asked for an isolated example to get a Mail::Message instance that has the encoding issue (where a multibyte character is cut in half).
anyone familiar with actionmailer, is there a way to change the way actionmailer encodes headers (such as From and Subject) in such a way that it does not add line breaks in the middle of a multibyte character?
@Aeyrix: yea, i saw that. you would think that it wouldn't break apart the multibyte character if it was at the very end of the line though..
@Aeyrix: do you know what it uses to encode the headers? i've been trying to find an example.