<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 22 Feb 2019, at 1:20, Charlie Garrison wrote:</p>
<p dir="auto">To everyone: Sorry about the missing attachment <em>and</em> 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.</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">On 22 Feb 2019, at 1:35, Benny Kjær Nielsen wrote:</p>
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<p dir="auto">The attached file needs to be saved in this folder:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">/Users/<username>/Application Support/MailMate/Resources/Layouts/headersFormatting.plist
</code></pre>
</blockquote>
</blockquote>
<p dir="auto">Just to emphasize, it should have been:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">/Users/<username>/Library/Application Support/MailMate/Resources/Layouts/headersFormatting.plist
</code></pre>
<p dir="auto">(And <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Resources/Layouts</code> likely do not exist for most users.)</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">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?</p>
</blockquote>
<p dir="auto">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.)</p>
<p dir="auto">In this case, it's fairly simple what you need to do if you already have the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">longFormatting</code> key defined. The file should start with this:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">{
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>";
},
</code></pre>
<p dir="auto">And then continue with its current content. In other words, the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">children</code> group above just got a new “first child”.</p>
<p dir="auto">The above also shows you that it's possible to click on the avatar to go to the corresponding Gravatar page.</p>
<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>