Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

settag/removetag Syntax

#1027

I'm attempting to use a custom key bindings file to change the behaviour of flagged messages and running into an issue where sometimes settag/removetag doesn't seem to be working. Relevant entries:

    "F" = {
            "0" = ( "removeTag:", "\\Flagged", 
                    "removeTag:", "$MailFlagBit0", 
                    "removeTag:", "$MailFlagBit1", 
                    "removeTag:", "$MailFlagBit2", 
                    "removeTag:", "DoToday", 
                    "removeTag:", "ThisWeek", 
                    "removeTag:", "NextWeek", 
                    "removeTag:", "ThisMonth", 
                    "removeTag:", "Travel", 
                    "removeTag:", "Ideas", 
                    "removeTag:", "Delegated"
                    "setTag:", "CLEARCLEARCLEAR" );

            "1" = ( "setTag:", "\\Flagged", 
                    "removeTag:", "$MailFlagBit0", 
                    "removeTag:", "$MailFlagBit1", 
                    "removeTag:", "$MailFlagBit2", 
                    "removeTag:", "ThisWeek", 
                    "removeTag:", "NextWeek", 
                    "removeTag:", "ThisMonth",
                    "removeTag:", "Travel", 
                    "removeTag:", "Ideas", 
                    "removeTag:", "Delegated",
                    "setTag:", "DoToday", 
                    "removeTag:", "CLEARCLEARCLEAR" );

When I use F0, "\Flagged" is cleared as well as the $MailFlagBit(s), but none of my custom tags are removed.

When I use F1, "\Flagged" is set as expected, but "DoToday" is not. Further, previously set custom tags (ThisWeek, NextWeek, etc) are not cleared.

Am I missing something obvious? I'm using 2.0 features on build 5035.

Reported by Jake · January 31st, 2015 @ 12:54 PM

State: resolved
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    I cannot see any obvious problems. Note that the value used for the tags must be the IMAP keyword of each tag and not the display name, but it doesn't look like that is the problem.

    Can I convince you to attempt to reduce the problem to something a bit more simple before I try to reproduce it?

    I assume you don't have issues setting/removing any of these tags when not using these key bindings?

    Oh, a comma is missing after "Delegated", but I don't think that explains your problems.

    January 31st, 2015 @ 07:59 PM

  2. benny
    benny
    • State changed from new to resolved

    February 17th, 2015 @ 10:51 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.