if (!emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value, &err)) {
EM_DEBUG_EXCEPTION("emcore_set_flags_field failed [%d]", err);
}
- } else {
+ }
+#if 0
+ else {
/* If the emcore_sync_flags_field_with_server is failed, rollback the db */
emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value ? 0 : 1, NULL);
}
-
+#endif
if (error)
*error = err;
EM_DEBUG_EXCEPTION("emstorage_get_account_by_id falled [%d]", err);
goto FINISH_OFF;
}
-
+#if 0 /* UI display issue with read/unread sync */
if (!emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value, &err)) {
EM_DEBUG_EXCEPTION("emcore_set_flags_field falled [%d]", err);
goto FINISH_OFF;
}
-
+#endif
if (onserver && account_tbl->incoming_server_type == EMAIL_SERVER_TYPE_IMAP4) {
event_data = em_malloc(sizeof(email_event_t));
if (event_data == NULL) {
int nAPPID = emipc_get_app_id(a_hAPI);
char *multi_user_name = NULL;
+ if (!emnetwork_check_network_status(&err)) {
+ EM_DEBUG_EXCEPTION("Network failed [%d]", err);
+ goto FINISH_OFF;
+ }
if ((err = emcore_get_user_name(nAPPID, &multi_user_name)) != EMAIL_ERROR_NONE) {
EM_DEBUG_EXCEPTION("emcore_get_user_info failed : [%d]", err);
multi_user_name = NULL;