'(type, [data]) = thread(threading_alogrithm, charset, search_criteria, ...)
IMAPrev1 extension THREAD command.'

def thread(self, threading_algorithm, charset, *search_criteria, **kw):

    name = 'THREAD'
    kw['untagged_response'] = name
    return self._simple_command(name, threading_algorithm, charset, *search_criteria, **kw)
