Delete Duplicate Messages from IMAP Account

Discussion in 'IMAP Tools' started by popowich, Oct 27, 2013.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:

    delIMAPdups looks for duplicate messages in an IMAP account, looking for messages in each mailbox that have the same Message ID. When a duplicate message is found the DELETED flag is set. If the -p argument has been supplied then an EXPUNGE operation is executed against the mailbox in which the message resides, causing the messages which are marked for DELETE to be removed.

    Note that delIMAPdups does not check for duplicate copies of messages across multiple mailboxes since it is often useful to cross-file messages in multiple mailboxes.

    Usage: ./deldups -S host/user/password
    [-i list of users and passwords]
    [-m mailbox list (comma-delimited)]
    [-L logfile]
    [-p] purge messages
    [-d] debug mode
    See usage() for additional arguments.

    If you have a question about using this script please reply.

    If you would like to download the script please see

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.