[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] KDE3.5: Investigating a KMail folder by DCOP
From: "Friedrich W. H. Kossebau" <Friedrich.W.H () kossebau ! de>
Date: 2006-07-20 14:09:15
Message-ID: 200607201609.16079.Friedrich.W.H () kossebau ! de
[Download RAW message or body]
Am Donnerstag, 20. Juli 2006 15:47, schrieb Chris Gow:
> On Thursday 20 July 2006 09:20, Friedrich W. H. Kossebau wrote:
> > Hi,
> >
> > is there a way to investigate a folder in KMail by DCOP? E.g. to find out
> > if there are any unread messages (and how many?)
> >
> > I found in KMailIface the call
> > DCOPRef getFolder( const QString& vpath );
> > but have no idea what to do with the DCOPRef. Could anybody tell me how
> > one is supposed to operate on it or point to an example?
> >
> > Background:
> > I want to add a status service to the contact framework which reports if
> > there are any unread message in a folder assigned to a contact and how
> > many.
> >
> > The action service to select a folder and raise the KMail window works
> > fine already :)
>
> In BASH:
>
> dcopref=`dcop kmail KMailIface getFolder "/Local/inbox"`
> dcop "$dcopref" unreadMessages
>
> Replace /Local/inbox with the folder(s) you want to search for.
Thanks, but this part was the solved one :)
Friedrich
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic