mblaze/t/1000-mmime.t

18 lines
465 B
Perl
Raw Normal View History

2017-03-30 13:46:47 +00:00
#!/bin/sh -e
cd ${0%/*}
. ./lib.sh
plan 4
cat <<EOF >tmp
References: <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@a> <bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@b> <ccccccccccccccccccccccccccccccc@c>
Body
EOF
2019-03-01 11:30:40 +00:00
# https://github.com/leahneukirchen/mblaze/issues/20
2017-03-30 13:46:47 +00:00
check 'mime -r runs' 'mmime -r <tmp >tmp2'
2017-03-30 14:44:00 +00:00
check 'no overlong lines' 'awk "{if(length(\$0)>=80)exit 1}" <tmp2'
2017-03-30 13:46:47 +00:00
check 'no QP when unecessary' ! grep -qF "=?" tmp2
check 'no further mime necessary' 'mmime -c <tmp2'