diff options
author | Eduardo Chappa <chappa@washington.edu> | 2019-01-20 18:15:09 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2019-01-20 18:15:09 -0700 |
commit | 7959dcd9075d7c9369a0c0843927a489780319bb (patch) | |
tree | 24bd15d846d7324e02a4847a433d83a91adf664b /pith/save.c | |
parent | a43c686472a0c28742d78667f320b6632453cd0f (diff) | |
download | alpine-7959dcd9075d7c9369a0c0843927a489780319bb.tar.xz |
* 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.
Diffstat (limited to 'pith/save.c')
-rw-r--r-- | pith/save.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |