aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/camel-mime-message.c7
-rw-r--r--camel/camel-mime-message.h16
2 files changed, 23 insertions, 0 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index b39e9e60dd..f190c82f6f 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -47,6 +47,10 @@ static GString *_get_subject (CamelMimeMessage *mime_message);
static void _set_from (CamelMimeMessage *mime_message, GString *from);
static GString *_get_from (CamelMimeMessage *mime_message);
+static void _add_recipient (CamelMimeMessage *mime_message, GString *recipient_type, GString *recipient);
+static void _remove_recipient (CamelMimeMessage *mime_message, GString *recipient_type, GString *recipient);
+static GList *_get_recipients (CamelMimeMessage *mime_message, GString *recipient_type);
+
/* Returns the class for a CamelMimeMessage */
#define CMM_CLASS(so) CAMEL_MIME_MESSAGE_CLASS (GTK_OBJECT(so)->klass)
@@ -73,6 +77,9 @@ camel_mime_message_class_init (CamelMimeMessageClass *camel_mime_message_class)
camel_mime_message_class->get_subject = _get_subject;
camel_mime_message_class->set_from = _set_from;
camel_mime_message_class->get_from = _get_from;
+ camel_mime_message_class->add_recipient = _add_recipient;
+ camel_mime_message_class->remove_recipient = _remove_recipient;
+ camel_mime_message_class->get_recipients = _get_recipients;
/* virtual method overload */
}
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h
index cee58e28b1..c81bbb4fc7 100644
--- a/camel/camel-mime-message.h
+++ b/camel/camel-mime-message.h
@@ -85,6 +85,9 @@ typedef struct {
GString * (*get_subject) (CamelMimeMessage *mime_message);
void (*set_from) (CamelMimeMessage *mime_message, GString *from);
GString * (*get_from) (CamelMimeMessage *mime_message);
+ void (*add_recipient) (CamelMimeMessage *mime_message, GString *recipient_type, GString *recipient);
+ void (*remove_recipient) (CamelMimeMessage *mime_message, GString *recipient_type, GString *recipient);
+ GList * (*get_recipients) (CamelMimeMessage *mime_message, GString *recipient_type);
} CamelMimeMessageClass;
@@ -96,6 +99,19 @@ GtkType camel_mime_message_get_type (void);
/* public methods */
+void set_received_date (CamelMimeMessage *mime_message, GString *received_date);
+GString *get_received_date (CamelMimeMessage *mime_message);
+GString *get_sent_date (CamelMimeMessage *mime_message);
+void set_reply_to (CamelMimeMessage *mime_message, GString *reply_to);
+GString *get_reply_to (CamelMimeMessage *mime_message);
+void set_subject (CamelMimeMessage *mime_message, GString *subject);
+GString *get_subject (CamelMimeMessage *mime_message);
+void set_from (CamelMimeMessage *mime_message, GString *from);
+GString *get_from (CamelMimeMessage *mime_message);
+
+
+
+
#ifdef __cplusplus
}
#endif /* __cplusplus */