[MlMt] Assigning coloured flags with rule

Benny Kjær Nielsen mailinglist at freron.com
Sun Jan 11 05:51:52 EST 2015


On 11 Jan 2015, at 5:10, Matthew Cawood wrote:

> In Apple Mail, I found it useful to flag anything that came via a 
> mailing list with a yellow flag.
>
> In MailMate, pulling out emails from mailing lists is infinitely 
> easier than in Apple Mail, but I can't figure out how to apply a 
> yellow flag to everything that lands in the smart folder. Using a rule 
> to apply one of the <$MailFlagBit> options doesn't seem to work.
>
> Yellow flags exist - they came across from Apple Mail, and I see from 
> an earlier thread that they can be applied with the keyboard - but how 
> do I get MailMate to apply them automatically?

The problem is that these are implemented (by Apple) using 3 IMAP 
keywords as bits (providing 8 different states although only 7 are used 
I believe). It's a clever solution, but it makes it a bit complicated to 
do in MailMate since the GUI only allows you to set 1 IMAP keyword with 
1 rule action.

Here are the default key bindings which also shows you how the various 
flags are generated:

	"F" = {
		"0" = ( "removeTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", 
"removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" );
		"1" = (    "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", 
"removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" );
		"2" = (    "setTag:", "\\Flagged",    "setTag:", "$MailFlagBit0", 
"removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" );
		"3" = (    "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0",    
"setTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" );
		"4" = (    "setTag:", "\\Flagged",    "setTag:", "$MailFlagBit0",    
"setTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" );
		"5" = (    "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", 
"removeTag:", "$MailFlagBit1",    "setTag:", "$MailFlagBit2" );
		"6" = (    "setTag:", "\\Flagged",    "setTag:", "$MailFlagBit0", 
"removeTag:", "$MailFlagBit1",    "setTag:", "$MailFlagBit2" );
		"7" = (    "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0",    
"setTag:", "$MailFlagBit1",    "setTag:", "$MailFlagBit2" );
	};

Colors are (2-7) red, orange, yellow, green, blue, purple, gray. In 
otherwords, number 4 above is what you need to do to generate a yellow 
flag.

> (One weakness of MailMate is the lack of options for visually marking 
> emails. Beyond the standard red flag, there isn't much that's ready to 
> hand.)

Agreed.

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20150111/5dfdd176/attachment.html>


More information about the mailmate mailing list