Search code examples
pythongmailimaptwisted

HIGHESTMODSEQ response from gmail


I have a python script that uses a twisted imap4.IMAP4Client to check for new emails in a gmail account. It does so every ~30 seconds. It has been running fine for months.

Starting June 11, I began to see this message after the search("(UNSEEN)") call:

Unhandled unsolicited response: ['OK', ['HIGHESTMODSEQ', '1234567']]

This message appears at every check for new messages now.

What does this message mean? Is it anything to worry about?


Solution

  • HIGHESTMODSEQ is a protocol extension you can ignore. It is documented in RFC4551.