Fix IMAP segment

I needed these changes to get the imap email segment working. I was getting AttributeError's in several places before. This works fine with gmail (which is the default) on 3 of my accounts. Also I return just the unread_count vs the hash. Not sure the best practice there but it seemed overkill to hard code the highlight group.