Fix logic error in do_mailbox_in when processing Event-Number.
I found this while running a mailbox_in command by hand to test a potential fix for one of the regression test items that had failed under Python 3. The current code accesses the eventnum variable in an if statement even if it was not assigned to because a ValueError was thrown just before. This patch fixes that.