On Tue, 2006-08-22 at 23:46 +0400, Oleg Lapshin wrote:
> В сообщении от 22 августа 2006 18:52 Aaron Stone написал(a):
> > Ok, now this is weird. I can start at 1 and work up to 7, but no higher.
> 
> I take a look at imapcommands.c
> line 1388:
> fetch_max = self->use_uid ? (ud->mailbox.msguidnext - 1) : ud->mailbox.exists;
> 
> Because roundcube don't send UID, I have
> fetch_max = ud->mailbox.exists;  ---> 7
> instead of
> fetch_max = (ud->mailbox.msguidnext - 1); ---> 4920

Right, duh, I forgot that I only have 7 messages in my test box :-P

> So, roundcube get error responce at block:
> if (fetch_start == 0 || fetch_start > fetch_max) {
>          if (self->fi->getUID)
>                  OK
>          else
>                  ERROR
> }
> 
> 
> How we can resolve this?

Looks like a bug in Roundcube -- it's issuing a UID SEARCH command, gets
uid's in the result set, but fails to specify UID FETCH when asking for
the message data by uid.

Aaron

Reply via email to