After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 342378 - duplicate mail by accident.
duplicate mail by accident.
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-05-20 01:59 UTC by Yang Hong
Modified: 2006-05-28 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yang Hong 2006-05-20 01:59:16 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.
Comment 1 André Klapper 2006-05-20 16:05:21 UTC
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.
Comment 2 Yang Hong 2006-05-22 02:06:19 UTC
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.
Comment 3 André Klapper 2006-05-28 19:54:40 UTC
cool, closing as fixed. ;-)
regarding the sync error: sounds like bug 213072 - feel free to comment on that bug. thanks. :-)