[MlMt] statistics per weekday / hour ?

Benny Kjær Nielsen mailinglist at freron.com
Tue Jul 15 04:01:56 EDT 2014


On 15 Jul 2014, at 8:16, Max Rydahl Andersen wrote:

> On 14 Jul 2014, at 13:51, Benny Kjær Nielsen wrote:
>
>> On 13 Jul 2014, at 9:59, Max Rydahl Andersen wrote:
>>
>>> Is there a way to have it show the 7 week days (Monday, Tuesday, 
>>> Wednesday), etc. in statistics ?
>>
>> Hmm, only very low-level I think. I think it would be possible to 
>> define a custom specifier for the `Date` header of the message 
>> picking the “Sun/Mon/...” part of it. It could be named Weekday 
>> and then “Date ▸ Weekday” would be available in the GUI. 
>> Interested in more details about this?
>
> Yes :)

Save the following in this file:

	~/Library/Application Support/MailMate/Resources/specifiers.plist

~~~
{
	parsers =
	{
		rawDate = {
			headers = ( "date" );
			specifierRegex = '^\s*([A-Za-z]{3})';
			specifierCaptures = {
				1 = { specifier = "weekday"; };
			};
		};
	};
}
~~~

Then restart MailMate and look for `Date` (without the '*') in the 
window opened via “Other…” in the headers popup. It should have a 
Weekday specifier.

Here is the result of applying this to my All Messages:

![](cid:31625CC1-8494-4FB4-B009-E0108CA5C8C8 at freron.com "Screen Shot 
2014-07-15 at 9.57.26 AM.png")

Sigh, and today is Tuesday :-)

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20140715/3277f366/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-07-15 at 9.57.26 AM.png
Type: image/png
Size: 15989 bytes
Desc: not available
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20140715/3277f366/attachment-0001.png>


More information about the mailmate mailing list