Return the total number of results.
Return proper range values.
BFN
Bug: 12738  Always return mail folders, even if the mail api is not available.

Some clients refuse to consider a FOLDERSYNC successful if it is missing
the INBOX. Send dummy IMAP folders back to allow these devices to connect.
BFN
Fix bug number.
params is an array, not an object
Merge branch 'master' into imp_6_2