platform/upstream/evolution-data-server.git
24 years agoadd CamelExceptions to several functions. Use camel_session_new to
Dan Winship [Mon, 21 Feb 2000 18:38:58 +0000 (18:38 +0000)]
add CamelExceptions to several functions. Use camel_session_new to

        * camel-session.h:
        * camel-session.c: add CamelExceptions to several functions. Use
        camel_session_new to initialize the session and URL fields of
        created CamelStores as appropriate.

        * camel-store.h:
        * camel-store.c
        * camel-service.h:
        * camel-service.c: Move the session and url (and associated
        functions) from CamelStore to CamelService. Add url_flags to
        CamelService so subclasses can specify which URL components
        are mandatory for them. Add camel_session_new for
        camel_session_get_store* to use.

        * providers/mbox/camel-mbox-folder.c:
        * providers/mbox/camel-mbox-store.c:
        * providers/mbox/camel-mbox-store.h: Update for above changes.

24 years agoOnce camel is being used for real, exceptions won't be renumberable. So
Dan Winship [Mon, 21 Feb 2000 15:24:27 +0000 (15:24 +0000)]
Once camel is being used for real, exceptions won't be renumberable. So

       * camel-exception-list.def: Once camel is being used for real,
       exceptions won't be renumberable. So renumber them now to make
       more room to add exceptions to the various categories later, and
       add a big warning message.

24 years agoadd libibex back to libcamelmbox_la_LIBADD
Dan Winship [Sun, 20 Feb 2000 23:30:24 +0000 (23:30 +0000)]
add libibex back to libcamelmbox_la_LIBADD

24 years agoclean up warnings
Dan Winship [Sun, 20 Feb 2000 20:28:12 +0000 (20:28 +0000)]
clean up warnings

24 years agoMichael created camel/ChangeLog on 2/12 but didn't commit it until 2/18,
Dan Winship [Sun, 20 Feb 2000 19:59:35 +0000 (19:59 +0000)]
Michael created camel/ChangeLog on 2/12 but didn't commit it until 2/18,
meaning his ChangeLog entries ended up there and everyone else's ended
up in the top-level ChangeLog. Move the post-2/12 ChangeLog entries from
ChangeLog to camel/ChangeLog so that you don't need to look in two
different places for that week's worth of commits.

24 years agoAdded exception to call, and fixed caller.
NotZed [Sat, 19 Feb 2000 04:12:40 +0000 (04:12 +0000)]
Added exception to call, and fixed caller.

2000-02-18  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-search.h
        (camel_mbox_folder_search_by_expression): Added exception to call,
        and fixed caller.

        * providers/mbox/camel-mbox-search.c
        (camel_mbox_folder_search_by_expression): Major changes, to use
        the sexp evaluator from filter/filter-sexp.c to implement the
        searching.
        (func_body_contains): Changed to support multiple strings in 1
        command (results or'd together)

        * url-util.c (g_url_new): Fixed a typo (colon == 0 isn't right),
        and made it so full url's are absolute pathed (Dan, this is how it
        has to work!).  Also, always include a path part, even if it is an
        empty string.

2000-02-16  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Added
        libfilter to link line (temporarily?).  Required for
        filter-sexp.

24 years agoStatically link with ibex
Miguel de Icaza [Sat, 19 Feb 2000 02:05:23 +0000 (02:05 +0000)]
Statically link with ibex

24 years agoNew header with the typedefs for all camel classes. Now the class headers
Dan Winship [Sat, 19 Feb 2000 01:40:57 +0000 (01:40 +0000)]
New header with the typedefs for all camel classes. Now the class headers

* camel/camel-types.h: New header with the typedefs for all camel
classes. Now the class headers can just include this and the
header for the parent type. This makes it possible for
CamelService to include a CamelSession without creating an
#include loop.

* camel/*:
* composer/e-msg-composer-attachment-bar.h:
* mail/folder-browser.c:
* mail/message-list.c: frob #includes to match the new reality

24 years agofix a stupid typo (thank you gcc -Wall)
Dan Winship [Sat, 19 Feb 2000 00:50:33 +0000 (00:50 +0000)]
fix a stupid typo (thank you gcc -Wall)

24 years ago#include <ctype.h> so the hash function doesn't get stuck using the
Dan Winship [Sat, 19 Feb 2000 00:40:31 +0000 (00:40 +0000)]
#include <ctype.h> so the hash function doesn't get stuck using the
function version of toupper!

24 years agomake the / between the host and the path part of the path: it's wrong
Dan Winship [Fri, 18 Feb 2000 22:11:02 +0000 (22:11 +0000)]
make the / between the host and the path part of the path: it's wrong
according to rfc1738, but convenient

24 years agoModification in the automake/libtool building process so that
Bertrand Guiheneuf [Thu, 17 Feb 2000 23:31:15 +0000 (23:31 +0000)]
Modification in the automake/libtool building process so that
camel and tests at least compile.
Current libtool doen't seem to support lib dependancy unless
the lib is installed.
Removed the dependancy on libex in mbox and added it to the
other Makefile.am that link with libcamel.

24 years agolibraries come from $(top_builddir)/..., not $(top_srcdir)/...
Dan Winship [Thu, 17 Feb 2000 22:23:38 +0000 (22:23 +0000)]
libraries come from $(top_builddir)/..., not $(top_srcdir)/...

24 years agouse camel_stream_reset instead of seek. The formatter should be able to
bertrand [Thu, 17 Feb 2000 22:16:33 +0000 (22:16 +0000)]
use camel_stream_reset instead of seek. The formatter should be able to

2000-02-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-formatter.c (handle_text_plain):
(handle_text_html): use camel_stream_reset instead
of seek. The formatter should be able to work
with all streams, not only seekable streams.
In the case where some provider implementation
would not be able to provide a reset method
to their stream, implementors would have
to find a workaround.

* camel/camel-session.c (camel_session_new): use
(void) instean of () in function decl.

* camel/camel-folder.c: ifdef async operation
related code.

* camel/camel-seekable-stream.c (_seek): added a warning.
(_reset): default implementation of reset for seekable
stream.

* camel/camel-mime-message.h: set_received_date declaration fix.
cosmetic changes.

* camel/providers/mbox/camel-mbox-provider.c (camel_provider_module_init):
use (void) instead of ().

* camel/camel-stream.c (camel_stream_reset):
new method for CamelStream.

24 years agoMake camel-service use a Gurl internally. Remove the login/password
Dan Winship [Thu, 17 Feb 2000 22:16:00 +0000 (22:16 +0000)]
Make camel-service use a Gurl internally. Remove the login/password
interfaces and instead provide camel_service_connect_with_url.

Also, added CamelExceptions and return values, so the functions can
indicate failure to the caller if they can't connect.

24 years agoNew function g_url_to_string to convert a Gurl back into a char *
Dan Winship [Thu, 17 Feb 2000 22:13:16 +0000 (22:13 +0000)]
New function g_url_to_string to convert a Gurl back into a char *

24 years agorevamped so that it uses the output stream of the data wrapper
bertrand [Thu, 17 Feb 2000 15:19:04 +0000 (15:19 +0000)]
revamped so that it uses the output stream of the data wrapper

2000-02-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-formatter.c (handle_text_plain):
revamped so that it uses the output stream
of the data wrapper
(handle_text_html): ditto.

* camel/camel-simple-data-wrapper.h:
* camel/camel-simple-data-wrapper.c (camel_simple_data_wrapper_new):
use (void) instead of ().
(_get_output_stream): simple implementation.

A lot of small fixes so that the new parser scheme
works properly. Simple implementation of the stream
though.

Changed vette-formatter files so that they work with the
new scheme.

The new parser is now in a usable state. Still needs some work but the
infrastructure is here. /me is happy.

24 years agodon't seek the begining of the substream. (_eos): fix eos condition
bertrand [Wed, 16 Feb 2000 18:04:40 +0000 (18:04 +0000)]
don't seek the begining of the substream. (_eos): fix eos condition

2000-02-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-seekable-substream.c (_set_bounds): don't
seek the begining of the substream.
(_eos): fix eos condition testing.
(_finalize): unref parent stream
(_init_with_seekable_stream_and_bounds): ref parent stream

* camel/gstring-util.c (g_string_equal_for_hash):
(g_string_equal_for_glist): return type is int.

* camel/camel.h:
* camel/camel.c (camel_init): use (void)
instead of ().

A lot of other small changes to make the set_input_stream
scheme work. It actually works.

24 years agoSimplify the code a lot and add support for RFC2384 POP URLs.
Dan Winship [Wed, 16 Feb 2000 17:05:57 +0000 (17:05 +0000)]
Simplify the code a lot and add support for RFC2384 POP URLs.

24 years agoMake md5_final take the MD5Context first, like md5_init and md5_update.
Dan Winship [Wed, 16 Feb 2000 16:03:14 +0000 (16:03 +0000)]
Make md5_final take the MD5Context first, like md5_init and md5_update.

24 years agofix minor typos
Dan Winship [Wed, 16 Feb 2000 15:44:55 +0000 (15:44 +0000)]
fix minor typos

24 years agoImprove spelling and English a bit
Dan Winship [Wed, 16 Feb 2000 15:42:48 +0000 (15:42 +0000)]
Improve spelling and English a bit

24 years agothis routine replaces the _read_part routine and does not store the part
bertrand [Wed, 16 Feb 2000 10:44:35 +0000 (10:44 +0000)]
this routine replaces the _read_part routine and does not store the part

2000-02-15  bertrand  <bertrand@helixcode.com>

* camel/camel-multipart.c (_localize_part):
this routine replaces the _read_part routine
and does not store the part in a buffer.
(_set_input_stream): use the set_input_stream
instead of the construct_from_stream.
each bodypart is given an input stream.

* camel/camel-mime-part-utils.c:
include the data-wrapper-repository header.
(camel_mime_part_construct_content_from_stream):
use the set_input_stream instead of the
construct_from_stream method.

* camel/camel-seekable-substream.c (_set_bounds):
cur position is set to 0 not to inf_bound.

Sync

24 years agoAdd the unicode libraries as well.
Miguel de Icaza [Tue, 15 Feb 2000 17:28:33 +0000 (17:28 +0000)]
Add the unicode libraries as well.

2000-02-14  Miguel de Icaza  <miguel@gnu.org>

* camel/providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Add
the unicode libraries as well.

* camel/camel-provider.c (camel_provider_register_as_module): Add
error reporting here.  Desire to use Solaris increases.  Hair loss
in the last two hours: 5,400.

* camel/providers/mbox/camel-mbox-provider.c
(camel_mbox_get_provider): Renamed function.

* camel/camel.h: All include files use camel/ now here.

* camel/providers/mbox/Makefile.am: Drop all the dynamism from
Camel, and make this a standard library.

* configure.in: set the UNICODE_LIBS variable here.
2000-02-14  Miguel de Icaza  <miguel@gnu.org>

* folder-browser.c (folder_browser_load_folder): New routine,
loads a camel folder.
(folder_browser_set_uri): redo.

* session.c: new file.  Implements SessionStores to keep track of
a Session/Store tuple.

24 years agoinclude gmime-base64.h various compilation and runtime fixes.
bertrand [Tue, 15 Feb 2000 14:17:00 +0000 (14:17 +0000)]
include gmime-base64.h various compilation and runtime fixes.

2000-02-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-part.c: include gmime-base64.h
various compilation and runtime fixes.
(_set_input_stream): store the input substream
for the content object.

* camel/camel-data-wrapper.h: declare the
set/get function on input/output stream.

* camel/camel-mime-part.c (_get_content_object):
don't use a temporary mem stream.

* camel/camel-seekable-substream.c (_seek):
(_eos):
(_read): the substream can be unlimited in length

* camel/camel-data-wrapper.c (camel_data_wrapper_class_init):
set the get/set_input/output_stream methods.

* camel/camel-multipart.c (_construct_from_stream):
camel_stream_seek -> camel_seekable_stream_seek

work on the new parser scheme.
temporary sync to laptop.

24 years agouse the eos stream method. (gmime_read_line_from_stream): ditto.
bertrand [Mon, 14 Feb 2000 22:45:13 +0000 (22:45 +0000)]
use the eos stream method. (gmime_read_line_from_stream): ditto.

2000-02-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/gmime-utils.c (get_header_array_from_stream): use the
eos stream method.
(gmime_read_line_from_stream): ditto.

* camel/camel-stream-fs.h (struct ): add the eof field
cosmetics changes.

* camel/camel-stream-fs.c (camel_stream_fs_init): set eof.
(_read): set eof on end of file.
(_eos): implemented.

* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.

24 years agouse the eos stream method. (gmime_read_line_from_stream): ditto.
bertrand [Mon, 14 Feb 2000 22:27:54 +0000 (22:27 +0000)]
use the eos stream method. (gmime_read_line_from_stream): ditto.

2000-02-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/gmime-utils.c (get_header_array_from_stream): use the
eos stream method.
(gmime_read_line_from_stream): ditto.

* camel/camel-stream-fs.h (struct ): add the eof field
cosmetics changes.

* camel/camel-stream-fs.c (camel_stream_fs_init): set eof.
(_read): set eof on end of file.
(_eos): implemented.

* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.

24 years agomake a blocking version of the header parser. When the fs stream uses
bertrand [Mon, 14 Feb 2000 22:03:58 +0000 (22:03 +0000)]
make a blocking version of the header parser. When the fs stream uses

2000-02-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.

2000-02-11  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-stream-fs.c:
everywhere, when using the cur_pos field, do it
on the CamelSeekableStream object.
(_seek): small fix.

* camel/camel-seekable-stream.c (camel_seekable_stream_seek):
s/camel_stream_seek/camel_seekable_stream_seek/g

* camel/camel-seekable-stream.h:
(struct ): added a field to store the
current position.

* camel/camel-seekable-stream.c (camel_seekable_stream_get_current_position):
New function. Allows to get the current position
of a seekable stream.

In fact much more changes, but I am lazy.
This is the begining of some major changes
in camel.

24 years agoby default, a message/rfc822 object is handled by the CamelMimeMessage
bertrand [Mon, 14 Feb 2000 18:04:46 +0000 (18:04 +0000)]
by default, a message/rfc822 object is handled by the CamelMimeMessage

2000-02-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/data-wrapper-repository.c (data_wrapper_repository_init):
by default, a message/rfc822 object is handled by the
CamelMimeMessage class. Should fix Matt's fantastic
Message viewer test.

24 years agoremove camel-stream-buffer from compilation process. It is not here
Bertrand Guiheneuf [Mon, 14 Feb 2000 10:46:26 +0000 (10:46 +0000)]
remove camel-stream-buffer from compilation process. It is not here

24 years agoNew file, implements the search api for mbox folders.
NotZed [Mon, 14 Feb 2000 05:39:02 +0000 (05:39 +0000)]
New file, implements the search api for mbox folders.

2000-02-13  NotZed  <notzed@zedzone.helixcode.com>

        * providers/mbox/camel-mbox-search.c: New file, implements the
        search api for mbox folders.

        * providers/mbox/Makefile.am: Link with ibex.

        * camel-folder.c (camel_folder_has_search_capability): Api
        additions.
        (camel_folder_search_by_expression): Ditto.

2000-02-12  NotZed  <notzed@zedzone.helixcode.com>

        * providers/mbox/camel-mbox-folder.c (_set_name): Setup index
        filename as well.
        (_init_with_store): Init index filename.  Hmm, none of these
        names ever seem to get free'd (FIXME?)

        * providers/mbox/camel-mbox-folder.h: Add index file name.

2000-02-12  NotZed  <notzed@helixcode.com>

        * camel-folder.h: Add folder search functions.

        ** Created ChangeLog just for camel **
         - refer to ../ChangeLog for changes prior to this date.

24 years ago+ * tests/ui-tests/test-multipart-mixed.msg: New rfc822 file, which
Matthew Loper [Mon, 14 Feb 2000 04:23:14 +0000 (04:23 +0000)]
+ * tests/ui-tests/test-multipart-mixed.msg: New rfc822 file, which
+ crashes message-browser.
+
+ * tests/ui-tests/message-browser.c (get_gtk_html_window): Takes a
+ CamelMimeMessage as a param, rather than a filename.
+ (main): Puts our windows in an hpane rather than a vbox. Also
+ opens a file dlg box if a filename wasn't given as a first param.

24 years ago+ * camel/camel-stream-fs.c (_init_with_name): Set stream_fs->fd to
Matthew Loper [Mon, 14 Feb 2000 00:53:16 +0000 (00:53 +0000)]
+ * camel/camel-stream-fs.c (_init_with_name): Set stream_fs->fd to
+ -1 if we fail to load the file.
+ (camel_stream_fs_new_with_name): If stream_fs->fd is -1, return
+ NULL. These changes make it so that a CamelStreamFs won't be
+ created if you give it a bogus filename; they may be replaced once
+ exception handling is in place.

24 years ago+ * tests/ui-tests/message-browser.c (handle_tree_item): Expand tree
Matthew Loper [Mon, 14 Feb 2000 00:27:00 +0000 (00:27 +0000)]
+ * tests/ui-tests/message-browser.c (handle_tree_item): Expand tree
+ items.
+ (mime_message_to_html): New function; translates a
+ CamelMimeMessage into two strings (one for the header, and one for
+ the body).
+ (get_gtk_html_window): New function; fills out a window with
+ html. The html is taken from a processed rfc822 file, via a
+ CamelFormatter.
+
+ * camel/camel-formatter.c: Added assertions.
+ (handle_text_html): Don't call text_to_html on something that's
+ already html.
+ (multipart_foreach): function deleted.
+
+ * mail/html-stream.c (html_stream_new): Second param of
+       gtk_html_begin should be "", not NULL.
+ (html_stream_new): gtk_html_parse() is deprecated, so the call was
+ removed.

24 years agoparent class is seekable stream, not stream
bertrand [Fri, 11 Feb 2000 04:56:13 +0000 (04:56 +0000)]
parent class is seekable stream, not stream

2000-02-11  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-stream-fs.c (camel_stream_fs_class_init):
parent class is seekable stream, not stream

24 years agodefault the text/* mime types to CamelSimpleDataWrapper so that Michael
bertrand [Fri, 11 Feb 2000 03:00:19 +0000 (03:00 +0000)]
default the text/* mime types to CamelSimpleDataWrapper so that Michael

2000-02-10  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/data-wrapper-repository.c (data_wrapper_repository_init):
default the text/* mime types to CamelSimpleDataWrapper so
that Michael can use get_stream.

24 years agoBad Ettore, no biscuit!
NotZed [Fri, 11 Feb 2000 00:51:48 +0000 (00:51 +0000)]
Bad Ettore, no biscuit!

2000-02-10  NotZed  <notzed@zedzone.helixcode.com>

        * camel/camel-simple-data-wrapper-stream.h: The superclass is
        actually a seekable stream, not just a stream.

24 years agodon't build thread related tests if evolution has been compiled with no
bertrand [Fri, 11 Feb 2000 00:43:22 +0000 (00:43 +0000)]
don't build thread related tests if evolution has been compiled with no

2000-02-10  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/Makefile.am (THREAD_RELATED_TESTS): don't
build thread related tests if evolution has been
compiled with no thread support.

* configure.in (have_pthread): allow user to enable/disable
thread support at configure time
(EXTRA_GNOME_CFLAGS):
(EXTRA_GNOME_LIBS): thread support is directly
included in this variable if enabled. No more
EXTRA_GNOME_CFLAGS_THREADS
Other special support should be added in
EXTRA_GNOME_LIBS and EXTRA_GNOME_CFLAGS
instead of redefining a new variable
each time we want to add a new lib.
(bonobo, ....)

* camel/camel.c (camel_init): only try to initialize threads if
we enabled threads support.

* tests/ui-tests/Makefile.am (message_browser_LDADD): use
EXTRA_GNOME_LIBS

* configure.in (have_pthread): remove HAVE_PTHREADS
variable. Define ENABLE_THREADS instead.

* camel/Makefile.am: use ENABLE_THREADS not HAVE_PTHREADS
to test if we build thread relateed code.

* tests/Makefile.am: use EXTRA_GNOME_LIBS,
not EXTRA_GNOME_LIBS_THREADS

I need to be able to disable thread support to use Insure.

24 years agoRemoved a bizarre comparison construct for converting case.
NotZed [Thu, 10 Feb 2000 05:03:43 +0000 (05:03 +0000)]
Removed a bizarre comparison construct for converting case.

2000-02-10  NotZed  <notzed@zedzone.helixcode.com>

* camel/hash-table-utils.c (g_strcase_hash): Removed a bizarre
comparison construct for converting case.

2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

* camel/data-wrapper-repository.c (data_wrapper_repository_init):
Uses case-insensitive compares.

* camel/gmime-content-field.c (gmime_content_field_new): Uses
case-insensitive compares.

24 years agoIncrement the copy source address to match the data read offset. (seek):
NotZed [Thu, 10 Feb 2000 03:54:22 +0000 (03:54 +0000)]
Increment the copy source address to match the data read offset. (seek):

2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

* camel/camel-simple-data-wrapper-stream.c (read): Increment the
copy source address to match the data read offset.
(seek): Actually implement the seek.

24 years agoIf we get a -1 read, DONT update the total bytes, and try and truncate the
NotZed [Thu, 10 Feb 2000 02:15:02 +0000 (02:15 +0000)]
If we get a -1 read, DONT update the total bytes, and try and truncate the

2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

* camel/camel-mime-part-utils.c
(camel_mime_part_store_stream_in_buffer): If we get a -1 read,
DONT update the total bytes, and try and truncate the array in
reverse.  Eek.

* camel/camel-mime-part.c (camel_mime_part_encoding_from_string):
This was DEFINETLEY not the right way to do it. strncmp!=strcmp
(camel_mime_part_encoding_to_string): Handle the default case.
: include string.h for strcmp() etc.

24 years agoset the mime type to "mime/message". --- THIS IS NOT THE CONTENT TYPE ---
bertrand [Wed, 9 Feb 2000 21:09:31 +0000 (21:09 +0000)]
set the mime type to "mime/message". --- THIS IS NOT THE CONTENT TYPE ---

2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-message.c (camel_mime_message_init):
set the mime type to "mime/message".
--- THIS IS NOT THE CONTENT TYPE ---

* camel/camel-mime-body-part.c (camel_mime_body_part_init):
set the mime type to "body-part".
--- THIS IS NOT THE CONTENT TYPE ---

* camel/camel-data-wrapper.c (camel_data_wrapper_set_mime_type):
mime_type is const.
(_set_input_stream): really set the input stream
(_set_output_stream): really set the output stream
various other typo fixes.

* tests/ui-tests/message-browser.c: various typo
fixes in the ctree construction.

24 years agovarious typo fixes in the ctree construction.
bertrand [Wed, 9 Feb 2000 20:35:34 +0000 (20:35 +0000)]
various typo fixes in the ctree construction.

2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/message-browser.c: various typo
fixes in the ctree construction.

* camel/string-utils.c (string_trim): fix braindead
trailing trim bug.

* camel/gmime-content-field.c (gmime_content_field_construct_from_string):
strip the leading and trailing quotes when constructing the
content field. This should be done in a more generic
RFC822 approach, but this fixes a bug that prevent
matt from analysing some multipart messages.

* camel/camel-data-wrapper.h: reorganize the
deprecated and new methods.

* camel/providers/mbox/camel-mbox-folder.c
(_check_get_or_maybe_generate_summary_file):
Use "From " as the message separating string.

* camel/providers/mbox/camel-mbox-folder.c (_append_message):
set the mode when creating the mbox file.

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
ditto
* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
ditto

24 years agoActually initialise the class. It simple couldn't have worked before.
NotZed [Wed, 9 Feb 2000 12:32:53 +0000 (12:32 +0000)]
Actually initialise the class. It simple couldn't have worked before.

2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

* camel/camel-simple-data-wrapper-stream.c (class_init): Actually
initialise the class.  It simple couldn't have worked before.
(camel_simple_data_wrapper_stream_construct): Commented out code
which crashes just to get something working, memory corruption??

24 years agoNew file; shows a message in tree format, where multipart's have multiple
Matthew Loper [Wed, 9 Feb 2000 08:36:29 +0000 (08:36 +0000)]
New file; shows a message in tree format, where multipart's have multiple

* tests/ui-tests/message-browser.c: New file; shows a message in
tree format, where multipart's have multiple leaves.

* camel/camel-formatter.c: Changed references from
'multipart/alternate' to 'multipart/alternative'.

24 years ago+ * tests/test-formatter.c (convert_to_html_and_print): Use the
Matthew Loper [Wed, 9 Feb 2000 00:48:28 +0000 (00:48 +0000)]
+ * tests/test-formatter.c (convert_to_html_and_print): Use the
+ buffer length of the stream to create strings which are then
+ printed, rather than printing the stream (which might not have a
+ trailing \0) directly.
+
+ * camel/camel-formatter.c (str_tolower): New function; makes a
+ string lowercase.

24 years ago+ * tests/test-formatter.c (convert_to_html_and_print): Fixed call
Matthew Loper [Tue, 8 Feb 2000 23:26:31 +0000 (23:26 +0000)]
+ * tests/test-formatter.c (convert_to_html_and_print): Fixed call
+ to 'camel_formatter_mime_message_to_html' to contain correct
+ params.

24 years agoNew member to 'CamelFormatterPrivate', 'attachments', will be used to let
Matthew Loper [Tue, 8 Feb 2000 23:18:29 +0000 (23:18 +0000)]
New member to 'CamelFormatterPrivate', 'attachments', will be used to let

* camel/camel-formatter.c: New member to 'CamelFormatterPrivate',
'attachments', will be used to let the caller know which items
should be treated as attachments (as opposed to objects which are
inline to the body).
(text_to_html): name changed from 'encode_entities'. Also now
converts newlines to <br> tags.
(camel_formatter_mime_message_to_html): Now takes two output
streams -- one for the header, and one for the body.
(get_bonobo_tag_for_object): New function; tries to make a tag out
of (1) the leaf of a mime message and (2) a bonobo object that can
handle its mime type, but can return NULL if it fails to find the
mime type.
(handle_vcard): New function; will write out a vcard as html.

24 years agofunction deleted.
Matthew Loper [Mon, 7 Feb 2000 23:03:46 +0000 (23:03 +0000)]
function deleted.

* camel/camel-formatter.c (mime_part_to_html): function deleted.

24 years ago+ * tests/test-formatter.c (print_usage_and_quit): New function,
Matthew Loper [Mon, 7 Feb 2000 22:42:41 +0000 (22:42 +0000)]
+       * tests/test-formatter.c (print_usage_and_quit): New function,
+       which gives usage information.
+
+       * camel/camel-formatter.c: made the 'stream' a member of the
+       CamelFormatter class, so that streams don't have to be explicitly
+       sent as a param where a CamelFormatter is also sent..
+       (handle_text_plain): Use 'encode_entities' to change '<' to
+       '&gt;', etc.

24 years ago*** empty log message ***
Bertrand Guiheneuf [Wed, 2 Feb 2000 09:27:36 +0000 (09:27 +0000)]
*** empty log message ***

24 years ago+ * tests/test-formatter.c: New file; intended to test the
Matthew Loper [Wed, 2 Feb 2000 05:27:27 +0000 (05:27 +0000)]
+ * tests/test-formatter.c: New file; intended to test the
+ CamelFormatter class.
+
+ * camel/camel-formatter.c: Lots of cleanup, commenting, some new
+ functions, and a really basic skeleton for getting bonobo objects
+ into the html.
+ (encode_entities): New function, stolen from Daniel Velliard.

24 years ago+ * camel/camel-formatter.c: By looking up a mimetype in a
Matthew Loper [Tue, 25 Jan 2000 22:52:17 +0000 (22:52 +0000)]
+ * camel/camel-formatter.c: By looking up a mimetype in a
+ hashtable, we can now get a handler function for an arbitrary
+ mimetype.

24 years agorenamed mbox_folder->summary to mbox_folder->internal_summary to avoid
bertrand [Tue, 25 Jan 2000 18:28:02 +0000 (18:28 +0000)]
renamed mbox_folder->summary to mbox_folder->internal_summary to avoid

2000-01-26  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-folder.c:
renamed mbox_folder->summary to
mbox_folder->internal_summary to avoid
confusion with the camel_folder->summary
field.
(_append_message):
(_check_get_or_maybe_generate_summary_file):
update the external summary thingie.

* camel/camel-folder-summary.c (camel_folder_summary_new):
create the message and folder info arrays.

* camel/providers/mbox/camel-mbox-summary.c
(camel_mbox_summary_append_internal_to_external):
new function to append entries from the internal summary
to the external one.

* camel/providers/mbox/camel-mbox-folder.c (_append_message): reflect
name change.

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_summary_append_entries):
namespace fix.

24 years agoThe CamelDataWrapper can now be provided with input and output streams, so
bertrand [Tue, 25 Jan 2000 04:02:14 +0000 (04:02 +0000)]
The CamelDataWrapper can now be provided with input and output streams, so

2000-01-24  bertrand  <bertrand@helixcode.com>

* camel/camel-data-wrapper.h:
* camel/camel-data-wrapper.c
(_set_input_stream):
(_get_input_stream):
(_set_output_stream):
(_get_output_stream):
The CamelDataWrapper can now be provided with input and
output streams, so that nothing has to be kept in memory.

* camel/camel-stream.c (camel_stream_class_init):
added the "data_available" signal.

24 years agoparent class is now CamelSeekableStream idem idem idem idem (_seek):
bertrand [Tue, 25 Jan 2000 01:09:56 +0000 (01:09 +0000)]
parent class is now CamelSeekableStream idem idem idem idem (_seek):

2000-01-24  bertrand  <bertrand@helixcode.com>

* camel/camel-seekable-stream.c:
* camel/camel-seekable-stream.h:

* camel/camel-simple-data-wrapper-stream.h:  parent class is now
CamelSeekableStream
* camel/camel-stream-buffered-fs.h: idem
* camel/camel-stream-buffered-fs.c: idem
* camel/camel-stream-mem.h: idem
* camel/camel-stream-mem.c: idem
(_seek): change declaration
* camel/camel-stream-fs.c: parent class is now
CamelSeekableStream
(_seek): change declaration

* camel/camel-stream-fs.h: parent class is now
CamelSeekableStream

Major compatible change in the stream hierarchy.
Removed the seek method from the general streams
so that we can use them as "DataSources".

24 years agoconverted all gint64 variables into guint32.
bertrand [Mon, 24 Jan 2000 22:29:48 +0000 (22:29 +0000)]
converted all gint64 variables into guint32.

2000-01-24  bertrand  <bertrand@helixcode.com>

* camel/camel-stream-fs.[ch]: converted all
gint64 variables into guint32.

* camel/camel-stream-fs.c (_read): fix stupid bug.
(_write): ditto.

* camel/camel-exception.c (camel_exception_new): don't
forget to clean the exception when creating it.

24 years agoadd recipient_list to the recipients, not recipients_list. I don't know
bertrand [Mon, 24 Jan 2000 15:07:18 +0000 (15:07 +0000)]
add recipient_list to the recipients, not recipients_list. I don't know

2000-01-24  bertrand  <bertrand@helixcode.com>

* camel/camel-recipient.c (camel_recipient_table_add_list):
add recipient_list to the recipients, not recipients_list.
I don't know what that variable was doing here.

2000-01-23  bertrand  <bertrand@helixcode.com>

* camel/camel-store.c (camel_store_get_session):
added a public get_session method.

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(camel_mbox_load_summary): load/save message sizes in the summary file

* camel/providers/mbox/camel-mbox-summary.h:
added a size field to the message information
structure.

* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
copy message size to the mbox summary information too.

* camel/camel-stream-fs.c (_seek): updated to
work with bounded fs streams.
(_write): ditto.
(_read): ditto.

* camel/camel-stream-fs.h (struct ):
added the cur_pos, inf_bound and sup_bound
members to allow for bounded fs stream.

* camel/camel-stream-fs.c (_set_bounds): new func.
(_init_with_fd_and_bounds): idem.
(_init_with_name_and_bounds): idem.
New functions to allow the usage of bounded fs streams.

The bounded fs stream allow, for example, to make a stream
from a message stored in an mbox file.

24 years agonew function, broken out from 'camel_formatter_make_html'.
Matthew Loper [Mon, 24 Jan 2000 14:43:06 +0000 (14:43 +0000)]
new function, broken out from 'camel_formatter_make_html'.

* camel/camel-formatter.c (write_header_info_to_stream): new
function, broken out from 'camel_formatter_make_html'.
(write_mimepart_to_stream): same.
(find_text_body_part_in_multipart_related): new function.
(camel_formatter_make_html): Now tries to deal with
multipart/related, multipart/alternate, and text/(plain|html).

24 years agouse the real summary file path instead of a stupid hardcoded one. Fixes
bertrand [Sun, 23 Jan 2000 01:45:49 +0000 (01:45 +0000)]
use the real summary file path instead of a stupid hardcoded one. Fixes

2000-01-22  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-folder.c (_check_get_or_maybe_generate_summary_file):
use the real summary file path instead of a
stupid hardcoded one. Fixes yet another bug.

* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
don't forget to copy the date too. Fix a very annoying bug.

* camel/providers/mbox/camel-mbox-folder.c (_append_message):
implemented. A lot of fixes too. Works now.
(_get_uid_list): implemented.

24 years agoimplemented. A lot of fixes too. Works now.
bertrand [Sat, 22 Jan 2000 19:52:45 +0000 (19:52 +0000)]
implemented. A lot of fixes too. Works now.

2000-01-22  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-folder.c (_append_message):
implemented. A lot of fixes too. Works now.

24 years agotest the mbox provider.
bertrand [Sat, 22 Jan 2000 02:58:12 +0000 (02:58 +0000)]
test the mbox provider.

2000-01-21  bertrand  <bertrand@helixcode.com>

* tests/test10.c:
test the mbox provider.

* camel/camel-folder.c (_set_name):
if camel_folder_get_mode returns an
exception, return it instead of
overriding it with a new one.
(camel_folder_is_open): make the is_open
method public.
(_set_name): use the is_open instead of
get_mode.
(_set_name): set the fullname even in the case
where the folder has no parent.
(_set_name): use %c, not %d to add the
separator char into the full path.

24 years agoadd exception handling everywhere in the store related functions
bertrand [Sat, 22 Jan 2000 01:35:11 +0000 (01:35 +0000)]
add exception handling everywhere in the store related functions

 2000-01-21  bertrand  <bertrand@helixcode.com>

* camel/camel-store.c: add exception handling everywhere in
the store related functions arguments.
* camel/providers/mbox/camel-mbox-folder.c: idem
* camel/providers/mbox/camel-mbox-folder.h: idem
* camel/providers/mbox/camel-mbox-store.h: idem

* camel/providers/mbox/Makefile.am (libcamelmbox_la_SOURCES):
added camel-mbox-provider.c to the mbox provider
sources.

24 years agoadded camel-mbox-provider.c to the mbox provider sources.
bertrand [Fri, 21 Jan 2000 22:46:45 +0000 (22:46 +0000)]
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.

24 years ago+ * camel/camel-formatter.c (camel_formatter_make_html): added a
Matthew Loper [Fri, 21 Jan 2000 16:20:01 +0000 (16:20 +0000)]
+ * camel/camel-formatter.c (camel_formatter_make_html): added a
+ CamelMimeMessage as a param to this function, and removed it as a
+ member of the object.

24 years agoNew files. You'll be able to use a CamelFormatter to get html-formatted
Matthew Loper [Fri, 21 Jan 2000 02:38:56 +0000 (02:38 +0000)]
New files. You'll be able to use a CamelFormatter to get html-formatted

* camel/camel-formatter.c, camel/camel-formatter.h: New
files. You'll be able to use a CamelFormatter to get
html-formatted versions of a CamelMimeMessage.

24 years agoimplemented.
bertrand [Thu, 20 Jan 2000 03:02:12 +0000 (03:02 +0000)]
implemented.

2000-01-19  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-folder.c (_get_message_count):
implemented.

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(camel_mbox_load_summary): save/load the next uid.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
Compute the next available uid.
* camel/providers/mbox/camel-mbox-folder.c (_create):
(_check_get_or_maybe_generate_summary_file):
Set and use the next_uid field properly.
* camel/providers/mbox/camel-mbox-summary.h: added
an extra field to store the next available uid.

* camel/providers/mbox/camel-mbox-folder.c
(_check_get_or_maybe_generate_summary_file):
routine called when the folder is opened.
Reads or creates the summary file.
(_create): initialize the internal summary
structure.
(_close): save the summary file on closing.
(_init_with_store): initialize mbox specific
folder members.

24 years agotests for summary and parsing process of mbox files.
bertrand [Wed, 19 Jan 2000 04:33:14 +0000 (04:33 +0000)]
tests for summary and parsing process of mbox files.

2000-01-18  bertrand  <bertrand@helixcode.com>

* tests/test9.c:
tests for summary and parsing process of mbox files.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): do
not use case insensitive comp to detect message separators. Kill
some nasty bugs in netscape file parsing,

* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
don't use g_array_append but write directly inside the
array data instead. Better performance and bug fix.

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_load_summary):
fix the name and bugs.

* camel/camel-folder-summary.h: update the class
method definition to match the public defs.

24 years agoAh zut alors. Missing files
Bertrand Guiheneuf [Tue, 18 Jan 2000 21:21:00 +0000 (21:21 +0000)]
Ah zut alors. Missing files

24 years agosummary file read/write routines.
bertrand [Tue, 18 Jan 2000 19:29:48 +0000 (19:29 +0000)]
summary file read/write routines.

2000-01-18  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(mbox_load_summary): summary file read/write routines.

* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
routine to construct the summary after the mbox
file has been parsed and the x-evolution fields
inserted.

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
dont use the x_evolution field but rather the uid to
determine the presence of "X-Evolution" in the mail.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse the status and uid values if the x-evolution
has been found.

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_xev_parse_header_content):
return the parsed status field correctly.

* camel/providers/mbox/camel-mbox-utils.h:
fixed bad prototype.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse and store the "To:" header.

* camel/providers/mbox/camel-mbox-parser.h:
added a "to" field

* camel/camel-folder-summary.c:
create the arrays here.

* camel/camel-folder-summary.h: the list of
summary information is no longer a GList but
rather a GArray.

Parsing/summary/sync-check is here. Needs testing
and integration with the rest of the folder code.

24 years agotest for the mbox utils. (copy_file_chunk): fixed a nasty bug.
bertrand [Mon, 17 Jan 2000 08:40:10 +0000 (08:40 +0000)]
test for the mbox utils. (copy_file_chunk): fixed a nasty bug.

2000-01-17  bertrand  <bertrand@helixcode.com>

* tests/test9.c (main): test for the mbox utils.
(copy_file_chunk): fixed a nasty bug.
(camel_mbox_write_xev): create the copy file descriptor
with the proper arguments. Exceptions implememnted.
(camel_mbox_write_xev): changed the way bytes are counted.
No more uses the message size cause it did not take into
account the message separators characters.
(camel_mbox_write_xev): hopefully fixed the last bugs.
works ok now.

Summary information / X-Evolution header generation should all
work ok now.

24 years agoA bunch of new funcs to handle x-evolution private header field.
bertrand [Mon, 17 Jan 2000 05:25:36 +0000 (05:25 +0000)]
A bunch of new funcs to handle x-evolution private header field.

2000-01-17  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
(copy_file_chunk):
(camel_mbox_xev_write_header_content):
(camel_mbox_xev_parse_header_content):
(string_to_flag):
(flag_to_string):
(string_to_uid):
(uid_to_string):
A bunch of new funcs to handle x-evolution
private header field.

Various others modifications and fixes.

24 years agoeof is true when no more chars are available, not when we've read the
bertrand [Thu, 13 Jan 2000 22:53:06 +0000 (22:53 +0000)]
eof is true when no more chars are available, not when we've read the

2000-01-13  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-parser.c (read_next_buffer_chunk):
eof is true when no more chars are available, not
when we've read the entire file.
(initialize_buffer): ditto.
(read_message_begining): documented.
(read_header): ditto.
(new_message_detected): ditto.
(advance_n_chars): ditto.
(goto_next_char): ditto.
(read_next_buffer_chunk): ditto.
(initialize_buffer): ditto.
(parser_free): ditto.
(new_parser): ditto.

More parser decoding and clean-ups.
Documented all the static routines properly.

24 years agoAdded the prototype of camel_mbox_parse_file.
bertrand [Thu, 13 Jan 2000 04:13:12 +0000 (04:13 +0000)]
Added the prototype of camel_mbox_parse_file.

2000-01-12  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-parser.h (camel_mbox_parse_file):
Added the prototype of camel_mbox_parse_file.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
updated in-line documentation.

Evolution is now in a compilable state.

24 years agoremove non updated tests from the build process.
bertrand [Thu, 13 Jan 2000 04:07:32 +0000 (04:07 +0000)]
remove non updated tests from the build process.

2000-01-12  bertrand  <bertrand@helixcode.com>

* tests/Makefile.am (noinst_PROGRAMS):
remove non updated tests from the build
process.

* camel/Makefile.am :
remove the rfc2047 related files from
the build process as for the moment, nothing
has been decided concerning unicode.

* Makefile.am (evolution_msg_composer_LDADD):
use $(EXTRA_GNOME_LIBS_THREADS) to link with gthread

24 years agocorrected a bunch of bugs
bertrand [Thu, 13 Jan 2000 03:37:07 +0000 (03:37 +0000)]
corrected a bunch of bugs

2000-01-12  bertrand  <bertrand@helixcode.com>

* corrected a bunch of bugs

* camel/providers/mbox/camel-mbox-parser.c
(camel_mbox_parse_file):
parser the subject and date.

* camel/providers/mbox/camel-mbox-parser.c
(camel_mbox_parse_file): added the ability to
follow the parsing progression.

* camel/providers/mbox/camel-mbox-parser.h:
parse the x-evolution field.

24 years agoBackup of the first clean and working mbox file parser. It both find the
bertrand [Wed, 12 Jan 2000 02:09:50 +0000 (02:09 +0000)]
Backup of the first clean and working mbox file parser. It both find the

2000-01-11  bertrand  <bertrand@helixcode.com>

Backup of the first clean and working mbox file
parser. It both find the message and pre-parse
the message, that is, retrieve some key headers,
and the first lines of the body.

24 years agoLots of reorganization to get the Evolution shell to begin its life. It
Arturo Espinosa [Thu, 6 Jan 2000 05:48:24 +0000 (05:48 +0000)]
Lots of reorganization to get the Evolution shell to begin its life. It

Lots of reorganization to get the Evolution shell to begin its life.
It also includes a new evolution widget from Damon.

Miguel.

24 years agosync before Boston
Bertrand Guiheneuf [Tue, 4 Jan 2000 19:15:42 +0000 (19:15 +0000)]
sync before Boston

24 years agoUpdated my e-mail address to reflect my new employment
Bertrand Guiheneuf [Mon, 3 Jan 2000 23:05:55 +0000 (23:05 +0000)]
Updated my e-mail address to reflect my new employment

24 years agochkouink chkouink
Bertrand Guiheneuf [Mon, 3 Jan 2000 22:42:53 +0000 (22:42 +0000)]
chkouink chkouink

24 years agodetects netscape ".sdb" folders as well as simple non-suffixed folders (as
bertrand [Mon, 3 Jan 2000 22:40:54 +0000 (22:40 +0000)]
detects netscape ".sdb" folders as well as simple non-suffixed folders (as

2000-01-03  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/mbox/camel-mbox-folder.c (_list_subfolders):
detects netscape ".sdb" folders as well as simple
non-suffixed folders (as the ones used in pine).

* camel/string-utils.c (string_prefix):
finished implementation.
(string_prefix): added a boolean flag to indicate if the
suffix has been found. When the suffix does not match,
return NULL.

24 years agosync. Does not compile
Bertrand Guiheneuf [Mon, 3 Jan 2000 10:08:55 +0000 (10:08 +0000)]
sync. Does not compile

24 years agoBackup sync.
Bertrand Guiheneuf [Mon, 27 Dec 1999 09:25:21 +0000 (09:25 +0000)]
Backup sync.

24 years agoWork in progress. Missing files
Bertrand Guiheneuf [Tue, 21 Dec 1999 23:18:14 +0000 (23:18 +0000)]
Work in progress. Missing files

24 years agopart of the mbox provider.
bertrand [Tue, 21 Dec 1999 23:17:03 +0000 (23:17 +0000)]
part of the mbox provider.

1999-12-22  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/mbox/camel-mbox-store.h:
* camel/providers/mbox/camel-mbox-store.c:
* camel/providers/mbox/camel-mbox-folder.h:
* camel/providers/mbox/camel-mbox-folder.c:
part of the mbox provider.

24 years agoinclude camel-log.h to avoid unresolved symbols.
bertrand [Sun, 19 Dec 1999 19:42:05 +0000 (19:42 +0000)]
include camel-log.h to avoid unresolved symbols.

1999-12-19  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c: include camel-log.h
to avoid unresolved symbols.

24 years agodocumented.
bertrand [Sat, 18 Dec 1999 15:27:14 +0000 (15:27 +0000)]
documented.

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_get_summary):
documented.

added the providers/mbox directory. Now that camel-folder
has been cleaned up a bit, the main evolution provider
work can start. The MH provider was only a proof of
concept, and should not be used for the moment.

24 years agoupdated to take the change on append into account.
bertrand [Sat, 18 Dec 1999 14:59:36 +0000 (14:59 +0000)]
updated to take the change on append into account.

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_append_message):
updated to take the change on append into account.

* camel/camel-folder.h:
updated class def concerning append.
* camel/camel-folder.c
(camel_folder_append_message): documented.
(camel_folder_append_message): don't return the
message number. Use specific methods instead.
(_append_message): idem.

24 years agouse exception mechanism. (camel_folder_delete): idem. (_delete_messages):
bertrand [Sat, 18 Dec 1999 14:38:43 +0000 (14:38 +0000)]
use exception mechanism. (camel_folder_delete): idem. (_delete_messages):

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_delete): use
exception mechanism.
(camel_folder_delete): idem.
(_delete_messages): idem.
(camel_folder_delete_messages): idem.
(_get_parent_folder): idem.
(camel_folder_get_parent_folder): idem.
(_get_parent_store): idem.
(_get_mode): idem.
(camel_folder_get_parent_store): idem.
(camel_folder_get_mode): idem.
(_list_subfolders): idem.
(camel_folder_list_subfolders): idem.
(_expunge): idem.
(camel_folder_expunge): idem.
(_has_message_number_capability): idem.
(camel_folder_has_message_number_capability): idem.
(_get_message_by_number): idem.
(camel_folder_get_message_by_number): idem.
(camel_folder_get_message_count): idem.
(_list_permanent_flags): idem.
(camel_folder_list_permanent_flags): idem.
(_copy_message_to): idem.
(camel_folder_copy_message_to): idem.
(camel_folder_has_summary_capability): idem.
(camel_folder_get_summary): idem.
(camel_folder_has_uid_capability): idem.
(camel_folder_get_message_uid): idem.
(_get_message_uid_by_number): idem.
(camel_folder_get_message_uid_by_number): idem.
(camel_folder_get_message_by_uid): idem.
(camel_folder_get_uid_list): idem.

24 years agouse exception mechanism. (camel_folder_set_name): idem.
bertrand [Fri, 17 Dec 1999 19:19:59 +0000 (19:19 +0000)]
use exception mechanism. (camel_folder_set_name): idem.

1999-12-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_set_name):
use exception mechanism.
(camel_folder_set_name): idem.
(camel_folder_set_full_name): idem.
(_get_name): idem.
(camel_folder_get_name): idem.
(_get_full_name): idem.
(camel_folder_get_full_name): idem.
(_can_hold_folders): idem.
(_can_hold_messages): idem.
(_exists): idem.
(camel_folder_exists): idem.
(_is_open): idem.
(_get_subfolder): idem.
(camel_folder_get_subfolder): idem.

* camel/camel-exception.c (camel_exception_clear):
New function. Clear an exception.
(camel_exception_get_id):
New function.
(camel_exception_get_description):
New function.

* camel/camel-folder.c (_set_name):
Use the exception system. When the folder
has no parent, don't set its full name
field.

24 years agochanged the return value. Now returns the list of expunged messages
bertrand [Thu, 16 Dec 1999 18:05:41 +0000 (18:05 +0000)]
changed the return value. Now returns the list of expunged messages

1999-12-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_expunge):
(_expunge):
* camel/camel-folder-pt-proxy.c (_expunge):
changed the return value. Now returns the list
of expunged messages

* camel/camel-folder.c (_init_with_store):
cleaned up. Use the exception system now.
(_open): ditto.
(camel_folder_open): ditto.
(camel_folder_open_async): ditto.
(_close):  ditto.
(camel_folder_close):  ditto.
(camel_folder_close_async): ditto.

* camel/camel-exception.c (camel_exception_set):
When no exception is given, do nothing, just
return.
(camel_exception_set): documented.
(camel_exception_new): idem.
(camel_exception_free): idem.
(camel_exception_xfer): idem.

* camel/camel-folder.c:
* camel/camel-folder.h: more clean-ups.
Removed message list related code.
This was braindead design.

24 years agoimplemented. The routines in this file will be called by providers to
bertrand [Wed, 15 Dec 1999 23:48:23 +0000 (23:48 +0000)]
implemented. The routines in this file will be called by providers to

1999-12-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c (camel_aml_expunge_messages):
implemented. The routines in this file will be
called by providers to handle the list of
message already standing in memory.

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c:
* camel/camel-folder-utils.h:
New files, misc utilities for the
folder providers. Includes active message
list utilities.

* camel/camel-folder.c (_has_message_number_capability):
(camel_folder_has_message_number_capability):
Added this to know if a folder provides
number-based message access.

* camel/camel-folder.c (_get_message_count):
added warning when called directly.
(_append_message): ditto
(_open_async):  ditto
(_close_async):  ditto
(_delete_messages): ditto
(_expunge):  ditto
(_get_message_by_number):  ditto
(_get_message_uid):  ditto
(_get_message_uid_by_number):  ditto
(_get_message_by_uid):  ditto
(_get_uid_list):  ditto

24 years agoupdate (_get_message_by_number): Update to reflect changes in CamelFolder
bertrand [Wed, 15 Dec 1999 13:01:34 +0000 (13:01 +0000)]
update (_get_message_by_number): Update to reflect changes in CamelFolder

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_open_async):
(_open):
(_close_async):
(_close):
(camel_folder_pt_proxy_class_init):
update
(_get_message_by_number):
Update to reflect changes in CamelFolder

24 years agoclean-ups.
bertrand [Wed, 15 Dec 1999 11:11:35 +0000 (11:11 +0000)]
clean-ups.

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.[ch]:
 clean-ups.

24 years agoFix copyright informations once again
Bertrand Guiheneuf [Tue, 14 Dec 1999 22:40:38 +0000 (22:40 +0000)]
Fix copyright informations once again

24 years agoMake set_* methods in CamelMimeMessage use const strings.
Ettore Perazzoli [Thu, 9 Dec 1999 02:35:42 +0000 (02:35 +0000)]
Make set_* methods in CamelMimeMessage use const strings.

24 years agomore small typo fixes.
Michael Meeks [Fri, 26 Nov 1999 13:05:15 +0000 (13:05 +0000)]
more small typo fixes.

25 years agoMake `make distcheck' work.
Ettore Perazzoli [Wed, 17 Nov 1999 15:51:00 +0000 (15:51 +0000)]
Make `make distcheck' work.

25 years agoMore work:
Ettore Perazzoli [Wed, 17 Nov 1999 15:35:41 +0000 (15:35 +0000)]
More work:

- Fixed some Camel API naming issues.
- Moved the message composer stuff to the `composer' directory.