diff options
author | bertrand <bertrand@helixcode.com> | 2000-01-22 06:46:46 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-01-22 06:46:46 +0800 |
commit | 8fbfb0ae4829f216501380e2f63ed6b4cc1a3306 (patch) | |
tree | 0ee71ccfdd7094c5914ffbdcafc01aa9bde13a47 /camel/providers/mbox/camel-mbox-provider.c | |
parent | 9764088cda82b0f7d79d1d1d7170f4311c8e9465 (diff) | |
download | gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.gz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.bz2 gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.lz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.xz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.zst gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.zip |
added camel-mbox-provider.c to the mbox provider sources.
2000-01-21 bertrand <bertrand@helixcode.com>
* camel/providers/mbox/Makefile.am (libcamelmbox_la_SOURCES):
added camel-mbox-provider.c to the mbox provider
sources.
* camel/providers/mbox/camel-mbox-provider.c:
provider registration code.
* camel/providers/mbox/camel-mbox-folder.c (_get_message_count): implemented
(_append_message): implemented
* camel/providers/mbox/camel-mbox-parser.c (initialize_buffer):
use \0 to mark the end of the buffer.
(read_next_buffer_chunk): ditto.
(read_header): test the presence of a \0 instead of
reading the eof field
(read_message_begining): idem.
(camel_mbox_parse_file): idem.
Remove the eof field from the parser
structure.
(read_next_buffer_chunk): removed some nasty bugs
again.
svn path=/trunk/; revision=1604
Diffstat (limited to 'camel/providers/mbox/camel-mbox-provider.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-provider.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/camel/providers/mbox/camel-mbox-provider.c b/camel/providers/mbox/camel-mbox-provider.c new file mode 100644 index 0000000000..c10e42f95e --- /dev/null +++ b/camel/providers/mbox/camel-mbox-provider.c @@ -0,0 +1,48 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* camel-mbox-provider.c: mbox provider registration code */ + +/* + * Authors : + * Bertrand Guiheneuf <bertrand@helixcode.com> + * + * Copyright (C) 2000 HelixCode (www.helixcode.com). + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + +#include "config.h" +#include "camel-mbox-store.h" +#include "camel-provider.h" +#include "camel-log.h" + + +static CamelProvider _mbox_provider = { + (GtkType) 0, + PROVIDER_STORE, + "mbox", + "Camel default mbox provider", + "This the first full fledged local mail provider", + (GModule *) NULL +}; + + + +CamelProvider * +camel_provider_module_init () +{ + _mbox_provider.object_type = camel_mbox_store_get_type(); + return &_mbox_provider; +} |