#!/bin/sh
# ~/bin/.sh/sedc2a0
# See Also comment in ~/.procmailrc
# See Also ~/bin/.sh/demime+emil+delatt

# Both spam & non spam mail is received where exmh display inter word spaces 
# normaly, but vi shows some spaces as strings of 2 bytes 
#	" "
# of hex value C2 A0,
# so vi display as 2 x 4 chars :
#	"\xc2\xa0"
# man ascii shows if high bit is dropped, C2 A0 becomes 42 20 = "B "
# Assume if a line contains more than 5, its spam.
# -----
# non spam mail with loads of these per line from:
#	jes@
#	User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) 
#		Gecko/20100101 Thunderbird/68.7.0
#	MIME-Version: 1.0
#	Content-Type: text/plain; charset=utf-8; format=flowed
#	Content-Language: en-GB
#	Content-Transfer-Encoding: 8bit
# 	-----
#	Athol
#	Mime-version: 1.0
#	Content-type: text/plain; charset=utf-8; format=flowed
#	Content-language: en-GB
#	Content-transfer-encoding: 8bit
#	X-mime-autoconverted: from quoted-printable to 8bit by slim.berklix.org id 04DAxtpV032863
# -----
#  /pub/FreeBSD/branches/-current/src/contrib/sendmail/src/mime.c line 1085
#	"X-MIME-Autoconverted: from %.200s to 8bit by %s id %s",

# Warning Lines below have 2 byte sequences with high parity bits
# This file will nnot work if the 8th (parity) bit is stripped,
# In case it has to be manually repaired:
#	\xc2\xa0	expands to nothing
#	£	expands to pound sterling sequence
sed -e 's/ //g' | \
sed -e 's/£/GBP/g'
