Removed colours earlier, so no need for this part of the comment.
Added full emailbox check and other minor improvements to the code.