fix regression on mail delete

commit a6577bb64c98dfbe introduced issue #64