Fixed issue with selecting non-visible mails

Only mails actually presented in the mailbox (ie., max 50) will now be
considered eligible for grabbing.