Open ts1 opened 1 year ago
I think the problem here is that the subject should be provided as an original UTF-8 string, not already encoded for transmission as shown.
I gave UTF-8 string.
And got the unfolded header.
In reality this results in garbled text because the resulted line can be longer than 998 byte.
When I remove the !
it works perfectly.
See PR #1570
I got something like below with very long Japanese subject.
I guess
!
here is the problem. Isn't it intended without!
? https://github.com/mikel/mail/blob/9c466200536ddff7106e6d62022bf7a9658d69b3/lib/mail/fields/unstructured_field.rb#L113When I removed the
!
, I got expected result like below: