Re: BgAction and FlistUnseenFoldersInit

Brent Welch <[email protected]> Thu, 03 Mar 2005 17:01:35 -0800
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
>>>Chris Garrigues said:

 > > From:  Chris Garrigues <[email protected]>
 > > Date:  Thu, 17 Feb 2005 17:09:34 -0600
 > >
 > > It's bugged me for years that I have to restart exmh before flist sees 
new
      
 > > mail in newly created folders.  It appears that the issue is that 

Me, too!

 > > "BgAction FlistUnseenFoldersInit FlistUnseenFoldersInit" doesn't do 
anythi
     ng.
 > > 
 > > I don't understand the background processing very well, but I'm 
thinking t
     hat 
 > > when flist(unseenfolders) is set, it's done in the wrong process?  
Does th
     e 
 > > lappend need to be wrapped in a BgRPC call or does the whole proc just 
nee
     d to 
 > > be called in the foreground?
 > > 
 > > Am I understanding correctly that BgAction causes something to run in 
the
 > > background and BgRPC causes someeting to run in the foreground?
 > > 
 > > Would it be possible to put some comments in background.tcl describing 
the
      contract 
 > > of these procs and what can and can't be done in the background?
 > 
 > I decided to change the call to FlistUnseenFolders so that it runs in 
the
 > foreground because I couldn't figure out how to make it run correctly in 
the
      
 > background and, at least on my system, it doesn't seem to take much time 
 > anyway.
 > 
 > I'd still like some API documentation on the background/foreground stuff.

I'll add some info to background.tcl.

BgAction runs something in the background.
BgRPC runs something in the foreground (UI) process, and can be invoked
 from either the exmh-bg process or the front-end
Both handle the case where there is not actually a separate background
process.

--
Brent Welch
Software Architect, Panasas Inc
Delivering the premier storage system for scalable Linux clusters

www.panasas.com
[email protected]