added some logging to mailbox scanning