aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-06-21 05:11:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-21 05:11:07 +0800
commit9272361bba93ad292ebd148e3d3ba3a9ea9bd349 (patch)
treef3aacb178e26c2ad70a02e17ddc856523fcaf638 /camel/camel-url.c
parent8f881bd9d5bf26d3534174fa238030e8026ff749 (diff)
downloadgsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.gz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.zst
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.zip
Only fetch the summary if the folder summary doesn't already exist. When
2000-06-20 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_summary): Only fetch the summary if the folder summary doesn't already exist. When the summary *does* exist, start fetching from 1, not 0. (imap_free_summary): Don't do anything here. (imap_finalize): Free the summary here instead of in imap_free_summary(). * camel-url.c (check_equal): No need to check s1 if s2 is NULL (camel_url_equal): Don't check the passwd component of the url. and in mail/component-factory.c (create_imap_storage): removal of debug statements mail/folder-browser.c (folder_browser_load_folder): improved imap service parser svn path=/trunk/; revision=3649
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c
index c0707dcbb1..cb3f5a1408 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -315,7 +315,7 @@ guint camel_url_hash (const void *v)
}
static int
-check_equal(char *s1, char *s2)
+check_equal (char *s1, char *s2)
{
if (s1 == NULL) {
if (s2 == NULL)
@@ -323,23 +323,20 @@ check_equal(char *s1, char *s2)
else
return FALSE;
}
- if (s2 == NULL) {
- if (s1 == NULL)
- return TRUE;
- else
- return FALSE;
- }
- return strcmp(s1, s2) == 0;
+
+ if (s2 == NULL)
+ return FALSE;
+
+ return strcmp (s1, s2) == 0;
}
int camel_url_equal(const void *v, const void *v2)
{
const CamelURL *u1 = v, *u2 = v2;
-
+
return check_equal(u1->protocol, u2->protocol)
&& check_equal(u1->user, u2->user)
&& check_equal(u1->authmech, u2->authmech)
- && check_equal(u1->passwd, u2->passwd)
&& check_equal(u1->host, u2->host)
&& check_equal(u1->path, u2->path)
&& u1->port == u2->port;