Blob Blame History Raw
#! /bin/sh

. ${srcdir:=.}/t.frame

cat > "$TMPDIR"/input <<_EOF
From nobody@example.com
Subject: **not interesting**
Content-Type: text/html

&#x41;BC;
&#68;EF&#71;
&#x48;IJK&#x4c;
&#x41;BC;&#151;&#68;EF&#71;

Get<!--vE--> &#x41;n<!--4-->y&#x6F;&#x6E;&#x65;&#151;&#x45;&#x6c;&#x73;&#x65; R&#88;<!--cs-->&#x59;
<IMG SRC="http://www.prerequisite.com@w%77w.o%6E%6C%69neme%64%73%74%6F%72%65%2E%62i%7A/%65%76/sv%2E%70%68p?e=dvsr@sonic-pik.com">
_EOF

cat > "$TMPDIR"/reference <<_EOF
ABC
DEFG
HIJKL
ABC
DEFG
Get
Anyone
Else
RXY
SRC
http
www.prerequisite.com
www.onlinemedstore.biz
sv.php
dvsr
sonic-pik.com
_EOF


$BOGOLEXER -p -C < "$TMPDIR"/input | grep -v ":" > "$TMPDIR"/output
cmp "$TMPDIR"/reference "$TMPDIR"/output \
|| diff "$TMPDIR"/reference "$TMPDIR"/output