]> git.sur5r.net Git - contagged/blobdiff - inc/functions.php
Store tags in Thunderbird custom fields
[contagged] / inc / functions.php
index f3b2ac05fac2660d67762f46e44793d5ea92059c..bb24f23691114a22b7e5ff30d0729e96cb508ef1 100644 (file)
@@ -234,6 +234,15 @@ function prepare_ldap_entry($in){
     }
   }
 
+  // special tag handling for Thunderbird
+  if($conf['tbtaghack'] && in_array('contactPerson',$OCLASSES)){
+    if($in['marker'][0]) $out['custom1'][] = $in['marker'][0];
+    if($in['marker'][1]) $out['custom2'][] = $in['marker'][1];
+    if($in['marker'][2]) $out['custom3'][] = $in['marker'][2];
+    if($in['marker'][3]) $out['custom4'][] = $in['marker'][3];
+  }
+
+
   // add the Objectclasses
   $out['objectclass'] = $OCLASSES;