Re: Patch to use gnome-config





On Fri, 8 Oct 1999, Peter Williams wrote:

> I have currently got a source tree of gnome-config and threading combined, and
> it seems okay... though what would be a good way to test the threading 
> capabilities? I don't have any POP3 or IMAP mailboxes. Is there any reason that
> the two patches would have trouble coexisting? 
> 
> ==============================
> Peter Williams peter@newton.cx
> 

There's only one point of 'overlap' that I'm aware of, and that has to do
with the method that the POP3 code uses to keep track of the Unique ID of
the message retrieved from the server -- it calls config_mailbox_update to
save last_popped_uid using the key "lastuid".  I think I mentioned earlier
that it might be possible to cause a conflict by updating the POP account
info at the same moment that the POP3 retrieval was finishing. I could add
some locking code to save-restore now that the new config code is in, or I
could setup a callback mechanism, like the one that's in place to handle
the progress dialog box, to be sure that the main thread is the only one
to call the save-restore code.  In theory, I wonder if it might not be
better to check, on exit, to see if the UIDs have been updated, and if
they have, to save the config info on exit. (Please let me know if there
is an obvious solution I'm missing.)

Oh, and for the new config stuff to be compatible with the existing POP3
code you have to apply that tiny diff file I posted awhile back to get the
new config code to save and load UIDs under the 'lastuid' key.

David




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