2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-10 10:10:25 -05:00
|
|
|
Fabricator(:incoming_email) do
|
|
|
|
message_id "12345@example.com"
|
|
|
|
subject "Hello world"
|
|
|
|
from_address "foo@example.com"
|
|
|
|
to_addresses "someone@else.com"
|
2020-08-11 20:16:26 -04:00
|
|
|
imap_sync false
|
2021-01-20 21:59:50 -05:00
|
|
|
created_via 0
|
2017-11-10 10:10:25 -05:00
|
|
|
|
|
|
|
raw <<~RAW
|
|
|
|
Return-Path: <foo@example.com>
|
|
|
|
From: Foo <foo@example.com>
|
|
|
|
To: someone@else.com
|
|
|
|
Subject: Hello world
|
|
|
|
Date: Fri, 15 Jan 2016 00:12:43 +0100
|
|
|
|
Message-ID: <12345@example.com>
|
|
|
|
Mime-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: quoted-printable
|
|
|
|
|
|
|
|
The body contains "Hello world" too.
|
|
|
|
RAW
|
|
|
|
end
|