[MlMt] Customising the headers view
Philip Paeps
philip at trouble.is
Tue Sep 1 12:24:40 EDT 2015
On 2015-09-01 11:04:24 (+0200), Benny Kjær Nielsen
<mailinglist at freron.com> wrote:
> On 31 Aug 2015, at 10:41, Philip Paeps wrote:
>> o Is there a way to add the time zone to the Date field? Or more
>> generally
>> change the formatting of the date? I assume it's a strftime string
>> in a
>> plist file somewhere but I haven't been able to find it.
>
> It's actually hard coded and the only format is one that converts the
> dates to the local time zone.
>
> If you want to go low level then you can customize the
> `headersFormatting.plist` as described
> [here](http://manual.mailmate-app.com/customization). Don't forget to
> copy the file to `~/Library/Application
> Support/MailMate/Resources/Layouts/headersFormatting.plist`.
>
> You would then want to replace the following line:
>
> formatString = "${#date.formatted}";
>
> with this
>
> formatString = "${#date}";
>
> But you'll get a raw date formatted like this: `2015-08-31 10:41:44
> +0200`
By a remarkable coincidence, that's exactly the format I wanted to
configure. Thanks! :-)
> Obviously, it would be nice if I rethought how dates work in general.
> It's currently a bit messy and not very flexible.
A possibly related question: I've configured my attribution line (On ...
wrote:) to include the timezone. Unfortunately, it represents the date
in the timezone I'm sending the reply. Is it possible to configure it
to use the timezone of the message I'm replying to? I expect that's
also hardcoded.
>> o Can I add headers to this view somehow?
>
> Yes, by customizing the same file, but its format is not documented.
> You can probably get far using a bit of copy/paste, but you are also
> welcome to ask questions. Of course, this is very low level and I make
> no guarantees that I won't change how it works some day.
I'll have a go at that. :) I'm actually getting used to the default
uncluttered view. More space for the message itself and if I need to
see more headers, I can just look at the raw message.
Thanks for your help.
Philip
--
Philip Paeps
Senior Reality Engineer
Ministry of Information
More information about the mailmate
mailing list