From: Andrej Kacian Date: Thu, 25 Jun 2015 12:00:31 +0000 (+0200) Subject: Do not use MsgInfo's plaintext_file for message file. X-Git-Tag: 3.12.0~72 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=3117fda50fcdd9cb79114b6abd3cad92950b0307 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. --- 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)