diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-04 11:36:26 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-04 11:36:51 +0000 |
commit | 7b43446e89c585f874fd36b32971a18aadd519b7 (patch) | |
tree | 527a513d407b2b66f368c93ef4ad279824b5ff39 /lib | |
parent | ec18594621d4b13e2820ed475b6a80ef37cd5862 (diff) |
Display internationalized emails correctly (specifically, RFC2047 headers, and HTML emails with encoding in a meta-tag). Fixes #281
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tmail_extensions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmail_extensions.rb b/lib/tmail_extensions.rb index 6a5044cdb..f35565352 100644 --- a/lib/tmail_extensions.rb +++ b/lib/tmail_extensions.rb @@ -30,7 +30,7 @@ module TMail # Monkeypatch! Return the name part of from address, or nil if there isn't one def from_name_if_present if self.from && self.from_addrs[0].name - return self.from_addrs[0].name + return TMail::Unquoter.unquote_and_convert_to(self.from_addrs[0].name, "utf-8") else return nil end |