title: IMAP error: BAD [PARSE] Syntax error while reading parenthesized list
body: <p>i use perl and <code>Mail::IMAPClient</code> lib. When i try get header from MAIL.RU using </p>
  
  <pre><code>$message_id = $imap-&gt;parse_headers($msg,"Message-id")-&gt;{"Message-id"}-&gt;[0];
  </code></pre>
  
  <p>in debug i can see <code>BAD [PARSE] Syntax error while reading parenthesized list</code>
  This bag described here <a href="https://www.bountysource.com/issues/1353800-server-rejects-fetch-body-command-with-space-in-header-specifier-was-incompatible-with-imap-mail-ru" rel="nofollow">mail.ru bag</a></p>
  
  <p>I can't change lib, because other mail servises keep what is written in RFC. I sent report(probably did not first), but i have not time to wait response. What is best solution to fix this? Send 1 more argument to <code>parse_headers</code> if server is MAIL.RU?</p>