module ActionMailbox::TestHelper

def create_inbound_email_from_mail(status: :processing, **mail_options)

create_inbound_email_from_mail(from: "david@loudthinking.com", subject: "Hello!")

Create an +InboundEmail+ by specifying it using +Mail.new+ options. Example:
def create_inbound_email_from_mail(status: :processing, **mail_options)
  create_inbound_email_from_source Mail.new(mail_options).to_s, status: status
end