/* Content-Type: IMAGE/octet-stream; name = Default.png */
/* Content-Transfer-Encoding: BASE64 */
-/* Content-ID: <4b0d6810b17291f9438783a8eb9d5228@com.samsung.slp.email> */
+/* Content-ID: <4b0d6810b17291f9438783a8eb9d5228@org.tizen.email> */
/* Content-Disposition: inline; filename = Default.png */
static int emcore_parse_image_part_for_partial_body(char *header_start_string, char *start_header, char *boundary_string, char *bufsendforparse, email_image_data *image_data, int body_size)
#define EMAIL_CH_SQUARE_BRACKET_E ']'
#define EMAIL_CH_SPACE ' '
#define EMAIL_NOTI_ICON_PATH EMAILPATH"/res/image/Q02_Notification_email.png"
-#define VCONF_KEY_UNREAD_MAIL_COUNT "db/badge/com.samsung.email"
+#define VCONF_KEY_UNREAD_MAIL_COUNT "db/badge/org.tizen.email"
typedef struct _em_transaction_info_type_t {
int mail_id;
badge_error_e badge_err = BADGE_ERROR_NONE;
bool exist;
- if((badge_err = badge_is_existing(" com.samsung.email ", &exist)) != BADGE_ERROR_NONE) {
+ if((badge_err = badge_is_existing(" org.tizen.email ", &exist)) != BADGE_ERROR_NONE) {
EM_DEBUG_EXCEPTION("badge_is_existing failed [%d]", badge_err);
err = EMAIL_ERROR_BADGE_API_FAILED;
goto FINISH_OFF;
}
if (!exist) {
/* create badge */
- if((badge_err = badge_create("com.samsung.email", "/usr/bin/email-service")) != BADGE_ERROR_NONE) {
+ if((badge_err = badge_create("org.tizen.email", "/usr/bin/email-service")) != BADGE_ERROR_NONE) {
EM_DEBUG_EXCEPTION("badge_create failed [%d]", badge_err);
err = EMAIL_ERROR_BADGE_API_FAILED;
goto FINISH_OFF;
}
}
- if((badge_err = badge_set_count("com.samsung.email", total_unread_count)) != BADGE_ERROR_NONE) {
+ if((badge_err = badge_set_count("org.tizen.email", total_unread_count)) != BADGE_ERROR_NONE) {
EM_DEBUG_EXCEPTION("badge_set_count failed [%d]", badge_err);
err = EMAIL_ERROR_BADGE_API_FAILED;
goto FINISH_OFF;
static int emcore_add_notification(int account_id, int mail_id, email_action_t action)
{
EM_DEBUG_FUNC_BEGIN();
- int err = EMAIL_ERROR_NONE;
+ int ret = EMAIL_ERROR_NONE;
EM_DEBUG_FUNC_END("ret [%d]", ret);
return ret;
return false;
}
- if (!emcore_add_notification(mail_table_data->account_id, id, action)) {
+ if (emcore_add_notification(mail_table_data->account_id, id, action) != EMAIL_ERROR_NONE) {
EM_DEBUG_EXCEPTION("emcore_notification_set error");
if (!emstorage_free_mail(&mail_table_data, 1, NULL))
}
for (i = 0; i < account_count ; i++) {
- if (!emcore_add_notification(p_account_tbl[i].account_id, 0, EMAIL_ACTION_NUM)) {
+ if (emcore_add_notification(p_account_tbl[i].account_id, 0, EMAIL_ACTION_NUM) != EMAIL_ERROR_NONE) {
EM_DEBUG_EXCEPTION("emcore_add_notification failed");
continue;
}