Imap script.