diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-28 16:08:49 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-28 16:08:49 +0800 |
commit | 01c6e724a790c1743bfec5d14b107adfa96e91b1 (patch) | |
tree | 51dff57e2a6b144191d3432b583c4a656dd4f0ed /mail/mail-component.c | |
parent | e9cddebb2ed8e6d0289f883d6a05b2951198bcb0 (diff) | |
download | gsoc2013-evolution-01c6e724a790c1743bfec5d14b107adfa96e91b1.tar.gz gsoc2013-evolution-01c6e724a790c1743bfec5d14b107adfa96e91b1.tar.zst gsoc2013-evolution-01c6e724a790c1743bfec5d14b107adfa96e91b1.zip |
** See bug #53179
2004-01-28 Not Zed <NotZed@Ximian.com>
** See bug #53179
* mail-tools.c (mail_tool_get_local_movemail_path): Fix the
movemail path.
* mail-component.c (load_accounts): hack alert!
* mail-send-recv.c (get_receive_type): hack alert! hardcode mbox:
to be a movemail source.
svn path=/trunk/; revision=24486
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index a9c850ab25..2aaccfe8c8 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -192,8 +192,12 @@ load_accounts (MailComponent *component, EAccountList *accounts) account = (EAccount *) e_iterator_get (iter); service = account->source; name = account->name; - - if (account->enabled && service->url != NULL) + + /* HACK: mbox url's are handled by the local store setup above, + any that come through as account sources are really movemail sources! */ + if (account->enabled + && service->url != NULL + && strncmp(service->url, "mbox:", 5) != 0) mail_component_load_store_by_uri (component, service->url, name); e_iterator_next (iter); @@ -675,8 +679,8 @@ mail_component_load_store_by_uri (MailComponent *component, const char *uri, con return NULL; } - if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) || - (prov->flags & CAMEL_PROVIDER_IS_EXTERNAL)) + if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) + || (prov->flags & CAMEL_PROVIDER_IS_EXTERNAL)) return NULL; store = (CamelStore *) camel_session_get_service (session, uri, CAMEL_PROVIDER_STORE, &ex); |