I apologize upfront if this is not the appropriate section of the forum to ask this question.
I have a Gmail account and I want to use it through Apple's Mail.app on a Mac.
In the past I used Thunderbird and through the Nostalgy plug-in I was able to assign custom keyboard shortcuts to do things like remove a message from inbox and move it to a certain folder (or in Gmail jargon, remove the "Inbox" label and assign another label). I bought Keyboard Maestro to do the same thing with Mail.app, but I ran into a problem. I set up a few macros similar to the following one:
The macro does move the message to the desired folder (i.e., it assigns the new label), but it does not remove the "Inbox" label.
To remove the "Inbox" label, I would have to "Archive" the message. The problem is that if I either "Archive" or "Move to" the message, it disappears from my view, and I cannot do the second action.
Is there a workaround to do two actions with Keyboard Maestro? I perfectly realize that this is really an issue with Mail.app, and the way in which it interacts with Gmail not with Keyboard Maestro – but I am hoping that automation can provide a solution.
A possible workaround is to periodically go into the specific label in the Gmail web interface, select all messages with that label (luckily there a convenient button to do so) and "Archive" all of them, to remove the "Inbox" label in batch. It's not ideal, it would be nice if I could automate it with Keyboard Maestro.
There's a certain amount of kludge required to translate between Google's "big bucket of email organised with tags" and Mail's "mailboxes within a mail account" approach. What we, the users, can do about it might depend on the version of macOS/Mail in use -- what versions are you running?
If nothing else, knowing version numbers will help in replicating the issue.