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);
}
account->outgoing_server_secure_connection = 0x01; /* restore to the previous value */
goto FINISH_OFF;
- }
+ }
if (!emcore_check_thread_status()) {
err = EMAIL_ERROR_CANCELLED;
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);