title: How to use thread search method in imaplib?
body: <p>I want to create a gmail client with the ability to view emails as conversations (threads). In imaplib, there is a method: 
  <strong>IMAP4.thread(threading_algorithm, charset, search_criterion[, ...])</strong>
  I think it could be the solution. Anybody has experience using it? Please give an example. Thanks.</p>