aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-21 16:00:22 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-21 16:00:22 +1100
commit3b15df97402411078fd3e4222573e5fefbae9099 (patch)
tree3ab35fa543fb021e1f6c55d32fc6031272fc9a12
parent60795a7fc49e485858673c9631f346c49f746196 (diff)
Our older version of Mail returns a different class so cast it to a String
-rw-r--r--lib/mail_handler/backends/mail_backend.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mail_handler/backends/mail_backend.rb b/lib/mail_handler/backends/mail_backend.rb
index 71c6d1978..f7893a60d 100644
--- a/lib/mail_handler/backends/mail_backend.rb
+++ b/lib/mail_handler/backends/mail_backend.rb
@@ -85,7 +85,7 @@ module MailHandler
end
def get_all_addresses(mail)
- envelope_to = mail['envelope-to'] ? [mail['envelope-to'].value] : []
+ envelope_to = mail['envelope-to'] ? [mail['envelope-to'].value.to_s] : []
((mail.to || []) +
(mail.cc || []) +
(envelope_to || [])).uniq