Fix regressions in commit b56e3d43. Make @data local and filter off non-numerical digits from $testno in STATUS_imap.