preliminary imap check script
working imap shell/perl script, use it in hudcontrol