RSpec::Matchers.define 'have_to_username' do |matcher|
      def get_to_username(email_message)
        username_header = email_message.header['X-Sanitize-Email-To']
        return username_header unless username_header.is_a?(Mail::Field)
        email_message.header.fields[3].value