Added filter to ignore mailboxes with no pending messages. Fixes #1