Antonio,
I was going through recent Mutt commits, and I realized my fix for this
is not quite correct.
The IMAP UID field is a 32-bit unsigned integer. I unfortunately
modeled the new compare_uid() function after all the other ones use by
Mutt for sorting, which just uses subtraction. However, that won't work
properly if the values differ more than a signed int can hold.
I think the probability of users encountering that in practice is low.
But if you're going through the effort of back-porting the fix, please
wait and I'll commit a corrected fix tomorrow.
-Kevin