bug fixes, make mail as send, do not delete from msg collection