Describe how mailcheck works and how to modify it in a bit more detail