aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-09-01 22:36:17 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-09-01 22:36:17 +0800
commit4ed34315759b8bb3b701133bcb704b5a4891100c (patch)
tree149574f5827f58f829b5485489547ba4727ef9a8 /camel/camel-mime-message.h
parentf5be7984b2ea1a4c3591cc11090220c080216aec (diff)
downloadgsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.gz
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.bz2
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.lz
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.xz
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.zst
gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.zip
now use CamelRecipientTable
1999-09-01 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-message.c (_finalize): (_add_recipient): (_remove_recipient): (_get_recipients): now use CamelRecipientTable * camel/gmime-content-field.c: (gmime_content_field_unref): test if object to free is non void. Still are some bugs in camel-recipient.c svn path=/trunk/; revision=1152
Diffstat (limited to 'camel/camel-mime-message.h')
-rw-r--r--camel/camel-mime-message.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h
index 5f12c70e81..15238782e5 100644
--- a/camel/camel-mime-message.h
+++ b/camel/camel-mime-message.h
@@ -37,6 +37,7 @@ typedef struct _CamelMimeMessage CamelMimeMessage;
#include "camel-mime-part.h"
#include "camel-folder.h"
#include "camel-session.h"
+#include "camel-recipient.h"
#define RECIPIENT_TYPE_TO "To"
@@ -63,11 +64,8 @@ struct _CamelMimeMessage
gchar *reply_to;
gchar *from;
- GHashTable *recipients;
- /* -> each value is a GList of address strings */
- /* each key is a recipient type string in lower-case */
- /* FIXME: these should be relaced by dedicated structure */
-
+ CamelRecipientTable *recipients;
+
/* other fields */
GHashTable *flags; /* boolean values */
gboolean expunged;
@@ -93,7 +91,7 @@ typedef struct {
const gchar * (*get_subject) (CamelMimeMessage *mime_message);
void (*set_from) (CamelMimeMessage *mime_message, gchar *from);
const gchar * (*get_from) (CamelMimeMessage *mime_message);
- void (*add_recipient) (CamelMimeMessage *mime_message, gchar *recipient_type, gchar *recipient);
+ void (*add_recipient) (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient);
void (*remove_recipient) (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient);
const GList * (*get_recipients) (CamelMimeMessage *mime_message, const gchar *recipient_type);
void (*set_flag) (CamelMimeMessage *mime_message, const gchar *flag, gboolean value);
@@ -123,7 +121,7 @@ const gchar *camel_mime_message_get_subject (CamelMimeMessage *mime_message);
void camel_mime_message_set_from (CamelMimeMessage *mime_message, gchar *from);
const gchar *camel_mime_message_get_from (CamelMimeMessage *mime_message);
-void camel_mime_message_add_recipient (CamelMimeMessage *mime_message, gchar *recipient_type, gchar *recipient);
+void camel_mime_message_add_recipient (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient);
void camel_mime_message_remove_recipient (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient);
const GList *camel_mime_message_get_recipients (CamelMimeMessage *mime_message, const gchar *recipient_type);