npinto/mail-trends — pull request #9 by pallih (2012-07-21 18:33:19+00:00)
Title: Added "days" and "date_from" options

Both are optional.
"days" default to number of days from the unix epoch (effectively all
days) if omitted and "date_from" to todays date.
If "date_from" is enabled then mail from (and including) that date is
fetched for x number of "days" going backwards in time.
Quit if no results are returned.
"date_from" should be in the format: %d-%b-%Y

Examples:

Fetch mail from last 10 days:
--days=10
Fetch all mail between a certain date andthe end of the dataset:
--date_from=12-Apr-2012
Fetch all mail from a certain date until 10 days earlier:
--date_from=12-Apr-2012 --day=10