From 4fbfa159384d4f0230d96999164b630f17c5e4a5 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Mon, 19 Sep 2016 18:23:39 +0200 Subject: [PATCH] decode rfc2047 header in mhparse attachment filenames are mostly rfc2047 encoded. Now all mime header are decoded to avoid problems. --- test/tests/mhstore/test-filenames | 86 +++++++++++++++++++++++++++++++++++++ uip/mhparse.c | 12 +++++- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100755 test/tests/mhstore/test-filenames diff --git a/test/tests/mhstore/test-filenames b/test/tests/mhstore/test-filenames new file mode 100755 index 0000000..a1d3c3d --- /dev/null +++ b/test/tests/mhstore/test-filenames @@ -0,0 +1,86 @@ +#!/bin/sh +###################################################### +# +# Test filenames +# +###################################################### + +. "$MH_TEST_COMMON" + +require_locale en_US.utf-8 en_US.utf8 +LC_ALL=en_US.UTF-8 +export LC_ALL + +tempdir=`TMPDIR=$MH_TEST_DIR mktemp -d -t "XXXXX"` +cd $tempdir + +msgfile=`mhpath b` +cat > $msgfile <c_begin = ftell(in) + 1; continue; -- 1.7.10.4