mozilla-b2g/gaia-email-libs-and-more — pull request #11 by asutherland (2012-08-10 06:18:05+00:00)
Title: Fix quantization error in refresh logic

Failure to quantize caused the database-fetching logic to not fetch all of the headers covering the date range the server would tell us about. As a result, we would think messages that we already knew about were somehow new. This would *eventually* result in a failure in body insertion in the comparator. Specifically, it would take several duplication cycles for a block split to occur, at which point invariants would get sufficiently out of wack that the list of UIDs could name an entry that did not exist in that block.

The added test failed without the fix and passes with it. I just realized I need to bump the DB so I will push another commit with that.