From 747f4c0f1982e2d562621cde03a4f36b4f28650c Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 22 Oct 2007 22:18:07 +0000 Subject: [PATCH] Monotone-Parent: e4061b37bffe8a7f2898355a6e8d4036e46115d0 Monotone-Revision: df6e6d4970991afb31fd11ee19fa747e5c5c76d5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-22T22:18:07 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ SoObjects/Contacts/SOGoContactLDIFEntry.m | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63b2fea8e..7e3e25ccf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-10-22 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactLDIFEntry.m ([SOGoContactLDIFEntry + -davEntityTag]): modified to return the "hash" of the vCard string. + * UI/MailerUI/UIxMailActions.m ([UIxMailActions -removeAllLabelsAction]): new method that removes all label flags from the associated message. diff --git a/SoObjects/Contacts/SOGoContactLDIFEntry.m b/SoObjects/Contacts/SOGoContactLDIFEntry.m index 22a2ba7ef..94615aba9 100644 --- a/SoObjects/Contacts/SOGoContactLDIFEntry.m +++ b/SoObjects/Contacts/SOGoContactLDIFEntry.m @@ -173,7 +173,12 @@ - (NSString *) davEntityTag { - return [ldifEntry objectForKey: @"modifyTimeStamp"]; + unsigned int hash; +// return [ldifEntry objectForKey: @"modifyTimeStamp"]; + + hash = [[self contentAsString] hash]; + + return [NSString stringWithFormat: @"hash%u", hash]; } - (NSString *) davContentType