fixed issue in checkemails.php: the first time checking an unseen email, it seems that the Unseen property in the header is null, causing the message not to be parsed.