Sync deleted emails with Gmail

Nicolas Sebrecht nicolas.s-dev at laposte.net
Tue Aug 16 19:55:31 BST 2016


On Tue, Aug 16, 2016 at 08:31:12PM +0200, Florian Gamböck wrote:

> If the mails are identical in content and header, then Gmail will detect 
> this and removes every single label of a mail it finds in [Gmail]/Trash. 
> It even works when the body is slightly altered (I added a single 
> character to the end of the body), as long as the Message-Id and the 
> Subject header match, there seems to be some kind of tolerance on the 
> body. It did *not* work when I added another word on a new paragraph. It 
> also didn't work when I changed either the Message-Id or the Subject 
> header.
> 
> So to sum it up: For the pure purpose of deleting a message, it is 
> totally sufficient to copy/move the email to the [Gmail]/Trash folder 
> and let Gmail do its black magic behind the curtains. After a maximum of 
> two invocations of offlineimap -- one for uploading the message to 
> trash, the second for getting information about the deleted mails in the 
> other folders -- the only copy that remains is in said trash folder and 
> will be purged by Google after about 30 days.

Thanks for your tests Florian.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list