aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.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 /mail/component-factory.c
parent8f881bd9d5bf26d3534174fa238030e8026ff749 (diff)
downloadgsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.gz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.bz2
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.lz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.xz
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 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 4681d93365..b1bdc09d18 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -270,11 +270,15 @@ create_imap_storage (EvolutionShellComponent *shell_component)
corba_shell = evolution_shell_component_get_owner (shell_component);
if (corba_shell == CORBA_OBJECT_NIL) {
g_warning ("We have no shell!?");
+ g_free (source);
return;
}
- if (!(server = strchr (source, '@')))
+ if (!(server = strchr (source, '@'))) {
+ g_free (source);
return;
+ }
+
server++;
for (p = server; *p && *p != '/'; p++);
@@ -285,6 +289,7 @@ create_imap_storage (EvolutionShellComponent *shell_component)
if (evolution_storage_register_on_shell (storage, corba_shell) != EVOLUTION_STORAGE_OK) {
g_warning ("Cannot register storage");
+ g_free (source);
return;
}