<p>I'm not an <code>offlineimap</code> developer but encountered something similar in the past.</p>
<p>In my case (on FastMail), the issue was that the <code>Sent</code> folder on the remote end was actually called <code>INBOX.Sent Items</code> (aka it's in the <code>INBOX</code> namespace). In fact, for me this applies to all folders - <code>Archive</code> becomes <code>INBOX.Archive</code> and so on.</p>
<p>Here's the <code>nametrans</code> rule I use to prepend local folder names with <code>INBOX.</code>:</p>
<div class="highlight highlight-source-python"><pre>nametrans <span class="pl-k">=</span> <span class="pl-k">lambda</span> <span class="pl-smi">folder</span>: {<span class="pl-s"><span class="pl-pds">'</span>inbox<span class="pl-pds">'</span></span> : <span class="pl-s"><span class="pl-pds">'</span>INBOX<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>archive<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>INBOX.Archive<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>drafts<span class="pl-pds">'</span></span> : <span class="pl-s"><span class="pl-pds">'</span>INBOX.Drafts<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>sent<span class="pl-pds">'</span></span> : <span class="pl-s"><span class="pl-pds">'</span>INBOX.Sent Items<span class="pl-pds">'</span></span>
}.get(folder, <span class="pl-s"><span class="pl-pds">'</span>INBOX.<span class="pl-pds">'</span></span> <span class="pl-k">+</span> folder)</pre></div>
<p>Something like that would go in the configuration for your local repository (the one with <code>type = Maildir</code>.</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/269#issuecomment-154177365">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEBTzKUBnYxlTSLp8Y54lEX445Mw-ks5pC6-3gaJpZM4Gc2Gh.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/269#issuecomment-154177365"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>