#2344 new
Donna McMaster

create rule that automatically flags certain messages

Reported by Donna McMaster | June 15th, 2019 @ 09:51 PM

I decided to add a rule that would flag incoming messages from VIP clients with a yellow flag.

So I added all those clients' emails as conditions and went to add the flag action ... and it's not there. I can tag, move, etc., but not set a flag.

This seems such an obvious thing to want to do that I wonder whether I'm just missing something? Or is this really not an option?

If not, then I would like to request it as a feature.

Thanks!
Donna

Comments and changes to this ticket

  • Nicholas Sloan

    Nicholas Sloan January 2nd, 2020 @ 09:43 AM

    I have this question too. Was it answered somewhere else?
    Thanks,
    Nick

  • benny

    benny January 2nd, 2020 @ 09:59 PM

    • State changed from “new” to “accepted”

    @Donna: Sorry about the late reply. The answer really is that it was never added as a rule action.

    The only workaround (until I do implement such an action) is a bit cumbersome (which kind of also reflects why it's not a quick fix). A colored flag is actually a combination of 4 IMAP keywords. This is how Apple implemented it and MailMate is compatible with Apple Mail:

    \Flagged
    $MailFlagBit0
    $MailFlagBit1
    $MailFlagBit2
    

    The first always need to be enabled for a flagged messages. Various combinations of the other values correspond to different colors. So, the workaround is to have actions which both set the \Flagged value and the needed $MailFlagBitX values (using “Set Keyword”).

    I'll update this ticket when this workaround is no longer needed.

  • Nicholas Sloan

    Nicholas Sloan January 3rd, 2020 @ 07:28 AM

    Thanks for this workaround Benny.
    It would answer the query fine, except that I am finding that whatever the combination of $MailFlagBit0/1/2 keywords I set, I always end up with a red flag when I clear and reapply the rule.

  • benny

    benny January 3rd, 2020 @ 11:01 AM

    Hmm, maybe this is a visual issue which clears up if reselecting the
    mailbox?

    You can enable the “Raw Flags” column in the message list to see a
    list of the current IMAP keywords for the message.

  • Nicholas Sloan

    Nicholas Sloan January 5th, 2020 @ 03:26 PM

    Further experiment has yielded some more info.

    Different combinations of flags do produce all 7 flag colours, according to the following pattern:

    Bit0 = orange (there only needs to be one Bit0 keyword, though 0+0+0… will still produce orange)
    Bit1 = yellow (ditto)
    Bit2 = blue (ditto)
    Bit0 + Bit1 = green (any combination: 01, 10, 101…)
    Bit0 + Bit2 = purple (ditto)
    Bit1 + Bit2 = grey (ditto)
    Bit0 + Bit1 + Bit2 = red (ditto)
    The order of the keywords does not matter, and the \Flagged keyword has to be present.

    Flagging via the Message menu or CMM does not add any (visible) keywords except \Flagged, so flags can be changed or removed at will. When flagging via rules with keywords however, the existing flags are not removed, so if one rule flags a message (say) orange and a later rule tries to flag it blue, there will now be both Bit0 and Bit2 keywords, so the result will be purple. The workaround is to precede the keyword actions with three actions to remove existing keywords (whether or not they exist).

    (Question: is this the only GUI for removing these keywords?)

    Manual flagging via menu over-rides any flags applied by other means (though it does not remove the visible keywords). It may be that keywords are still applied internally, but do not appear in the Raw Flags column, and there is some internal routine for wiping the slate each time a new flag is applied.

    (Incidentally Benny, it says Upload Quota Reached below. Does this mean that we cannot upload screenshots?)

  • benny

    benny January 6th, 2020 @ 09:28 AM

    You don't need three preceding actions to clear the bits. Just set/unset all three bits, that is, you always need 4 actions (\Flagged and 3 bits). Sorry about not being clear about that. I forgot the details.

    GUI: The bit-flags are not cleared when removing flagged, but this could be an option I guess.

    Quota Reached:: Yes. When I clean up, it fills up so quickly that it's hardly worth the effort. Use “Help > Send Feedback” in MailMate to send me screenshots if needed.

    Note: I believe it's possible to create 7 template rules (without conditions) named “Flag Yellow” etc. Then these can be dragged holding down option (to copy) to use them repeatedly (you would need some dummy smart mailbox to store them). A rule can have children which means you can then make a rule with conditions only and then drag the color-action to add it as a child to the condition. I'm not sure you'll find this easier, but now you know :-)

  • Nicholas Sloan

    Nicholas Sloan January 6th, 2020 @ 10:05 AM

    Thanks Benny, that's a much neater solution for setting the bits. (You can tell that this is new territory for me.)
    I'll send you an email with some other flag-related stuff, as suggested.
    Nick

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Tags

Pages