Re: [Evolution-hackers] When do I update the Camel.FolderSummary?



if you can get server notifications about summary changes, you should
use them.

refresh_info is more of a "force update" but clearly it'd be nice if
updates happened in more real-time for the user, so if you can do it,
awesome.

Jeff

On Tue, 2005-11-15 at 13:11 +0100, Jules Colding wrote:
> On Tue, 2005-11-15 at 17:00 +0530, Parthasarathi Susarla wrote:
> > > Another thing, it is possible to establish a notification mechanism from
> > > the remote Exchange server, thereby making it possible to make
> > > refresh_info() a do-nothing method. 
> > 
> > > Would that be considered bad practice from an Evolution hackers point of
> > > view?
> > Hmm... actually Camel is more of 'polling' kind, And refresh_info
> > actually does the job for you(of polling the server and syncing up). 
> 
> Yes, but it just struck me as impractical to poll for changes if
> server-side notifications was possible/practical/"good practice" in
> Camel.
> 
> > As for whether if its a 'bad practice' or not, There is no *neat* way to
> > actually implement a notification method in Evolution (specifically,
> > using camel). 
> 
> I can do it with Brutus/Exchange using MAPI notifications and a waiter
> thread on the Evolution side of things. No restructuring in e-d-s code
> needed.
> 
> I would like to be able to distinguish between "auto sync"/"selecting a
> folder" and manually pressing the Send/Receive button. Notifications are
> not 100% reliable (best-effort only) so having a way to force a
> refresh_info() is needed for my notification scheme.
> 
> Comments?
>   jules
> 
> 
> > Although we were planning to do something like that for
> > the groupwise backend, it never took off, since it required
> > restructuring to a certain extent.
> > 
> > -partha
> > 
> 
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers
> 
-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com  - www.novell.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]