[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:       Chris Gow <sniffy () rogers ! com>
Date:       2006-07-20 13:47:14
Message-ID: 200607200947.14656.sniffy () rogers ! com
[Download RAW message or body]

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.

hth

-- chris
_______________________________________________
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