Bug 293013 - dataloss: missing message bodies ON THE IMAP SERVER
Summary: dataloss: missing message bodies ON THE IMAP SERVER
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 01:47 UTC by piedro
Modified: 2017-01-07 22:20 UTC (History)
5 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 piedro 2012-02-01 01:47:21 UTC
Version:           4.8 (using KDE 4.8.0) 
OS:                Linux

I thought, I am having an akonadi or some other local problem.

But somehow Kmail2 deletes the mailbodies of some incoming mails on the IMAP Server. All my IMAP-accounts are effected! I doublechecked directly on the servers: completely empty mails! Less than 1KB file size ... 

In addition it produces multiple duplicates (50+) of some of these contentless mails with only minimal headers ... This behaviour stopped after two days after updating to KDE 4.8. Since yesterday it started again ... 

To be honest, I am frustrated, important stuff got lost. 

thx for reading, 
piedro 

Reproducible: Sometimes

Steps to Reproduce:
I don't know how to reproduce ... I am not an expert, sry, 
see above ...

Actual Results:  
I don't know how to reproduce ... I am not an expert, sry. 
see above

Expected Results:  
Instead the software shouldn't delete the message bodies, especially under no circumstances synchronize the empty mails with THE IMAP SERVER.
Comment 1 Ilya Hegai 2012-02-02 11:26:51 UTC
I suspect spam filtering, after turning it off problem was solved for me (at least ot seems so)
Comment 2 Christophe Marin 2012-02-03 12:44:31 UTC
in settings/configure filters, where are the spam filters in the list ? top or bottom ?
Comment 3 Ilya Hegai 2012-02-03 12:51:21 UTC
I use spamassassin, so it's called "spamassassin service check", I've just unchecked it
Comment 4 piedro 2012-02-03 14:54:54 UTC
I deleted the filters at the bottom of the filter list: 4 filters about spam (they had been created automatically when enabling the spam filter). After that I still had two new empty mails. It seems to be less problematic now but I can't confirm it's due to the removal of the spam filtering because I run thunderbird to get an offline copy of the imap mails. So maybe kmail still looses mails but they get resynchronized  by thunderbird ... I just don't know but I don't trust kmail anymore, so I can't go on testing -  at least not on my production machine. 

thx anyway, 
piedro
Comment 5 Michael Stenzel 2012-02-29 23:59:56 UTC
Hello,

I also lost some mailbodys yesterday :/

There are 3 IMAP accounts in my kmail.
I manually moved mails from all 3 accounts to a local folder,
one account failed and the mails in the local folder are headers only now.
The other 2 worked fine, so I can't really reproduce it.

I am running KDE 4.8.0 on slackware64-current.
Comment 6 Sam Jorna 2012-04-11 01:04:32 UTC
Greetings,

I can confirm this is still an issue - built from 4.7 to 4.8 overnight.  Since new build, have received a few E-Mail's from IMAP account where mailbody has been removed (then re-synced to the server so lost there as well) but headers still remain.

Don't think it's a filter issue as no spam filters in place (see log below).

This is a Gentoo x86_64 build, updating through Portage - E-Mail me if you need further information.

[KMail Filter Log]
------------------------------
[10:55:23] Evaluating filter rules: (match all of the following) "<size>" <greater-or-equal> "0"
[10:55:23] 1 = "<size>" <greater-or-equal> "0" ( 25444 )
[10:55:23] Filter rules have matched.
[10:55:23] Applying filter action: Pipe Through "kmail_clamav.sh"
[10:55:24] Evaluating filter rules: (match any of the following) "X-Virus-Flag" <contains> "yes"
[10:55:24] 0 = "X-Virus-Flag" <contains> "yes" (no)
------------------------------

Only filters are Clam Anti Virus Check and Virus Handler.
Comment 7 Sam Jorna 2012-04-11 01:30:09 UTC
Apologies,

This seems to be the same issue as 295484.  Messages that are sent through any filter  (spam-related or not) that is external to Kmail and cause any modification to the message header cause the issue.  This seems related to Kmail 4.8.1 and Akonadi 1.7.

Disabling ClamAV filters allows mails to be received from IMAP account without issue.

Hope I trust the company filters. :)
Comment 8 piedro 2012-05-03 10:28:14 UTC
I have setup a clean installation of Kubuntu 12.04 including the KDE 4.8.2. According to some other comments that said spam filtering should work now I used the assistant to start spam filerring again and again I lost mail bodies ON THE IMAP SEVER!!! 

Looks like this is regarded just a minor problem. Loosing mails shouldn't be too bad because noone expects kmail2 to be used on productive stuff, right? I lost two bills, one job instruction for a pitch and two invitations ... If Microsoft or Apple would have a bug like this this community would run rampage with sarcasm and mocking ... But it's our beloved KDE so, naaa, it's not too bad! 

Annoyed, piedro
Comment 9 Robert Marmorstein 2012-06-24 20:27:14 UTC
I too am having this issue when mail filters are enabled.  I am using Kontact 4.8.3 with Kdelibs 4.8.4 on Kubuntu.  Manually moving messages to local folders seems to work fine, but the problem seems to occur when I enable spam filters(bogofilter) using the spam wizard.  It goes away when I delete the filters.

One thing I noticed -- when the problem occurs, I get a bunch of "messages" in my Inbox that have no subject, unknown date, and empty header fields.  Let me know if I can help debug this further -- this is a serious issue for me and one I'd love to help solve.  I'm not afraid to plunge into the code or use Akonadi Console.  I can arrange to be available on IRC (#kontact) as atomopawn at a convenient time if that would help.
Comment 10 piedro 2013-08-06 02:19:28 UTC
hello everybody - I switched to arch now and the version of kde is 4.10.5 

it is hard to reproduce but I still loose mailbodies as described above under rare conditions it seems ... but still when using spamassassin or bogofilter here and then (maybe one out of twenty) i get a mail without any body at all ... since those are mails that have been identified as spam this is not such a big issue for me at the moment but it shows that there is still a problem with filtering through external filters ... 

sorry for not being more specific, 
thx for reading, 
piedro
Comment 11 Denis Kurz 2016-09-24 18:07:55 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 12 piedro 2016-09-24 18:11:44 UTC
I switched to gnome for productive work, sry, 
I can not provide anymore specific information on later versions... 

thx anyway, p.
Comment 13 Denis Kurz 2017-01-07 22:20:15 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.