title: Python - Searching different imap inboxes based on conditions
body: <p>Is there a way to search different Inboxes based on a condition with the python imap4-library?
  I simply can't wrap my head around a way to check certain subfolders based on a condition. 
  Until now I'm selecting the subfolders from "Inbox" like this:</p>
  
  <pre><code>imap = imaplib.IMAP4_SSL(host=imap_host)
  imap.login(imap_user, imap_pass)
  
  unseen_mails = imap.select('Inbox.Private.folder1')
  
  # this is the second subfolder within "Private"
  # unseen_mails = imap.select('Inbox.Private.folder2')
  
  unseen_mails = imap.search(None, '(UNSEEN)')
  unseen_mails = unseen_mails[1]
  print(unseen_mails)
  </code></pre>
  
  <p>Would be glad if someone could figure out where my brain stopped functioning.</p>