module ActionMailbox::TestHelper

def create_inbound_email_from_source(source, status: :processing)

Create an +InboundEmail+ using the raw rfc822 +source+ as text.
def create_inbound_email_from_source(source, status: :processing)
  ActionMailbox::InboundEmail.create_and_extract_message_id! source, status: status
end