mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 14:24:54 +00:00
When emailing a group inbox and including other support-type emails (or even just regular ones with autoresponders) in the CC field, each automated reply to the group inbox triggered more emails to be sent out to all CC addresses to notify them of the new reply, which in turn caused more automated emails to be sent to the group inbox. This commit fixes the issue by preventing any emails being sent by the PostAlerter when the new post has an incoming email record which is_auto_generated, which we detect in Email::Receiver.