#!/bin/sh

mailutil check "$1" >/dev/null 2>&1
if [[ $? -ne 0 && -f "$1" ]]; then
	echo $1 >> corrupt
else
	echo $1 >> not-corrupt
fi
