g_mime_message_foreach(message, emcore_gmime_eml_parse_foreach_cb, temp_cnt_info);
- save_status = temp_cnt_info->text.plain_save_status;
+ //save_status = temp_cnt_info->text.plain_save_status;
save_status = temp_cnt_info->text.html_save_status;
for (ai = temp_cnt_info->file; ai; ai = ai->next) {
time_info->tm_mday += day_count; /* The other members of time_info will be interpreted or set by mktime */
time_info->tm_hour = input_account_ref->peak_start_time / 100;
- time_info->tm_min = input_account_ref->peak_start_time % 100;
+ //time_info->tm_min = input_account_ref->peak_start_time % 100;
time_info->tm_min = 0;
*output_time = mktime(time_info);
time_t result_time = 0;
int is_time_in_peak_schedule = 0;
- emstorage_get_account_by_id(multi_user_name, input_account_id, EMAIL_ACC_GET_OPT_DEFAULT, &account, true, &err);
+ if(!emstorage_get_account_by_id(multi_user_name, input_account_id, EMAIL_ACC_GET_OPT_DEFAULT, &account, true, &err)){
+ EM_DEBUG_EXCEPTION("emstorage_get_account_by_id failed [%d]", err);
+ goto FINISH_OFF;
+ }
if (account == NULL) {
EM_DEBUG_EXCEPTION("emstorage_get_account_by_id failed [%d]", err);
goto FINISH_OFF;
if (!emnetwork_check_network_status(&err)) {
EM_DEBUG_EXCEPTION("emnetwork_check_network_status failed [%d]", err);
- emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FAIL, mail_id, NULL, attachment_no, err);
+ if(!emcore_notify_network_event(NOTI_DOWNLOAD_ATTACH_FAIL, mail_id, NULL, attachment_no, err)){
+ EM_DEBUG_EXCEPTION("emcore_notify_network_event[NOTI_DOWNLOAD_ATTACH_FAIL] Failed >>>>");
+ }
} else {
#ifdef __ATTACHMENT_OPTI__
if (!emcore_download_attachment_bulk(account_id, mail_id, attachment_no, handle_to_be_published, &err))