You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to fetch emails from an Office 365 IMAP MailBox raises this error code when searching for any keyword: imaplib.IMAP4.error: SEARCH command error: BAD [b'Command Argument Error. 11']
This is my code:
with MailBox("outlook.office365.com").login(test@outlook.com, p4s5w0rd) as mailbox:
for message in mailbox.fetch(A(keyword="TEST"), miss_no_uid=True, headers_only=True):
print(message.from_)
The text was updated successfully, but these errors were encountered:
Ok, thanks! What would you suggest is the best flag to use (that office 365 supports) to mark an email as processed (i.e. flag is false by default then set to true).
The other quirk/issue that may be related is that I can fetch emails given the other search criteria (e.g. flagged, seen, answered), but cannot change the values using the mailbox.flag() function?
Attempting to fetch emails from an Office 365 IMAP MailBox raises this error code when searching for any keyword:
imaplib.IMAP4.error: SEARCH command error: BAD [b'Command Argument Error. 11']
This is my code:
The text was updated successfully, but these errors were encountered: