From 19e94482677c45f538c716e1d4604fd5f0b3682e Mon Sep 17 00:00:00 2001 From: NotZed Date: Fri, 28 Apr 2000 03:06:44 +0000 Subject: Dont try and check a NULL header. 2000-04-27 NotZed * camel-mime-utils.c (check_header): Dont try and check a NULL header. * camel-recipient.[ch]: Dead. Its not pining. * camel-mime-message.h: Dont include recipients.h anymore. * camel-mime-message.c (camel_mime_message_add_recipient): Accept name/address separately, and store in an CamelInternetAddress. (add_recipient): Removed. (remove_recipient): Removed. (remove_recipient_address): Renamed from remove_receipient, works via address. (camel_mime_message_remove_recipient_name): New function to remove by name. (get_recipients): Removed. (camel_mime_message_get_recipients): Return a camel-internet-address. (write_to_stream): No longer write receipients directly. (write_recipients_to_stream): Removed. (write_one_recipient_to_stream): Removed. (camel_mime_message_init): Setup recipients hashtable, rather than usign the recipients stuff. (set_recipient_list_from_string): Killed, a violent and lengthy death. (process_header): Simplified recipient handling code a lot. (received_date_str, sent_date_str, reply_to_str, subject_str, from_str): Removed some oddly-defined global statics. (camel_mime_message_class_init): Dont initialise above variables anymore. (init_header_name_table): Removed, use a table to init this, and do it in class init (2 lines of code ...). * camel-news-address.c: Class to represent news addresses - currently empty, and not built. * camel-internet-address.h: Class to represent internet (email) addresses. * camel-address.h: Abstract class to represent (lists of) addresses. svn path=/trunk/; revision=2671 --- camel/camel-mime-part.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'camel/camel-mime-part.h') diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index cfced58723..b2c87b8f9f 100644 --- a/camel/camel-mime-part.h +++ b/camel/camel-mime-part.h @@ -1,4 +1,4 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; fill-column: 160 -*- */ /* camel-mime-part.h : class for a mime part */ /* @@ -88,6 +88,8 @@ typedef struct _CamelMimePartClass { GtkType camel_mime_part_get_type (void); /* public methods */ +CamelMimePart * camel_mime_part_new (void); + void camel_mime_part_set_description (CamelMimePart *mime_part, const gchar *description); const gchar *camel_mime_part_get_description (CamelMimePart *mime_part); @@ -120,12 +122,8 @@ CamelMimePartEncodingType camel_mime_part_encoding_from_string (const gchar *str int camel_mime_part_construct_from_parser (CamelMimePart *, CamelMimeParser *); /* utility functions */ -CamelMimePart * camel_mime_part_new (void); -void camel_mime_part_set_content (CamelMimePart *camel_mime_part, - const gchar *content, - guint length, - const gchar *type); - +void camel_mime_part_set_content (CamelMimePart *camel_mime_part, + const char *content, int length, const char *type); #ifdef __cplusplus } -- cgit v1.2.3