Subject: Global Address Book Update Question/Bug?

From: Sheung-Fan Wen <[email-masked]>
Date: Tue, 22 Apr 1997 01:14:00 GMT

When the contents in the Global Address Book is updated, running pine 3.96
still shows old contents.  If pine is restarted, updated address book
contents are reflected in pine.

Question:
Is there a way to get a running pine session to reload the new global
address book contents?

Research:
Does this affect user address book as well?

Pine info:
Ver 3.96 running on SunOS 4.1.4 2 sun4m.

 From the desk of Sheung . . .

 -+~'`^`'~+-,._.,-+~'`^`'~+-,._.,-+~'`^`'~+-,._.,-+~'`^`'~+-eos.
   Views expressed here may not reflect those of my employer.
      No unsolicited messages/spam to the involved parties
          in this message.  <http://www.vix.com/spam/>

---

From: Steve Hubert <[email-masked]>
Date: Wed, 23 Apr 1997 12:01:28 -0700 (PDT)

> contents are reflected in pine.

When you're using an address book, parts of it will already be in memory
and cached. Other parts will already have been read off of the disk and
cached by the operating system's standard I/O system. When pine uses an
entry from the address book that isn't cached it does a simple consistency
check to see that the nickname it is looking for (at a certain offset in
the file) is really at the start of a line. If it isn't, it does the
"resyncing" address book thing. If that happens you will get the updated
contents. Also, whenever you start pine the resyncing happens
automatically, so that explains why restarting pine fixes it.
 
> Is there a way to get a running pine session to reload the new global

Here's one thing you could do, though it is very clumsy. It's probably
easier to restart pine. 

Go into the Setup/Config screen and find the addrbook-sort-rule. Change
it with the '*' key. Now exit the config screen and say "No" when it asks
if you want to commit the changes (because you didn't really want to
change the addrbook-sort-rule). If it makes you feel safer, you could
change the sort rule back before exiting. This will cause the new
address book data to be noticed.

> Does this affect user address book as well?

Yup, same thing there but it is unusual for your personal address book to
be changed since you would usually be the one who changes it. But if you
changed it externally or with another copy of pine, the same thing happens. 

>           in this message.  <http://www.vix.com/spam/>

Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle