Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Delete duplicates on gmail #501

Copy link
Copy link

Description

@fhe-odoo
Issue body actions

I have 1 Gmail account. I have many emails in 'All Mail' and some of those are in 'Inbox' (as this is how Gmail works). I want to remove duplicates across all folders; I just want 1 version of each email. It doesn't matter which duplicate gets deleted: the remaining email can be in All Mail or in Inbox: it doesn't matter to me.

I configured my Gmail as follows:

  • Auto-expunge: Off
  • When a message is marked as deleted and expunged from the last visible IMAP folder: Move the message to the Trash
  • Folder size limits: Do not limit

I used the following command in v2.290 on Windows (with an App Password generated from my Google account):

.\imapsync.exe ^
   --host1 imap.gmail.com --user1 MYEMAIL@gmail.com --password1 "abcd efgh ijkl mnop" --ssl1 ^
   --host2 imap.gmail.com --user2 MYEMAIL@gmail.com --password2 "abcd efgh ijkl mnop" --ssl2 ^
   --nofoldersizes ^
   --skipsize ^
   --delete2duplicates ^
   --debuglabels

Imapsync's log says it finds 1005 duplicates in 'All Mail' and 0 in all other folders, and it says it removes all 1005 duplicates. But when I look at my Gmail, nothing has happened: I have the same number of emails in All Mail and nothing in Trash. When I re-run Imapsync with the same command I get the same result. I also tried with Auto-expunge On but I get the same result.

What am I doing wrong?
Thanks!

Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.