GAL: Postpone user photo download
I found that autocompletion wasn't working as it should. Evolution reports no errors but my GAL is just empty.
This happened a few weeks ago and there was a problem with the sqlite cache.db; I deleted it and my GAL repopulated. But it happened again today. Still no error reporting in the UI; just a silent failure.
I deleted the cache files again, ran
EWS_DEBUG=2 evolution-addressbook-factory -r and I see it downloading the OAB. Then it says,
Total records is 1163904. Then is starts doing
GetUserPhoto calls, which I'm not sure are related. The
cache.db file is still basically empty (73728 bytes of schema and nothing else).
I tried the
oab-decode-test from the source tree (matching the 3.36.5 version that I'm running), and it also seemed to fail:
$ ./oab-decode-test ~/.cache/evolution/addressbook/bc6b8217f709a5048cdefd64553387cf67c9e076/Default\ Global\ Address\ List-5717.oab ~/.cache/evolution/addressbook/bc6b8217f709a5048cdefd64553387cf67c9e076/cache.db Total records is 1164451 percent complete 0 percent complete 0 percent complete 0 percent complete 0 ... percent complete 83 percent complete 83 percent complete 83 percent complete 83 Unable to decode UNIQUE constraint failed: folder_id.uid Time elapsed 327.264170
It did at least put some data into the cache file.