From 483804aac86969591d7aefa186f52ca167da0381 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Thu, 13 May 1999 17:04:54 +0000 Subject: a bunch of get/set header field method done. Does nothing yet though. * camel/camel-mime-message.h: a bunch of get/set header field method done. Does nothing yet though. * camel/camel-mime-message.[ch] : new file. svn path=/trunk/; revision=923 --- camel/camel-mime-message.h | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-message.h') diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h index 4773e04ed0..cee58e28b1 100644 --- a/camel/camel-mime-message.h +++ b/camel/camel-mime-message.h @@ -12,7 +12,7 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A MESSAGEICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License @@ -33,6 +33,8 @@ extern "C" { #include #include "camel-mime-part.h" +#include "camel-folder.h" +#include "camel-session.h" @@ -45,7 +47,27 @@ extern "C" { typedef struct { + CamelMimePart *parent_class; + /* header fields */ + GString *received_date; + GString *sent_date; + + GString *subject; + GString *reply_to; + + GString *from; + GHashTable *recipients; + /* -> each value is a GList of address strings */ + /* each key is a recipient type string in lower-case */ + + /* other fields */ + GHashTable *flags; /* boolean values */ + gboolean expunged; + guint message_number; /* set by folder object when retrieving message */ + CamelFolder *folder; + CamelSession *session; + } CamelMimeMessage; @@ -54,6 +76,16 @@ typedef struct { CamelDataWrapperClass parent_class; /* Virtual 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); + } CamelMimeMessageClass; -- cgit v1.2.3