mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
44f15d4281
There was an issue that occurred with this order of operations: * An IMAP topic was created by emailing a group * A second user was invited to the topic (not the OP and not the group) * A user with access to the group replies to the topic * The second user receives a user_private_message notification email because of their involvement in the topic * The second user replies to the email via email This new reply would then go and notify the other group PM users, except for those who emailed the group topic directly, which is handled via the group SMTP mailer. However because the new post already has an incoming email because it is parsed via the Email::Receiver via POP3 the group SMTP section of the post alerter is skipped, and the group's email address is not ignored for the user_private_message notification. This PR fixes it so the group is not ever sent an email via the PM notification. This is important because any new emails in the group's IMAP inbox will be picked up by the Imap::Sync code and created as a new topic which is not at all desirable. Also in this PR I split up the specs a bit more for group SMTP in the post alerter to make them easier to read and they each only test one thing. |
||
---|---|---|
.. | ||
spam_rule | ||
anonymous_shadow_creator.rb | ||
badge_granter.rb | ||
color_scheme_revisor.rb | ||
destroy_task.rb | ||
email_style_updater.rb | ||
group_action_logger.rb | ||
group_mentions_updater.rb | ||
group_message.rb | ||
handle_chunk_upload.rb | ||
heat_settings_updater.rb | ||
inline_uploads.rb | ||
notification_consolidator.rb | ||
notification_emailer.rb | ||
post_action_notifier.rb | ||
post_alerter.rb | ||
post_owner_changer.rb | ||
push_notification_pusher.rb | ||
random_topic_selector.rb | ||
search_indexer.rb | ||
site_settings_task.rb | ||
staff_action_logger.rb | ||
themes_install_task.rb | ||
topic_status_updater.rb | ||
topic_timestamp_changer.rb | ||
tracked_topics_updater.rb | ||
trust_level_granter.rb | ||
user_action_manager.rb | ||
user_activator.rb | ||
user_anonymizer.rb | ||
user_authenticator.rb | ||
user_destroyer.rb | ||
user_merger.rb | ||
user_notification_renderer.rb | ||
user_silencer.rb | ||
user_updater.rb | ||
username_changer.rb | ||
username_checker_service.rb | ||
wildcard_domain_checker.rb | ||
wildcard_url_checker.rb | ||
word_watcher.rb |