LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   KMail: Cleaning up old emails (https://www.linuxquestions.org/questions/slackware-14/kmail-cleaning-up-old-emails-4175529991/)

pchristy 01-04-2015 08:02 AM

KMail: Cleaning up old emails
 
Now the New Year is here, its time for some spring cleaning of my system. I've archived my email folders, but does anyone know if there's a quick way of deleting old messages - say more than 12 moths old - from all kmail's folders, without having to go through them manually?

I'm sure there must be a way of doing this, but I haven't been able to find it so far. What am I missing here?

TIA,

--
Pete

bosth 01-04-2015 11:33 AM

1 Attachment(s)
One way is to search for all messages with a Date before 2014-01-01 and then click the Open Search Folder button. You can then select and delete all the matches.

pchristy 01-04-2015 12:16 PM

That sounds exactly what I'm looking for! But when I tried it, I got an error message:
Code:

Can not get search result. Only resources can modify remote identifiers
Ever helpful, KMail error messages....!

:mad:

--
Pete

bl0tt0 01-10-2015 06:13 PM

Just a thought, but you might be able to use the Expiry function in the right click menu to do what you want. Just set it to expire read and unread articles after after 365 days, and set the folder to expire them to to be the trash. It still requires running the function on each folder, but it's a lot easier than searching through each folder.

pchristy 01-12-2015 12:25 PM

bl0tt0: Thanks for that suggestion - it worked a treat! Yes, its a pain having to do each folder individually (I have a lot of folders!), but its far better than having to do each message individually!

There are things I love about KMail, and equally things I hate! But I have yet to find anything else that meets my needs better!

Cheers,

--
Pete


All times are GMT -5. The time now is 01:10 AM.