Functionality for proper email item background (may need tweaking)