MmsMsg mmsMsg;
MMS_MESSAGE_DATA_S mmsMsgData = {0,};
char raw_filepath[MSG_FILENAME_LEN_MAX+1] = {0,};
-
+ char raw_filedir[MSG_FILENAME_LEN_MAX+1] = {0,};
bzero(&mmsMsg, sizeof(mmsMsg));
memset(sqlQuery, 0x00, sizeof(sqlQuery));
if (dbHandle.execQuery(sqlQuery) != MSG_SUCCESS)
return MSG_ERR_DB_EXEC;
+ MSG_DEBUG("msg sub type = [%d]", pMsgInfo->msgType.subType);
+
if (pMsgInfo->msgType.subType == MSG_SENDREQ_MMS) {
if (_MsgMmsDeserializeMessageData(&mmsMsgData, pFileData) == false) {
}
//preview data
+ MmsPluginStorage::instance()->removePreviewInfo(pMsgInfo->msgId); //remove exist previnfo
+
err = MmsMakePreviewInfo(pMsgInfo->msgId, &mmsMsgData);
err = getMsgText(&mmsMsgData, pMsgInfo->msgText);
}
}
+ snprintf(raw_filedir, sizeof(raw_filedir), MSG_DATA_PATH"%d.mms.dir", pMsgInfo->msgId);
+ MsgRmRf(raw_filedir);
+ rmdir(raw_filedir);
+
int size = 0;
if (MsgGetFileSize(raw_filepath, &size) == false) {
}
pMsgInfo->dataSize = size;
+
+ MmsReadMsgBody(pMsgInfo->msgId, true, false, NULL);
}
MmsReleaseMmsMsg(&mmsMsg);