in reply to Mail::Box fails miserably when trying to open 30_000 messages maildir
"30000" smells like "signed 16-bit overflow". This problem may even be in an underlying system library (because Mail::Box doesn't use XS).
I'd start by investigating which mail box format the production environment uses.
In Section
Seekers of Perl Wisdom