Commit graph

24 commits

Author SHA1 Message Date
Francis Lachapelle bccce4022e Identation + comments 2018-02-06 16:20:20 -05:00
Francis Lachapelle e8b29add3a Fix calls to fetchContactsMatching: 2017-11-22 09:28:34 -05:00
Ludovic Marcotte 35d1cab856 (fix) properly XML escape wide characters (fixes #3616) 2016-04-06 11:19:18 -04:00
Patrice Levesque 7c25b53fdf Remove pointless #imports from .m and .h files
This was done with a brute-force approach, ensuring no additional
warnings from GCC 4.9 under x86_64.
2016-02-13 16:11:52 -05:00
ethoms 99765aae53 fix (revised) for issue with CardDAV sync with the DAVDroid sync client.
This is a revised fix for the issue raiased in sogo bug tracker 3370 and 3373. It supercedes the fix in commit  2c723070c6 .

The fix was noted in NEWS with the comment "we now return all cards when we receive an empty addressbook-query REPORT". However it did not work for me and at least two others, as can be seen in the commit comments. In summary, only contacts with email addresses were synced. The suggested change from kwirk fixes the regular address book sync, but it completely breaks syncing of the read-only Group Directory (Corporate Directory). My suggested changes work in full (as far as I'm able to test).

I have done some fairly extensive testing of CardDAV sync (with DAVDroid only) and it seems to work 100% now. In addition to the obvious tests, I have tested with contacts that only have one field of data entered. The feilds I've tested (with all other fields empty) are as follows:

First name
Last name
Display name
email address
Work (telephone)
Home (telephone)
Fax (telephone)
Mobile (telephone)

Additionally, I tested syncing of a contact with only the Work Address fully populated. In the webmail, since the name fields are all missing, the "Organization" field of the Work Address takes the place of the name field in the 'Name' column. This does get synced to my phone and it also appears my Android contact list with 'Name' set to the 'Organization' field data. The address, organization and website fields being in tact also.

In addition, I tested a Group Directory (Corporate Directory) [SOGoUserSources->isAddressBook] sync. It seems contacts without email addresses do not sync. This seems to be the behaviour across the board with a "." search filter. This happens despite the filter in SOGoUserSources including ldap entries without a mail attribute. Nothing I can do to patch this in SOGoFolder+CardDAV.m, that would have to be fixed in the code that deals with the special "." search filter (I guess).

I think the contact search system needs some looking into, particularly the "." search filter behaviour. There is another bug related to contact search in the webmail address book view. I will make a bug report on that soon. It's a shame there isn't an "all" search filter, it would seem it would make various parts of SOGo easier to get the right behaviour.
2016-01-25 09:19:41 -05:00
Ludovic Marcotte 907c30061f (fix) we now return all cards when we receive an empty addressbook-query REPORT 2015-10-21 10:55:09 -04:00
Jean Raby de8bf64c70 Local pool when appending contacts to response
Avoids using too much memory when doing a contact lookup with many matches
2013-09-13 11:16:28 -04:00
Jean Raby 0c38a9e555 whitespace tabkill 2013-09-13 11:13:02 -04:00
Wolfgang Sourdeau f06d57373a Applied last changed from ca.inverse.sogo branch, pertaining to iOS handling of CardDAV
Monotone-Parent: bee9d78831eda60f6cda2aadb62fc4a04a2e8e10
Monotone-Revision: 693036245b42a3d0059f8c06a2a725e716d54c9e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-30T14:07:36
2012-03-30 14:07:36 +00:00
Francis Lachapelle 7815b3403c See ChangeLog.
Monotone-Parent: d4394b4b92fdfda720d67698c9fbadc75787ad18
Monotone-Revision: e8c7d8a4465a1b9357c1d9f201dec2b93c5f3507

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-02-11T07:08:02
Monotone-Branch: ca.inverse.sogo
2012-02-11 07:08:02 +00:00
Wolfgang Sourdeau 03e49d5985 Monotone-Parent: d5e2b98ae15729726ed7a81b845e37f7657dcb8e
Monotone-Revision: 77e874f5910fd1b3a30173bdae0bfa2544be6c07

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-30T20:10:32
Monotone-Branch: ca.inverse.sogo
2011-12-30 20:10:32 +00:00
Francis Lachapelle 6f7e03bbd3 See ChangeLog.
Monotone-Parent: 50142b417b19ad36d3c63bd36b61105185f0efc0
Monotone-Revision: 41bb79702e5e49315aa6313331d91aaf5357ff5f

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-02-17T22:12:04
Monotone-Branch: ca.inverse.sogo
2011-02-17 22:12:04 +00:00
Wolfgang Sourdeau 00fe3ec6dd Monotone-Parent: 1ed4bccebed155143bf812c74cb29f69ccb51f7d
Monotone-Revision: 38830b89dba3fbe47ce03c0a4617768116eda22b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-26T20:19:37
Monotone-Branch: ca.inverse.sogo
2010-10-26 20:19:37 +00:00
Wolfgang Sourdeau f19bba7292 Monotone-Parent: c46d8b7dd8119925eededd812de04ae71f5c1d6d
Monotone-Revision: e78fc689c78de581aaf34ccdcebebddeb142c5b3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-12T14:02:21
Monotone-Branch: ca.inverse.sogo
2010-08-12 14:02:21 +00:00
Wolfgang Sourdeau aaded8c774 Monotone-Parent: 04adb21a2d66943bc4fbda82a60f41695303ccfb
Monotone-Revision: 771d7ebe867ac081c62c4c31e2177ddc7ac487a9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-01-14T23:19:19
Monotone-Branch: ca.inverse.sogo
2010-01-14 23:19:19 +00:00
Wolfgang Sourdeau 114e8bddc3 Monotone-Parent: 6267e23d4a4d587847618923c35a202030ce9ed0
Monotone-Revision: 5244339e45ef9095573b10733228f85b81a17377

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-10-13T14:10:17
Monotone-Branch: ca.inverse.sogo
2009-10-13 14:10:17 +00:00
Ludovic Marcotte 8f2318fe52 See ChangeLog
Monotone-Parent: 8d42e44b72c2c9e6431e77f6b5c590736449f7d7
Monotone-Revision: bafccbe12139895411068d388269aca400af46ec

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-04-01T13:49:24
Monotone-Branch: ca.inverse.sogo
2009-04-01 13:49:24 +00:00
Ludovic Marcotte 2ec29054e9 Removed useless \r\n in DAV response. This confused Lightning 0.9.
Monotone-Parent: f14f194e02808a128112c1844ba759925e48c6e7
Monotone-Revision: 24fe8bbb9b61c347ef798b9f6e888d08bf6aa660

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-10-22T15:54:02
Monotone-Branch: ca.inverse.sogo
2008-10-22 15:54:02 +00:00
Wolfgang Sourdeau 15e496adbe Monotone-Parent: c33cdda9e79ffbb64ec7e5ffcb898838a13ac5a7
Monotone-Revision: c6900964008d79668f220a86e8a60e9a660b9c0d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-27T01:13:41
Monotone-Branch: ca.inverse.sogo
2008-09-27 01:13:41 +00:00
Wolfgang Sourdeau acfedae126 Monotone-Parent: 0e8b32d9c70c2ce26b1625a032639e96a5e907a9
Monotone-Revision: 3edbc90046db007b2cea7d85505ba6bcecec6dd7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-07-04T16:06:09
Monotone-Branch: ca.inverse.sogo
2008-07-04 16:06:09 +00:00
Wolfgang Sourdeau b498c8ff24 Monotone-Parent: 0508e0037d1a44a60737fdd18b1830b167d7ab72
Monotone-Revision: e0c7704c039513e9d35441827fe46a04a1a4f5f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-04-15T15:00:14
Monotone-Branch: ca.inverse.sogo
2008-04-15 15:00:14 +00:00
Wolfgang Sourdeau 49bc44c786 Monotone-Parent: d5c71041bfdd88e4baae24bb7a81f91a5e480457
Monotone-Revision: 97ce53eed867e1824e43f8db18e4c2e3affcff00

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-01-21T16:35:39
Monotone-Branch: ca.inverse.sogo
2008-01-21 16:35:39 +00:00
Wolfgang Sourdeau 339d4b8e18 Monotone-Parent: 0b8453c1e1ca97f10acca6a72c72e8f6b29907d6
Monotone-Revision: 08e8d0fb761a61568f208c502269083b0b66bb25

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-01-18T22:59:43
Monotone-Branch: ca.inverse.sogo
2008-01-18 22:59:43 +00:00
Wolfgang Sourdeau 38d3aa757e Monotone-Parent: f6b8a3a72253a47ef5eda38ba241b206f9b48f65
Monotone-Revision: 1fb2ab16dbaee22f67d20e86943f297a72cf6c72

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-07T23:34:25
Monotone-Branch: ca.inverse.sogo
2007-11-07 23:34:25 +00:00
Renamed from SoObjects/Contacts/NSObject+CardDAV.m (Browse further)