[Bug 154974] New: Execute Apply Filters Using DCOP/DBUS

Andy pavlo at wisc.edu
Wed Jan 2 16:27:41 GMT 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=154974         
           Summary: Execute Apply Filters Using DCOP/DBUS
           Product: kmail
           Version: 1.9.5
          Platform: Debian stable
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs kde org
        ReportedBy: pavlo wisc edu


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



More information about the Kdepim-bugs mailing list