diff options
Diffstat (limited to 'actionmailbox/lib/action_mailbox/mail_ext/recipients.rb')
-rw-r--r-- | actionmailbox/lib/action_mailbox/mail_ext/recipients.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionmailbox/lib/action_mailbox/mail_ext/recipients.rb b/actionmailbox/lib/action_mailbox/mail_ext/recipients.rb new file mode 100644 index 0000000000..1f8a713218 --- /dev/null +++ b/actionmailbox/lib/action_mailbox/mail_ext/recipients.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Mail + class Message + def recipients + Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) + end + end +end |