aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/lib/action_mailbox/mail_ext/address_equality.rb
blob: 39a43b3468601998337e7e3ac68b912ba836ef5e (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Mail
  class Address
    def ==(other_address)
      other_address.is_a?(Mail::Address) && to_s == other_address.to_s
    end
  end
end