Hi
Check: http://bugzilla.mozilla.org/show_bug.cgi?id=116692 http://bugzilla.mozilla.org/show_bug.cgi?id=157925 http://bugzilla.mozilla.org/show_bug.cgi?id=157926
should also work with thunderbird
Cheers Roland
I tried to patch thunderbird : nsAddressBook.cpp Then ./configure then make (long compiling process :) ) And ..... nsAddressBook.cpp:166: error: too many initializers for `const ExportAttributesTableStruct[53]'
:(
I think something in the patch cannot be used in thunderbird 0.6 : Somebody want to give a try ? maybe I did a mistake while applying the patch :(
--- mozilla/mailnews/addrbook/src/nsAddressBook.cpp.kri Tue Jul 9 22:05:09 2002
+++ mozilla/mailnews/addrbook/src/nsAddressBook.cpp Thu Sep 5 12:09:45 2002
@@ -93,10 +93,7 @@
#define LDIF_LINEBREAK_LEN 2
#endif
-// our schema is not fixed yet, but we still want some sort of objectclass -// for now, use obsolete in the class name, hinting that this will change -// see bugs bug #116692 and #118454 -#define MOZ_AB_OBJECTCLASS "mozillaAbPersonObsolete" +#define MOZ_AB_OBJECTCLASS "mozillaOrgPerson"
// for now, these should be in the same order as they are in the import code
// see importMsgProperties and nsImportStringBundle.h
@@ -123,11 +120,11 @@
{kFirstNameColumn, "givenName", PR_TRUE},
{kLastNameColumn, "sn", PR_TRUE},
{kDisplayNameColumn, "cn", PR_TRUE},
- {kNicknameColumn, "xmozillanickname", PR_TRUE},
+ {kNicknameColumn, MOZ_AB_LDIF_PREFIX "Nickname", PR_TRUE},
{kPriEmailColumn, "mail", PR_TRUE},
{k2ndEmailColumn, MOZ_AB_LDIF_PREFIX "SecondEmail", PR_TRUE},
- {kPreferMailFormatColumn, "xmozillausehtmlmail", PR_FALSE},
- {kLastModifiedDateColumn, "modifytimestamp", PR_FALSE},
+ {kPreferMailFormatColumn, MOZ_AB_LDIF_PREFIX "UseHtmlMail", PR_TRUE},
+// {kLastModifiedDateColumn, "modifytimestamp", PR_FALSE},
{kWorkPhoneColumn, "telephoneNumber", PR_TRUE},
{kHomePhoneColumn, "homePhone", PR_TRUE},
{kFaxColumn, "facsimileTelephoneNumber", PR_TRUE},
@@ -148,15 +145,15 @@
{kJobTitleColumn, "title", PR_TRUE},
{kDepartmentColumn, "ou", PR_TRUE},
{kCompanyColumn, "o", PR_TRUE},
- {kWebPage1Column, "workurl", PR_TRUE},
- {kWebPage2Column, "homeurl", PR_TRUE},
+ {kWebPage1Column, MOZ_AB_LDIF_PREFIX "WorkUrl", PR_TRUE},
+ {kWebPage2Column, MOZ_AB_LDIF_PREFIX "HomeUrl", PR_TRUE},
{kBirthYearColumn, nsnull, PR_TRUE}, // unused for now
{kBirthMonthColumn, nsnull, PR_TRUE}, // unused for now
{kBirthDayColumn, nsnull, PR_TRUE}, // unused for now
- {kCustom1Column, "custom1", PR_TRUE},
- {kCustom2Column, "custom2", PR_TRUE},
- {kCustom3Column, "custom3", PR_TRUE},
- {kCustom4Column, "custom4", PR_TRUE},
+ {kCustom1Column, MOZ_AB_LDIF_PREFIX "Custom1", PR_TRUE},
+ {kCustom2Column, MOZ_AB_LDIF_PREFIX "Custom2", PR_TRUE},
+ {kCustom3Column, MOZ_AB_LDIF_PREFIX "Custom3", PR_TRUE},
+ {kCustom4Column, MOZ_AB_LDIF_PREFIX "Custom4", PR_TRUE},
{kNotesColumn, "description", PR_TRUE},
};
@@ -1768,14 +1765,11 @@
if (!displayName.IsEmpty()) { cnStr += NS_LITERAL_STRING("cn=") + displayName; - if (!email.IsEmpty()) { - cnStr += NS_LITERAL_STRING(","); - } + cnStr += NS_LITERAL_STRING(","); }
- if (!email.IsEmpty()) { - cnStr += NS_LITERAL_STRING("mail=") + email; - } +// Append ou=abook, its universal + cnStr += NS_LITERAL_STRING("ou=abook");
rv = AppendProperty(aProperty, cnStr.get(), aResult); NS_ENSURE_SUCCESS(rv,rv); thx for your tips though ! _______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory