support sequence set for search

fork
Robin Qu 12 years ago
parent 0135f16e47
commit 4f9defb0a1

@ -365,7 +365,14 @@ exports.buildSearchQuery = function(options, extensions, isOrChild) {
searchargs += modifier + criteria + ' ' + args[0]; searchargs += modifier + criteria + ' ' + args[0];
break; break;
default: default:
throw new Error('Unexpected search option: ' + criteria); try {
// last hope it's a seqno set
// http://tools.ietf.org/html/rfc3501#section-6.4.4
exports.validateUIDList([criteria]);
searchargs += modifier + criteria;
} catch(e) {
throw new Error('Unexpected search option: ' + criteria);
}
} }
} }
if (isOrChild) if (isOrChild)

Loading…
Cancel
Save