Fixed update account
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Fri, 23 Nov 2012 10:25:48 +0000 (19:25 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Fri, 23 Nov 2012 10:25:48 +0000 (19:25 +0900)
email-core/email-core-account.c
email-daemon/email-daemon-account.c
packaging/email-service.spec

index d52c4cc..f544c53 100755 (executable)
@@ -175,7 +175,7 @@ INTERNAL_FUNC int emcore_validate_account_with_account_info(email_account_t *acc
                                goto FINISH_OFF;
                        }
 
-                   if (!emcore_connect_to_remote_mailbox_with_account_info(account, (char *)ENCODED_PATH_SMTP, (void **)&stream, &err) || !stream)  {
+                       if (!emcore_connect_to_remote_mailbox_with_account_info(account, (char *)ENCODED_PATH_SMTP, (void **)&stream, &err) || !stream)  {
                                EM_DEBUG_EXCEPTION("emcore_connect_to_remote_mailbox failed 2 - %d", err);
                                if (EMAIL_ERROR_AUTHENTICATE == err || EMAIL_ERROR_LOGIN_FAILURE == err) {      /*  wrong password or etc */
                                        EM_DEBUG_EXCEPTION("emcore_connect_to_remote_mailbox failed  :  Login or Authentication fail 2 - %d", err);
@@ -185,7 +185,7 @@ INTERNAL_FUNC int emcore_validate_account_with_account_info(email_account_t *acc
                                }
                                account->outgoing_server_secure_connection = 0x01;      /*  restore to the previous value */
                                goto FINISH_OFF;
-                   }
+                       }
 
                        if (!emcore_check_thread_status())  {
                                err = EMAIL_ERROR_CANCELLED;
index 969fdda..c61036b 100755 (executable)
@@ -136,9 +136,9 @@ static email_account_t* duplicate_account(email_account_t *src)
        dst->account_name              = EM_SAFE_STRDUP(src->account_name);
        dst->incoming_server_address   = EM_SAFE_STRDUP(src->incoming_server_address);
        dst->user_email_address        = EM_SAFE_STRDUP(src->user_email_address);
-       dst->incoming_server_user_name = EM_SAFE_STRDUP(src->user_email_address);
+       dst->incoming_server_user_name = EM_SAFE_STRDUP(src->incoming_server_user_name);
        dst->incoming_server_password  = EM_SAFE_STRDUP(src->incoming_server_password);
-       dst->outgoing_server_address   = EM_SAFE_STRDUP(src->incoming_server_password);
+       dst->outgoing_server_address   = EM_SAFE_STRDUP(src->outgoing_server_address);
        dst->outgoing_server_user_name = EM_SAFE_STRDUP(src->outgoing_server_user_name);
        dst->outgoing_server_password  = EM_SAFE_STRDUP(src->outgoing_server_password);
        dst->user_display_name         = EM_SAFE_STRDUP(src->user_display_name);
index bef0f0a..3f84c36 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       email-service
 Summary:    E-mail Framework Middleware package
-Version:    0.10.2
+Version:    0.10.3
 Release:    1
 Group:      System/Libraries
 License:    TBD