Methods
- bcc_addresses
- cc_addresses
- from_address
- recipients
- recipients_addresses
- to_addresses
- x_forwarded_to_addresses
- x_original_to_addresses
Instance Public methods
bcc_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 21
def bcc_addresses
Array(address_list(header[:bcc])&.addresses)
end
🔎 See on GitHub
cc_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 17
def cc_addresses
Array(address_list(header[:cc])&.addresses)
end
🔎 See on GitHub
from_address()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 5
def from_address
address_list(header[:from])&.addresses&.first
end
🔎 See on GitHub
recipients()
📝 Source code
# 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) +
Array(header[:x_forwarded_to]).map(&:to_s)
end
🔎 See on GitHub
recipients_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 9
def recipients_addresses
to_addresses + cc_addresses + bcc_addresses + x_original_to_addresses + x_forwarded_to_addresses
end
🔎 See on GitHub
to_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 13
def to_addresses
Array(address_list(header[:to])&.addresses)
end
🔎 See on GitHub
x_forwarded_to_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 29
def x_forwarded_to_addresses
Array(header[:x_forwarded_to]).collect { |header| Mail::Address.new header.to_s }
end
🔎 See on GitHub
x_original_to_addresses()
📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 25
def x_original_to_addresses
Array(header[:x_original_to]).collect { |header| Mail::Address.new header.to_s }
end
🔎 See on GitHub