discourse/spec
Martin Brennan 87961534ea
FEATURE: IMAP detect spammed email and delete associated Discourse topic (#11654)
This PR adds functionality for the IMAP sync code to detect if a UID that is missing from the mail group mailbox is in the Spam/Junk folder for the mail account, and if so delete the associated Discourse topic. This is identical to what we do for emails that are moved for Trash.

If an email is missing but not in Spam or Trash, then we mark the incoming email record with imap_missing: true. This may be used in future to further filter or identify these emails, and perhaps go hunting for them in the email account in bulk.

Note: This adds some code duplication because the trash and spam email detection and handling is very similar. I intend to do more refactors/improvements to the IMAP sync code in time because there is a lot of room for improvement.
2021-01-14 09:54:18 +10:00
..
components FEATURE: IMAP detect spammed email and delete associated Discourse topic (#11654) 2021-01-14 09:54:18 +10:00
fabricators FEATURE: Do not disturb (#11484) 2020-12-18 09:03:51 -06:00
fixtures FIX: Use ImageMagick to detect animated images (#11702) 2021-01-13 19:01:30 +02:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration DEV: Split toggle topic close job (#11679) 2021-01-13 08:49:29 +10:00
integrity DEV: Add i18n fallback specs (#11669) 2021-01-08 17:47:28 +01:00
jobs DEV: Split toggle topic close job (#11679) 2021-01-13 08:49:29 +10:00
lib FIX: Use ImageMagick to detect animated images (#11702) 2021-01-13 19:01:30 +02:00
mailers FIX: Ensure group SMTP and message builder always uses from address for Reply-To when IMAP is enabled (#11037) 2020-10-28 07:01:58 +10:00
models DEV: Split toggle topic close job (#11679) 2021-01-13 08:49:29 +10:00
multisite PERF: Improve cook_url performance for topic thumbnails (#11609) 2020-12-30 18:13:13 +00:00
requests FEATURE: Log when a group is deleted. (#11706) 2021-01-13 15:53:18 -03:00
script/import_scripts Improve Vanilla import script. (#11701) 2021-01-13 23:10:00 +05:30
serializers FIX: Users can remove themselves from a PM even if they can still access it through a group. (#11693) 2021-01-13 11:27:23 -03:00
services FEATURE: Send notification emails when users leave do not disturb mode (#11643) 2021-01-07 10:49:49 -06:00
support DEV: Upgrade oj gem (#11516) 2020-12-17 11:18:45 +11:00
tasks DEV: Clean up S3 specs, stubs, and helpers 2020-09-28 12:02:25 +01:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Update DB.after_commit to be compatible with 'real' transactions (#11294) 2020-12-08 11:03:31 +11:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00