[MlMt] custom layout - emails with same tags rather than of Correspondence

Benny Kjær Nielsen mailinglist at freron.com
Wed May 21 15:17:17 EDT 2014


On 19 May 2014, at 19:51, David Rees wrote:

> FYI, I created a simple clone of the Correspondence layout that shows
> emails with the same tag as the current email.
> https://gist.github.com/studgeek/37139cac136815744dad
>
> It also sometimes shows all emails if the current email doesn't have a 
> tag,
> not sure why that only happens sometimes or how to just show nothing 
> when
> there are no tags.

Hmm, that might be a bug (I'll note that). You can probably partly fix 
it by doing like this:

	transformation = "$ALL_MESSAGES.filter(##tags exists and ##tags = 
$mainOutline.##tags)";

Note that this only works well when assigning a single tag to each 
message. I don't think there is a way to fix that. In theory this would 
work, but I haven't tried it:

	transformation = "$ALL_MESSAGES.filter(#flags.flag = 
$mainOutline.#flags.flag)";

(And if it works then I could improve `##tags` to work as well by 
defining a `tag` specifier similar to `flag`.)

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20140521/783a01c7/attachment.html>


More information about the mailmate mailing list