aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-summary.h')
-rw-r--r--camel/camel-folder-summary.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h
index c173a6080b..93438fcd7a 100644
--- a/camel/camel-folder-summary.h
+++ b/camel/camel-folder-summary.h
@@ -79,9 +79,15 @@ enum _CamelMessageFlags {
typedef struct _CamelFlag {
struct _CamelFlag *next;
- char name[1];
+ char name[1]; /* name allocated as part of the structure */
} CamelFlag;
+typedef struct _CamelTag {
+ struct _CamelTag *next;
+ char *value;
+ char name[1]; /* name allocated as part of the structure */
+} CamelTag;
+
/* information about a given object */
typedef struct {
/* public fields */
@@ -102,6 +108,7 @@ typedef struct {
struct _header_references *references; /* from parent to root */
struct _CamelFlag *user_flags;
+ struct _CamelTag *user_tags;
/* tree of content description - NULL if it is not available */
CamelMessageContentInfo *content;
@@ -218,6 +225,12 @@ void camel_flag_set(CamelFlag **list, const char *name, gboolean state);
int camel_flag_list_size(CamelFlag **list);
void camel_flag_list_free(CamelFlag **list);
+/* message tag operations */
+const char *camel_tag_get(CamelTag **list, const char *name);
+void camel_tag_set(CamelTag **list, const char *name, const char *value);
+int camel_tag_list_size(CamelTag **list);
+void camel_tag_list_free(CamelTag **list);
+
/* message info utils */
void camel_message_info_dup_to(const CamelMessageInfo *from, CamelMessageInfo *to);
void camel_message_info_free(CamelMessageInfo *mi);