<<< Date Index >>>     <<< Thread Index >>>

Re: IMAP regression after rev 5024



off-list, it was confirmed that this patch fixes things. And after a
little more thought, I understand why :)
So I've pushed it.

On Sunday, 01 April 2007 at 12:46, Brendan Cully wrote:
> I don't see this. Can you run mutt with -d3 and send me ~/.muttdebug0?
> 
> I haven't worked out how it's broken, but by any chance does this
> patch change things?

> diff -r f467353f5657 imap/command.c
> +++ b/imap/command.c  Sun Apr 01 12:46:33 2007 -0700
> @@ -932,11 +932,7 @@ static void cmd_parse_status (IMAP_DATA*
>          if (olduv && olduv == status->uidvalidity)
>          {
>            if (oldun < status->uidnext)
> -          {
>              inc->new = status->unseen;
> -         /* forced back to keep detecting new mail until the mailbox is 
> opened */
> -         status->uidnext = oldun;
> -          }
>          }
>          else if (!olduv && !oldun)
>         /* first check per session, use recent. might need a flag for this. */
> @@ -944,6 +940,9 @@ static void cmd_parse_status (IMAP_DATA*
>       else
>            inc->new = status->unseen;
>  
> +        /* forced back to keep detecting new mail until the mailbox is 
> opened */
> +        status->uidnext = oldun;
> +
>          FREE (&value);
>          return;
>        }



Attachment: pgprukIiFumbT.pgp
Description: PGP signature