[MlMt] Customizing Headers Display

Zvi Biener zvistrash at gmail.com
Wed Mar 13 12:43:13 UTC 2013


Super. Thanks.
Zvi


On 13 Mar 2013, at 6:50, Benny Kjær Nielsen wrote:

> On 12 Mar 2013, at 23:55, Zvi Biener wrote:
>
>> Does anyone know how/if one may customize the long-view of headers 
>> that is displayed above the body of any given message?
>
> Yes, that is possible (both the long and short format).
>
>> I'd love to stick a list of the attachments up there (along w/ 
>> standard from, subject, date, and to), if that's possible.
>
> 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.
>
> This is the relevant file:
>
> 	MailMate.app/Contents/Resources/Layouts/headersFormatting.plist
>
> And this is where you could place a customization/extension of the 
> file:
>
> 	~/Library/Application 
> Support/MailMate/Resources/Layouts/headersFormatting.plist
>
> 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.
>
> 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.)
>
> 	{
> 		prefix = { string = "\tAttachments:\t"; fontStyle = bold; color = 
> '#777777'; };
> 		formatString = "${#attachments-count/^0$//}";
> 	},
>
> The above should be appended to the default `longFormatting` value. 
> This is probably all a bit confusing. I've attached the full example.
>
> 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 .
>
> -- 
> Benny
>
> [headersFormatting.plist]
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> http://lists.freron.com/listinfo/mailmate


More information about the mailmate mailing list