[MlMt] Gravatar in header view and other customizations

Padraic Renaghan prenagha at renaghan.com
Tue Jun 13 22:07:29 EDT 2017


> can you point me to which part of the file I need to edit

Look from the From header section, you will see two items in it, Name then Address. In the address section you will find where it adds the h-hide css class if the Name exists. Remove that.
`${from.name:+ h-hide}`

> Which leads me to… do you have plans to incorporate any changes Benny makes to the original file?

Not likely. If there are major changes/improvements I will port those to my customized version, which has now even further moved from the defaults (I am showing Date and Security and Encrypted all on the From line, to the right of the From Name for example).

Mainly an exercise to provide an example to others of ways to customize MM. And maybe encourage built-in Gravatar/Domain support ;-)


2017-06-13 21:58 EDT from Charlie Garrison:

> On 14 Jun 2017, at 9:41, Padraic Renaghan wrote:
>
>>> What are you using for user.png?
>>
>> Colored version of
>> http://fontawesome.io/icon/user/
>
> I may be making some assumptions then. Many of the avatars are showing as ‘missing image’ icon. I was assuming that was due me not having a file that matches code like this:
>
> ```
> prefix = { string = "<tr><td><span class=\"header_name\"><img id=\"h-from-img\" class=\"h-img\" onerror=\"imageError(this)\" src=\"file:///Users/me/Library/Application Support/MailMate/Resources/MmMessagesWebView/user.png\"/></span></td><td><span class=\"header_body\">"; };
> ```
>
> I don’t have the file `…/MmMessagesWebView/user.png`, I just assumed that was cause of ‘missing image’ icon. Without the “Show Inspector” functionality, I can’t tell what the missing image is. Can you suggest what I need to do to fix the missing images?
>
> OK, worked it out (sending this reply anyway in case it helps others).
>
> I copied the FontAwesome user icon, pasted into a new file and saved that as user.png. Everything works now.
>
> Strangely though (to me), the user icon shows briefly, and is then replaced with another icon/avatar. I suspect the user.png is a placeholder, and when it can’t be found, no further processing is done to load images. Now that it can be found, processing continues and gravatar/favicon/etc get loaded.
>
> All looks pretty good now. :-)
>
> Another topic…
>
> You removed the display of email address in favour of name-only. I prefer to have both displayed; can you point me to which part of the file I need to edit? I had a look at the headersFormatting.plist file from MailMate’s Layouts dir, but the two files have diverged enough I’m not sure where to look for code to change.
>
> Which leads me to… do you have plans to incorporate any changes Benny makes to the original file?
>
> Or, Benny, any thoughts on incorporating gravatar/user icons into MailMate?
>
> Thanks,
> Charlie
>
> -- 
>
>     Charlie Garrison                   <charlie at garrison.com.au>
>     Garrison Computer Services      <http://www.garrison.com.au>
>     PO Box 380
>     Tumbarumba NSW 2653  Australia
>
> [Conundrum](http://www.ietf.org/rfc/rfc1855.txt)


> _______________________________________________
> 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/20170613/16594ae9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3522 bytes
Desc: S/MIME digital signature
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20170613/16594ae9/attachment-0001.bin>


More information about the mailmate mailing list