diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-06-21 05:11:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-21 05:11:07 +0800 |
commit | 9272361bba93ad292ebd148e3d3ba3a9ea9bd349 (patch) | |
tree | f3aacb178e26c2ad70a02e17ddc856523fcaf638 /mail | |
parent | 8f881bd9d5bf26d3534174fa238030e8026ff749 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | mail/component-factory.c | 7 | ||||
-rw-r--r-- | mail/folder-browser.c | 3 |
2 files changed, 8 insertions, 2 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; } diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 613a3b00fa..b8b9287d08 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -105,8 +105,9 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) char *service, *ptr; fprintf (stderr, "\n****** name = %s ******\n\n", name); - service = g_strdup (name); + service = g_strdup_printf ("%s/", name); for (ptr = service + 7; *ptr && *ptr != '/'; ptr++); + ptr++; *ptr = '\0'; fprintf (stderr, "\n****** service = %s ******\n\n", service); store = camel_session_get_store (session, service, ex); |