recipient type of received mms bug fixed 52/129752/1 accepted/tizen/unified/20170518.061327 submit/tizen/20170518.052800 tizen_4.0.m1_release
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 18 May 2017 04:54:29 +0000 (13:54 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 18 May 2017 04:54:29 +0000 (13:54 +0900)
Change-Id: I886faf9dd93cbb4a57b46069af4bc8787ee29237
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
plugin/mms_plugin/MmsPluginInternal.cpp

index a236e6b..95ed6a1 100755 (executable)
@@ -547,10 +547,10 @@ void MmsPluginInternal::processSendConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTranQEn
 }
 
 #if 1
-void __fillAddressInfo(MSG_ADDRESS_INFO_S *addressInfo, const char *addressVal)
+void __fillAddressInfo(MSG_ADDRESS_INFO_S *addressInfo, const char *addressVal, msg_recipient_type_t recipientType)
 {
        strncpy(addressInfo->addressVal, addressVal, MAX_ADDRESS_VAL_LEN);
-       addressInfo->recipientType = MSG_RECIPIENTS_TYPE_TO;
+       addressInfo->recipientType = recipientType;
        if (MmsAddrUtilCheckEmailAddress(addressInfo->addressVal)) {
                addressInfo->addressType = MSG_ADDRESS_TYPE_EMAIL;
        } else {
@@ -664,8 +664,8 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                if (mmsHeader.pFrom) {
                        MSG_DEBUG("FROM : [%s]", mmsHeader.pFrom->szAddr);
                        /* From */
-                       __fillAddressInfo(&(pMsgInfo->addressList[0]), mmsHeader.pFrom->szAddr);
-                       __fillAddressInfo(&recipients_addr_info[0], mmsHeader.pFrom->szAddr);
+                       __fillAddressInfo(&(pMsgInfo->addressList[0]), mmsHeader.pFrom->szAddr, MSG_RECIPIENTS_TYPE_UNKNOWN);
+                       __fillAddressInfo(&recipients_addr_info[0], mmsHeader.pFrom->szAddr, MSG_RECIPIENTS_TYPE_UNKNOWN);
                }
 
                int addr_idx = 0;
@@ -676,9 +676,9 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                                MSG_DEBUG("TO : [%s]", iter->szAddr);
                                /* To */
                                if (normal_msisdn == NULL || normal_msisdn[0] == '\0' || !g_str_has_suffix(iter->szAddr, normal_msisdn)) {
-                                       __fillAddressInfo(&(pMsgInfo->addressList[++addr_idx]), iter->szAddr);
+                                       __fillAddressInfo(&(pMsgInfo->addressList[++addr_idx]), iter->szAddr, MSG_RECIPIENTS_TYPE_TO);
                                }
-                               __fillAddressInfo(&recipients_addr_info[++recipients_idx], iter->szAddr);
+                               __fillAddressInfo(&recipients_addr_info[++recipients_idx], iter->szAddr, MSG_RECIPIENTS_TYPE_TO);
 
                                iter = iter->pNext;
                        }
@@ -690,9 +690,9 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                                MSG_DEBUG("CC : [%s]", iter->szAddr);
                                /* Cc */
                                if (normal_msisdn == NULL || normal_msisdn[0] == '\0' || !g_str_has_suffix(iter->szAddr, normal_msisdn)) {
-                                       __fillAddressInfo(&(pMsgInfo->addressList[++addr_idx]), iter->szAddr);
+                                       __fillAddressInfo(&(pMsgInfo->addressList[++addr_idx]), iter->szAddr, MSG_RECIPIENTS_TYPE_CC);
                                }
-                               __fillAddressInfo(&recipients_addr_info[++recipients_idx], iter->szAddr);
+                               __fillAddressInfo(&recipients_addr_info[++recipients_idx], iter->szAddr, MSG_RECIPIENTS_TYPE_CC);
 
                                iter = iter->pNext;
                        }