diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-02 03:45:39 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-02 03:45:39 +0800 |
commit | 8d3a2ebd284bbcde524a40054970c03ef7e07426 (patch) | |
tree | e4fd6a50b33358afe5cd7d77de97a4398b117e3d /mail/mail-local.c | |
parent | a9decdd87985fd66f202aa118d5e81d774734420 (diff) | |
download | gsoc2013-evolution-8d3a2ebd284bbcde524a40054970c03ef7e07426.tar.gz gsoc2013-evolution-8d3a2ebd284bbcde524a40054970c03ef7e07426.tar.zst gsoc2013-evolution-8d3a2ebd284bbcde524a40054970c03ef7e07426.zip |
create storages for providers that are STORAGE and aren't EXTERNAL, rather
* component-factory.c (mail_load_storage_by_uri): create storages
for providers that are STORAGE and aren't EXTERNAL, rather than
"(STORAGE and REMOTE) or spool, maildir, or vfolder".
(mail_remove_storage_by_uri): Use the same rule here (which makes
it possible now to remove maildir and spool stores now, which
weren't properly special-cased before). Remove some CamelException
misuse.
* mail-config.c (new_source_created): Fix up the broken INBOX-
shortcut-generating assumption a little by only assuming that if
you call camel_store_get_inbox(), that its full_name is the same
as its path. (This happens to always be true for inboxes now, and
will be always true by definition at some point in the future.)
Now maildir stores get working Inbox shortcuts.
* mail-send-recv.c (get_receive_type): If PROVIDER_IS_STORAGE
then use SEND_UPDATE, if not, use SEND_RECEIVE.
* mail-local.c (local_provider): The local provider is EXTERNAL.
(The shell creates it.)
(mail_local_reconfigure_folder): Allow reconfiguring between
IS_LOCAL providers.
* mail-accounts.c (news_delete): Don't need to check the provider
flags here... we know nntp is a STORAGE.
svn path=/trunk/; revision=13277
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 32a2ad6c60..759c464737 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -888,7 +888,8 @@ static void mail_local_store_remove_folder(MailLocalStore *mls, const char *path static CamelProvider local_provider = { "file", "Local mail", NULL, "mail", - CAMEL_PROVIDER_IS_STORAGE, CAMEL_URL_NEED_PATH, + CAMEL_PROVIDER_IS_STORAGE | CAMEL_PROVIDER_IS_EXTERNAL, + CAMEL_URL_NEED_PATH, /* ... */ }; @@ -1227,11 +1228,8 @@ mail_local_reconfigure_folder (FolderBrowser *fb) while (p) { CamelProvider *cp = p->data; - /* we only want local storages */ - /* hack it so we also dont see file or spool stores, which aren't really meant for this */ - if ((cp->flags & (CAMEL_PROVIDER_IS_REMOTE|CAMEL_PROVIDER_IS_STORAGE)) == CAMEL_PROVIDER_IS_STORAGE - && strcmp(cp->protocol, "file") - && strcmp(cp->protocol, "spool")) { + /* we only want local providers */ + if (cp->flags & CAMEL_PROVIDER_IS_LOCAL) { GtkWidget *item; char *label; |