From d609c57cba262bad9aa2f1096b241b1158bd7a86 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Mon, 17 May 1999 13:31:15 +0000 Subject: sync svn path=/trunk/; revision=927 --- camel/camel-mime-message.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'camel/camel-mime-message.c') diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index e53a41f8ad..5de5af76e3 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -54,6 +54,9 @@ static GList *_get_recipients (CamelMimeMessage *mime_message, GString *recipien static void _set_flag (CamelMimeMessage *mime_message, GString *flag, gboolean value); static gboolean _get_flag (CamelMimeMessage *mime_message, GString *flag); +static void _set_message_number (CamelMimeMessage *mime_message, guint number); +static guint _get_message_number (CamelMimeMessage *mime_message); + /* Returns the class for a CamelMimeMessage */ #define CMM_CLASS(so) CAMEL_MIME_MESSAGE_CLASS (GTK_OBJECT(so)->klass) @@ -85,6 +88,8 @@ camel_mime_message_class_init (CamelMimeMessageClass *camel_mime_message_class) camel_mime_message_class->get_recipients = _get_recipients; camel_mime_message_class->set_flag = _set_flag; camel_mime_message_class->get_flag = _get_flag; + camel_mime_message_class->set_message_number = _set_message_number; + camel_mime_message_class->get_message_number = _get_message_number; /* virtual method overload */ } @@ -439,7 +444,22 @@ get_flag (CamelMimeMessage *mime_message, GString *flag) +static void +_set_message_number (CamelMimeMessage *mime_message, guint number) +{ + mime_message->message_number = number; +} +static guint +_get_message_number (CamelMimeMessage *mime_message) +{ + return mime_message->message_number; +} +guint +get_message_number (CamelMimeMessage *mime_message) +{ + return CMM_CLASS (mime_message)->get_message_number; +} -- cgit