[Dovecot] deleting duplicate mail?

2013-01-14 Thread joakim
Hello,

Due to a misstake I got many duplicate emails in my inbox folder.

They are stored in maildir format, so my initial thought was do simply
md5sum the mail files and remove the duplicates. This doesnt work
because the mails has differinf uids. Any other hints?
-- 
Joakim Verona


Re: [Dovecot] deleting duplicate mail?

2013-01-14 Thread Reindl Harald


Am 14.01.2013 15:32, schrieb joa...@verona.se:
 They are stored in maildir format, so my initial thought was do simply
 md5sum the mail files and remove the duplicates. This doesnt work
 because the mails has differinf uids. Any other hints?

https://addons.mozilla.org/en-US/thunderbird/addon/remove-duplicate-messages/



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] deleting duplicate mail?

2013-01-14 Thread Joseph Tam

On Mon, 14 Jan 2013, joa...@verona.se writes:


Due to a misstake I got many duplicate emails in my inbox folder.


Ironic mispeling.


They are stored in maildir format, so my initial thought was do simply
md5sum the mail files and remove the duplicates. This doesnt work
because the mails has differinf uids. Any other hints?


If the UIDs are just headers, why don't you simply checksum without them:

sed -e '/^Whatever-header:/d'  $file | md5sum
grep -Ev '^Whatever-header:'  $file | md5sum

Joseph Tam jtam.h...@gmail.com