colour message instead of mark it
[claws.git] / src / procmsg.h
index 143078662b7a0eebdedabd0428749573ff2c460a..7dbc1340e3e76e4eb7232a5b72deaab2c37abaa6 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2001 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,16 @@ typedef enum
        MSG_MOVE        = 1 << 16,
        MSG_COPY        = 1 << 17,
 
+       MSG_LABEL         = 1 << 8 | 1 << 7 | 1 << 6,
+       MSG_LABEL_NONE    = 0 << 8 | 0 << 7 | 0 << 6,
+       MSG_LABEL_ORANGE  = 0 << 8 | 0 << 7 | 1 << 6,
+       MSG_LABEL_RED     = 0 << 8 | 1 << 7 | 0 << 6,
+       MSG_LABEL_PINK    = 0 << 8 | 1 << 7 | 1 << 6,
+       MSG_LABEL_SKYBLUE = 1 << 8 | 0 << 7 | 0 << 6,
+       MSG_LABEL_BLUE    = 1 << 8 | 0 << 7 | 1 << 6,
+       MSG_LABEL_GREEN   = 1 << 8 | 1 << 7 | 0 << 6,
+       MSG_LABEL_BROWN   = 1 << 8 | 1 << 7 | 1 << 6,
+
        MSG_QUEUED      = 1 << 25,
        MSG_DRAFT       = 1 << 26,
        MSG_ENCRYPTED   = 1 << 27,
@@ -60,6 +70,7 @@ typedef enum
                                         MSG_DELETED   | \
                                         MSG_REPLIED   | \
                                         MSG_FORWARDED | \
+                                         MSG_LABEL     | \
                                          MSG_REALLY_DELETED)
 #define MSG_CACHED_FLAG_MASK           (MSG_MIME)
 
@@ -84,6 +95,8 @@ typedef enum
 #define MSG_IS_NEWS(msg)               ((msg & MSG_NEWS) != 0)
 #define MSG_IS_CACHED(msg)             ((msg & MSG_CACHED) != 0)
 
+#define MSG_GET_LABEL(msg)             (msg & MSG_LABEL)
+
 #define WRITE_CACHE_DATA_INT(n, fp) \
        fwrite(&n, sizeof(n), 1, fp)
 
@@ -149,6 +162,7 @@ GSList *procmsg_read_cache          (FolderItem     *item,
 void   procmsg_set_flags               (GSList         *mlist,
                                         FolderItem     *item);
 gint   procmsg_get_last_num_in_cache   (GSList         *mlist);
+void   procmsg_msg_list_free           (GSList         *mlist);
 void   procmsg_write_cache             (MsgInfo        *msginfo,
                                         FILE           *fp);
 void   procmsg_write_flags             (MsgInfo        *msginfo,