Bug 93647 - Duplicate IMAP trash messages
Summary: Duplicate IMAP trash messages
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.10.90
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2004-11-21 00:18 UTC by Giulio Malventi
Modified: 2015-04-12 09:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giulio Malventi 2004-11-21 00:18:02 UTC
Version:           1.7.1 (using KDE 3.3.1, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.9

Duplicate of actually unresolved bug #65354. Trashed messages get duplicated, only on server mail.nectarine.info and only with KMail. Can test if needed.
Comment 1 Carsten Burghardt 2004-12-02 23:26:53 UTC
A test account would be helpful indeed.

Comment 2 Giulio Malventi 2004-12-03 11:42:39 UTC
Opened. Please login on mail.nectarine.info with user kmailbug@nectarine.it and pw nectarine.
Server daemon is courier-imap.
Comment 3 Matt Douhan 2005-05-28 17:10:10 UTC
Is this issue still valid in KMail 1.8 / KDE 3.4?
Comment 4 Giulio Malventi 2005-05-28 21:01:12 UTC
Yes, unfortunately.
Comment 5 Carsten Burghardt 2005-05-29 13:22:35 UTC
Uu, I forgot this one, will check the next days.
Comment 6 Giulio Malventi 2005-12-22 21:07:20 UTC
Bug can be overridden by using an alternative trash folder.
Comment 7 Benj Carson 2006-12-13 19:09:21 UTC
I don't know if this bug is still being followed, but I have found that the problem is related to courier-imap.  If the IMAP_MOVE_EXPUNGE_TO_TRASH setting is on (i.e. = 1) then duplicate messages will appear in the trash folder when messages are deleted with KMail.  If the setting is off then the duplicates will stop being created.

What I am guessing is happening is that KMail deletes and expunges messages from a folder and then moves them to the trash folder itself.  Courier-imap, when seeing the messages expunged from the inbox, also copies them to the trash folder, thus creating a duplicate.  Disabling this behaviour in courier seems  to fix the problem.

Since the original poster mentions that their server is courier-imap, perhaps this is the cause of the bug.
Comment 8 Giulio Malventi 2006-12-14 01:30:03 UTC
If IMAP_MOVE_EXPUNGE_TO_TRASH corresponds to Horde's "When deleting messages, move them to your Trash folder instead of marking them as deleted" this does not solve the issue for me, although it prevents one of the two copies from being marked as new when moved to trash.
Comment 9 Michael Leupold 2008-09-14 11:19:26 UTC
Unfortunately the test account doesn't work any longer. Is the bug still reproducible for you or was it maybe fixed at some point?
Comment 10 Giulio Malventi 2008-09-14 14:45:58 UTC
It is still reproducible for me, but I resolved by retrieving mail from another server. Although new accounts creation seems to be disabled I can ask for an exception to create another test account if you want to continue investigation.
Comment 11 Michael Leupold 2008-09-14 15:01:23 UTC
I'm currently only investigating and trying to reproduce old bugs. Another test account would make sense once (if) a KMail developer is getting back at that issue. So it might actually make most sense if we knew how duplicate the server's setup to make that bug happen. If possible please provide the server's version and maybe its capabilities.
Comment 12 Giulio Malventi 2008-09-14 15:25:08 UTC
Server is courier-imap on Debian Etch. "apt-get -l courier-imap" reports:

ii  courier-imap    4.1.1.20060828-5    Courier Mail Server - IMAP server
Comment 13 Michael Leupold 2008-09-14 15:37:36 UTC
I checked the server and it advertises the following capabilities (unauthenticated):
CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS XMAGICTRASH
Comment 14 Laurent Montel 2015-04-12 09:53:23 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.