From e826255bf13255f2b5c626192de4fd10a3885b6f Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 26 Aug 1999 15:29:40 +0000 Subject: contruct the content from the buffer before calling CamelMedium 1999-08-26 bertrand * camel/camel-mime-part.c (_get_content_object): contruct the content from the buffer before calling CamelMedium implementation. (_construct_from_stream): Do not construct the content by default, just store the content bytes in a temporary buffer. Content will be constructed only at caller request (when calling CamelMedium::get_content_object) Providers with better access to the messages (mbox/MH ...) will have to provider lighter implementation, that is shall not read content at all unless the caller asks for it (again with get_content). * camel/camel-mime-part-utils.c: new file, groups mime-part related utils. Meant to be used by providers subclassing MimeMessage. (camel_mime_part_construct_headers_from_stream): (camel_mime_part_construct_content_from_stream): no more useless temporary hash table. * camel/camel-mime-part.c (_construct_from_stream): calls mime-part-utils functions now. * camel/gmime-utils.c (_store_header_pair_from_string): do not use hash table to store header, use an array instead. svn path=/trunk/; revision=1145 --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index c17189c6d5..ccc4de365e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 1999-08-26 bertrand + * camel/camel-mime-part.c (_get_content_object): + contruct the content from the buffer before calling + CamelMedium implementation. + (_construct_from_stream): Do not construct the content + by default, just store the content bytes in + a temporary buffer. Content will be constructed only + at caller request (when calling CamelMedium::get_content_object) + Providers with better access to the messages (mbox/MH ...) + will have to provider lighter implementation, that is + shall not read content at all unless the caller asks + for it (again with get_content). + * camel/camel-mime-part-utils.c: new file, groups mime-part related utils. Meant to be used by providers subclassing MimeMessage. -- cgit