mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: cap number of staged users (defaults to 10) created per incoming email
This commit is contained in:
parent
973f4ee699
commit
5f76287b18
4 changed files with 16 additions and 0 deletions
|
@ -325,6 +325,12 @@ describe Email::Receiver do
|
|||
expect(emails).to include("someone@else.com", "discourse@bar.com", "wat@bar.com")
|
||||
end
|
||||
|
||||
it "cap the number of staged users created per email" do
|
||||
SiteSetting.maximum_staged_users_per_email = 1
|
||||
expect { process(:cc) }.to change(Topic, :count)
|
||||
expect(Topic.last.ordered_posts[-1].post_type).to eq(Post.types[:moderator_action])
|
||||
end
|
||||
|
||||
it "associates email replies using both 'In-Reply-To' and 'References' headers" do
|
||||
expect { process(:email_reply_1) }.to change(Topic, :count)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue