Revert "[P151125-03506] NAVER server's server search is not operated"
[platform/core/messaging/email-service.git] / email-core / email-core-mail.c
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__