[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Mike Brasch
On 6 Jun 2011, at 11:11, Benny Kj?r Nielsen wrote:

> A tooltip would then look something like:
>
>   Benny Kj?r Nielsen
>   17 minutes ago

Great. This is what I'm looking for. 

-- 
Gru?
Mike


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Mike Brasch
On 6 Jun 2011, at 10:35, Benny Kj?r Nielsen wrote:

> I have no (easy) control of the timing of tool tips, but the following 
> can be done for any application:
>
>   defaults write com.freron.MailMate NSInitialToolTipDelay -int 100

This is no option. In most cases, tool tips are rather annoying. But 
here they where rather helpful if they appear sooner.

-- 
Gru?
Mike


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Mike Brasch
On 6 Jun 2011, at 9:36, Benny Kj?r Nielsen wrote:

> My first thought was that this would just break the thread arcs, 
> because of missing messages in the thread. But then I realized that 
> there can be duplicate messages if the thread is a mailing list. Is 
> this your problem? (Maybe provide a use case if it isn't.)

Normally, a mailing list sends you back your postings as normal massages 
to list members. Gmail filters out your own postings, wherefore I don't 
like Gmail. This behavior breaks threads on mail clients which don't 
unite message boxes with send box. Generally I don't like this behavior.

> To me the thread arcs are mostly a proof-of-concept and I haven't 
> really used it much myself :-)

You should? ;-)

> If you just want to exclude messages that are in your own ?Sent 
> Messages? mailbox then you can change the transformation used to the 
> following (in the thread arcs part of the plist file):
>
>   transformation = "($ALL_MESSAGES xor $SENT).filter(#thread-id =[c] 
> $mainOutline.#thread-id)";

Ye. This does exactly what I want.



If you have more Infos like that, please tell. :-))

-- 
Gru?
Mike


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Benny Kjær Nielsen
On 5 Jun 2011, at 20:44, Mike Brasch wrote:

> Oh, yes please. I think, the tool tips should also appear earlier and 
> a little bit clearly using newlines, for example:
>
> 
> 

I looked in the code and realized you can already do this yourself (long 
time since I wrote the code). Add something like the following to the 
plist file (same place as the transformation):

toolTipFormatting = { formatString = 'From: 
${from.name:${from.address}}\nSubject: ${subject}'; };

Since the subject rarely changes I have changed the default to:

toolTipFormatting = { formatString = 
'${from.name:${from.address}}\n${#date.relative}'; };

A tooltip would then look something like:

Benny Kj?r Nielsen
17 minutes ago

-- 
Benny


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Benny Kjær Nielsen
On 5 Jun 2011, at 20:44, Mike Brasch wrote:

>> No, there is no option to do that. I guess there could be some system 
>> for assigning colors to states like unread, flagged, etc. I'll think 
>> about that.
>
> Oh, yes please. I think, the tool tips should also appear earlier

I have no (easy) control of the timing of tool tips, but the following 
can be done for any application:

defaults write com.freron.MailMate NSInitialToolTipDelay -int 100

The value is in milliseconds. The above is then going to show a tooltip 
after 1/10 of a second. It affects all tooltips in the application 
except those in NSTextViews I believe (the headers view is an 
NSTextView).

You can also set the value system-wide:

defaults write -g NSInitialToolTipDelay -int 100

> and a little bit clearly using newlines, for example:
>
> 
> 

Noted.

-- 
Benny


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Benny Kjær Nielsen
On 6 Jun 2011, at 0:22, Mike Brasch wrote:

> On 3 Jun 2011, at 0:57, Benny Kj?r Nielsen wrote:
>
>> I have attached a plist file which almost does what you want. Due to 
>> one of the layout bugs I had to fix the width of the thread arcs 
>> view. You can change this width if you like to your preferred 
>> setting.
>
> Is it possible to get thread arc without the messages I sent?

My first thought was that this would just break the thread arcs, because 
of missing messages in the thread. But then I realized that there can be 
duplicate messages if the thread is a mailing list. Is this your 
problem? (Maybe provide a use case if it isn't.)

To me the thread arcs are mostly a proof-of-concept and I haven't really 
used it much myself :-)

If you just want to exclude messages that are in your own ?Sent 
Messages? mailbox then you can change the transformation used to the 
following (in the thread arcs part of the plist file):

transformation = "($ALL_MESSAGES xor $SENT).filter(#thread-id =[c] 
$mainOutline.#thread-id)";

Translation of the above: Take any message in ?All Messages? (except 
those in ?Sent Messages?) which is in the same thread as one of the 
currently selected messages in the main messages outline. (The [c] means 
case-insensitive which is not really necessary, but it makes it a bit 
faster.)

It would be nice (and faster) if the transformation could be based on 
the currently selected mailbox(es), but I don't think that currently 
works (a quick experiment failed). I'll look into that eventually.

-- 
Benny


[MlMt] Tips to make custom (thread arcs) views easier?

2011-06-06 Thread Mike Brasch
On 3 Jun 2011, at 0:57, Benny Kj?r Nielsen wrote:

> I have attached a plist file which almost does what you want. Due to 
> one of the layout bugs I had to fix the width of the thread arcs view. 
> You can change this width if you like to your preferred setting.

Is it possible to get thread arc without the messages I sent?

-- 
Gru?
Mike