Modified the indent 03/47403/1 accepted/tizen/mobile/20150903.110835 accepted/tizen/tv/20150903.110949 accepted/tizen/wearable/20150903.111125 submit/tizen/20150903.083144
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Thu, 3 Sep 2015 06:31:56 +0000 (15:31 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Thu, 3 Sep 2015 06:31:56 +0000 (15:31 +0900)
Change-Id: I58375a94142bfd49e168fa9f50fd240353fd5fab

email-common-use/email-convert.c
email-core/CMakeLists.txt
email-core/email-core-utils.c
email-core/include/email-core-mail.h
email-core/include/email-core-utils.h
email-daemon/email-daemon-etc.c
packaging/email-service.spec

index 8299cd5..3dc30b5 100755 (executable)
@@ -700,7 +700,7 @@ static char *convert_format(char *fmt)
        char *converted_fmt = NULL;
 
        string_size = strlen(fmt);
-       converted_fmt = em_malloc(string_size);
+       converted_fmt = em_malloc(string_size + 1);
        if (converted_fmt == NULL) {
                EM_DEBUG_EXCEPTION("em_malloc failed");
                return NULL;
@@ -778,7 +778,7 @@ INTERNAL_FUNC char* em_convert_account_to_byte_stream(email_account_t* account,
                return NULL;
        }
 
-       tn = tpl_map(EMAIL_ACCOUNT_FMT, account, &tb, &(account->user_data_length));
+       tn = tpl_map(converted_fmt, account, &tb, &(account->user_data_length));
        if (!tn) {
                EM_SAFE_FREE(converted_fmt);
                EM_DEBUG_EXCEPTION("tpl_map failed");
index 9b5aa74..765e6f6 100755 (executable)
@@ -234,7 +234,7 @@ INCLUDE_DIRECTORIES(
 INCLUDE(FindPkgConfig)
 SET(PKG_MODULES glib-2.0 dlog dbus-1 gthread-2.0 key-manager
                        uw-imap-toolkit vconf vconf-internal-keys contacts-service2 
-                       openssl accounts-svc alarm-service notification libcurl libxml-2.0 feedback
+                       openssl accounts-svc alarm-service notification libcurl libxml-2.0 
                        cert-svc cert-svc-vcore badge capi-appfw-application icu-i18n gmime-2.6 storage)
 
 pkg_check_modules(core_pkgs REQUIRED ${PKG_MODULES})
index f2573f4..2c2f66d 100755 (executable)
@@ -57,7 +57,6 @@
 #include <drm_client_types.h>
 #include <drm_client.h>
 #endif /* __FEATURE_USE_DRM_API__ */
-#include <feedback.h>
 #include <storage.h>
 #include <bundle.h>
 #include <curl/curl.h>
index 73c1b69..52b41d1 100755 (executable)
@@ -340,7 +340,6 @@ INTERNAL_FUNC int   emcore_sync_flag_with_server(char *multi_user_name, int mail
 INTERNAL_FUNC int   emcore_sync_seen_flag_with_server(char *multi_user_name, int mail_ids[], int num, int event_handle, int *err_code);
 
 INTERNAL_FUNC int   emcore_set_flags_field(char *multi_user_name, int account_id, int mail_ids[], int num, email_flags_field_type field_type, int value, int *err_code);
-INTERNAL_FUNC char* emcore_convert_mutf7_to_utf8(char *mailbox_name); 
 INTERNAL_FUNC int   emcore_convert_string_to_structure(const char *encoded_string, void **struct_var, email_convert_struct_type_e type);
 INTERNAL_FUNC int   emcore_save_mail_file(char *multi_user_name, int account_id, int mail_id, int attachment_id, char *src_file_path, char *file_name, char *full_path, char *virtual_path, int *err_code);
 
index b9c5cb8..e78a144 100755 (executable)
@@ -238,6 +238,7 @@ INTERNAL_FUNC char *__em_get_month_in_string(int month);
 INTERNAL_FUNC int emcore_make_date_string_for_search(time_t input_time, char *output_date_string);
 INTERNAL_FUNC int emcore_make_uid_range_string(emcore_uid_list *uid_list, int total, char **output_uid_range_string);
 
+INTERNAL_FUNC char* emcore_convert_mutf7_to_utf8(char *mailbox_name); 
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
index e4a98fc..63a626d 100755 (executable)
@@ -463,7 +463,6 @@ INTERNAL_FUNC int emdaemon_finalize_sync(char *multi_user_name, int account_id,
                        EM_DEBUG_LOG("The email app is topmost");
                } else {
 
-
                        if ((err = emcore_add_notification(multi_user_name, account_id, 0, unread_mail_count, vip_unread_mail_count, 1, EMAIL_ERROR_NONE, NOTIFICATION_DISPLAY_APP_ALL)) != EMAIL_ERROR_NONE)
                                EM_DEBUG_EXCEPTION("emcore_add_notification failed : [%d]", err);
 
index 7af7c9f..7502a58 100755 (executable)
@@ -45,7 +45,6 @@ BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(cert-svc)
 BuildRequires:  pkgconfig(cert-svc-vcore)
 BuildRequires:  pkgconfig(badge)
-BuildRequires:  pkgconfig(feedback)
 BuildRequires:  pkgconfig(capi-appfw-application)
 BuildRequires:  pkgconfig(libwbxml2)
 BuildRequires:  pkgconfig(msg-service)