diff options
| author | Vivek Jain <jvivek@novell.com> | 2005-07-19 10:27:02 +0000 |
|---|---|---|
| committer | Jain Vivek <jvivek@src.gnome.org> | 2005-07-19 10:27:02 +0000 |
| commit | 5a1965d5f07c9285ada4cccedfd72372d9a8b7ff (patch) | |
| tree | e735d8f236948b12d586db274c25a5741ff63cf2 | |
| parent | da49abbaaf563b62ba05ce7a7e6db5f32f88a035 (diff) | |
| download | evolution-data-server-5a1965d5f07c9285ada4cccedfd72372d9a8b7ff.tar.gz | |
: removed Changed the name hash. Now it stores full names of the folders
2005-07-19 Vivek Jain <jvivek@novell.com>
* camel-groupwise-store.[ch] :
(gw_get_path) : removed
* camel-groupwise-store.c:
(groupwise_get_folder_info): Changed the name hash. Now
it stores full names of the folders
(groupwise_rename_folder):
(groupwise_delete_folder):
(groupwise_create_folder):
(groupwise_get_folder) :
use full name of the folder to perform any operation, when
folder name is to be taken from name_hash
(groupwise_build_folder_info): we don't need to call gw_get_path
use full name passed directly
* camel-groupwise-folder.c :
(groupwise_transfer_messages_to):
(groupwise_append_message):
(groupwise_expunge):
(groupwise_sync):
(groupwise_folder_get_message):
(groupwise_folder_get_message):
(groupwise_refresh_folder):
(groupwise_update_summary):
use full_name in container id lookup
also fixed some memory leaks and removed unnecesary white spaces
**Fixes #309502 sort of bugs
| -rw-r--r-- | camel/providers/groupwise/camel-groupwise-folder.c | 64 | ||||
| -rw-r--r-- | camel/providers/groupwise/camel-groupwise-store.c | 148 | ||||
| -rw-r--r-- | camel/providers/groupwise/camel-groupwise-store.h | 1 |
3 files changed, 60 insertions, 153 deletions
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index 2ffaa9d79..d1bc01c05 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -99,7 +99,7 @@ groupwise_folder_get_message( CamelFolder *folder, CamelGroupwiseStore *gw_store = CAMEL_GROUPWISE_STORE(folder->parent_store); CamelGroupwiseStorePrivate *priv = gw_store->priv; CamelGroupwiseMessageInfo *mi = NULL; - char *temp_name, *folder_name, *container_id; + char *container_id; EGwConnectionStatus status; EGwConnection *cnc; EGwItem *item; @@ -155,20 +155,8 @@ groupwise_folder_get_message( CamelFolder *folder, return NULL; } + container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->full_name)) ; - folder_name = g_strdup(folder->name); - temp_name = strrchr (folder_name,'/'); - if(temp_name == NULL) { - container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder_name)); - } - else { - temp_name++; - container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, temp_name)); - } - - g_free (folder_name); - //XXX:free container_id - cnc = cnc_lookup (priv); status = e_gw_connection_get_item (cnc, container_id, uid, "peek default distribution recipient message attachments subject notification created recipientStatus status", &item); if (status != E_GW_CONNECTION_STATUS_OK) { @@ -182,6 +170,8 @@ groupwise_folder_get_message( CamelFolder *folder, if (!msg) { camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Could not get message")); CAMEL_SERVICE_UNLOCK (folder->parent_store, connect_lock); + g_free (container_id); + return NULL; } @@ -196,7 +186,10 @@ groupwise_folder_get_message( CamelFolder *folder, CAMEL_GROUPWISE_FOLDER_UNLOCK (folder, cache_lock); CAMEL_SERVICE_UNLOCK (folder->parent_store, connect_lock); + + g_free (container_id); return msg; + } static void @@ -579,8 +572,8 @@ groupwise_sync (CamelFolder *folder, gboolean expunge, CamelException *ex) if (((CamelOfflineStore *) gw_store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) return; - container_id = camel_groupwise_store_container_id_lookup (gw_store, folder->name); - + container_id = camel_groupwise_store_container_id_lookup (gw_store, folder->full_name) ; + CAMEL_SERVICE_LOCK (gw_store, connect_lock); count = camel_folder_summary_count (folder->summary); @@ -790,9 +783,10 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex) return; } - container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->name)); + container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->full_name)) ; + if (!container_id) { - g_error ("\nERROR - Container id not present. Cannot refresh info\n"); + g_error ("\nERROR - Container id not present. Cannot refresh info for %s\n", folder->full_name); return; } @@ -809,7 +803,6 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex) /*Done....should refresh now.....*/ if (!g_ascii_strncasecmp (folder->full_name, "Trash", 5) || is_proxy) { - g_print ("I am entering here ...\n"); status = e_gw_connection_get_items (cnc, container_id, "recipient distribution created attachments subject status size", NULL, &list); if (status != E_GW_CONNECTION_STATUS_OK) { camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed")); @@ -825,8 +818,7 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex) } time_string = g_strdup (((CamelGroupwiseSummary *) folder->summary)->time_string); - t_str = g_strdup (time_string); - + t_str = g_strdup (time_string); /*Get the New Items*/ status = e_gw_connection_get_quick_messages (cnc, container_id, "peek id", @@ -843,7 +835,8 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex) if (summary->time_string) g_free (summary->time_string); summary->time_string = g_strdup (t_str); - g_free (t_str); t_str = NULL; + g_free (t_str); + t_str = NULL; for ( sl = slist ; sl != NULL; sl = sl->next) list = g_list_append (list, sl->data); @@ -929,7 +922,7 @@ gw_update_summary ( CamelFolder *folder, GList *item_list,CamelException *ex) msg = g_ptr_array_new (); changes = camel_folder_change_info_new (); - container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->name)); + container_id = g_strdup (camel_groupwise_store_container_id_lookup (gw_store, folder->full_name)); if (!container_id) { g_error ("\nERROR - Container id not present. Cannot refresh info\n"); return; @@ -1129,7 +1122,7 @@ groupwise_folder_item_to_msg( CamelFolder *folder, !g_ascii_strncasecmp (attach->name, "TEXT.htm", 8)) { status = e_gw_connection_get_attachment (cnc, - g_strdup(attach->id), 0, -1, + attach->id, 0, -1, (const char **)&attachment, &len); if (status != E_GW_CONNECTION_STATUS_OK) { g_warning ("Could not get attachment\n"); @@ -1219,7 +1212,7 @@ groupwise_folder_item_to_msg( CamelFolder *folder, g_object_unref (temp_item); } else { status = e_gw_connection_get_attachment (cnc, - g_strdup(attach->id), 0, -1, + attach->id, 0, -1, (const char **)&attachment, &len); if (status != E_GW_CONNECTION_STATUS_OK) { g_warning ("Could not get attachment\n"); @@ -1251,7 +1244,6 @@ groupwise_folder_item_to_msg( CamelFolder *folder, camel_object_unref (multipart); - if (body) g_free (body); @@ -1315,7 +1307,8 @@ groupwise_append_message (CamelFolder *folder, CamelMimeMessage *message, } CAMEL_SERVICE_LOCK (folder->parent_store, connect_lock); /*Get the container id*/ - container_id = camel_groupwise_store_container_id_lookup (gw_store, folder->name); + container_id = camel_groupwise_store_container_id_lookup (gw_store, folder->full_name) ; + /* FIXME Separate To/CC/BCC? */ recipients = CAMEL_ADDRESS (camel_internet_address_new ()); camel_address_cat (recipients, CAMEL_ADDRESS (camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_TO))); @@ -1381,8 +1374,6 @@ uid_compar (const void *va, const void *vb) return 1; } - - static void groupwise_transfer_messages_to (CamelFolder *source, GPtrArray *uids, CamelFolder *destination, GPtrArray **transferred_uids, @@ -1409,11 +1400,11 @@ groupwise_transfer_messages_to (CamelFolder *source, GPtrArray *uids, *transferred_uids = NULL; if (delete_originals) - source_container_id = camel_groupwise_store_container_id_lookup (gw_store, source->name); + source_container_id = camel_groupwise_store_container_id_lookup (gw_store, source->full_name) ; else source_container_id = NULL; - dest_container_id = camel_groupwise_store_container_id_lookup (gw_store, destination->name); - + dest_container_id = camel_groupwise_store_container_id_lookup (gw_store, destination->full_name) ; + CAMEL_SERVICE_LOCK (source->parent_store, connect_lock); /* check for offline operation */ if (offline->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { @@ -1501,7 +1492,7 @@ groupwise_expunge (CamelFolder *folder, CamelException *ex) cnc = cnc_lookup (priv); - container_id = g_strdup (camel_groupwise_store_container_id_lookup (groupwise_store, folder->name)); + container_id = g_strdup (camel_groupwise_store_container_id_lookup (groupwise_store, folder->full_name)) ; max = camel_folder_summary_count (folder->summary); for (i = 0; i < max; i++) { @@ -1606,7 +1597,6 @@ camel_groupwise_folder_get_type (void) return camel_groupwise_folder_type; } - static int gw_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args) { @@ -1641,7 +1631,6 @@ gw_getv (CamelObject *object, CamelException *ex, CamelArgGetV *args) return ((CamelObjectClass *)parent_class)->getv(object, ex, args); return 0; - } @@ -1654,8 +1643,6 @@ convert_to_calendar (EGwItem *item, char **str, int *len) GString *gstr = g_string_new (NULL); char **tmp; const char *temp = NULL; - - tmp = g_strsplit (e_gw_item_get_id (item), "@", -1); @@ -1718,7 +1705,6 @@ convert_to_calendar (EGwItem *item, char **str, int *len) gstr = g_string_append (gstr, "END:VEVENT\n"); gstr = g_string_append (gstr, "END:VCALENDAR\n"); - *str = gstr->str; *len = gstr->len; @@ -1735,8 +1721,6 @@ convert_to_task (EGwItem *item, char **str, int *len) char **tmp; const char *temp = NULL; - - tmp = g_strsplit (e_gw_item_get_id (item), "@", -1); gstr = g_string_append (gstr, "BEGIN:VCALENDAR\n"); diff --git a/camel/providers/groupwise/camel-groupwise-store.c b/camel/providers/groupwise/camel-groupwise-store.c index e9042f368..8238473dd 100644 --- a/camel/providers/groupwise/camel-groupwise-store.c +++ b/camel/providers/groupwise/camel-groupwise-store.c @@ -519,8 +519,7 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags, CamelFolder *folder ; CamelSession *session = camel_service_get_session (CAMEL_SERVICE (store)); CamelGroupwiseSummary *summary; - char *storage_path, *folder_dir, *temp_str,*container_id ; - const char *temp_name; + char *storage_path, *folder_dir, *container_id ; EGwConnectionStatus status ; GList *list = NULL ; gboolean done = FALSE ; @@ -556,16 +555,8 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags, return NULL; } } - - temp_name = folder_name ; - temp_str = strrchr(folder_name,'/') ; - if(temp_str == NULL) { - container_id = g_strdup (g_hash_table_lookup (priv->name_hash, g_strdup(folder_name))) ; - } - else { - temp_str++ ; - container_id = g_strdup (g_hash_table_lookup (priv->name_hash, g_strdup(temp_str))) ; - } + + container_id = g_strdup (g_hash_table_lookup (priv->name_hash, folder_name)) ; folder = camel_gw_folder_new (store, folder_name, folder_dir, ex) ; if (!folder) { @@ -666,7 +657,7 @@ static CamelFolderInfo * groupwise_build_folder_info(CamelGroupwiseStore *gw_store, const char *parent_name, const char *folder_name) { CamelURL *url ; - const char *name, *full_name ; + const char *name; CamelFolderInfo *fi ; CamelGroupwiseStorePrivate *priv = gw_store->priv ; @@ -675,22 +666,14 @@ groupwise_build_folder_info(CamelGroupwiseStore *gw_store, const char *parent_na fi->unread = 0 ; fi->total = 0 ; - - - if (parent_name) - if (strlen(parent_name) > 0) { - full_name = gw_get_path (gw_store, parent_name) ; - fi->full_name = g_strconcat(full_name,"/",g_strdup(folder_name), NULL) ; - } else - fi->full_name = g_strdup (folder_name) ; - else { - full_name = gw_get_path (gw_store, folder_name) ; - if (full_name) - fi->full_name = g_strdup (full_name) ; + if (parent_name) { + if (strlen(parent_name) > 0) + fi->full_name = g_strconcat(parent_name, "/", folder_name, NULL) ; else - fi->full_name = g_strdup(folder_name) ; - } - + fi->full_name = g_strdup (folder_name) ; + } else + fi->full_name = g_strdup(folder_name) ; + url = camel_url_new(priv->base_url,NULL) ; g_free(url->path) ; url->path = g_strdup_printf("/%s", fi->full_name) ; @@ -826,7 +809,7 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca GPtrArray *folders; GList *folder_list = NULL, *temp_list = NULL ; const char *url, *top_folder, *temp_url ; - char *temp_str = NULL, *folder_real = NULL ; + char *folder_real = NULL ; CamelFolderInfo *info = NULL ; struct _store_folder_refresh *msg; @@ -850,12 +833,7 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca top_folder = "folders" ; top = "" ; } else { - temp_str = strrchr (top, '/') ; - if (temp_str) { - temp_str++ ; - top_folder = g_hash_table_lookup (priv->name_hash, temp_str) ; - } else - top_folder = g_hash_table_lookup (priv->name_hash, top) ; + top_folder = g_hash_table_lookup (priv->name_hash, top) ; /* 'top' is a valid path, but doesnt have a container id * return NULL */ if (!top_folder) @@ -898,8 +876,6 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca /*id_hash returns the name for a given container id*/ g_hash_table_insert (priv->id_hash, g_strdup(id), g_strdup(name)) ; - /*name_hash returns the container id given the name */ - g_hash_table_insert (priv->name_hash, g_strdup(name), g_strdup(id)) ; /*parent_hash returns the parent container id, given an id*/ g_hash_table_insert (priv->parent_hash, g_strdup(id), g_strdup(parent)) ; @@ -913,6 +889,7 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca EGwContainer *container = E_GW_CONTAINER (folder_list->data) ; EGwContainerType type = e_gw_container_get_container_type (container) ; const char *name = e_gw_container_get_name (container) ; + const char *id = e_gw_container_get_id (container); if (e_gw_container_is_root (container)) continue ; @@ -946,7 +923,7 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca if (par_name != NULL) { gchar *temp_parent = NULL, *temp = NULL ; - gchar *str = g_strconcat (par_name,"/",name, NULL) ; + gchar *str = g_strconcat (par_name, "/", name, NULL) ; fi->name = g_strdup (name) ; @@ -962,13 +939,15 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca } fi->full_name = g_strdup (str) ; - fi->uri = g_strconcat (url,str,NULL) ; + fi->uri = g_strconcat (url, str, NULL) ; g_free (str) ; } else { fi->name = fi->full_name = g_strdup (name); fi->uri = g_strconcat (url, "", name, NULL) ; } + /*name_hash returns the container id given the name */ + g_hash_table_insert (priv->name_hash, g_strdup(fi->full_name), g_strdup(id)) ; if (e_gw_container_get_is_shared_to_me (container)) fi->flags |= CAMEL_FOLDER_SHARED_TO_ME; @@ -995,14 +974,9 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca /*Thread stuff ends*/ g_free ((char *)url) ; if ( (top != NULL) && (folders->len == 0)) { - /*temp_str already contains the value if any*/ - if (temp_str) { - CAMEL_SERVICE_UNLOCK (store, connect_lock); - return groupwise_build_folder_info (groupwise_store, NULL, temp_str ) ; - } else { - CAMEL_SERVICE_UNLOCK (store, connect_lock); - return groupwise_build_folder_info (groupwise_store, NULL, top ) ; - } + CAMEL_SERVICE_UNLOCK (store, connect_lock); + return groupwise_build_folder_info (groupwise_store, NULL, top ) ; + } info = camel_folder_info_build (folders, top, '/', TRUE) ; g_ptr_array_free (folders, TRUE) ; @@ -1011,6 +985,7 @@ groupwise_get_folder_info (CamelStore *store, const char *top, guint32 flags, Ca camel_groupwise_store_summary_add_from_full(groupwise_store->summary, folder_real, '/') ; camel_store_summary_save ((CamelStoreSummary *)groupwise_store->summary) ; CAMEL_SERVICE_UNLOCK (store, connect_lock); + return info ; } @@ -1058,7 +1033,7 @@ groupwise_create_folder(CamelStore *store, CamelGroupwiseStore *groupwise_store = CAMEL_GROUPWISE_STORE (store); CamelGroupwiseStorePrivate *priv = groupwise_store->priv; CamelFolderInfo *root = NULL ; - char *parent_id , *child_container_id, *temp_parent = NULL; + char *parent_id , *child_container_id; int status; if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { @@ -1069,14 +1044,9 @@ groupwise_create_folder(CamelStore *store, if(parent_name == NULL) parent_name = "" ; - if (parent_name && (strlen(parent_name) > 0) ) { - temp_parent = strrchr (parent_name,'/') ; - if (temp_parent && temp_parent[0]) { - temp_parent++ ; - parent_id = g_hash_table_lookup (priv->name_hash, g_strdup(temp_parent)) ; - } else - parent_id = g_hash_table_lookup (priv->name_hash, g_strdup(parent_name)) ; - } else + if (parent_name && (strlen(parent_name) > 0) ) + parent_id = g_hash_table_lookup (priv->name_hash, parent_name) ; + else parent_id = "" ; if (!E_IS_GW_CONNECTION( priv->cnc)) { @@ -1092,7 +1062,7 @@ groupwise_create_folder(CamelStore *store, camel_store_summary_save((CamelStoreSummary *)groupwise_store->summary); g_hash_table_insert (priv->id_hash, g_strdup(child_container_id), g_strdup(folder_name)) ; - g_hash_table_insert (priv->name_hash, g_strdup(folder_name), g_strdup(child_container_id)) ; + g_hash_table_insert (priv->name_hash, g_strdup(root->full_name), g_strdup(child_container_id)) ; g_hash_table_insert (priv->parent_hash, g_strdup(child_container_id), g_strdup(parent_id)) ; camel_object_trigger_event (CAMEL_OBJECT (store), "folder_created", root); @@ -1109,7 +1079,6 @@ groupwise_delete_folder(CamelStore *store, CamelGroupwiseStore *groupwise_store = CAMEL_GROUPWISE_STORE (store); CamelGroupwiseStorePrivate *priv = groupwise_store->priv; EGwConnectionStatus status ; - const char *name = NULL; const char * container ; if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { @@ -1117,15 +1086,10 @@ groupwise_delete_folder(CamelStore *store, return; } - name = strrchr (folder_name, '/') ; - if (name) { - name++ ; - container = g_hash_table_lookup (priv->name_hash, name) ; - } else - container = g_hash_table_lookup (priv->name_hash, folder_name) ; + container = g_hash_table_lookup (priv->name_hash, folder_name) ; CAMEL_SERVICE_LOCK (store, connect_lock) ; - + status = e_gw_connection_remove_item (priv->cnc, container, container) ; if (status == E_GW_CONNECTION_STATUS_OK) { @@ -1133,13 +1097,9 @@ groupwise_delete_folder(CamelStore *store, camel_object_unref (groupwise_store->current_folder); groupwise_forget_folder(groupwise_store,folder_name,ex) ; - + g_hash_table_remove (priv->id_hash, container) ; - - if (name) - g_hash_table_remove (priv->name_hash, name) ; - else - g_hash_table_remove (priv->name_hash, folder_name) ; + g_hash_table_remove (priv->name_hash, folder_name) ; g_hash_table_remove (priv->parent_hash, container) ; } @@ -1159,20 +1119,15 @@ groupwise_rename_folder(CamelStore *store, CamelGroupwiseStorePrivate *priv = groupwise_store->priv; char *oldpath, *newpath, *storepath ; const char *container_id ; - char *temp_old = NULL, *temp_new = NULL ; + char *temp_new = NULL ; if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot rename GroupWise folders in offline mode.")); return; } CAMEL_SERVICE_LOCK (store, connect_lock) ; - temp_old = strrchr (old_name,'/') ; - if (temp_old) { - temp_old++ ; - container_id = camel_groupwise_store_container_id_lookup (groupwise_store, temp_old) ; - } else - container_id = camel_groupwise_store_container_id_lookup (groupwise_store, old_name) ; - + + container_id = camel_groupwise_store_container_id_lookup (groupwise_store, old_name) ; temp_new = strrchr (new_name, '/') ; if (temp_new) temp_new++ ; @@ -1189,12 +1144,8 @@ groupwise_rename_folder(CamelStore *store, g_hash_table_replace (priv->id_hash, g_strdup(container_id), g_strdup(temp_new)) ; - g_hash_table_insert (priv->name_hash, g_strdup(temp_new), g_strdup(container_id)) ; - - if (temp_old) - g_hash_table_remove (priv->name_hash, g_strdup(temp_old)) ; - else - g_hash_table_remove (priv->name_hash, g_strdup(old_name)) ; + g_hash_table_insert (priv->name_hash, g_strdup(new_name), g_strdup(container_id)) ; + g_hash_table_remove (priv->name_hash, old_name) ; /*FIXME:Update all the id in the parent_hash*/ storepath = g_strdup_printf ("%s/folders", priv->storage_path) ; @@ -1304,33 +1255,6 @@ storage_path_lookup (CamelGroupwiseStorePrivate *priv) return priv->storage_path ; } -const char * -gw_get_path (CamelGroupwiseStore *gw_store, const char *folder_name) -{ - CamelGroupwiseStorePrivate *priv = gw_store->priv ; - - const char *str = g_strdup (folder_name) ; - gchar *container_id = NULL, *temp_parent = NULL, *temp = NULL ; - - - container_id = g_hash_table_lookup (priv->name_hash, folder_name) ; - - if (container_id) - temp_parent = g_hash_table_lookup (priv->parent_hash, container_id) ; - else - temp_parent = NULL ; - while (temp_parent) { - temp = g_hash_table_lookup (priv->id_hash, temp_parent ) ; - if (temp == NULL) { - break ; - } - str = g_strconcat ( temp, "/", str, NULL) ; - - temp_parent = g_hash_table_lookup (priv->parent_hash, temp_parent) ; - } - - return str ; -} static void free_hash (gpointer key, gpointer value, gpointer data) diff --git a/camel/providers/groupwise/camel-groupwise-store.h b/camel/providers/groupwise/camel-groupwise-store.h index 64b9aecae..4e80233d4 100644 --- a/camel/providers/groupwise/camel-groupwise-store.h +++ b/camel/providers/groupwise/camel-groupwise-store.h @@ -72,7 +72,6 @@ char * groupwise_get_name(CamelService *service, gboolean brief) ; const char *camel_groupwise_store_container_id_lookup (CamelGroupwiseStore *gw_store, const char *folder_name) ; const char *camel_groupwise_store_folder_lookup (CamelGroupwiseStore *gw_store, const char *container_id) ; EGwConnection *cnc_lookup (CamelGroupwiseStorePrivate *priv) ; -const char *gw_get_path (CamelGroupwiseStore *gw_store, const char *folder_name) ; char *storage_path_lookup (CamelGroupwiseStorePrivate *priv) ; CamelFolderInfo * create_junk_folder (CamelStore *store); |
