Ctx = (NotifyContext*) usrdata;
msg = CtdlFetchMessage(NotifyMsgnum, 1);
- if ( msg->cm_fields['W'] == NULL) {
+ if ( msg->cm_fields['2'] == NULL) {
goto nuke;
}
- configMsgNum = extNotify_getConfigMessage(msg->cm_fields['W']);
+ configMsgNum = extNotify_getConfigMessage(msg->cm_fields['2']);
extNotify_getPrefs(configMsgNum, &configMsg[0]);
notify_http_server(remoteurl,
file_funambol_msg,
strlen(file_funambol_msg),/*GNA*/
- msg->cm_fields['W'],
+ msg->cm_fields['2'],
msg->cm_fields['I'],
msgnum,
Ctx);
notify_http_server(URLBuf,
ChrPtr(FileBuf),
StrLength(FileBuf),
- msg->cm_fields['W'],
+ msg->cm_fields['2'],
msg->cm_fields['I'],
msgnum,
Ctx);
char *command;
number = strtok(configMsg, "textmessage\n");
- commandSiz = sizeof(config.c_pager_program) + strlen(number) + strlen(msg->cm_fields['W']) + 5;
+ commandSiz = sizeof(config.c_pager_program) + strlen(number) + strlen(msg->cm_fields['2']) + 5;
command = malloc(commandSiz);
- snprintf(command, commandSiz, "%s %s -u %s", config.c_pager_program, number, msg->cm_fields['W']);
+ snprintf(command, commandSiz, "%s %s -u %s", config.c_pager_program, number, msg->cm_fields['2']);
system(command);
free(command);
}