Complete.Org: Mailing Lists: Archives: offlineimap: November 2006:
AssertionError in File "/usr/lib/python2.3/site-packages/offlineimap/fol
Home

AssertionError in File "/usr/lib/python2.3/site-packages/offlineimap/fol

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: AssertionError in File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", line 224
From: Gunter Ohrner <G.Ohrner@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 6 Nov 2006 01:42:10 +0100

(I hope this is no dupe, as my first try to post this message seems to=20
have failed silently.)

Hi!

I'm currently trying to migrate a rather large IMAP mailbox from one
computer to another. Unfortunately I seem to be doing something wrong as =
I
do not get very far with that.

offlineimap happily starts to sync the boxes until it suddenly bails out
with an Assertion Error. As Google did not reveal anything which looked
even remotely related I'm just attaching my config file and a stack trace=
,
hapoing that someone could shed some light on my configuration / setup
problem or whatever causes these problems.

I started using offlineimap 4.0.8 from Debian Sarge. The mails are in a
maildir on the machine offlineimap runs on; I need to migrate this mailbo=
x
collection to a remote IMAP server.
As offlineimap did not upload the local folders when I configured the=20
local repository as my maildir - it just downloaded existing folders from=
=20
the remote site - I reconfigured offlineimap to use the local IMAP server=
=20
as the "remote" site and the remote (empty) server to be the "local"=20
site.

The local "remote" server is a Dovecot IMAPd 1.0beta5, the remote server =
a
Cyrus 2.2.12.

When the sync aaborted in the middle of uploading messages I updatet
offlineimap using the Python files from offlineimap 4.0.14 in Debian Etch
(which interestingly greets with the version string "4.0.13".) but this
version bailed out with exactly the same error.

I hope someone can help me with this crash. :-)

Greetings,

=A0 Gunter

,----[ My config ]
| [general]
| accounts =3D SyncImap
|=20
| [Account SyncImap]
| #localrepository =3D HB
| #remoterepository =3D DS
| localrepository =3D DS
| remoterepository =3D HB
|=20
| [Repository HB]
| type =3D IMAP
| #localfolders =3D /var/maildir/gunter
| remotehost =3D 127.0.0.1
| remoteuser =3D XXXXXXX
| remotepass =3D XXXXXXX
| ssl =3D no
| nametrans =3D lambda foldername: re.sub('^', 'INBOX.', foldername)
|=20
| [Repository DS]
| type =3D IMAP
| remotehost =3D mail.schli.de
| remoteuser =3D XXXXXXXX
| remotepass =3D XXXXXXXX
| ssl =3D yes
| remoteport =3D 993
| #nametrans =3D lambda foldername: re.sub('^INBOX\.', '', foldername)
`----

Error log:

Copy message 2879 from INBOX.Abgeschickte:
=A0 =A0Copy message 2879 IMAP[Abgeschickte] -> MappedIMAP[INBOX.Abgeschic=
kte],
LocalStatus[INBOX.Abgeschickte]
Thread 'Copy message 2879 from INBOX.Abgeschickte' terminated with
exception:
Traceback (most recent call last):
=A0 File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", li=
ne
153, in run
=A0 =A0 Thread.run(self)
=A0 File "/usr/lib/python2.3/threading.py", line 422, in run
=A0 =A0 self.__target(*self.__args, **self.__kwargs)
=A0 File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py", l=
ine
276, in copymessageto
=A0 =A0 newuid =3D object.savemessage(uid, message, flags)
=A0 File "/usr/lib/python2.3/site-packages/offlineimap/folder/UIDMaps.py"=
,
line 156, in savemessage
=A0 =A0 newluid =3D self._mb.savemessage(self, -1, content, flags)
=A0 File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", l=
ine
224, in savemessage
=A0 =A0 date, content)[0] =3D=3D 'OK')
AssertionError


Last 12 debug messages logged for Copy message 2879 from=20
INBOX.Abgeschickte
prior to exception:
imap: Returned object from fetching 2879: ('OK', [('2856 (UID 2879 BODY[]
{1298}', 'Content-Type: text/plain;\r\n =A0charset=3D"iso-8859-1"\r\nFrom=
:
Gunter Ohrner <G.Ohrner@xxxxxxxxxxxxxxxxxxx>\r\nReply-To:
G.Ohrner@xxxxxxxxxxxxxxxxxxx\r\nOrganization: RWTH Aachen\r\nTo: XXXX
<XXXX@XXXX>\r\nSubject: Re: Softwarepraktikum\r\nDate: Thu, 19 Jul 2001
11:11:24 +0200\r\nX-Mailer: KMail [version 1.2]\r\nReferences: \r\n
<Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nIn-Reply-To: =3D?utf-8=
?q
\r\n?=3D <Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nMIME-Version:
1.0\r\nMessage-Id:
<01071911112400.00671@UnseenUniversity>\r\nContent-Transfer-Encoding:
8bit\r\nStatus: RO\r\nX-Status: S\r\n\r\nAm Donnerstag, 19. Juli 2001=20
10:29
schrieben Sie:\r\n> die Verteilung ist durchgefuehrt, und es ist nun die
Aufgabe der\r\n> Betreuer, Sie anzuschreiben.\r\nOkay, vielen Dank f\xfcr
die Info.\r\n\r\n> Das kann dauern!\r\nIch wei\xdf. :-(\r\n\r\nGr\xfc\xdf=
e
\r\n\r\n =A0Gunter Ohrner\r\n\r\n-- \r\n+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+\r\n"What do people like to drink
here, then?"\r\nThe landlord looked sideways at his customers, a clever
trick given that \r\nthey were directly in front of him. =A0 =A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 \r\n =A0 =A0 =A0(Terry Pratchett,
Mort)\r\n+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+\r\n\r\n'), ')'])
imap: savemessage: called
imap: savemessage: using date "19-Jul-2001 11:11:24 +0100"
imap: savemessage: initial content is: 'Content-Type: text/plain;\r\n=20
charset=3D"iso-8859-1"\r\nFrom: Gunter Ohrner
<G.Ohrner@xxxxxxxxxxxxxxxxxxx>\r\nReply-To:
G.Ohrner@xxxxxxxxxxxxxxxxxxx\r\nOrganization: RWTH Aachen\r\nTo: XXXX
<XXXX@XXXX>\r\nSubject: Re: Softwarepraktikum\r\nDate: Thu, 19 Jul 2001
11:11:24 +0200\r\nX-Mailer: KMail [version 1.2]\r\nReferences: \r\n
<Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nIn-Reply-To: =3D?utf-8=
?q
\r\n?=3D <Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nMIME-Version:
1.0\r\nMessage-Id:
<01071911112400.00671@UnseenUniversity>\r\nContent-Transfer-Encoding:
8bit\r\nStatus: RO\r\nX-Status: S\r\n\r\nAm Donnerstag, 19. Juli 2001=20
10:29
schrieben Sie:\r\n> die Verteilung ist durchgefuehrt, und es ist nun die
Aufgabe der\r\n> Betreuer, Sie anzuschreiben.\r\nOkay, vielen Dank f\xfcr
die Info.\r\n\r\n> Das kann dauern!\r\nIch wei\xdf. :-(\r\n\r\nGr\xfc\xdf=
e
\r\n\r\n =A0Gunter Ohrner\r\n\r\n-- \r\n+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+\r\n"What do people like to drink
here, then?"\r\nThe landlord looked sideways at his customers, a clever
trick given that \r\nthey were directly in front of him. =A0 =A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 \r\n =A0 =A0 =A0(Terry Pratchett,
Mort)\r\n+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+\r\n\r\n'
imap: savemessage: new headers are:
X-OfflineIMAP-x1653376457-4453-494e424f582e4162676573636869636b7465:
1162675428-0184849545765-v4.0.8
imap: savemessage_addheader: called to add
X-OfflineIMAP-x1653376457-4453-494e424f582e4162676573636869636b7465:
1162675428-0184849545765-v4.0.8
imap: savemessage_addheader: insertionpoint =3D 25
imap: savemessage_addheader: leader =3D 'Content-Type: text/plain;'
imap: savemessage_addheader: newline
=3D '\r\nX-OfflineIMAP-x1653376457-4453-494e424f582e4162676573636869636b7=
465:
1162675428-0184849545765-v4.0.8'
imap: savemessage_addheader: trailer=20
=3D '\r\n =A0charset=3D"iso-8859-1"\r\nFrom:
Gunter Ohrner <G.Ohrner@xxxxxxxxxxxxxxxxxxx>\r\nReply-To:
G.Ohrner@xxxxxxxxxxxxxxxxxxx\r\nOrganization: RWTH Aachen\r\nTo: XXXX
<XXXX@XXXX>\r\nSubject: Re: Softwarepraktikum\r\nDate: Thu, 19 Jul 2001
11:11:24 +0200\r\nX-Mailer: KMail [version 1.2]\r\nReferences: \r\n
<Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nIn-Reply-To: =3D?utf-8=
?q
\r\n?=3D <Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nMIME-Version:
1.0\r\nMessage-Id:
<01071911112400.00671@UnseenUniversity>\r\nContent-Transfer-Encoding:
8bit\r\nStatus: RO\r\nX-Status: S\r\n\r\nAm Donnerstag, 19. Juli 2001=20
10:29
schrieben Sie:\r\n> die Verteilung ist durchgefuehrt, und es ist nun die
Aufgabe der\r\n> Betreuer, Sie anzuschreiben.\r\nOkay, vielen Dank f\xfcr
die Info.\r\n\r\n> Das kann dauern!\r\nIch wei\xdf. :-(\r\n\r\nGr\xfc\xdf=
e
\r\n\r\n =A0Gunter Ohrner\r\n\r\n-- \r\n+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+\r\n"What do people like to drink
here, then?"\r\nThe landlord looked sideways at his customers, a clever
trick given that \r\nthey were directly in front of him. =A0 =A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 \r\n =A0 =A0 =A0(Terry Pratchett,
Mort)\r\n+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+\r\n\r\n'
imap: savemessage: new content is: 'Content-Type: text/plain
\r\nX-OfflineIMAP-x1653376457-4453-494e424f582e4162676573636869636b7465:
1162675428-0184849545765-v4.0.8\r\n =A0charset=3D"iso-8859-1"\r\nFrom: Gu=
nter
Ohrner <G.Ohrner@xxxxxxxxxxxxxxxxxxx>\r\nReply-To:
G.Ohrner@xxxxxxxxxxxxxxxxxxx\r\nOrganization: RWTH Aachen\r\nTo: XXXX
<XXXX@XXXX>\r\nSubject: Re: Softwarepraktikum\r\nDate: Thu, 19 Jul 2001
11:11:24 +0200\r\nX-Mailer: KMail [version 1.2]\r\nReferences: \r\n
<Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nIn-Reply-To: =3D?utf-8=
?q
\r\n?=3D <Pine.LNX.4.10.10107191028460.5326-100000@XXXX>\r\nMIME-Version:
1.0\r\nMessage-Id:
<01071911112400.00671@UnseenUniversity>\r\nContent-Transfer-Encoding:
8bit\r\nStatus: RO\r\nX-Status: S\r\n\r\nAm Donnerstag, 19. Juli 2001=20
10:29
schrieben Sie:\r\n> die Verteilung ist durchgefuehrt, und es ist nun die
Aufgabe der\r\n> Betreuer, Sie anzuschreiben.\r\nOkay, vielen Dank f\xfcr
die Info.\r\n\r\n> Das kann dauern!\r\nIch wei\xdf. :-(\r\n\r\nGr\xfc\xdf=
e
\r\n\r\n =A0Gunter Ohrner\r\n\r\n-- \r\n+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+\r\n"What do people like to drink
here, then?"\r\nThe landlord looked sideways at his customers, a clever
trick given that \r\nthey were directly in front of him. =A0 =A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 \r\n =A0 =A0 =A0(Terry Pratchett,
Mort)\r\n+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+\r\n\r\n'
imap: savemessage: new content length is 1400
Exception in thread Folder sync SyncImap[INBOX.Abgeschickte] (most likely
raised during interpreter shutdown):
Traceback (most recent call last):
=A0 File "/usr/lib/python2.3/threading.py", line 442, in __bootstrap
=A0 File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", li=
ne
239, in run
exceptions.TypeError: unsubscriptable object

--=20
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The three most dangerous things in the world are a programmer with a=20
soldering iron, a hardware type with a software patch and a user with an=20
idea.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+                   PGP-verschl=FCsselte Mails bevorzugt!                =
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



[Prev in Thread] Current Thread [Next in Thread]