Hi Ralph: On Thu 8/16/18 19:20 +0100 Ralph Corderoy wrote: >> What's the (config file?) fix so the string in >> filename=SOME_UTF-8_CODED_STRING >> associated w/below attachment headers >> is properly decoded? >... >> Content-Disposition: attachment; >> filename="=?UTF-8?b?Y2xpbWF0ZSBmbHllciB1cGRhdGVkLnBkZg==?=" >> >> $ scan -forma '%{Content-Disposition}' . >> attachment; filename="=?UTF-8?b?Y2xpbWF0ZSBmbHllciB1cGRhdGVkLnBkZg==?=" >> $ scan -forma '%(decode{Content-Disposition})' . >> attachment; filename="climate flyer updated.pdf" >> $ > >See mh-format(5). But you might have to tell us more what you're trying >to do.
Here's the issue: $ egrep '^(mhlist|mhstore): ' ~/.mh_profile mhlist: -prefer text/plain -verbose -disposition mhstore: -auto -clobber suffix -prefer text/plain $ mhlist msg part type/subtype size description 1446 multipart/mixed 235K boundary="----=_Part_8269689_1936031958.1534387543169" 1 multipart/alternative 7696 boundary="----=_Part_8269688_1544455536.1534387543164" 1.1 text/plain 2220 charset="UTF-8" 1.2 text/html 4883 charset="UTF-8" 2 application/pdf 167K disposition "attachment" filename="=?UTF-8?b?Y2xpbWF0ZSBmbHllciB1cGRhdGVkLnBkZg==?=" $ mhstore storing message 1446 part 1.1 as file tmp/nmh/1446.1.1.txt storing message 1446 part 2 as file tmp/nmh/=?UTF-8?b?Y2xpbWF0ZSBmbHllciB1cGRhdGVkLnBkZg==?= $ Notice the filename for part 2 is munged. -- thanks, Tom -- nmh-workers https://lists.nongnu.org/mailman/listinfo/nmh-workers