diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-11-07 21:05:00 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-11-07 21:05:00 -0800 |
commit | b7dfb8c1cff6d1a400182a85d2f16489e825499c (patch) | |
tree | f157dd502b1ca4df1618aedfe85b5f75c2336d31 | |
parent | b4052dc6d4e305c35ba02ae2b878e058622ce868 (diff) | |
download | rails-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.rb | 2 |
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 |