<div dir="ltr"><br>I need to create a report for a bunch of mbox files that shows the number of mail received for the past 7 days and the unread count (for those messages)<br><br>Getting the read/unread is easy enough but I'm not sure how to go about working with the date to limit it to the last 7 days worth of messages..<br>
<br>Is there an appropriate library or convert it to something like Unix time and use arithmetic  ?<br><br>I've had a look a some of the email archiving programs but nothing really looks to do what I want, mbox grep seems promising but I'm not sure how to go about appropriate regex on the the date field<br>
<br>Any help appreciated<br><br>Regards,<br><br>Nathan.<br></div>