mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:18:00 +08:00
FEATURE: IMAP delete email sync for group inboxes (#10392)
Adds functionality to reflect topic delete in Discourse to IMAP inbox (Gmail only for now) and reflecting Gmail deletes in Discourse. Adding lots of tests, various refactors and code improvements. When Discourse topic is destroyed in PostDestroyer mark the topic incoming email as imap_sync: true, and do the opposite when post is recovered.
This commit is contained in:
@ -5,6 +5,7 @@ Fabricator(:incoming_email) do
|
||||
subject "Hello world"
|
||||
from_address "foo@example.com"
|
||||
to_addresses "someone@else.com"
|
||||
imap_sync false
|
||||
|
||||
raw <<~RAW
|
||||
Return-Path: <foo@example.com>
|
||||
|
Reference in New Issue
Block a user