[Kde-pim] Phantom akonadi IMAP resources

Jörg Schaible joerg.schaible at gmx.de
Tue Feb 28 01:56:43 GMT 2012


Hi Shaheed,

Shaheed Haque wrote:

> Hi Jörg,
> 
> That's good news. But I'm not the right one to help on this...
> 
> On 27 February 2012 18:58, Jörg Schaible <joerg.schaible at gmx.de> wrote:
>> Hi Shaheed,
>>
>> it sees that I finally found the cause:
>> https://bugs.kde.org/show_bug.cgi?id=289277
>>
>> Summary: There's no memory leak, but a buggy script (kmail_clamav.sh)
>> that doubles the size of the mail each time it is scanned. One of my
>> mails in the inbox have now grown silently over the last 3 weeks to 540MB
>> - and it is not the only one. No wonder that the process dies at some
>> stage. I got suspicious when I could reproduce the crash in
>> akonadiconsole by browsing into my inbox.
>>
>> The main question is now: How can I cleanup this mess again? A lot of
>> mails on my server have been scanned and doubled a multiple times.

Unfortunately it's not as easy as originally thought. I have clamav 
installed, but only on the server, not on the client. So, that script is not 
even involved.

However, I cleanup this one big mail manually on the server (removed it from 
the cur folder, cleaned it up, moved it into the new folder again, where it 
was automatically transported by the IMAP server to cur again). So far, the 
file was in the state I left it.

Now I started KMail again. And, yes, it worked flawlessly, no extensive 
memory usage anymore. I selected the affected mail in the KMail browser and 
it was displayed properly in the preview. Then I checked the files at the 
server ... and the file had been renamed again and the size was increased by 
3 times.

Next, I checked the filters in KMail. Actually I never configured them, but 
I am using KMail since KDE 3.2 and therefore I cannot really say where the 
two filter rules were coming from. I had one rule calling the Sophos script 
and another one that would move the mail with the positive X-Virus-Flag. 
Both rules had flags for manual invocation and all incoming mailboxes except 
of type Online-IMAP. For a further test I kept only the flag for manual 
invocation, applied the changes and closed KMail again.

Then I restored the proper mail at the server again and started KMail. This 
time the mail was not modified on server side when it was showed in the 
preview. Then I run the filters manually and immediately the file was 
renamed on the server again and twice the size. This verifies that the virus 
check has to do something with the unexpected modification.

Actually not all mails double their size. Some will only have multiple "X-
Virus-Flag" lines at the beginning without a repetition of the content 
afterwards.

However, I have no idea, why it happens at all. I ran the kmail_sav.sh 
manually with the raw minimal file from the server, but the output was as 
expected except an additional line on the error pipe 
("/usr/bin/kmail_sav.sh: line 36: sweep: command not found").

Regards,
Jörg

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list