From 3117fda50fcdd9cb79114b6abd3cad92950b0307 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Thu, 25 Jun 2015 14:00:31 +0200 Subject: [PATCH] Do not use MsgInfo's plaintext_file for message file. 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 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/procmsg.c b/src/procmsg.c index 5ff5f4d7d..1f0a8b96f 100644 --- a/src/procmsg.c +++ b/src/procmsg.c @@ -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) -- 2.25.1