[evolution-data-server/meego-eds] Some providers return NULL uid when they can't figureout the appended mails' uid. Dont crash but jus



commit 741125ef42b96eb2567135c4860741e03cee0f01
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Wed Jul 13 12:46:54 2011 -0700

    Some providers return NULL uid when they can't figureout the appended
    mails' uid. Dont crash but just return NULL string.

 mail/daemon/e-mail-data-folder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mail/daemon/e-mail-data-folder.c b/mail/daemon/e-mail-data-folder.c
index b233350..51bab58 100644
--- a/mail/daemon/e-mail-data-folder.c
+++ b/mail/daemon/e-mail-data-folder.c
@@ -945,9 +945,9 @@ app_msg_done (gboolean success, gpointer sdata, GError *error)
 		return;
 	}
 
-	egdbus_folder_cf_complete_append_message (data->object, data->invocation, data->uid, success);
+	egdbus_folder_cf_complete_append_message (data->object, data->invocation, data->uid ? data->uid : "", success);
 	
-	ipc(printf("Apppend message: %s success: %s\n", priv->path, data->uid));
+	ipc(printf("Apppend message: %s success: %s\n", priv->path, data->uid ? data->uid : ""));
 
 	outbox = e_mail_local_get_folder (E_MAIL_FOLDER_OUTBOX);
 	if (priv->folder == outbox) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]