When extracting the attachments of any email Kmail seems to use some memory (RAM, SWAP) to perform it's operations but after extracting the attachments the used memory is not free by the program. This issue causes the system to consume a lot of RAM until I close Kmail, which is a problem if I'm using it in the system tray and other applications need memory. Kmail should free the memory used to extract the attachments immediatly without the need of closing and reopening the program. If I don't close Kmail, the RAM is never freed and my system begin to use SWAP memory when I try to use another application which reduce severily the performance. In case of extracting very big attachments the systems simply stop responding after doing this operation a couple of times due to the lack of memory. Reproducible: Always Steps to Reproduce: 1. Open Kmail, notice how much RAM is being used 2. Select a great number of emails with attachments, I recommend to use big ones to see the problem clearly (around 2MB or 5MB) 3. Right click on them and select 'Save Attachments' and save them anywhere 4. Notice that the RAM used to perform the extraction is not freed. 5. Repeat step 2 and 3 with different emails Actual Results: My 512MB RAM has been practically consumed and a very big amount of SWAP too if I extracted multiple attachments like 10MB. If I don't close Kmail after the extraction my system has a lack of memory and the applications runs very slowly, in case of continuing extracting emails the systems simply refuses to respond. If I really need to extract huge attachments I must extract one at a time, then close Kmail and repeat the operation. Expected Results: Kmail should free the memory used for the extraction immediatly after it finishes. I should be able to extract huge attachments without closing and opening Kmail to free the used memory. I'm using KDE 3.4.1 and Kmail 3.4.1-r1. My Kmail starts when I enter KDE in the system tray with Kalendar, Klipper and Klaptop. I configured it to refresh my inbox POP account every 10 minutes. My system is running Xorg 6.8.2-r3 and I'm using kdelibs 3.4.1-r1 and libkdepim 3.4.1. My computer is a Pentium 4 1.6 Ghz with 512MB RAM and 384MB SWAP.
Please file at bugs.kde.org