Hi Eric, Ioan, Yup, I checked out the imap and protocol modules from SVN and dug around - there was a mismatch between my counters.
I must say, James is great fun to build on, and the accessibility of all the code is incredibly useful. Martin On 2 January 2013 17:12, Eric Charles <e...@apache.org> wrote: > Don't forget james maintain an internal mapping between UID <-> MSN (so > MSN is not UID) > > Thx, Eric > > > > On 02/01/2013 15:40, Ioan Eugen Stan wrote: > >> Hello Martin, >> >> Looking at the stack trace it looks like the range is built inside >> AbstractMailboxProcessor#**messageRange [1] . The processing path >> depends on the IMAP command you issue. >> >> Hope this helps, >> >> [1] https://github.com/apache/**james-protocols/blob/trunk/** >> imap/src/main/java/org/apache/**james/imap/processor/** >> AbstractMailboxProcessor.java<https://github.com/apache/james-protocols/blob/trunk/imap/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java> >> >> On Wed, Jan 2, 2013 at 6:03 AM, Martin Hewitt <martin.hew...@gmail.com> >> wrote: >> >>> 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<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 >>> >> >> >> >> > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > server-user-unsubscribe@james.**apache.org<server-user-unsubscr...@james.apache.org> > For additional commands, e-mail: > server-user-help@james.apache.**org<server-user-h...@james.apache.org> > >