<ol>
<li>Make IMAP account</li>
<li>
<p>Create a letter: </p>
<pre><code>C: RUBY0004 UID FETCH 2 flags
S: * 1 FETCH (UID 2 FLAGS (\Seen \Draft $NotJunk NotJunk))
</code></pre>
</li>
<li>
<p>Add flag from Apple's Mail.app</p>
<pre><code>C: RUBY0004 UID FETCH 2 flags
S: * 1 FETCH (UID 2 FLAGS (\Flagged \Seen \Draft $NotJunk NotJunk $MailFlagBit0))
</code></pre>
</li>
<li>Sync mailbox to another one using offlineimap v6.5.7 with <a href="https://gist.github.com/ojab/499ceb5e2c88da81ce58">this config</a> (<a href="https://gist.github.com/ojab/0e6458c093d0a189a9e4">log with <code>-d ALL</code></a>)</li>
<li>
<p>Check a letter in the new mailbox:</p>
<pre><code>C: RUBY0004 UID FETCH 1 flags
S: * 1 FETCH (UID 1 FLAGS (\Flagged \Seen \Draft))
</code></pre>
</li>
</ol>
<p>IMAP server is dovecot-2.2.10 here.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/209">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSENh5CZDDKXbIentu5xcDekf1cdayks5oTxtfgaJpZM4FDqjX.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/209"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>