Hello Martin,

Compliments are always appreciated :). We are doing our best to make
James better and welcome new contributors.

Cheers,

On Wed, Jan 2, 2013 at 7:57 PM, Martin Hewitt <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]>
>>> 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<[email protected]>
>> For additional commands, e-mail: 
>> [email protected].**org<[email protected]>
>>
>>



-- 
Ioan Eugen Stan / CTO / http://axemblr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to