Do not use MsgInfo's plaintext_file for message file.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 25 Jun 2015 12:00:31 +0000 (14:00 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 25 Jun 2015 12:00:31 +0000 (14:00 +0200)
It is no longer needed, as we no longer write unencrypted
version of an encrypted message anywhere.
Keep the struct member for now, since att_remover plugin is
still (mis)using it.

src/procmsg.c

index 5ff5f4d..1f0a8b9 100644 (file)
@@ -402,17 +402,9 @@ next_folder:
 
 gchar *procmsg_get_message_file_path(MsgInfo *msginfo)
 {
-       gchar *file;
-
        cm_return_val_if_fail(msginfo != NULL, NULL);
 
-       if (msginfo->plaintext_file)
-               file = g_strdup(msginfo->plaintext_file);
-       else {
-               file = folder_item_fetch_msg(msginfo->folder, msginfo->msgnum);
-       }
-
-       return file;
+       return folder_item_fetch_msg(msginfo->folder, msginfo->msgnum);
 }
 
 gchar *procmsg_get_message_file(MsgInfo *msginfo)