title: Does Python's imaplib let you set a timeout?
body: <p>I'm looking at the API for Python's <a href="https://docs.python.org/2/library/imaplib.html">imaplib</a>.</p>
  
  <p>From what I can tell, there is no way to setup a timeout like you can with <a href="https://docs.python.org/2/library/smtplib.html">smtplib</a>.</p>
  
  <p>Is that correct? How would you handle a host that's invalid if you don't want it to block?</p>