<!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">I copied the file so I have 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">$ ls ~/Library/Application\ Support/MailMate/Resources/Layouts
Mailboxes               
headersFormatting.plist
</code></pre>

<p dir="auto">but after restarting nothing seem to happen....</p>

<p dir="auto">/max<br>
<a href="https://xam.dk/about" style="color:#3983C4">https://xam.dk/about</a></p>

<p dir="auto">On 22 Feb 2019, at 11:16, Benny Kjær Nielsen wrote:</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: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:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<p dir="auto">On 22 Feb 2019, at 1:35, Benny Kjær Nielsen wrote:</p>

<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB">
<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:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<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>

<hr style="background:#333; background-image:linear-gradient(to right, #ccc, #333, #ccc); border:0; height:1px" height="1">

<p dir="auto">mailmate mailing list<br>
<a href="mailto:mailmate@lists.freron.com" style="color:#777">mailmate@lists.freron.com</a><br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#777">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote>
</div>
</div>
</body>
</html>