Comparion statement

Changed the comparing of mail.date to mail.datesent.
-- If I would send a message to my own mail, mail.date would be null.