diff options
author | Not Zed <NotZed@Ximian.com> | 2001-06-12 22:29:28 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-06-12 22:29:28 +0800 |
commit | f14e85f771600855dedae6d29301d656ea86185b (patch) | |
tree | 2a2dd4e515e0398c3f737c800c966f55acae6a38 /camel/providers/local/camel-local-provider.c | |
parent | 8131304fd121b4c3b4df98a17b3a376c1bffaada (diff) | |
download | gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.gz gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.bz2 gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.lz gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.xz gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.zst gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.zip |
A new provider, for spool mailboxes. Mostly a cut and paste of the mbox
2001-06-12 Not Zed <NotZed@Ximian.com>
* providers/local/camel-spool-*.[ch]: A new provider, for spool
mailboxes. Mostly a cut and paste of the mbox code, but not a
subclass CamelLocal*. Not tested a lot, doesn't lock yet, use
with extreme caution.
* tests/lib/folders.c (test_folder_message_ops): Added spool arg,
spool folders can't be deleted, renamed, etc.
(test_folder_basic): Same.
* tests/folder/test2.c (main): Added checks for spool type.
* tests/[message|stream|folder|misc|smime]/Makefile.am (LDADD):
Added db3 flags, so make check compiles, doesn't run though.
2001-05-24 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-provider.c
(camel_provider_module_init): Added spool provider.
svn path=/trunk/; revision=10198
Diffstat (limited to 'camel/providers/local/camel-local-provider.c')
-rw-r--r-- | camel/providers/local/camel-local-provider.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/camel/providers/local/camel-local-provider.c b/camel/providers/local/camel-local-provider.c index a63ff84eb0..078945a764 100644 --- a/camel/providers/local/camel-local-provider.c +++ b/camel/providers/local/camel-local-provider.c @@ -33,6 +33,7 @@ #include "camel-mh-store.h" #include "camel-mbox-store.h" #include "camel-maildir-store.h" +#include "camel-spool-store.h" static CamelProvider mh_provider = { "mh", @@ -64,6 +65,16 @@ static CamelProvider maildir_provider = { /* ... */ }; +static CamelProvider spool_provider = { + "spool", + N_("Unix mbox spool-format mail files"), + N_("For storing local mail in standard Unix spool directories"), + "mail", + CAMEL_PROVIDER_IS_SOURCE | CAMEL_PROVIDER_IS_STORAGE, + CAMEL_URL_NEED_PATH | CAMEL_URL_PATH_IS_ABSOLUTE, + /* ... */ +}; + void camel_provider_module_init(CamelSession * session) { mh_provider.object_types[CAMEL_PROVIDER_STORE] = camel_mh_store_get_type(); @@ -77,4 +88,8 @@ void camel_provider_module_init(CamelSession * session) maildir_provider.object_types[CAMEL_PROVIDER_STORE] = camel_maildir_store_get_type(); maildir_provider.service_cache = g_hash_table_new(camel_url_hash, camel_url_equal); camel_session_register_provider(session, &maildir_provider); + + spool_provider.object_types[CAMEL_PROVIDER_STORE] = camel_spool_store_get_type(); + spool_provider.service_cache = g_hash_table_new(camel_url_hash, camel_url_equal); + camel_session_register_provider(session, &spool_provider); } |