cleanup and remove extraneous functions
differentiate between INBOX and other mailboxes