GNOME Bugzilla – Bug 342378
duplicate mail by accident.
Last modified: 2006-05-28 19:54:40 UTC
Usually, I need to receive mail both in my laptop (with evolution) and pc (with thunderbird). certainly I set the "keep mail on the server" in both client. then I always receive tow same mail in evolution, it's very annoying. I use this mailbox to subscribe many maillists, receive about 100 mails every day, I must delete duplicate mail one by one by handle, I must compare two mail if the title/sender/date is same before delete... I cann't find out why the same mail received twice, does the "keep mail on the server" mean download the mail then remark it as New mail on the server ? but I guess evolution can determine if it is a duplicate mail in some way, for example by Message-Id and Date.
Easiest way would be to use IMAP instead of POP; but anyway... If you get duplicates, there are several possible reasons: * You have got several copies in your mailbox * The mail server supports the UIDL extension yet changes the message UIDs each session * The mail server does not support UIDL (which means Evolution has to generate UIDs using md5sums of the message headers) but the server changes the message headers after download (usually adding a Status: or X-Status: header - Evolution's md5sum ignores these, but Evolution may be missing other headers that this particular server munges) * $HOME/.evolution/mail/pop/cache-* files are not writable There is also a script to get rid of duplicates available at http://lists.ximian.com/archives/public/evolution/2005-January/041442.html and an external plugin available at http://www.gnome.org/~carlosg/stuff/evolution/ which works with Evolution 2.2, but sadly not for Evolution 2.4 or 2.6.
Thx for you comments. I tried the perl scripts and it rocks. 1. close evolution first, then run remove-dup-mail.pl in ~/.evolution/mail/: ls |grep -v "\."| xargs ~/bin/remove-dup-mail.pl, the script produced a oldfile.clean for cleaned mbox, 2. you need to remove the oldfile(do backup), and 3. mv oldfile.clean oldfile. then restart the evolution, mostly, there will be a sync error dialog popup when you close evolution, you should delete the *index* in the ~/.evolution/mail/ then restart the evolution (there no "Sync current mail" command for evolution ?). that's all, good luck.
cool, closing as fixed. ;-) regarding the sync error: sounds like bug 213072 - feel free to comment on that bug. thanks. :-)