return file_list;
}
+void procmsg_message_file_list_free(MsgInfoList *file_list)
+{
+ GSList *cur;
+ MsgFileInfo *fileinfo;
+
+ for (cur = file_list; cur != NULL; cur = cur->next) {
+ fileinfo = (MsgFileInfo *)cur->data;
+ g_free(fileinfo->file);
+ g_free(fileinfo->flags);
+ g_free(fileinfo);
+ }
+
+ g_slist_free(file_list);
+}
+
FILE *procmsg_open_message(MsgInfo *msginfo)
{
FILE *fp;
MsgInfo *procmsg_msginfo_get_full_info(MsgInfo *msginfo)
{
+#if 0
MsgInfo *full_msginfo;
gchar *file;
+#endif
if (msginfo == NULL) return NULL;
+ /*
+ * In Claws we simply return a new reference to the same msginfo.
+ * otherwise the new msginfo has wrong flags and causes incorrect
+ * msgcounts... TODO: fill in data from full_msginfo into msginfo,
+ * we can then keep the new data in the cache
+ */
+ return procmsg_msginfo_new_ref(msginfo);
+#if 0
file = procmsg_get_message_file(msginfo);
if (!file) {
g_warning("procmsg_msginfo_get_full_info(): can't get message file.\n");
g_free(file);
if (!full_msginfo) return NULL;
- /* CLAWS: make sure we add the missing members; see:
- * procheader.c::procheader_get_headernames() */
- if (!msginfo->xface)
- msginfo->xface = g_strdup(full_msginfo->xface);
- if (!msginfo->dispositionnotificationto)
- msginfo->dispositionnotificationto =
- g_strdup(full_msginfo->dispositionnotificationto);
- if (!msginfo->returnreceiptto)
- msginfo->returnreceiptto = g_strdup
- (full_msginfo->returnreceiptto);
- procmsg_msginfo_free(full_msginfo);
-
- return procmsg_msginfo_new_ref(msginfo);
-#if 0
full_msginfo->msgnum = msginfo->msgnum;
full_msginfo->size = msginfo->size;
full_msginfo->mtime = msginfo->mtime;
gchar *procmsg_get_message_file_path (MsgInfo *msginfo);
gchar *procmsg_get_message_file (MsgInfo *msginfo);
GSList *procmsg_get_message_file_list (MsgInfoList *mlist);
+void procmsg_message_file_list_free (MsgInfoList *file_list);
FILE *procmsg_open_message (MsgInfo *msginfo);
#if USE_GPGME
FILE *procmsg_open_message_decrypted (MsgInfo *msginfo,