talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3117fda50fcdd9cb79114b6abd3cad92950b0307
parent 53784ce94392fbd91b43791f44f63ce6124f5d9b
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 25 Jun 2015 14:00:31 +0200

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.

Diffstat:
Msrc/procmsg.c | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git 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)