Bug: 12624  Fix nesting of SEARCH_RANGE and SEARCH_TOTAL.
BFN
Check global errors from PING as well.

Prevents PING from attempting to run (and breaking) when something
like a permissions error is detected in Horde_ActiveSync::handleRequest().

Bug: 12623
Better default
Don't hit IMAP object for non-imap elements
Merge branch 'master' into imp_6_2
Merge branch 'imp_6_2' into imp_multiple_accounts