mozilla-b2g/gaia-email-libs-and-more — pull request #37 by mozsquib (2012-09-14 03:17:20+00:00)
Title: [ActiveSync] Support filtering mail by date

@asutherland: this PR filters mail from ActiveSync to show only the most recent week's worth of messages, which should keep us sane when working with Gmail. It also supports getting *all* of the messages in a folder (subject to the date filter) instead of the first 100 we get. This will ensure that we have the latest messages in Hotmail.

I also fixed a couple miscellaneous bugs in the process: 1) recovering from a bad sync key was broken due to a typo (changing the filter type will make our sync key bad), and 2) remove the `totalMessages` attribute from a couple of places I missed.

Once this is merged, I'll file a corresponding PR for gaia, which will include a 10979-line diff for gaia-email-opt.js. :)