Respect the currently-selected inbox

This makes the new scan somewhat useful: at least it can look at
different folders.