aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-17 21:31:15 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-17 21:31:15 +0800
commitd609c57cba262bad9aa2f1096b241b1158bd7a86 (patch)
tree7272274c4b2383e7c044b5ba17c97e0f14c017a0
parent6c99eb2e0cbc6f383aac6d34aacaa8cbceb2600e (diff)
downloadgsoc2013-evolution-d609c57cba262bad9aa2f1096b241b1158bd7a86.tar.gz
gsoc2013-evolution-d609c57cba262bad9aa2f1096b241b1158bd7a86.tar.zst
gsoc2013-evolution-d609c57cba262bad9aa2f1096b241b1158bd7a86.zip
sync
svn path=/trunk/; revision=927
-rw-r--r--camel/camel-mime-message.c20
-rw-r--r--camel/camel-mime-message.h2
2 files changed, 22 insertions, 0 deletions
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;
+}
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h
index 53cf269ea8..e1d8297c27 100644
--- a/camel/camel-mime-message.h
+++ b/camel/camel-mime-message.h
@@ -119,6 +119,8 @@ GList *get_recipients (CamelMimeMessage *mime_message, GString *recipient_type);
void set_flag (CamelMimeMessage *mime_message, GString *flag, gboolean value);
gboolean get_flag (CamelMimeMessage *mime_message, GString *flag);
+guint get_message_number (CamelMimeMessage *mime_message);
+
#ifdef __cplusplus
}