Skip to content

Commit 12e446a

Browse files
committed
Workaround broken subject
on ruby-list: 41850, 43710
1 parent ff5ff6a commit 12e446a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/message.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def from_mail(mail, list, list_seq)
1919
if (list.name == 'ruby-list') && list_seq.in?([37565, 38116, 43106])
2020
mail.header[:subject].value.chop!
2121
end
22+
if (list.name == 'ruby-list') && (list_seq.in?([41850, 43710]))
23+
mail.header[:subject].value = Kconv.toutf8 mail.header[:subject].value
24+
end
2225
subject = mail.subject
2326
subject = Kconv.toutf8 subject if subject
2427
from = Kconv.toutf8 mail.from_address&.raw

0 commit comments

Comments
 (0)