Construct the source_url the right way. The previous way was generating
2002-03-27 Jeffrey Stedfast <fejj@ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_folder): Construct the source_url the right way. The previous way was generating urls like pop://fejj@ximian.com;keep_on_server/inbox which is wrong. svn path=/trunk/; revision=16260
This commit is contained in:

committed by
Jeffrey Stedfast

parent
16b12f5794
commit
f829289c85
@ -1,3 +1,10 @@
|
||||
2002-03-27 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* camel-filter-driver.c (camel_filter_driver_filter_folder):
|
||||
Construct the source_url the right way. The previous way was
|
||||
generating urls like pop://fejj@ximian.com;keep_on_server/inbox
|
||||
which is wrong.
|
||||
|
||||
2002-03-26 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* camel-text-index.c (text_index_normalise): Changed to use just
|
||||
|
@ -965,20 +965,27 @@ camel_filter_driver_filter_folder (CamelFilterDriver *driver, CamelFolder *folde
|
||||
const char *folder_name;
|
||||
int status = 0;
|
||||
int need_sep = 0;
|
||||
CamelURL *url;
|
||||
int i;
|
||||
|
||||
service_url = camel_service_get_url (CAMEL_SERVICE (camel_folder_get_parent_store (folder)));
|
||||
url = camel_url_new (service_url, NULL);
|
||||
g_free (service_url);
|
||||
|
||||
folder_name = camel_folder_get_full_name (folder);
|
||||
|
||||
/* Add a separator unless the first char of folder_name or the last char of service_url is '/' */
|
||||
need_sep = (folder_name && *folder_name != '/');
|
||||
if (service_url && *service_url && !need_sep) {
|
||||
need_sep = (service_url[strlen (service_url)-1] != '/');
|
||||
if (folder_name && *folder_name != '/') {
|
||||
char *path;
|
||||
|
||||
path = g_strdup_printf ("/%s", folder_name);
|
||||
camel_url_set_path (url, path);
|
||||
g_free (path);
|
||||
} else {
|
||||
camel_url_set_path (url, folder_name);
|
||||
}
|
||||
|
||||
source_url = g_strdup_printf ("%s%s%s", service_url, need_sep ? "/" : "",
|
||||
folder_name);
|
||||
g_free (service_url);
|
||||
source_url = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
|
||||
camel_url_free (url);
|
||||
|
||||
if (uids == NULL) {
|
||||
uids = camel_folder_get_uids (folder);
|
||||
|
Reference in New Issue
Block a user