From 7959dcd9075d7c9369a0c0843927a489780319bb Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 20 Jan 2019 18:15:09 -0700 Subject: * In some rare cases, when attachments are deleted before saving emails, the filenames will be displayed in RFC1522 representation, instead of in decoded form. Reported and patched by Wang Kang. --- pith/pine.hlp | 6 +++++- pith/save.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'pith') diff --git a/pith/pine.hlp b/pith/pine.hlp index 3709c3a9..03aa9363 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 315 2018-12-16 13:42:34 +Alpine Commit 324 2019-01-20 18:11:06 ============= h_news ================= @@ -275,6 +275,10 @@ Bugs that have been addressed include:
  • When the locale is not set up to UTF-8, alpine might determine the width of a character incorrectly. Reported by Alexandre Fedotov. +
  • In some rare cases, when attachments are deleted before saving + emails, the filenames will be displayed in RFC1522 representation, + instead of in decoded form. Reported and patched by Wang Kang. +
  • When colors are edited from the main setup configuration screen, some color settings are not updated until Alpine is restarted. Reported by Andrew Hill. diff --git a/pith/save.c b/pith/save.c index 28dd3333..83a1d570 100644 --- a/pith/save.c +++ b/pith/save.c @@ -1625,7 +1625,8 @@ save_ex_explain_parts(struct mail_bodystruct *body, int depth, long unsigned int depth, depth, " ", body_type_names(body->type), MAILTMPLEN-300, body->subtype ? body->subtype : "Unknown", name ? " (Name=\"" : "", - name ? name : "", + name ? (char *) rfc1522_decode_to_utf8((unsigned char *)tmp_20k_buf, + SIZEOF_20KBUF, name) : "", name ? "\")" : ""); if(!save_ex_output_line(tmp, len, pc)) return(0); -- cgit v1.2.3-54-g00ecf