script for mail client(imap)