#####################################
# decoding wrapped sender addresses #
#####################################

prompt "decode sender:        "

DEFAULT='help'

SENDER="SRS0=HrNdli=BZ=host=xyzzy@otherhost.com"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-SRS0 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="SRS1=123456=brightmail.com==654321=abcd=host=xyzzy@earthlink.net"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-SRS1 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="prvs=110def123=xyzzy@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-prvs1 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="prvs=2110def123=xyzzy@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-prvs2 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="prvs=xyzzy=110def123@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-prvs3 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="prvs=xyzzy=2110def123@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-prvs4 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="btv1==714c5c5acad==xyzzy@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-btv1 "$LIST-return-@$HOST" "xyzzy@host"

SENDER="btv1==714C5C5Acad==xyzzy@host"
${EZBIN}/ezmlm-manage "$DIR" </dev/null >"$ERR" 2>&1 || \
	fatal "ezmlm-manage failed"
checkenv decode-btv1 "$LIST-return-@$HOST" "xyzzy@host"

echo "OK"
