#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)
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__
{
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;
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);
}