X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fextnotify%2Fextnotify_main.c;fp=citadel%2Fmodules%2Fextnotify%2Fextnotify_main.c;h=6d865082ca7f30e0d5b9cf41958bf273834c4f28;hb=848934c1722edc208c4df49c571586b72c3fc486;hp=826704cf45a68d771c0bfba7529d3eaf11b1f5b2;hpb=11b27ee27a3d6d28e926e4ccd936dd10da17bb29;p=citadel.git diff --git a/citadel/modules/extnotify/extnotify_main.c b/citadel/modules/extnotify/extnotify_main.c index 826704cf4..6d865082c 100644 --- a/citadel/modules/extnotify/extnotify_main.c +++ b/citadel/modules/extnotify/extnotify_main.c @@ -154,6 +154,7 @@ eNotifyType extNotify_getConfigMessage(char *username, int num_msgs = 0; int a; char *configMsg; + long clen; char *pch; // Get the user @@ -204,8 +205,7 @@ eNotifyType extNotify_getConfigMessage(char *username, // Do a simple string search to see if 'funambol' is selected as the // type. This string would be at the very top of the message contents. - configMsg = msg->cm_fields[eMesageText]; - msg->cm_fields[eMesageText] = NULL; + CM_GetAsField(msg, eMesageText, &configMsg, &clen); CtdlFreeMessage(msg); /* here we would find the pager number... */