Sha256: f02167946cb08fd2f23f79f56705fefd9ae1eedeafd39783dce9736abe756a52

Contents?: true

Size: 234 Bytes

Versions: 34

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

module Mail
  class Message
    def recipients
      Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) +
        Array(header[:x_forwarded_to]).map(&:to_s)
    end
  end
end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
actionmailbox-8.0.0 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.2 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.1.5 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-8.0.0.rc2 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.1.2 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.1.4.2 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-8.0.0.rc1 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.1.1 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.1.4.1 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-8.0.0.beta1 lib/action_mailbox/mail_ext/recipients.rb
omg-actionmailbox-8.0.0.alpha9 lib/action_mailbox/mail_ext/recipients.rb
omg-actionmailbox-8.0.0.alpha8 lib/action_mailbox/mail_ext/recipients.rb
omg-actionmailbox-8.0.0.alpha7 lib/action_mailbox/mail_ext/recipients.rb
omg-actionmailbox-8.0.0.alpha4 lib/action_mailbox/mail_ext/recipients.rb
omg-actionmailbox-8.0.0.alpha3 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.1.4 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.1 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.0 lib/action_mailbox/mail_ext/recipients.rb
actionmailbox-7.2.0.rc1 lib/action_mailbox/mail_ext/recipients.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionmailbox-7.1.3.4/lib/action_mailbox/mail_ext/recipients.rb