[MlMt] Gravatar-hack for MailMate

Benny Kjær Nielsen mailinglist at freron.com
Sun Mar 3 06:22:05 EST 2019


On 1 Mar 2019, at 1:35, Aslak Raanes wrote:

> On 21 Feb 2019, at 15:35, Benny Kjær Nielsen wrote:
>
>> I still haven't integrated MailMate with images from Contacts, but I 
>> realized that it was fairly easy to use the 
>> [Gravatar](https://www.gravatar.com) service.
>
> One alternative could be use [Libravatar](https://www.libravatar.org/) 
> and its [federated api](https://wiki.libravatar.org/api/) which makes 
> it possible to run your own avatar server.

I didn't know that one. It does work:

			{
				formatString = "<img style=\"float: left; height: 60px;\" 
src=\"https://seccdn.libravatar.org/avatar/${from.address.#md5}\"/>";
			},

(But it appears to be slower which emphasizes that MailMate does not 
cache these images.)

> Since MailMate doesn't support the federated api (yet) one could use 
> Apache installed on macOS to redirect or reverse proxy to different 
> avatar servers.

Thanks for sharing. That is definitely taking the hack to new heights :)

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20190303/bca423c3/attachment-0001.html>


More information about the mailmate mailing list