mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:47:31 +08:00
b463a80cbf
When a group only has SMTP enabled and not IMAP, we do not want to enqueue the :group_smtp_email job because using the group's SMTP credentials for sending user_private_message emails is handled by the UserNotifications class. We do not want the :group_smtp_email job to be enqueued because that uses a reply key instead of the group.email_username for the reply-to address which is not what we want for SMTP only, and also creates an IncomingEmail record to prevent IMAP double syncing which we do not need either. There is an open question about what happens when IMAP is enabled after SMTP has been enabled for a while, and also questions around whether we could do away with :group_smtp_email altogether and handle everything via EmailLog and UserNotifications, adding additional columns to the former and modifying the Imap::Sync class to take this into account...a lot more further testing for IMAP needs to be done to answer those questions. For now, this fix should be sufficient to get the correct reply-to address for user_private_response messages sent in response to emails sent directly to the group's email_username SMTP address. Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com> |
||
---|---|---|
.. | ||
spam_rule | ||
anonymous_shadow_creator.rb | ||
badge_granter.rb | ||
color_scheme_revisor.rb | ||
destroy_task.rb | ||
email_settings_exception_handler.rb | ||
email_settings_validator.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_notification_schedule_processor.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 |