Skip to content

Commit

Permalink
Avoid negative modseqs
Browse files Browse the repository at this point in the history
d->lastModSeq is a a highestmodseq from the client and it's not necessary
to report any messages that have that exact modseq, only messages with
greater modseqs.
  • Loading branch information
arnt committed Nov 9, 2016
1 parent a2c3d76 commit 757f76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/handlers/select.cpp
Expand Up @@ -340,7 +340,7 @@ void Select::execute()
}
if ( !s.isEmpty() ) {
d->firstFetch = new Fetch( true, false, true,
s, d->lastModSeq - 1, imap(),
s, d->lastModSeq, imap(),
transaction() );
d->firstFetch->setState( Command::Executing );
d->session->emitUpdates( transaction() );
Expand Down

0 comments on commit 757f76f

Please sign in to comment.