Message ID vs. Message ID

Message ID vs. Message ID

When identifying a message in Mail, you have two choices: id and message id. The former is a sequential integer unique to your copy of Mail; you can use it in an AppleScript if you know the message’s mailbox and account. The latter is unique to the message itself and is assigned by the first mail transfer agent that finds the message without one.

Mail could get confused if your AppleScript isn’t written just right if using id:

[Mail] perversely refuses to recognizes [sic] the keyword “id” in that context. It should mean “the message whose id is ..”, but Mail seems to think you’re talking about the “message id” property. The solution is to rephrase the reference so that the words “message” and “id” are not adjacent…