Hi all,

I'm working on a custom MessageManager and I've reached the point where I'm
fetching individual messages from my mailboxes.

I did have the UIDs indexed from 0, and that worked fine on Sparrow and
over Telnet, but sent Mac Mail into a tailspin. Assuming that IMAP should
always be indexed from 1, I adjusted all my counters to work with 1-indexed
UIDs, but, when I run

? FETCH 1 uid

I get:

? BAD FETCH failed. Invalid messageset.

In my console output I have:
DEBUG 03:56:26,506 | james.imapserver | ID=1390464457 Fetch failed for
mailbox #private:test@localhost:INBOX because of invalid sequence-set
[Lorg.apache.james.imap.api.message.IdRange;@359172db

org.apache.james.mailbox.exception.MessageRangeException: No message found
with msn -1

I've put the full stack trace here: https://gist.github.com/4432055

So my question is: where does the IdRange in the debug message get built?
How can I control what it thinks is a valid range?

Thanks,

Martin

Reply via email to