Add imap-check script.