[MlMt] Gravatar-hack for MailMate

Max Rydahl Andersen max.andersen at gmail.com
Fri Feb 22 17:22:27 EST 2019


I copied the file so I have this:

```
$ ls ~/Library/Application\ Support/MailMate/Resources/Layouts
Mailboxes
headersFormatting.plist
```

but after restarting nothing seem to happen....


/max
https://xam.dk/about

On 22 Feb 2019, at 11:16, Benny Kjær Nielsen wrote:

> On 22 Feb 2019, at 1:20, Charlie Garrison wrote:
>
> To everyone: Sorry about the missing attachment *and* the wrong path. 
> I've attached a new file, because the other one was actually much more 
> complex than it needed to be (because I was trying out different 
> approaches to the problem). They are functionally equivalent though.
>
>> On 22 Feb 2019, at 1:35, Benny Kjær Nielsen wrote:
>>
>>> The attached file needs to be saved in this folder:
>>>
>>>     /Users/<username>/Application 
>>> Support/MailMate/Resources/Layouts/headersFormatting.plist
>
> Just to emphasize, it should have been:
>
> 	/Users/<username>/Library/Application 
> Support/MailMate/Resources/Layouts/headersFormatting.plist
>
> (And `Resources/Layouts` likely do not exist for most users.)
>
>> I've already got a custom headersFormatting.plist which is quite 
>> different from the one you supplied. Would you be willing to point 
>> out what the differences are for the Gravatar icon? Or, is there any 
>> docco to explain the structure of the headersFormatting.plist file?
>
> There is no documentation. It really is just for users that would 
> rather tinker with low level files than wait for me to implement some 
> specific feature. (There are no guarantees I won't change the format 
> of one or more of these files in the future.)
>
> In this case, it's fairly simple what you need to do if you already 
> have the `longFormatting` key defined. The file should start with 
> this:
>
> ~~~
> {
> 	longFormatting =
> 	{
> 		children =
> 		(
> 			// Gravatar example with link
> 			{
> 				formatString = "<a 
> href=\"https://www.gravatar.com/${from.address.#md5}\"><img 
> style=\"float: left; height: 60px;\" 
> src=\"https://www.gravatar.com/avatar/${from.address.#md5}\"/></a>";
> 			},
> ~~~
>
> And then continue with its current content. In other words, the 
> `children` group above just got a new “first child”.
>
> The above also shows you that it's possible to click on the avatar to 
> go to the corresponding Gravatar page.
>
> -- 
> Benny
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> https://lists.freron.com/listinfo/mailmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20190222/94945a67/attachment.html>


More information about the mailmate mailing list