* Based on bits of the previous serv_funambol
* Contact: <matt@mcbridematt.dhs.org> / <matt@comalies>
*/
-#include "extnotify.h"
#include <stdio.h>
#include <string.h>
#include "msgbase.h"
#include "ctdl_module.h"
+#include "extnotify.h"
+
/*
* \brief Sends a message to the Funambol server notifying
* of new mail for a user
const char* template, long tlen,
char *user,
char *msgid,
- long MsgNum)
+ long MsgNum,
+ NotifyContext *Ctx)
{
char curl_errbuf[CURL_ERROR_SIZE];
char *pchs, *pche;
}
else
StrBufAppendBufPlain(ErrMsg, HKEY("\n\nThere was no Serverreply.\n\n"), 0);
-/* TODO: this will change the floor we're in :(
- quickie_message("Citadel", NULL, NULL, AIDEROOM, ChrPtr(ErrMsg), FMT_FIXED,
- "Failed to notify external service about inbound mail");
-*/
- FreeStrBuf(&ErrMsg);
+ ExtNotify_PutErrorMessage(Ctx, ErrMsg);
}
CtdlLogPrintf(CTDL_DEBUG, "Funambol notified\n");