mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 12:43:43 +08:00
7fca7fb7ff
Adds a new `smtp_group_id` column to `EmailLog` which is filled in if the mail `from_address` matches a group's `email_username`. This is for easier debugging, so we know which emails have been sent via group SMTP.
36 lines
775 B
Ruby
36 lines
775 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:group) do
|
|
name { sequence(:name) { |n| "my_group_#{n}" } }
|
|
end
|
|
|
|
Fabricator(:public_group, from: :group) do
|
|
public_admission true
|
|
public_exit true
|
|
end
|
|
|
|
Fabricator(:imap_group, from: :group) do
|
|
smtp_server "smtp.ponyexpress.com"
|
|
smtp_port 587
|
|
smtp_ssl true
|
|
smtp_enabled true
|
|
imap_server "imap.ponyexpress.com"
|
|
imap_port 993
|
|
imap_ssl true
|
|
imap_mailbox_name "All Mail"
|
|
imap_uid_validity 0
|
|
imap_last_uid 0
|
|
imap_enabled true
|
|
email_username "discourseteam@ponyexpress.com"
|
|
email_password "test"
|
|
end
|
|
|
|
Fabricator(:smtp_group, from: :group) do
|
|
smtp_server "smtp.ponyexpress.com"
|
|
smtp_port 587
|
|
smtp_ssl true
|
|
smtp_enabled true
|
|
email_username "discourseteam@ponyexpress.com"
|
|
email_password "test"
|
|
end
|