From d7939773f635fed0bbf9945e66625d9f1dc64620 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 21 Jul 2008 04:06:03 +0000 Subject: [PATCH] ** Use pstrings for info uids. 2008-07-21 Srinivasa Ragavan ** Use pstrings for info uids. * camel/providers/groupwise/camel-groupwise-folder.c: * camel/providers/groupwise/camel-groupwise-journal.c: * camel/providers/groupwise/camel-groupwise-summary.c: svn path=/trunk/; revision=9152 --- camel/providers/groupwise/ChangeLog | 8 ++++++++ camel/providers/groupwise/camel-groupwise-folder.c | 4 ++-- camel/providers/groupwise/camel-groupwise-journal.c | 2 +- camel/providers/groupwise/camel-groupwise-summary.c | 4 ++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog index 8dd131d..ef77b73 100644 --- a/camel/providers/groupwise/ChangeLog +++ b/camel/providers/groupwise/ChangeLog @@ -1,3 +1,11 @@ +2008-07-21 Srinivasa Ragavan + + ** Use pstrings for info uids. + + * camel/providers/groupwise/camel-groupwise-folder.c: + * camel/providers/groupwise/camel-groupwise-journal.c: + * camel/providers/groupwise/camel-groupwise-summary.c: + 2008-07-16 Sankar P Pushing disk summary changes from the madagascar branch diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index 307a535..7e13e71 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -1411,7 +1411,7 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean } if (!exists) { - mi->info.uid = g_strdup (e_gw_item_get_id(item)); + mi->info.uid = camel_pstring_strdup (e_gw_item_get_id(item)); mi->info.size = e_gw_item_get_mail_size (item); mi->info.subject = camel_pstring_strdup(e_gw_item_get_subject(item)); } @@ -1628,7 +1628,7 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex) } } - mi->info.uid = g_strdup(e_gw_item_get_id(item)); + mi->info.uid = camel_pstring_strdup(e_gw_item_get_id(item)); if (!exists) mi->info.size = e_gw_item_get_mail_size (item); mi->info.subject = camel_pstring_strdup(e_gw_item_get_subject(item)); diff --git a/camel/providers/groupwise/camel-groupwise-journal.c b/camel/providers/groupwise/camel-groupwise-journal.c index 88a2589..09483c6 100644 --- a/camel/providers/groupwise/camel-groupwise-journal.c +++ b/camel/providers/groupwise/camel-groupwise-journal.c @@ -374,7 +374,7 @@ update_cache (CamelGroupwiseJournal *groupwise_journal, CamelMimeMessage *messag info = camel_folder_summary_info_new_from_message (folder->summary, message); g_free(info->uid); - info->uid = g_strdup (uid); + info->uid = camel_pstring_strdup (uid); gw_message_info_dup_to ((CamelMessageInfoBase *) info, (CamelMessageInfoBase *) mi); diff --git a/camel/providers/groupwise/camel-groupwise-summary.c b/camel/providers/groupwise/camel-groupwise-summary.c index f5d90d7..bcc80df 100644 --- a/camel/providers/groupwise/camel-groupwise-summary.c +++ b/camel/providers/groupwise/camel-groupwise-summary.c @@ -431,7 +431,7 @@ camel_gw_summary_add_offline (CamelFolderSummary *summary, const char *uid, Came } mi->info.size = camel_message_info_size(info); - mi->info.uid = g_strdup (uid); + mi->info.uid = camel_pstring_strdup (uid); camel_folder_summary_add (summary, (CamelMessageInfo *)mi); @@ -443,7 +443,7 @@ camel_gw_summary_add_offline_uncached (CamelFolderSummary *summary, const char * CamelGroupwiseMessageInfo *mi; mi = camel_message_info_clone(info); - mi->info.uid = g_strdup(uid); + mi->info.uid = camel_pstring_strdup(uid); camel_folder_summary_add (summary, (CamelMessageInfo *)mi); } -- 2.7.4