aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2011-10-16 20:18:33 -0400
committerJames McKinney <james@slashpoundbang.com>2011-10-16 20:21:46 -0400
commitabbf7b4b9ae8f18d00ff4d92516d853aeacf8724 (patch)
tree29079e216a3b3c733cd0f17e8df358fe3c28415f /lib
parent064fa81318e31eb52b1baa075ed3f0ace38a11be (diff)
call #first on from_addrs and to_addrs before calling #to_s
Diffstat (limited to 'lib')
-rw-r--r--lib/sendmail_return_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendmail_return_path.rb b/lib/sendmail_return_path.rb
index d8922f78b..23c4d4376 100644
--- a/lib/sendmail_return_path.rb
+++ b/lib/sendmail_return_path.rb
@@ -6,7 +6,7 @@
module ActionMailer
class Base
def perform_delivery_sendmail(mail)
- sender = (mail['return-path'] && mail['return-path'].spec) || mail.from
+ sender = (mail['return-path'] && mail['return-path'].spec) || mail.from.first
sendmail_args = sendmail_settings[:arguments].dup
sendmail_args += " -f \"#{sender}\""