Bug 3887 - Gdata plugin not retrieving all contacts
Summary: Gdata plugin not retrieving all contacts
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/GData (show other bugs)
Version: 3.16.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2017-09-01 04:31 UTC by lbickley
Modified: 2017-09-28 23:57 UTC (History)
0 users

See Also:


Attachments

Description lbickley 2017-09-01 04:31:14 UTC
Claws: version 3.15.0git131

System Information:
GTK+ 2.24.31 / GLib 2.48.2
Locale: en_US.UTF-8 (charset: UTF-8)
Operating System: Linux 4.4.79-18.26-default (x86_64)

When Claws starts, the GData plugin contacts Google to retrieve the contact list associated with my Gmail account. It retrieves most, but not all of the contacts. 

Here's what's in my Network Log:
--
* GData plugin: Trying to refresh authorization
* GData plugin: Authorization refresh successful
* GData plugin: Starting async groups query
* GData plugin: Groups received
* GData plugin: Starting async contacts query
* Account 'Primary - lbickley': Connecting to POP3 server: secure170.inmotionhosting.com:995...
* Added 944 of 1000 contacts to the cache

All of my latest contact entries are not present, so when I type a name and a tab, I do not get the autofill of Name/Address I expect.
Comment 1 Holger Berndt 2017-09-03 10:15:44 UTC
There is a config option called "Maximum number of results". Since it defaults to 1000, I guess you are hitting this value. You can try setting it higher.
Comment 2 lbickley 2017-09-03 18:04:59 UTC
Thanks for your email, Holger. I didn't realize there was a configuration parameter for number of GData contacts!

Unfortunately, that helped, but still didn't get all of my contacts.

I raised the number of contacts to 1,250 and 1,500 to see if there would be a difference. Incrementally, it did find more:

* GData plugin: Trying to refresh authorization
* GData plugin: Authorization refresh successful
* GData plugin: Starting async groups query
* GData plugin: Groups received
* GData plugin: Starting async contacts query
* Account 'Primary - lbickley': Connecting to POP3 server: secure170.inmotionhosting.com:995...
* Added 957 of 1016 contacts to the cache

However, as you can see - both increased settings produced better results - but the results were identical for settings of 1,250 and 1,500.

Is it possible that GData is only pulling unique names - and not "duplicate" entries? I do have some entries in my contact list with identical names - bot are different people, locations, etc.
Comment 3 Holger Berndt 2017-09-18 14:13:52 UTC
Well, since you're not hitting the limit anymore when it's set to 1250 and you're just getting 1016, it's not a surprise that setting it to 1500 doesn't change anything.

The plugin is ignoring contacts without an email address - that's the difference between the number of received items (1016) and the number of entries added (957). Are you missing particular contacts that have an email address?

You can also start claws mail with the "--debug" switch. That that case more info is printed to the console about what the plugin is doing.
Comment 4 lbickley 2017-09-28 07:51:24 UTC
I have tried unsuccessfully to find an automated way to get gmail "contacts" to "tell" me how many names I have in my email database that do NOT have an email address. Given this, I suggest that we close this case.

If I find an instance where GData fails with a person that HAS an email address and I can reproduce the failure - we can always reopen it.

Note You need to log in before you can comment on or make changes to this bug.