Send a mail and check it arrives via imap in a specified time