title: PHP imap_* functions and custom flags
body: <p>I'm currently playing with PHP's IMAP functions.</p>
  
  <p>I'm trying to write and read messages and flags. But I encountered a small problem while fetching custom flags.</p>
  
  <p>Exactly I mean <code>\\forwarded</code> flag. </p>
  
  <p>According to what I found its part of IMAP4 specification. So I switched an <code>/imap4</code> flat while calling <code>imap_open</code>.</p>
  
  <p>Also found this "bug": <a href="https://bugs.php.net/bug.php?id=39440" rel="nofollow">https://bugs.php.net/bug.php?id=39440</a></p>
  
  <p>So basically, is there any way to fetch custom flags using <code>imap_*</code> functions? (or at last any other way?)</p>
  
  <p><code>imap_fetch_overview</code> does not return this flag even if it's specified on message. So it only returns non-custom flags such as: seen, delted, answered, flagged and draft (+ recent).</p>