Sorry for the delay in responding.  I was on vacation.

On Fri, 18 Jul 2003, Omar Khan wrote:
> >Why not use <last_known_UID + 1>:*?  That is, if the last known UID is
> >32121, do 32122:*.
> So in c-client, is the best interpretation to use a search with the
> searchset first and last properties equal to the first and last uid...

By "first uid" I assume that you mean "last known UID + 1" and not "UID
1", right?  If so, that sounds reasonable.

> 2nd question... Callbacks. I know you shouldn't call a mail_* function
> from within a callback (say mm_exists). So suppose that call back gets
> innundated with 20 new messages and we want to process them. What's the
> recommended way of doing this?

In the callback, set a request to your main program to do the processing,
then return.

Then, in your main program, after finishing the current processing, check
to see if you have any requests and if so do them.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to