<div dir="ltr">offlineimap --version<div><div>6.3.4<br></div></div><div><br></div><div>my config look like this:</div><div><span style="font-size:12.8px">[Repository local]</span><br style="font-size:12.8px"><span style="font-size:12.8px">folderfilter = lambda folder: folder in ['Test', 'Xpertis']</span><br style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">[Repository Gmail]</span><br style="font-size:12.8px"><span style="font-size:12.8px">folderfilter = lambda folder: folder in ['</span><a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/Wys&AUI-ane</a><span style="font-size:12.8px">',</span><span style="font-size:12.8px"> '</span><a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/Xpertis</a><span style="font-size:12.8px">']</span><br style="font-size:12.8px"><span style="font-size:12.8px">nametrans = lambda folder: re.sub('</span><a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/Wys&AUI-ane</a><span style="font-size:12.8px">', 'Test',</span><span style="font-size:12.8px">'Test')</span><br style="font-size:12.8px"><span style="font-size:12.8px">nametrans = lambda folder: re.sub('</span><a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/Xpertis</a><span style="font-size:12.8px">', 'Xpertis',</span><span style="font-size:12.8px">'Xpertis')</span><br style="font-size:12.8px"><br></div><div><span style="font-size:12.8px">all I need to sync between (Local)[Xpertis] <----> (Gmail)[</span><a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/Xpertis</a><span style="font-size:12.8px">']</span></div><div><span style="font-size:12.8px">(Local)[Test] <----> </span><span style="font-size:12.8px">(Gmail)[</span><a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank" style="font-size:12.8px">e-mail@wp.pl/</a><a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank" style="font-size:12.8px">Wys&AUI-ane</a><span style="font-size:12.8px">']</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">but with this config offlineimap mix messages form these folders.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-09 0:37 GMT+02:00 Nicolas Sebrecht <span dir="ltr"><<a href="mailto:nicolas.s-dev@laposte.net" target="_blank">nicolas.s-dev@laposte.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your email does not keep newlines correctly. This makes reading hard.<br>
<br>
On Fri, Jul 08, 2016 at 10:52:45PM +0200, Wojciech Żuk wrote:<br>
<br>
> please help me with this:<br>
<br>
> [Repository local]<br>
> folderfilter = lambda folder: folder in ['Test', 'Xpertis']<br>
> [Repository Gmail]<br>
> folderfilter = lambda folder: folder in ['<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>',<br>
> '<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>']<br>
> nametrans = lambda folder: re.sub('<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>', 'Test',<br>
> 'Test')<br>
> nametrans = lambda folder: re.sub('<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>', 'Xpertis',<br>
> 'Xpertis')<br>
> results<br>
<br>
If you want to strip the configuration, please keep the sections.<br>
<br>
> Syncing <a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>: Gmail -> MappedIMAP<br>
> Syncing <a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>: Gmail -> MappedIMAP<br>
> Copy message 24 from Xpertis:<br>
> Copy message 24 Gmail[<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>] -> MappedIMAP[Xpertis]<br>
> Copy message -1 from Xpertis:<br>
> Copy message -1 MappedIMAP[Xpertis] -> Gmail[<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> Copy message -8 from Xpertis:<br>
> Copy message -8 MappedIMAP[Xpertis] -> Gmail[<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> Copy message 25 from Xpertis:<br>
> Copy message 25 Gmail[<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>] -><br>
> MappedIMAP[Xpertis]<br>
> Copy message -7 from Xpertis:<br>
> Copy message -7 MappedIMAP[Xpertis] -> Gmail[<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> Copy message -6 from Xpertis:<br>
> Copy message -6 MappedIMAP[Xpertis] -> Gmail[<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> Copy message -5 from Xpertis:<br>
> Copy message -5 MappedIMAP[Xpertis] -> Gmail[<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> Copy message -1 from Xpertis:<br>
> Copy message -1 MappedIMAP[Xpertis] -><br>
> Gmail[<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>]<br>
> WARNING: ERROR attempting to copy message -1 for account WP:Traceback<br>
> (most recent call last):<br>
> File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line<br>
> 250, in copymessageto<br>
> message = self.getmessage(uid)<br>
> File "/usr/lib/pymodules/python2.7/offlineimap/folder/UIDMaps.py", line<br>
> 167, in getmessage<br>
> return self._mb.getmessage(self.r2l[uid])<br>
> File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line<br>
> 215, in getmessage<br>
> raise OfflineImapError(reason, severity)<br>
> OfflineImapError: IMAP server 'local' does not have a message with UID<br>
> '10'<br>
> and as you can see offlineimap mixed my messages:<br>
> copied only 5 of 8 total messages from local Xpertis to Gmail<br>
> [<a href="http://e-mail@wp.pl/Xpertis" rel="noreferrer" target="_blank">e-mail@wp.pl/Xpertis</a>]<br>
> copied 2 messages from Gmail [<a href="http://e-mail@wp.pl/Wys&AUI-ane" rel="noreferrer" target="_blank">e-mail@wp.pl/Wys&AUI-ane</a>] to local<br>
> Xpertis<br>
> what a mess, what I configured wrong, why offlineimap mix my folders?<br>
<br>
Did you set the reverse nametrans rules? Offlineimap version?<br>
offlineimap --info?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nicolas Sebrecht<br>
</font></span></blockquote></div><br></div>