use globals
Convert IMAP/POP3 object detection to factor in the current mailbox