mozilla-b2g/gaia-email-libs-and-more — pull request #52 by mozsquib (2012-09-28 00:57:28+00:00)
Title: Add support for a per-account synchronization range for messages

@asutherland: this PR adds backend support for a synchronization range and hooks the value up to ActiveSync. It doesn't do anything for IMAP yet, since I'm not 100% sure what we want it to do.

We probably want to document the meaning of the strings for `syncRange`, but I'm not sure where the best spot would be. Specifically, the format is `'all'` for all messages, and `/'\d+[dwm]'/` for N days/weeks/months back. For ActiveSync, of course, we only support values that map to the `FilterType` enum: 1d, 3d, 1w, 2d, 1m, 3m, 6m, and all.