Commit Graph

270 Commits

Author SHA1 Message Date
fcd0df7c8b fix a stupid typo (thank you gcc -Wall)
svn path=/trunk/; revision=1849
2000-02-19 00:50:33 +00:00
586de6bb25 #include <ctype.h> so the hash function doesn't get stuck using the
function version of toupper!

svn path=/trunk/; revision=1848
2000-02-19 00:40:31 +00:00
5e836ee59c make the / between the host and the path part of the path: it's wrong
according to rfc1738, but convenient

svn path=/trunk/; revision=1840
2000-02-18 22:11:02 +00:00
3e317e1b17 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.

svn path=/trunk/; revision=1838
2000-02-17 23:31:16 +00:00
037af79b9e libraries come from $(top_builddir)/..., not $(top_srcdir)/...
svn path=/trunk/; revision=1837
2000-02-17 22:23:38 +00:00
39400a38c7 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.

svn path=/trunk/; revision=1835
2000-02-17 22:16:33 +00:00
0996e4f1ac 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.

svn path=/trunk/; revision=1834
2000-02-17 22:16:00 +00:00
53fec3133a New function g_url_to_string to convert a Gurl back into a char *
svn path=/trunk/; revision=1833
2000-02-17 22:13:16 +00:00
b39cda14b7 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.

svn path=/trunk/; revision=1822
2000-02-17 15:19:04 +00:00
7f04720b1e 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.

svn path=/trunk/; revision=1798
2000-02-16 18:04:40 +00:00
d2239da3e7 Simplify the code a lot and add support for RFC2384 POP URLs.
svn path=/trunk/; revision=1797
2000-02-16 17:05:57 +00:00
8176cca8d0 Make md5_final take the MD5Context first, like md5_init and md5_update.
svn path=/trunk/; revision=1796
2000-02-16 16:03:14 +00:00
cd9e88989f fix minor typos
svn path=/trunk/; revision=1795
2000-02-16 15:44:55 +00:00
4cd1c91c5a Improve spelling and English a bit
svn path=/trunk/; revision=1794
2000-02-16 15:42:48 +00:00
f926f10e86 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

svn path=/trunk/; revision=1790
2000-02-16 10:44:35 +00:00
d53eea370b 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.

svn path=/trunk/; revision=1783
2000-02-15 17:28:34 +00:00
a020ef5168 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.

svn path=/trunk/; revision=1781
2000-02-15 14:17:01 +00:00
8d959d83b2 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.

svn path=/trunk/; revision=1780
2000-02-14 22:45:13 +00:00
6cffd8501c 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.

svn path=/trunk/; revision=1779
2000-02-14 22:27:54 +00:00
fe058b1be7 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.

svn path=/trunk/; revision=1778
2000-02-14 22:03:58 +00:00
d8efd64ed0 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.

svn path=/trunk/; revision=1776
2000-02-14 18:04:46 +00:00
5db48f5ddd remove camel-stream-buffer from compilation process. It is not here
svn path=/trunk/; revision=1775
2000-02-14 10:46:26 +00:00
aeaa2ed700 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.

svn path=/trunk/; revision=1772
2000-02-14 05:39:02 +00:00
ddcfc699c7 + * 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.

svn path=/trunk/; revision=1771
2000-02-14 04:23:14 +00:00
e4bbdf696c + * 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.

svn path=/trunk/; revision=1767
2000-02-14 00:53:16 +00:00
204e08f870 + * 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.

svn path=/trunk/; revision=1766
2000-02-14 00:27:01 +00:00
db6312e254 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

svn path=/trunk/; revision=1731
2000-02-11 04:56:13 +00:00
e1e8a9f261 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.

svn path=/trunk/; revision=1727
2000-02-11 03:00:19 +00:00
e59a188db0 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.

svn path=/trunk/; revision=1726
2000-02-11 00:51:48 +00:00
784c1184a8 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.

svn path=/trunk/; revision=1725
2000-02-11 00:43:23 +00:00
4a2a09a7ba 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.

svn path=/trunk/; revision=1723
2000-02-10 05:03:43 +00:00
3ef8dbd93a 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.

svn path=/trunk/; revision=1722
2000-02-10 03:54:22 +00:00
8e008e868d 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.

svn path=/trunk/; revision=1720
2000-02-10 02:15:02 +00:00
2088dd3401 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.

svn path=/trunk/; revision=1712
2000-02-09 21:09:31 +00:00
3bd58106ef 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

svn path=/trunk/; revision=1711
2000-02-09 20:35:35 +00:00
d4bc84cf83 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??

svn path=/trunk/; revision=1707
2000-02-09 12:32:53 +00:00
a56ab52138 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'.

svn path=/trunk/; revision=1700
2000-02-09 08:36:29 +00:00
66dc424c9c + * 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.

svn path=/trunk/; revision=1698
2000-02-09 00:48:28 +00:00
c9f1db9bd0 + * tests/test-formatter.c (convert_to_html_and_print): Fixed call
+	to 'camel_formatter_mime_message_to_html' to contain correct
+	params.

svn path=/trunk/; revision=1697
2000-02-08 23:26:31 +00:00
3e5f29f650 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.

svn path=/trunk/; revision=1696
2000-02-08 23:18:29 +00:00
d6de7b88f5 function deleted.
* camel/camel-formatter.c (mime_part_to_html): function deleted.

svn path=/trunk/; revision=1688
2000-02-07 23:03:46 +00:00
1779bc3817 + * 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.

svn path=/trunk/; revision=1687
2000-02-07 22:42:41 +00:00
a436540603 *** empty log message ***
svn path=/trunk/; revision=1661
2000-02-02 09:27:36 +00:00
0715f576a8 + * 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.

svn path=/trunk/; revision=1660
2000-02-02 05:27:27 +00:00
f2122c69d6 + * camel/camel-formatter.c: By looking up a mimetype in a
+	hashtable, we can now get a handler function for an arbitrary
+	mimetype.

svn path=/trunk/; revision=1641
2000-01-26 00:53:53 +00:00
bb2f8ae373 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.

svn path=/trunk/; revision=1632
2000-01-25 18:28:02 +00:00
0cccd4dc23 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.

svn path=/trunk/; revision=1624
2000-01-25 04:02:14 +00:00
50e5c22f0f 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".

svn path=/trunk/; revision=1622
2000-01-25 01:09:56 +00:00
7dded29a63 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.

svn path=/trunk/; revision=1621
2000-01-24 22:29:49 +00:00
98e15c6b5c 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.

svn path=/trunk/; revision=1620
2000-01-24 15:07:18 +00:00