Bug 154974 - DBUS functions to apply filters
Summary: DBUS functions to apply filters
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: 1.9.5
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 17:27 UTC by Andy
Modified: 2012-08-19 00:23 UTC (History)
3 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 Andy 2008-01-02 17:27:40 UTC
Version:           1.9.5 (using KDE KDE 3.5.5)
Installed from:    Debian stable Packages
OS:                Linux

I have IMAP filters that delete messages from certain users when they are older than 20 days. The problem is that when these messages first arrive, they are obviously not older than that and the filter does nothing. I have to go back every so often, select all messages and then Ctrl+J. 

What I would really like to have the ability to execute filters from a cron script automatically using command-line DCOP (or if KDE 4.0 is switching to DBUS, whatever the equivalent is). It would also be really nice if I was able just able to execute the filters on a folder, rather than having to first select all messages.

This feature might already exist, but I didn't find any documentation on it. I tried messing around with dcop using Kmail 1.9.5 and I was able to get a folder reference, but I couldn't figure out to select all the messages or execute the filters:

11:23am[fiji:~]$ dcop `dcop kmail KMailIface getFolder "/1190030885/INBOX"` functions
QCStringList interfaces()
QCStringList functions()
QString path()
QString displayName()
QString displayPath()
bool usesCustomIcons()
QString normalIconPath()
QString unreadIconPath()
int messages()
int unreadMessages()
int unreadRecursiveMessages
Comment 1 Andy 2010-01-18 19:19:10 UTC
I'm still really interested in this if it's possible to do.
Comment 2 Andy 2010-07-27 05:42:37 UTC
Still interested :-(
Comment 3 Kevin Krammer 2010-07-27 10:46:22 UTC
One solution for the original problem that would work right now is to move messages of these users to a separate folder and user the folders expiration handling to get rid of too old messages.
Comment 4 Myriam Schweingruber 2012-08-18 08:55:52 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 5 Luigi Toscano 2012-08-19 00:23:28 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.