Hello!
I want to use vmime for collecting emails from IMAP folders. Some of these folders are large (>10000 messages). Whenever the folder has more than 999 messages I get a "bad fetch" error, because the FETCH command is sent to the server with an additional space after the first digit. For example, fetching message number 1345 creates the following FETCH command:
c003 FETCH 1 345 BODY[]
I can't trace the error. I know that fetching about 9000 messages worked with the early code, but now I always get the extra space once I hit the 1000. Development system is a Debian 12 with vmime from the package repository. IMAP server is a Dovecot 2.3.x.
Best regards,
René.