Bug 288576 - Using Pipe Through while filtering results in duplicated attachements mime-part repeated many times
Summary: Using Pipe Through while filtering results in duplicated attachements mime-pa...
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.7
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 16:21 UTC by bandicoot2
Modified: 2012-10-13 22:51 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 bandicoot2 2011-12-09 16:21:48 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

I have searched for this bug and could not find any with this problem.

I was trying to get my old mail from kmail1 imported into kmail2.

It was obvious after a while that the unread messages in the inbox are being processed by my filters at startup. What i also noticed is that a lot of emails became at least twice the size as the original email in kmail1 (vmware kmail2 running on original Mail dir).

I have a filter setup for antivirus clamav through the wizard and changed the result to use kmail_clamav.sh

I have been testing a lot:
- re-importing some emails (through seperate folder in kmail1) with filter log on, did not show anything interesting
- adjusting kmail_clamav.sh to make it tell me how often it ran with scanning one email, it was just once.
- running kmail_clamav.sh at the shell prompt on a file containg an email:
kmail_clamav.sh <email >email2
It resulted in a message as i would like it to be (no duplication of mime-parts)

So the only thing i can think of is that kmail2 is doing something internal that makes it duplicate the mime-parts of the attachements to the mail (it may be more duplicated stuff, but i have not looked in to that yet)

Reproducible: Always

Steps to Reproduce:
1. Setup the antivirus through the wizard using clamav
2. Make the filters accessible through a button
3. Have a relatively large (no < datablob (64K?) size) email with attachemnts (jpg's or something)
4. Send it to yourself and receive it in kmail2
5. Look at the size of the received email
6. Run the antivirus button on this email
7. Move the email to another folder (update on size only happens then!) and look at the size of the email there
8. Have a look in the source of the email and you will find duplicated parts of the attachements.

You may repeat steps 6 and 7 making it about double the size of the last email, and on and on.


Actual Results:  
An email that looks the same as the original in the use of it, but is a lot bigger, at one time after a lot of processingtime on my inbox i had an inbox of 1.3GB in kmail2, while in kmail1 it was only about 180MB

Expected Results:  
I expected the same email as in kmail1, but only added the flag whether it contains a virus (yes or no) added by the antivirus scan. Ofcourse looking at the source of the email.

I have not investigated if it is true, but it looks like the import sometimes looses messages as well, i do not know if it is the import or the filters in my case that ar causing this!

Ok,it is not loosing data, but adding a lot to it, but i can easily run out of diskspace this way and without a virusscan of my email i can not use kmail2, the extra size is not acceptable, that is why i make it a Major bug!
Comment 1 András Manţia 2012-10-13 22:51:52 UTC
I'm pretty sure this bug is gone by now in KDE 4.9.2. In case you still see it, feel free to reopen the report.