src/compose.[ch]
[claws.git] / src / procmsg.c
index c411b4d4aae45b110b55f9f4153610edbfa0e4d9..42a153abe876e432f68cf3932b42023d97850b4a 100644 (file)
@@ -37,6 +37,8 @@
 #if USE_GPGME
 #  include "rfc2015.h"
 #endif
+#include "alertpanel.h"
+#include "news.h"
 
 typedef struct _FlagInfo       FlagInfo;
 
@@ -244,6 +246,7 @@ GSList *procmsg_read_cache(FolderItem *item, gboolean scan_file)
                READ_CACHE_DATA(msginfo->references, fp);
                 READ_CACHE_DATA(msginfo->xref, fp);
 
+               READ_CACHE_DATA_INT(msginfo->priority, fp);
 
                MSG_SET_PERM_FLAGS(msginfo->flags, default_flags.perm_flags);
                MSG_SET_TMP_FLAGS(msginfo->flags, default_flags.tmp_flags);
@@ -390,6 +393,7 @@ void procmsg_write_cache(MsgInfo *msginfo, FILE *fp)
        WRITE_CACHE_DATA(msginfo->references, fp);
        WRITE_CACHE_DATA(msginfo->xref, fp);
 
+       WRITE_CACHE_DATA_INT(msginfo->priority, fp);
 }
 
 void procmsg_write_flags(MsgInfo *msginfo, FILE *fp)
@@ -1073,6 +1077,8 @@ MsgInfo *procmsg_msginfo_copy(MsgInfo *msginfo)
        MEMBCOPY(score);
        MEMBCOPY(threadscore);
 
+       MEMBCOPY(priority);
+
        return newmsginfo;
 }
 
@@ -1269,7 +1275,7 @@ gint procmsg_send_message_queue(const gchar *file)
                if ((tmpfp = fopen(tmp, "wb")) == NULL) {
                        FILE_OP_ERROR(tmp, "fopen");
                        newsval = -1;
-                       alertpanel_error(_("Could not create temorary file for news sending."));
+                       alertpanel_error(_("Could not create temporary file for news sending."));
                } else {
                        if (change_file_mode_rw(tmpfp, tmp) < 0) {
                                FILE_OP_ERROR(tmp, "chmod");