Discussion:
[MlMt] Key Bindings question
Randall Meadows
2018-10-15 21:22:31 UTC
Permalink
I'm trying to embrace keybindings more and more, and have a few
questions (that I'll probably post over time).

To start off, the key bindings selector list shows:

archive: - Shorthand for ( 'moveToMailbox:', 'archive' )
moveToJunk: - Shorthand for ( 'moveToMailbox:', 'junk' )
deleteMessage: - Shorthand for ( 'moveToMailbox:', 'trash' )

Do I assume correctly that, given an installation that has multiple
accounts configured, that running these selectors on specific messages
will move said messages to the corresponding ACCOUNT'S
archive|junk|trash mailbox (without having to specify specifically a
specific account's specific mailbox [thus requiring multiple command
specifications, one for each account])?

For example, a command executed on a message sitting in Foo's INBOX will
move that message to Foo's Trash mailbox?

Does this still hold if the message selection spans multiple accounts?
E.g., I have two messages selected, one from Foo, one from Bar; does
executing that command move one message to Foo's Trash and the other
message to Bar's Trash?

Finally, does this work for arbitrarily named mailboxes (i.e., not the
"known" archive|junk|trash mailboxes, but also for, say, the SpamSieve
Train[Good|Spam] mailboxes? So can I have a single command that does a
( 'moveToMailbox:', 'TrainGood' ) and regardless of the account, the
message will be moved to the appropriate account's training mailbox?

Finally—really—does this also apply to the
archive:|moveToJunk:|deleteMessage: shorthand keybinding selectors?


Thanks!
randy
David Shepherdson
2018-10-16 11:04:30 UTC
Permalink
Post by Randall Meadows
Finally, does this work for arbitrarily named mailboxes (i.e., not the
"known" archive|junk|trash mailboxes, but also for, say, the SpamSieve
Train[Good|Spam] mailboxes? So can I have a single command that does
a ( 'moveToMailbox:', 'TrainGood' ) and regardless of the account,
the message will be moved to the appropriate account's training
mailbox?
It works for me with arbitrary IMAP mailboxes that have the same
name/path in multiple accounts. For example, I have two accounts, each
with a top-level mailbox called ‘In Progress’. I have the following
AppleScript triggered as part of a Keyboard Maestro macro:

tell application "MailMate" to perform {"moveToMailbox:", "/In
Progress"}


and that moves the selected message to the ‘In Progress’ mailbox
for whichever account the message belongs to. Based on that, I don’t
see any reason why it wouldn’t work for all of the other scenarios you
described.

David
Benny Kjær Nielsen
2018-10-24 11:39:47 UTC
Permalink
Post by Randall Meadows
archive: - Shorthand for ( 'moveToMailbox:', 'archive' )
moveToJunk: - Shorthand for ( 'moveToMailbox:', 'junk' )
deleteMessage: - Shorthand for ( 'moveToMailbox:', 'trash' )
Do I assume correctly that, given an installation that has multiple
accounts configured, that running these selectors on specific messages
will move said messages to the corresponding ACCOUNT'S
archive|junk|trash mailbox (without having to specify specifically a
specific account's specific mailbox [thus requiring multiple command
specifications, one for each account])?
Yes.
Post by Randall Meadows
For example, a command executed on a message sitting in Foo's INBOX
will move that message to Foo's Trash mailbox?
Yes.
Post by Randall Meadows
Does this still hold if the message selection spans multiple accounts?
E.g., I have two messages selected, one from Foo, one from Bar; does
executing that command move one message to Foo's Trash and the other
message to Bar's Trash?
Yes.
Post by Randall Meadows
Finally, does this work for arbitrarily named mailboxes (i.e., not the
"known" archive|junk|trash mailboxes, but also for, say, the SpamSieve
Train[Good|Spam] mailboxes? So can I have a single command that does
a ( 'moveToMailbox:', 'TrainGood' ) and regardless of the account,
the message will be moved to the appropriate account's training
mailbox?
Yes, but the mailbox name must be prefixed with a `/`.
Post by Randall Meadows
Finally—really—does this also apply to the
archive:|moveToJunk:|deleteMessage: shorthand keybinding selectors?
Yes.
--
Benny
https://freron.com/become_a_mailmate_patron/
Loading...