Replies: 2 comments 1 reply
-
This is very curious as according to the docs any message sequence range with Have you tried:
as the Seen flag is fairly unreliable? If that doesn't help, can you post a more complete example of the code you're running in case there's something happening outside of the lines you've shown? Another things that would be helpful is to turn on debug logging in case IMAPClient is sending a poorly formed query. Instructions are here: https://imapclient.readthedocs.io/en/2.3.0/concepts.html#logging |
Beta Was this translation helpful? Give feedback.
-
I just ran into this. Starting a new connection or calling NOOP beforehand is a functioning workaround. I dont know why. Seems there is some unwanted caching somewhere? |
Beta Was this translation helpful? Give feedback.
-
I have the following two problems, which might be related:
I get the uids of the messages, which arrive after after a certain time, with a search:
This is my first problem: The list of
new_uids
only includes the uids of the messages fromuid_next-1
up to but the last message – the uid of the very last message, which arrived latest, is missing.How do I get this last uid included in my list of
new_uids
?I tried to use just
['UID', f'{uid_next-1}:*']
as a search criterion, but that did not help.I then get the flags and message envelope of all new messages:
but the
res
ult also contains all recently deleted messages, e.g. withnew_uids = [56398]
:Why is the deleted message included in the response? (Please note, that the message uid key is actually the sequence id.)
I could check for a missing
b'ENVELOPE
key or if theb'SEQ'
value is equal to the key, but is there another way to not have the deleted message(s) included in the response? Mind you, their uids were not included in thenew_uid
list.Is this a problem of the IMAP server (dovecot) or of this great library?
Beta Was this translation helpful? Give feedback.
All reactions