List Info

Thread: AssertionError in File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", line 224




AssertionError in File "/usr/lib/python2.3/site-packages/o fflineimap/folder/IMAP.py", line 224
user name
2006-11-06 00:42:10
(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/threaduti
l.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/Ba
se.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/UI
DMaps.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/IM
AP.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[]
', 'Content-Type: text/plain;rn
=A0charset=3D"iso-8859-1"rnFrom=
:
Gunter Ohrner <G.Ohrnerpost.rwth-aachen.de>rnReply-To:
G.Ohrnerpost.rwth-aachen.dernOrganization: RWTH
AachenrnTo: XXXX
<XXXXXXXX>rnSubject: Re: SoftwarepraktikumrnDate:
Thu, 19 Jul 2001
11:11:24 +0200rnX-Mailer: KMail [version
1.2]rnReferences: rn
<Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnIn-Reply-To: =3D?utf-8=
?q
rn?=3D <Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnMIME-Version:
1.0rnMessage-Id:
<01071911112400.00671UnseenUniversity>rnContent-Transfer-Encoding:
8bitrnStatus: ROrnX-Status: SrnrnAm Donnerstag, 19.
Juli 2001=20
10:29
schrieben Sie:rn> die Verteilung ist durchgefuehrt, und
es ist nun die
Aufgabe derrn> Betreuer, Sie anzuschreiben.rnOkay,
vielen Dank fxfcr
die Info.rnrn> Das kann dauern!rnIch weixdf.
:-(rnrnGrxfcxdf=
e
rnrn =A0Gunter Ohrnerrnrn--
rn+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+rn"What do
people like to drink
here, then?"rnThe landlord looked sideways at his
customers, a clever
trick given that rnthey were directly in front of him. =A0
=A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 rn =A0 =A0 =A0(Terry
Pratchett,
Mort)rn+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+rnrn'), ')'])
imap: savemessage: called
imap: savemessage: using date "19-Jul-2001 11:11:24
+0100"
imap: savemessage: initial content is: 'Content-Type:
text/plain;rn=20
charset=3D"iso-8859-1"rnFrom: Gunter Ohrner
<G.Ohrnerpost.rwth-aachen.de>rnReply-To:
G.Ohrnerpost.rwth-aachen.dernOrganization: RWTH
AachenrnTo: XXXX
<XXXXXXXX>rnSubject: Re: SoftwarepraktikumrnDate:
Thu, 19 Jul 2001
11:11:24 +0200rnX-Mailer: KMail [version
1.2]rnReferences: rn
<Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnIn-Reply-To: =3D?utf-8=
?q
rn?=3D <Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnMIME-Version:
1.0rnMessage-Id:
<01071911112400.00671UnseenUniversity>rnContent-Transfer-Encoding:
8bitrnStatus: ROrnX-Status: SrnrnAm Donnerstag, 19.
Juli 2001=20
10:29
schrieben Sie:rn> die Verteilung ist durchgefuehrt, und
es ist nun die
Aufgabe derrn> Betreuer, Sie anzuschreiben.rnOkay,
vielen Dank fxfcr
die Info.rnrn> Das kann dauern!rnIch weixdf.
:-(rnrnGrxfcxdf=
e
rnrn =A0Gunter Ohrnerrnrn--
rn+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+rn"What do
people like to drink
here, then?"rnThe landlord looked sideways at his
customers, a clever
trick given that rnthey were directly in front of him. =A0
=A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 rn =A0 =A0 =A0(Terry
Pratchett,
Mort)rn+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+rnrn'
imap: savemessage: new headers are:
X-OfflineIMAP-x1653376457-4453-494e424f582e41626765736368696
36b7465:
1162675428-0184849545765-v4.0.8
imap: savemessage_addheader: called to add
X-OfflineIMAP-x1653376457-4453-494e424f582e41626765736368696
36b7465:
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
'rnX-OfflineIMAP-x1653376457-4453-494e424f582e416267657363
6869636b7=
465:
1162675428-0184849545765-v4.0.8'
imap: savemessage_addheader: trailer=20
=3D 'rn =A0charset=3D"iso-8859-1"rnFrom:
Gunter Ohrner <G.Ohrnerpost.rwth-aachen.de>rnReply-To:
G.Ohrnerpost.rwth-aachen.dernOrganization: RWTH
AachenrnTo: XXXX
<XXXXXXXX>rnSubject: Re: SoftwarepraktikumrnDate:
Thu, 19 Jul 2001
11:11:24 +0200rnX-Mailer: KMail [version
1.2]rnReferences: rn
<Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnIn-Reply-To: =3D?utf-8=
?q
rn?=3D <Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnMIME-Version:
1.0rnMessage-Id:
<01071911112400.00671UnseenUniversity>rnContent-Transfer-Encoding:
8bitrnStatus: ROrnX-Status: SrnrnAm Donnerstag, 19.
Juli 2001=20
10:29
schrieben Sie:rn> die Verteilung ist durchgefuehrt, und
es ist nun die
Aufgabe derrn> Betreuer, Sie anzuschreiben.rnOkay,
vielen Dank fxfcr
die Info.rnrn> Das kann dauern!rnIch weixdf.
:-(rnrnGrxfcxdf=
e
rnrn =A0Gunter Ohrnerrnrn--
rn+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+rn"What do
people like to drink
here, then?"rnThe landlord looked sideways at his
customers, a clever
trick given that rnthey were directly in front of him. =A0
=A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 rn =A0 =A0 =A0(Terry
Pratchett,
Mort)rn+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+rnrn'
imap: savemessage: new content is: 'Content-Type: text/plain
rnX-OfflineIMAP-x1653376457-4453-494e424f582e4162676573636
869636b7465:
1162675428-0184849545765-v4.0.8rn
=A0charset=3D"iso-8859-1"rnFrom: Gu=
nter
Ohrner <G.Ohrnerpost.rwth-aachen.de>rnReply-To:
G.Ohrnerpost.rwth-aachen.dernOrganization: RWTH
AachenrnTo: XXXX
<XXXXXXXX>rnSubject: Re: SoftwarepraktikumrnDate:
Thu, 19 Jul 2001
11:11:24 +0200rnX-Mailer: KMail [version
1.2]rnReferences: rn
<Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnIn-Reply-To: =3D?utf-8=
?q
rn?=3D <Pine.LNX.4.10.10107191028460.5326-100000XXXX>rnMIME-Version:
1.0rnMessage-Id:
<01071911112400.00671UnseenUniversity>rnContent-Transfer-Encoding:
8bitrnStatus: ROrnX-Status: SrnrnAm Donnerstag, 19.
Juli 2001=20
10:29
schrieben Sie:rn> die Verteilung ist durchgefuehrt, und
es ist nun die
Aufgabe derrn> Betreuer, Sie anzuschreiben.rnOkay,
vielen Dank fxfcr
die Info.rnrn> Das kann dauern!rnIch weixdf.
:-(rnrnGrxfcxdf=
e
rnrn =A0Gunter Ohrnerrnrn--
rn+-+-+-+-+-+-+-+-+-+-+-+-=20
http://www.X
Offline! X.de -+-+-+-+-+-+-+-+-+-+-+-+rn"What do
people like to drink
here, then?"rnThe landlord looked sideways at his
customers, a clever
trick given that rnthey were directly in front of him. =A0
=A0 =A0 =A0-=
- Mort
goes out for a drink =A0 =A0 rn =A0 =A0 =A0(Terry
Pratchett,
Mort)rn+-+-+-+-+-+-+-+-+-+-+-+-+- http://www.lspace.org
+-+-+-+-+-+-+-+-+-+-+-+-+-+rnrn'
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/threaduti
l.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!   
            =
 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )