Help with nametrans

Wojciech Żuk wojciech.zuk at gmail.com
Fri Jul 8 20:52:45 UTC 2016


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


 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?

2016-07-08 15:39 GMT+02:00 Nicolas Sebrecht <nicolas.s-dev at laposte.net>:

> On Fri, Jul 08, 2016 at 10:02:05AM +0200, Wojciech Żuk wrote:
>
> >    Thanks for reply, unfortunately my config don't work , I execute
> >    offlineimap on console then ask 2 times for password and nothing
> return to
> >    console prompt, no any output. Folder Test isn't created on my Local
> Imap
> >    Server.
>
> Please, resend your mail to the mailing list.
>
> --
> Nicolas Sebrecht
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20160708/d60e4898/attachment.html>


More information about the OfflineIMAP-project mailing list