src/compose.[ch]
[claws.git] / src / procmsg.h
index f2043a1fa5cc30fe95c02068cea35777ed591b29..b40978e52f0b6b6ab38d8a6c1ef62970cfc65ba7 100644 (file)
@@ -122,9 +122,6 @@ typedef enum
 #define MSG_SET_COLORLABEL_VALUE(msg, val) \
        MSG_SET_PERM_FLAGS(msg, ((((guint)(val)) & 7) << MSG_CLABEL_SBIT))
 
-#define MSG_COLORLABEL_TO_FLAGS(val) ((((guint)(val)) & 7) << MSG_CLABEL_SBIT)
-#define MSG_COLORLABEL_FROM_FLAGS(val) (val >> MSG_CLABEL_SBIT)
-
 #define MSG_IS_MOVE(msg)               (((msg).tmp_flags & MSG_MOVE) != 0)
 #define MSG_IS_COPY(msg)               (((msg).tmp_flags & MSG_COPY) != 0)
 
@@ -203,6 +200,8 @@ struct _MsgInfo
        /* used only for encrypted messages */
        gchar *plaintext_file;
        guint decryption_failed : 1;
+
+       gint priority;
 };
 
 GHashTable *procmsg_msg_hash_table_create      (GSList         *mlist);
@@ -220,6 +219,11 @@ void       procmsg_write_cache             (MsgInfo        *msginfo,
                                         FILE           *fp);
 void   procmsg_write_flags             (MsgInfo        *msginfo,
                                         FILE           *fp);
+void   procmsg_flush_mark_queue        (FolderItem     *item,
+                                        FILE           *fp);
+void   procmsg_add_flags               (FolderItem     *item,
+                                        gint            num,
+                                        MsgFlags        flags);
 void   procmsg_get_mark_sum            (const gchar    *folder,
                                         gint           *new,
                                         gint           *unread,
@@ -245,7 +249,11 @@ FILE   *procmsg_open_message_decrypted     (MsgInfo        *msginfo,
 gboolean procmsg_msg_exist             (MsgInfo        *msginfo);
 
 void   procmsg_empty_trash             (void);
-gint   procmsg_send_queue              (void);
+gint   procmsg_send_queue              (FolderItem     *queue,
+                                        gboolean        save_msgs);
+gint   procmsg_save_to_outbox          (FolderItem     *outbox,
+                                        const gchar    *file,
+                                        gboolean        is_queued);
 void   procmsg_print_message           (MsgInfo        *msginfo,
                                         const gchar    *cmdline);
 
@@ -256,11 +264,4 @@ gint procmsg_cmp_msgnum_for_sort   (gconstpointer   a,
                                         gconstpointer   b);
 gint procmsg_send_message_queue                (const gchar *file);
 
-void procmsg_msginfo_set_flags         (MsgInfo *msginfo,
-                                        MsgPermFlags perm_flags,
-                                         MsgTmpFlags tmp_flags);
-void procmsg_msginfo_unset_flags       (MsgInfo *msginfo,
-                                        MsgPermFlags perm_flags,
-                                         MsgTmpFlags tmp_flags);
-
 #endif /* __PROCMSG_H__ */