mu: attachment names are already quoted

Fixes #796.
This commit is contained in:
djcb 2016-02-15 20:14:24 +02:00
parent 5bdfdf709a
commit 02e26c9cb4
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2011-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2011-2016 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** 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 : "",