Above the most detailed program you see during this talk. It shows how simple it is to use Mail::Box. You don't have to know anything about delayed parsing or even the type of the folder. Yes, you should include some tests in your real program.
Mail::Box