%i[from to cc bcc subject reply_to].each do |attribute|
      RSpec::Matchers.define "be_#{attribute}" do |matcher|
        match do |actual|
          @actual = actual.send(attribute)
          @actual = @actual.join(', ') if @actual.respond_to?(:join)