I concur that the main element of your solution is as noted above:
In reply to Re^3: Email Thresholding by marinersk in thread Email Thresholding by bfdi533