summaryrefslogtreecommitdiff
path: root/camel/camel-mime-part.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-26 15:29:39 +0000
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-26 15:29:39 +0000
commitc0a87cba4c22ac50337fa106017efe45bc23df21 (patch)
treeca00aeff1613724804b0dc8c3214389fd0b2c910 /camel/camel-mime-part.h
parent304de556da858bea66085c48623a2ab0f5f4d17e (diff)
downloadevolution-data-server-c0a87cba4c22ac50337fa106017efe45bc23df21.tar.gz
contruct the content from the buffer before calling CamelMedium
1999-08-26 bertrand <Bertrand.Guiheneuf@aful.org> * 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.
Diffstat (limited to 'camel/camel-mime-part.h')
-rw-r--r--camel/camel-mime-part.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h
index 8ea9cf534..7d5b19c3a 100644
--- a/camel/camel-mime-part.h
+++ b/camel/camel-mime-part.h
@@ -48,6 +48,7 @@ typedef struct
{
CamelMedium parent_object;
+ /* All fields here are -** PRIVATE **- */
gchar *description;
GMimeContentField *disposition;
gchar *content_id;
@@ -57,6 +58,7 @@ typedef struct
gchar *filename;
GList *header_lines;
+ GByteArray *temp_message_buffer;
GMimeContentField *content_type;
} CamelMimePart;