Implemented mail listing functionality