0

I want to fetch unseen UIDs greater than a given UID. I'm trying to do:

result, numbers = server.uid('search', None, 'UNSEEN', str(minUID) + ':*')

but that doesn't work properly. For 1:* I get all unseen UIDs correctly, but for minUID:* I'm only getting the latest unseen UID.

I know I can do a server.uid('search', None, 'UNSEEN') and then filter it for >minUID but that seems inefficient.

Dev Sanghani
  • 1,145
  • 11
  • 19

1 Answers1

1

To search with both unseen and uid greater than 23

result, numbers = server.uid("search", None, '(UNSEEN UID 23:*)')
Noufal Valapra
  • 510
  • 6
  • 12