[MlMt] search for different Flags

Benny Kjær Nielsen mailinglist at freron.com
Sun May 29 04:10:22 EDT 2016


On 28 May 2016, at 22:17, Stephan Bösebeck wrote:

> It's cool, that you can easily switch on a flag by hitting `Shift-F` 
> 0-9, so there needs to be some kind of support for searching it 
> somewhere - I just did not find it yet.

Flags are implemented using IMAP keyword “bits”. A clever solution 
by Apple, but MailMate currently doesn't have an easy way to do colored 
flag searches. You can only do it by searching for the corresponding set 
of bits. Here are the F keybindings:

	"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" );
     };

Implicitly, they also tell you what to search for, e.g., F2, means that 
`$MailFlagBit0` is enabled and `$MailFlagBit1`/`$MailFlagBit2` are 
disabled.

I hope that helps.

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


More information about the mailmate mailing list