Class: Mail::Message
- Defined in:
- actionmailbox/lib/action_mailbox/mail_ext/addresses.rb,
actionmailbox/lib/action_mailbox/mail_ext/recipients.rb
Instance Method Summary collapse
- #bcc_addresses ⇒ Object
- #cc_addresses ⇒ Object
- #from_address ⇒ Object
- #recipients ⇒ Object
- #recipients_addresses ⇒ Object
- #to_addresses ⇒ Object
- #x_original_to_addresses ⇒ Object
Instance Method Details
#bcc_addresses ⇒ Object
21 22 23 |
# File 'actionmailbox/lib/action_mailbox/mail_ext/addresses.rb', line 21 def bcc_addresses Array(header[:bcc]&.address_list&.addresses) end |
#cc_addresses ⇒ Object
17 18 19 |
# File 'actionmailbox/lib/action_mailbox/mail_ext/addresses.rb', line 17 def cc_addresses Array(header[:cc]&.address_list&.addresses) end |
#from_address ⇒ Object
5 6 7 |
# File 'actionmailbox/lib/action_mailbox/mail_ext/addresses.rb', line 5 def from_address header[:from]&.address_list&.addresses&.first end |
#recipients ⇒ Object
5 6 7 |
# File 'actionmailbox/lib/action_mailbox/mail_ext/recipients.rb', line 5 def recipients Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) end |
#recipients_addresses ⇒ Object
9 10 11 |
# File 'actionmailbox/lib/action_mailbox/mail_ext/addresses.rb', line 9 def recipients_addresses to_addresses + cc_addresses + bcc_addresses + x_original_to_addresses end |