2019-04-30 08:27:42 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-10 23:10:25 +08: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-12 08:16:26 +08:00
|
|
|
imap_sync false
|
2021-01-21 10:59:50 +08:00
|
|
|
created_via 0
|
2017-11-10 23:10:25 +08:00
|
|
|
|
DEV: Correctly tag heredocs (#16061)
This allows text editors to use correct syntax coloring for the heredoc sections.
Heredoc tag names we use:
languages: SQL, JS, RUBY, LUA, HTML, CSS, SCSS, SH, HBS, XML, YAML/YML, MF, ICS
other: MD, TEXT/TXT, RAW, EMAIL
2022-03-01 03:50:55 +08:00
|
|
|
raw <<~EMAIL
|
2017-11-10 23:10:25 +08:00
|
|
|
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.
|
DEV: Correctly tag heredocs (#16061)
This allows text editors to use correct syntax coloring for the heredoc sections.
Heredoc tag names we use:
languages: SQL, JS, RUBY, LUA, HTML, CSS, SCSS, SH, HBS, XML, YAML/YML, MF, ICS
other: MD, TEXT/TXT, RAW, EMAIL
2022-03-01 03:50:55 +08:00
|
|
|
EMAIL
|
2017-11-10 23:10:25 +08:00
|
|
|
end
|