We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For instance when a PR_MESSAGE_FLAGS contains 17 (0x11L)
This should return [MSGFLAG_HASATTACH, MSGFLAG_READ]
The text was updated successfully, but these errors were encountered:
For now I have created a workaround
def get_pr_message_flags(pr_message_flags): flags = [] msgflags = [('MSGFLAG_READ', 0x0001), ('MSGFLAG_UNMODIFIED', 0x0002), ('MSGFLAG_SUBMIT', 0x0004), ('MSGFLAG_UNSENT', 0x0008), ('MSGFLAG_HASATTACH', 0x0010), ('MSGFLAG_FROMME', 0x0020), ('MSGFLAG_ASSOCIATED', 0x0040), ('MSGFLAG_RESEND', 0x0080), ('MSGFLAG_RN_PENDING', 0x0100), ('MSGFLAG_NRN_PENDING', 0x0200)] while len(msgflags) > 0: flag = msgflags.pop() if pr_message_flags - flag[1] >= 0: pr_message_flags -= flag[1] flags.append(flag[0]) return flags print get_pr_message_flags(0x3FF)
Sorry, something went wrong.
No branches or pull requests
For instance when a PR_MESSAGE_FLAGS contains 17 (0x11L)
This should return [MSGFLAG_HASATTACH, MSGFLAG_READ]
The text was updated successfully, but these errors were encountered: