I use sqlite here for possibility of simple querying. The code already does store e-mails in folders:
`log/email/<#run>/<test_name>/<time-arrived>-<seq# if more emails in same sec>.eml` with symlink `log/email/latest -> log/email/<latest #run>`