<div class="markdown">
<p>On 12 Mar 2013, at 23:55, Zvi Biener wrote:</p>
<blockquote>
<p>Does anyone know how/if one may customize the long-view of headers that is displayed above the body of any given message?</p>
</blockquote>
<p>Yes, that is possible (both the long and short format).</p>
<blockquote>
<p>I'd love to stick a list of the attachments up there (along w/ standard from, subject, date, and to), if that's possible.</p>
</blockquote>
<p>No, that is not possible. You can get an attachments count or just an indication of whether or not attachments exist, but that's probably it. I can think of ways to make this more flexible, but the long term plan is to completely re-implement the headers view and therefore I'm not really motivated with regard to improving it.</p>
<p>This is the relevant file:</p>
<pre><code>MailMate.app/Contents/Resources/Layouts/headersFormatting.plist
</code></pre>
<p>And this is where you could place a customization/extension of the file:</p>
<pre><code>~/Library/Application Support/MailMate/Resources/Layouts/headersFormatting.plist
</code></pre>
<p>If you do this then you won't see any future changes I make to the default file when MailMate is updated. Note that the files are merged, that is, you should only include the top-level keys you actually change.</p>
<p>For the sake of completion, here is an example of how to show an attachment count. (This is MailMate-hacking and I make no guarantees that it'll work in the future. In fact, I guarantee the opposite.)</p>
<pre><code>{
prefix = { string = "\tAttachments:\t"; fontStyle = bold; color = '#777777'; };
formatString = "${#attachments-count/^0$//}";
},
</code></pre>
<p>The above should be appended to the default <code>longFormatting</code> value. This is probably all a bit confusing. I've attached the full example.</p>
<p>Note that I use a regexp replacement in the format string to convert a count of 0 to an empty string. This has the effect of hiding the attachments line when the count is 0 .</p>
<hr>
<p>Benny</p>
</div>