git clone https://github.com/quentinsf/IMAPdedup;
cd IMAPdedup;
# List folders:
python imapdedup.py -s localhost -u'bas@domein.nl' -x -l
# Do dry run first to see if all is working. For this example we pick the folder: INBOX
python imapdedup.py -s localhost -u'bas@domein.nl' -x -n INBOX
python imapdedup.py -s localhost -u'bas@domein.nl' -c -x -n INBOX
Password:
There are 30 messages in INBOX.
No message(s) currently marked as deleted in INBOX
30 others in INBOX
Message INBOX_6 is a duplicate of INBOX_1 and would be marked as deleted
Message INBOX_7 is a duplicate of INBOX_2 and would be marked as deleted
Message INBOX_8 is a duplicate of INBOX_3 and would be marked as deleted
Message INBOX_9 is a duplicate of INBOX_4 and would be marked as deleted
Message INBOX_10 is a duplicate of INBOX_5 and would be marked as deleted
Message INBOX_11 is a duplicate of INBOX_1 and would be marked as deleted
Message INBOX_12 is a duplicate of INBOX_2 and would be marked as deleted
Message INBOX_13 is a duplicate of INBOX_3 and would be marked as deleted
Message INBOX_14 is a duplicate of INBOX_4 and would be marked as deleted
Message INBOX_15 is a duplicate of INBOX_5 and would be marked as deleted
Message INBOX_16 is a duplicate of INBOX_1 and would be marked as deleted
Message INBOX_17 is a duplicate of INBOX_2 and would be marked as deleted
Message INBOX_18 is a duplicate of INBOX_3 and would be marked as deleted
Message INBOX_19 is a duplicate of INBOX_4 and would be marked as deleted
Message INBOX_20 is a duplicate of INBOX_5 and would be marked as deleted
Message INBOX_21 is a duplicate of INBOX_1 and would be marked as deleted
Message INBOX_22 is a duplicate of INBOX_2 and would be marked as deleted
Message INBOX_23 is a duplicate of INBOX_3 and would be marked as deleted
Message INBOX_24 is a duplicate of INBOX_4 and would be marked as deleted
Message INBOX_25 is a duplicate of INBOX_5 and would be marked as deleted
Message INBOX_26 is a duplicate of INBOX_1 and would be marked as deleted
Message INBOX_27 is a duplicate of INBOX_2 and would be marked as deleted
Message INBOX_28 is a duplicate of INBOX_3 and would be marked as deleted
Message INBOX_29 is a duplicate of INBOX_4 and would be marked as deleted
Message INBOX_30 is a duplicate of INBOX_5 and would be marked as deleted
30 message(s) in INBOX processed
If you had not selected the 'dry-run' option,
25 messages would now be marked as 'deleted'.
Now run the real task:
python imapdedup.py -s localhost -u'bas@domein.nl' -c -x INBOX