Avoid excessive IMAP cmd length with max. MessageSet size: Bug #734757

When building sparse MessageSets, instead of constructing single one
it's possible for multiple to be returned, indicating that the number
of values exceeds a defined limit.  This may require multiple I/Os to
complete all commands, although they can be pipelined.