<DKIM> Re: Help with nametrans

Wojciech Żuk wojciech.zuk at gmail.com
Sat Jul 9 08:36:01 BST 2016


offlineimap --version
6.3.4

my config look like 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')

all I need to sync between (Local)[Xpertis]  <----> (Gmail)[
e-mail at wp.pl/Xpertis']
(Local)[Test]  <---->   (Gmail)[e-mail at wp.pl/ <http://e-mail@wp.pl/Xpertis>
Wys&AUI-ane <http://e-mail@wp.pl/Wys&AUI-ane>']

but with this config offlineimap mix messages form these folders.

2016-07-09 0:37 GMT+02:00 Nicolas Sebrecht <nicolas.s-dev at laposte.net>:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20160709/f7af4eb3/attachment-0003.html>


More information about the OfflineIMAP-project mailing list