commit dad36d878f884d9dd90e61da4b792d132c6f5150
parent 6f1d5f202288ebb71fecb90d4f241b2d3b2d54cb
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Sun, 29 Sep 2013 16:29:12 +0200
Merge #151: Fix encoding on all fields of message in thread view
Squashed commit of the following:
commit 9c27a75da568390d1a3ab5fa81a42978fafd4804
Author: Gaute Hope
Date: Sat Sep 28 18:51:25 2013 +0200
on :open as well
commit c4a778219a3e88cbc5cc4e15cfab4c6d2e6f7c40
Author: Gaute Hope
Date: Sat Sep 28 18:32:01 2013 +0200
Fix encoding on all fields in the :closed message in a thread view
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/thread_view_mode.rb b/lib/sup/modes/thread_view_mode.rb
@@ -780,13 +780,13 @@ private
@person_lines[start] = m.from
[[prefix_widget, open_widget, new_widget, attach_widget, starred_widget,
[color,
- "#{m.from ? m.from.mediumname : '?'} to #{m.recipients.map { |l| l.shortname }.join(', ')} #{m.date.to_nice_s} (#{m.date.to_nice_distance_s})"]]]
+ "#{m.from ? m.from.mediumname.fix_encoding! : '?'} to #{m.recipients.map { |l| l.shortname.fix_encoding! }.join(', ')} #{m.date.to_nice_s.fix_encoding!} (#{m.date.to_nice_distance_s.fix_encoding!})"]]]
when :closed
@person_lines[start] = m.from
[[prefix_widget, open_widget, new_widget, attach_widget, starred_widget,
[color,
- "#{m.from ? m.from.mediumname : '?'}, #{m.date.to_nice_s} (#{m.date.to_nice_distance_s}) #{m.snippet}"]]]
+ "#{m.from ? m.from.mediumname.fix_encoding! : '?'}, #{m.date.to_nice_s.fix_encoding!} (#{m.date.to_nice_distance_s.fix_encoding!}) #{m.snippet.fix_encoding!}"]]]
when :detailed
@person_lines[start] = m.from