I need a few mods making to an existing perl program that finds duplicate messages.
The original program is here: [url removed, login to view]
The program needs to be modified so that it runs on a dovecot Maildir installation. It must traverse all child folders of a mail account. The comparison of messages only needs to be done within the current folder (i.e. we are not comparing every message with every single message in every single folder). The current version of the program only works if you specify a folder name to de-duplicate. As well as this I need it to work correctly if you do not specify any folder name (i.e. all folders are to be processed).
I also need to ensure that we can specify different parameters to check for duplicates including:
Send date and time
by using different start-up parameters.
We also need an option to either shift the duplicated messages to the trash folder in the account or just delete them.