my $self = shift;
my $command = shift;
my $mailbox = shift;
- my ($uids, $seqs) = @_;
+ my ($seqs, $uids) = @_;
my $pcache = $self->{_PCACHE}->{$mailbox} //= {};
my $cache = $self->{_CACHE}->{$mailbox} //= {};
if ($self->_enabled('QRESYNC') and ($pcache->{HIGHESTMODSEQ} // 0) > 0 and ($pcache->{UIDNEXT} // 1) > 1) {
$command .= " (QRESYNC ($pcache->{UIDVALIDITY} $pcache->{HIGHESTMODSEQ} "
."1:".($pcache->{UIDNEXT}-1);
- $command .= " ($uids $seqs)" if defined $uids and defined $seqs;
+ $command .= " ($seqs $uids)" if defined $seqs and defined $uids;
$command .= "))";
}