[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Re: Where are MessageManager IdRanges built from?
From:       Ioan Eugen Stan <stan.ieugen () gmail ! com>
Date:       2013-01-02 22:26:47
Message-ID: CAFvdMiA6hQ39EcDznMf_iiZENfrrLjF4ZT9U+ztKkUO_-pNELA () mail ! gmail ! com
[Download RAW message or body]

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 <martin.hewitt@gmail.com> 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 <eric@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/tru \
> > > nk/imap/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java>
> > >  
> > > On Wed, Jan 2, 2013 at 6:03 AM, Martin Hewitt <martin.hewitt@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-unsubscribe@james.apache.org>
> >  For additional commands, e-mail: \
> > server-user-help@james.apache.**org<server-user-help@james.apache.org> 
> > 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic