Added support for saving messages into ham and spam folders