Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a duplicate of <a href="https://stackoverflow.com/questions/9997928/python-imap-search-using-a-subject-encoded-with-utf-8">Python IMAP search using a subject encoded with utf-8</a> and after extensive research I have reached the same conclusion there: currently this is impossible to achieve with Python's <a href="http://docs.python.org/library/imaplib.html" rel="nofollow noreferrer"><code>imaplib</code></a> module, because the <a href="http://docs.python.org/library/imaplib.html#imaplib.IMAP4.search" rel="nofollow noreferrer"><code>search</code></a> method doesn't support IMAP literals (<code>{&lt;number&gt;}</code> strings used to denote the literals are quoted by <code>imaplib</code>). The same aplies to the <a href="http://docs.python.org/library/imaplib.html#imaplib.IMAP4.uid" rel="nofollow noreferrer"><code>uid</code></a> method, so it can't be used to workaround the <code>search</code> limitation.</p> <p>Note that in the past this functionality probably was implemented without using IMAP literals, as can be seen in the question <a href="https://stackoverflow.com/questions/5640327/python-imap-search-using-a-subject-encoded-with-iso-8859-1">Python IMAP search using a subject encoded with iso-8859-1</a>.</p> <p>Some hacking of <code>imaplib</code> is clearly required so <code>search</code> supports passing the search string as a literal, like in the raw IMAP interaction in your question. A possibility may be to implement it in the context of the <a href="http://imapclient.freshfoo.com/" rel="nofollow noreferrer">imapclient</a> project which may be easier than contributing changes to the Python standard library.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload