Bug 133540 - Very annoying "Mails on the server .... were deleted" warning on dIMAP
Summary: Very annoying "Mails on the server .... were deleted" warning on dIMAP
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 138855 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-04 11:59 UTC by Sylvain Joyeux
Modified: 2009-12-29 22:35 UTC (History)
2 users (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 Sylvain Joyeux 2006-09-04 11:59:11 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages

The whole purpose of IMAP is to be able to handle the same mail account from different locations. So, having mails deleted remotely is a common situation. dIMAP now gives a warning for each folder where it had happened, which is very annoying when you have more than 10 mailing list folders (think "message expiration")

Moreover, the warning lists the UIDs of the messages, which, frankly, is not that useful to determine if the deleted messages where important or not.

It would have least be a great thing to be able to disable this warning (for instance by a "don't show this message again" checkbox).
Comment 1 Richard Werner 2006-11-20 11:16:18 UTC
I have to agree.
It is really annoying when emails are deleted and this message is shown,which happens quite often when you share folders!

Please add an option to disable these warnings.
Comment 2 Michael Andreen 2006-12-04 07:36:00 UTC
Yes, this is very annoying. I have a cron job on my server which removes old mails form my mailing list folders every night, so every morning I get this dialog several times every morning.
Comment 3 Michael Andreen 2006-12-04 08:56:18 UTC
It looks like this is caused by a patch applied by gentoo (and, looking at the platform for this bug, I guess debian too).
Comment 4 Sylvain Joyeux 2006-12-04 09:23:35 UTC
Well, I looked at it and saw a SVN commit in KDE's svn (so, no, not a gentoo patch). It seems that it was to track down problems with KMail deleting mails that were *not* deleted. I don't know how only having the mail numbers would help tracking that down, but nonetheless ...

It seems that it was removed in KDE 3.5 (I don't have those warnings). If somebody can confirm that for me, I'll close the bug
Comment 5 Michael Andreen 2006-12-04 09:37:59 UTC
For me it started showing up with the latest gentoo package (3.5.5-r2), which added the kmail-3.5.5-dimap-mail-loss.patch. This patch contains the warning, so I guess gentoo decided to put the removed code back in there.
Comment 6 Thomas Fischer 2006-12-04 10:38:13 UTC
As far as I can see the problem is due to the  #define MAIL_LOSS_DEBUGGING 0  at the beginning of the patch. I assume the patch author wanted to disable debugging output when releasing the patch. However, gcc only reads  #define MAIL_LOSS_DEBUGGING  ignoring the 0 and includes all code between  #ifdef MAIL_LOSS_DEBUGGING  and  #endif.
A simple solution to this bug is to comment (or remove) the line  #define MAIL_LOSS_DEBUGGING 0  which was most probably the behaviour originally intended.

Comment 7 Ryan Dalzell 2006-12-06 11:20:17 UTC
Gentoo users, see: http://bugs.gentoo.org/show_bug.cgi?id=157049
Comment 8 Christophe Marin 2009-08-21 11:57:35 UTC
*** Bug 138855 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2009-12-29 22:35:00 UTC
This works for me in KDE 4.3