Revert "[P151125-03506] NAVER server's server search is not operated" 92/92192/2 accepted/tizen/3.0/ivi/20161028.134026 accepted/tizen/3.0/mobile/20161028.133134 accepted/tizen/3.0/wearable/20161028.133656 accepted/tizen/common/20161014.043058 accepted/tizen/ivi/20161014.005333 accepted/tizen/mobile/20161014.005300 accepted/tizen/wearable/20161014.005318 submit/tizen/20161013.193459 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
authorJongkyu Koo <jk.koo@samsung.com>
Thu, 13 Oct 2016 19:23:37 +0000 (12:23 -0700)
committerintae jeon <intae.jeon@samsung.com>
Thu, 13 Oct 2016 19:31:34 +0000 (12:31 -0700)
This reverts commit 123b523e7456e8c9e90d67f7f63b828c703e1c66.

Change-Id: Ic6be2932d736335a2f9ad646ada3b904811499b1

email-common-use/include/email-debug-log.h
email-core/email-core-mail.c
email-core/email-storage/email-storage.c

index 141da92..ef9141c 100755 (executable)
@@ -58,7 +58,7 @@ extern "C"
 
 #define LOG_TAG "EMAIL_SERVICE"
 
-#define        EM_DEBUG_LOG(format, arg...)        SLOGW(format, ##arg)
+#define        EM_DEBUG_LOG(format, arg...)        SLOGD(format, ##arg)
 #define        EM_DEBUG_EXCEPTION(format, arg...)  SLOGE("[EXCEPTION!] " format "\n", ##arg)
 
 #define        EM_DEBUG_LOG_SEC(format, arg...)        SECURE_SLOGD(format, ##arg)
index 075595b..0e922ca 100755 (executable)
@@ -3940,26 +3940,7 @@ INTERNAL_FUNC int emcore_delete_mails_from_local_storage(char *multi_user_name,
                                EM_DEBUG_EXCEPTION("emstorage_remove_downloaded_mail failed [%d]", err);
                                goto FINISH_OFF;
                        }
-
-               /* Deleting search result mail's information */
-               } else if (result_mail_list[i].mailbox_type == EMAIL_MAILBOX_TYPE_SEARCH_RESULT) {
-                       /* searched mail uids */
-                       if (!emstorage_remove_downloaded_mail(multi_user_name,
-                                                                                                       account_id,
-                                                                                                       result_mail_list[i].mailbox_id,
-                                                                                                       EMAIL_SEARCH_RESULT_MAILBOX_NAME,
-                                                                                                       result_mail_list[i].server_mail_id,
-                                                                                                       false,
-                                                                                                       &err)) {
-                               EM_DEBUG_EXCEPTION("emstorage_remove_downloaded_mail failed [%d]", err);
-                               goto FINISH_OFF;
-                       }
-                       /* searched mail's partial body activity */
-                       if (!emcore_delete_pbd_activity(multi_user_name, account_id, result_mail_list[i].mail_id, 0, &err)) {
-                               EM_DEBUG_EXCEPTION("emcore_delete_pbd_activity failed [%d]", err);
-                               goto FINISH_OFF;
-                       }
-        }
+               }
        }
 
 #ifdef __FEATURE_WIFI_AUTO_DOWNLOAD__
index 654d92f..5e3ca31 100755 (executable)
@@ -13437,7 +13437,7 @@ INTERNAL_FUNC int emstorage_get_pbd_mailbox_list(char *multi_user_name, int acco
 {
        EM_DEBUG_FUNC_BEGIN("account_id[%d], mailbox_list[%p], count[%p] err_code[%p]", account_id, mailbox_list, count, err_code);
 
-       if (account_id < FIRST_ACCOUNT_ID || NULL == mailbox_list || NULL == count) {
+       if (account_id < FIRST_ACCOUNT_ID || NULL == mailbox_list || *mailbox_list == NULL || NULL == count) {
                EM_DEBUG_EXCEPTION("account_id[%d], mailbox_list[%p], count[%p] err_code[%p]", account_id, mailbox_list, count, err_code);
                if (err_code != NULL)
                        *err_code = EMAIL_ERROR_INVALID_PARAM;
@@ -17840,8 +17840,6 @@ gint glist_compare_column_name(gconstpointer old_column_info, gconstpointer new_
        if (old_column_info == NULL || new_column_info == NULL)
                return -1;
 
-
-       EM_DEBUG_FUNC_END("error [%d]", error);
        return EM_SAFE_STRCMP((char*)left_one->column_name, (char*)right_one->column_name);
 }