UPDATE 3: I've run into a peculiar bug where moved messages sometimes reappear in my inbox.
IMAP and Exchange accounts work properly:
(1) Run move script via keyboard shortcut
(2) Confirm that message is in the destination folder
(3) Confirm that message is no longer in Apple Mail Inbox
(4) Log into webmail and confirm the message is gone from the SERVER Inbox folder
(5) All smiles
With GMail (Personal and Business)
(1) Run move script via keyboard shortcut
(2) Confirm that message is in the destination folder
(3) Confirm that message is no longer in Apple Mail Inbox
(4) BAD: Log into webmail. THE MESSAGE IS STILL ON SERVER INBOX
(5) BAD: Some minutes later, the message reappears in Apple Mail's Inbox (but not as "new/unread")
(6) GOOD: The original moved copy of the message is also still in the destination folder
Since I'm "Inbox Zero" (thus the keyboard shortcuts) I can use a REALLY UGLY workaround by creating a straight-up Apple Mail "rule" to move all incoming GMail into one of my IMAP Inboxes, but I'd obviously like for Google to see my command as "move" instead of "copy" (or "delete" since I'm moving to a folder in another account)
I've tried switching the AppleScript from:
AppleScript:
set mailbox of eachMessage to mailbox "2024 Receipts" of account myaccount
to:
AppleScript:
move eachMessage to mailbox "2024 Receipts" of account myaccount
...but the behavior is the same.
I've also deleted my GMail account and re-added to Apple mail. The behavior is the same.
I've also restarted my computer (just in case). The behavior is the same.
I'm not sure how to determine whose bug this is, Apple's (mail), Google's (sync support), or mine?