From 02e26c9cb4624a71725df7bbd9b06cbe313099d2 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 15 Feb 2016 20:14:24 +0200 Subject: [PATCH] mu: attachment names are already quoted Fixes #796. --- lib/mu-msg-sexp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mu-msg-sexp.c b/lib/mu-msg-sexp.c index 4d2f9a9b..934b3ac6 100644 --- a/lib/mu-msg-sexp.c +++ b/lib/mu-msg-sexp.c @@ -1,5 +1,5 @@ /* -** Copyright (C) 2011-2013 Dirk-Jan C. Binnema +** Copyright (C) 2011-2016 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the @@ -353,8 +353,8 @@ get_part_type_string (MuMsgPartType ptype) static void each_part (MuMsg *msg, MuMsgPart *part, PartInfo *pinfo) { - char *name, *tmp, *parttype; - char *tmpfile; + char *name, *tmp, *parttype; + char *tmpfile; name = mu_msg_part_get_filename (part, TRUE); tmpfile = get_temp_file_maybe (msg, part, pinfo->opts); @@ -366,7 +366,7 @@ each_part (MuMsg *msg, MuMsgPart *part, PartInfo *pinfo) ":attachment %s :size %i %s %s)", pinfo->parts ? pinfo->parts: "", part->index, - name ? mu_str_escape_c_literal(name, TRUE) : "noname", + name ? mu_str_escape_c_literal(name, FALSE) : "noname", part->type ? part->type : "application", part->subtype ? part->subtype : "octet-stream", tmpfile ? " :temp" : "", tmpfile ? tmpfile : "",