Rewrite loading of notify configurations
[citadel.git] / citadel / modules / extnotify / funambol65.c
index 7f63c6582c98fa5f33d86ad15838d9f591d0381c..fbba1ed54558bdd9833dfc537b56d5b610df3de9 100644 (file)
@@ -214,6 +214,30 @@ int EvaluateResult(NotifyContext *Ctx, int res, int b)
        }
 
        CtdlLogPrintf(CTDL_DEBUG, "Funambol notified\n");
+/*
+       while ((Ctx.NotifyHostList != NULL) && (Ctx.NotifyHostList[i] != NULL))
+               FreeStrBuf(&Ctx.NotifyHostList[i]);
+
+       if (Ctx.NotifyErrors != NULL)
+       {
+               long len;
+               const char *Key;
+               HashPos *It;
+               void *vErr;
+               StrBuf *ErrMsg;
+
+               It = GetNewHashPos(Ctx.NotifyErrors, 0);
+               while (GetNextHashPos(Ctx.NotifyErrors, It, &len, &Key, &vErr) && 
+                      (vErr != NULL)) {
+                       ErrMsg = (StrBuf*) vErr;
+                       quickie_message("Citadel", NULL, NULL, AIDEROOM, ChrPtr(ErrMsg), FMT_FIXED, 
+                                       "Failed to notify external service about inbound mail");
+               }
+
+               DeleteHashPos(&It);
+               DeleteHash(&Ctx.NotifyErrors);
+       }
+*/
 
 ////   curl_slist_free_all (headers);
 ///    curl_easy_cleanup(curl);