Logged In: NO

I added a $IMAP -> expunge("$INBOX"); before the
disconnect ... it helped with our exchange 2000 server