fix mail API with block is ignored bug

Fix #12