mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
ignore some site settings for emails sent to mailinglist mirror category
This commit is contained in:
@ -795,4 +795,23 @@ describe Email::Receiver do
|
||||
end
|
||||
end
|
||||
|
||||
context "mailinglist mirror" do
|
||||
before do
|
||||
SiteSetting.block_auto_generated_emails = true
|
||||
SiteSetting.find_related_post_with_key = true
|
||||
|
||||
Fabricate(:mailinglist_mirror_category)
|
||||
end
|
||||
|
||||
it "should allow creating topic even when email is autogenerated" do
|
||||
expect { process(:mailinglist) }.to change { Topic.count }
|
||||
end
|
||||
|
||||
it "should allow replying without reply key" do
|
||||
process(:mailinglist)
|
||||
topic = Topic.last
|
||||
|
||||
expect { process(:mailinglist_reply) }.to change { topic.posts.count }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user