<DKIM> Re: Help with nametrans

Nicolas Sebrecht nicolas.s-dev at laposte.net
Fri Jul 8 23:37:00 BST 2016


Your email does not keep newlines correctly. This makes reading hard.

On Fri, Jul 08, 2016 at 10:52:45PM +0200, Wojciech Żuk wrote:

>    please help me with this:

>    [Repository local]
>    folderfilter = lambda folder: folder in ['Test', 'Xpertis']
>    [Repository Gmail]
>    folderfilter = lambda folder: folder in ['e-mail at wp.pl/Wys&AUI-ane',
>    'e-mail at wp.pl/Xpertis']
>    nametrans = lambda folder: re.sub('e-mail at wp.pl/Wys&AUI-ane', 'Test',
>    'Test')
>    nametrans = lambda folder: re.sub('e-mail at wp.pl/Xpertis', 'Xpertis',
>    'Xpertis')
>    results

If you want to strip the configuration, please keep the sections.

>     Syncing e-mail at wp.pl/Xpertis: Gmail -> MappedIMAP
>     Syncing e-mail at wp.pl/Wys&AUI-ane: Gmail -> MappedIMAP
>    Copy message 24 from Xpertis:
>     Copy message 24 Gmail[e-mail at wp.pl/Wys&AUI-ane] -> MappedIMAP[Xpertis]
>    Copy message -1 from Xpertis:
>     Copy message -1 MappedIMAP[Xpertis] -> Gmail[e-mail at wp.pl/Xpertis]
>    Copy message -8 from Xpertis:
>     Copy message -8 MappedIMAP[Xpertis] -> Gmail[e-mail at wp.pl/Xpertis]
>    Copy message 25 from Xpertis:
>     Copy message 25 Gmail[e-mail at wp.pl/Wys&AUI-ane] ->
>    MappedIMAP[Xpertis]
>    Copy message -7 from Xpertis:
>     Copy message -7 MappedIMAP[Xpertis] -> Gmail[e-mail at wp.pl/Xpertis]
>    Copy message -6 from Xpertis:
>     Copy message -6 MappedIMAP[Xpertis] -> Gmail[e-mail at wp.pl/Xpertis]
>    Copy message -5 from Xpertis:
>     Copy message -5 MappedIMAP[Xpertis] -> Gmail[e-mail at wp.pl/Xpertis]
>    Copy message -1 from Xpertis:
>     Copy message -1 MappedIMAP[Xpertis] ->
>    Gmail[e-mail at wp.pl/Wys&AUI-ane]
>     WARNING: ERROR attempting to copy message -1 for account WP:Traceback
>    (most recent call last):
>      File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line
>    250, in copymessageto
>        message = self.getmessage(uid)
>      File "/usr/lib/pymodules/python2.7/offlineimap/folder/UIDMaps.py", line
>    167, in getmessage
>        return self._mb.getmessage(self.r2l[uid])
>      File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line
>    215, in getmessage
>        raise OfflineImapError(reason, severity)
>    OfflineImapError: IMAP server 'local' does not have a message with UID
>    '10'
>    and as you can see offlineimap mixed my messages:
>    copied only 5 of 8 total messages from local Xpertis to Gmail
>    [e-mail at wp.pl/Xpertis]
>    copied 2 messages from Gmail [e-mail at wp.pl/Wys&AUI-ane] to  local
>    Xpertis
>    what a mess, what I configured wrong, why offlineimap mix my folders?

Did you set the reverse nametrans rules? Offlineimap version?
offlineimap --info?

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list