aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-11-07 21:05:00 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-11-07 21:05:00 -0800
commitb7dfb8c1cff6d1a400182a85d2f16489e825499c (patch)
treef157dd502b1ca4df1618aedfe85b5f75c2336d31
parentb4052dc6d4e305c35ba02ae2b878e058622ce868 (diff)
downloadrails-b7dfb8c1cff6d1a400182a85d2f16489e825499c.tar.gz
rails-b7dfb8c1cff6d1a400182a85d2f16489e825499c.tar.bz2
rails-b7dfb8c1cff6d1a400182a85d2f16489e825499c.zip
TIL: The from field can technically have multiple people in it, but it is exceedingly rare.
-rw-r--r--lib/action_mailbox/mail_ext/addresses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_mailbox/mail_ext/addresses.rb b/lib/action_mailbox/mail_ext/addresses.rb
index 75e39686ea..94bb846d75 100644
--- a/lib/action_mailbox/mail_ext/addresses.rb
+++ b/lib/action_mailbox/mail_ext/addresses.rb
@@ -1,6 +1,6 @@
class Mail::Message
def from_address
- Mail::Address.new from
+ Mail::Address.new from.first
end
def recipients_addresses