aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-11-15 17:44:08 +0000
committerLouise Crow <louise.crow@gmail.com>2012-11-15 17:44:08 +0000
commit24c3ceb2315734ab6e43ae4f75673e251b98a96e (patch)
treedf8cccb8f1a292861dd32edc8151ea2a536f0df4
parent125ca970ad4e2b5e424265c632ae31c6dde62da7 (diff)
Bugfix - need to convert to string in the just email address case.
-rw-r--r--lib/mail_handler/backends/tmail_backend.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mail_handler/backends/tmail_backend.rb b/lib/mail_handler/backends/tmail_backend.rb
index 0a1236e77..87aba73d7 100644
--- a/lib/mail_handler/backends/tmail_backend.rb
+++ b/lib/mail_handler/backends/tmail_backend.rb
@@ -46,7 +46,7 @@ module MailHandler
raise "invalid email " + email + " passed to address_from_name_and_email"
end
if name.nil?
- return TMail::Address.parse(email)
+ return TMail::Address.parse(email).to_s
end
# Botch an always quoted RFC address, then parse it
name = name.gsub(/(["\\])/, "\\\\\\1")