symmetryinvestments / imap-d

D library for IMAP (JMAP is a work-in-progress but the basics work)
14 stars 10 forks source link

Allow the FETCH methods to take either a seq ID or a UID. #42

Closed otrho closed 3 years ago

otrho commented 3 years ago

OK, here's the controversial one.

This change has each of the FETCH methods using a utility to interpret the ID. If the id is prefixed with a '#' it is now treated as a mailbox sequence ID (i.e., 1 to len(messages)), otherwise it's treated as a UID as before.

See issue #39

Laeeth commented 3 years ago

Looks good. Sorry I didn't read it carefully before. Some time constraints.