blob: 585b86872e02506d6d2df45d724515c6b449f27e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
unset LC_CTYPE
unset LC_NUMERIC
unset LC_TIME
unset LC_COLLATE
unset LC_MONETARY
unset LC_MESSAGES
unset LC_PAPER
unset LC_NAME
unset LC_ADDRESS
unset LC_TELEPHONE
unset LC_MEASUREMENT
unset LC_IDENTIFICATION
unset LC_ALL
unset CHARSET
unset MM_CHARSET
export LANG
export LC_ALL
echo "foo" >confmdtest
./makemime -c application/octet-stream -C utf-8 -N footest confmdtest
./makemime -c auto -C utf-8 -N text7bit confmdtest
echo "foox" | tr 'x' '\000' >confmdtest
./makemime -c auto -C utf-8 -N binarybase64 confmdtest
echo "Tést" >confmdtest
./makemime -c auto -C utf-8 -N text8bit confmdtest
echo "Test Test Test Test Tést" >confmdtest
./makemime -c auto -C utf-8 -N text8bit confmdtest
x="1234567890"
x="$x$x$x$x$x$x$x$x$x$x"
x="$x$x$x$x$x$x$x$x$x$x"
echo $x >confmdtest
./makemime -c auto -C utf-8 -N textqp confmdtest
x="ééééé"
x="$x$x$x$x$x$x$x$x$x$x"
x="$x$x$x$x$x$x$x$x$x$x"
echo $x >confmdtest
./makemime -c auto -C utf-8 -N textbase64 confmdtest
rm -f confmdtest
./reformime -o 'дададададададададада'
./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?='
./reformime -o 'дададададададададада дададададададададада'
./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsCDQtNCw0LQ=?= =?UTF-8?B?0LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?='
./reformime -o 'дададададададададада foo дададададададададада'
./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?= foo =?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?='
./reformime -o 'дададададададададада foo bar дададададададададада'
./reformime -h '=?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?= foo bar =?UTF-8?B?0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsNC00LDQtNCw0LTQsA==?='
cat >testsuite.msg <<EOF
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=xx
--xx
Content-Type: text/plain
section 1
--xx
Content-Type text/plain
section 2
--xx--
EOF
echo ""
./reformime -X -s1.1 `which cat` <testsuite.msg
./reformime -X -s1.2 `which cat` <testsuite.msg
./reformime -X `which cat` <testsuite.msg
rm -f testsuite.msg
|