Complete.Org: Mailing Lists: Archives: offlineimap: October 2004:
Re: TypeError and AssertionError raised
Home

Re: TypeError and AssertionError raised

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: TypeError and AssertionError raised
From: Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
Date: Thu, 07 Oct 2004 21:20:13 +1000

-- Attached file included as plaintext by Ecartis --

John Goerzen wrote:
> On Tuesday 05 October 2004 12:59 am, Stuart Bishop wrote:
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>I'm trying to sync the IMAP server at fastmail.fm to a local Courier
>>IMAP server using offlineimap 4.0.6 and Python 2.3.4. I have yet to
>>complete my initial run of offlineimap 4.0.6 - there appear to be
>>some messages it is falling over on:
> 
> 
> Would you happen to be able to capture a debug log with -d imap -1?
> 
> (Before pasting, make sure to edit out your password and any other 
> confidential information.)
> 

Here is the last section - let me know if you need other sections. The 
whole dump is 5MB, so I'd rather not go through sanitizing it if it 
isn't necessary ;)


-- 
Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
http://www.stuartbishop.net/


-- Attached file included as plaintext by Ecartis --
-- File: offlineimap-sanitized.txt

DEBUG[imap]:   19:59.82 < )
DEBUG[imap]:   19:59.82 untagged_responses[FETCH] 1 += [")"]
DEBUG[imap]:   19:59.82 < EBEP231 OK Completed (0.000 sec)
DEBUG[imap]:   19:59.82         matched r'(?P<tag>EBEP\d+) (?P<type>[A-Z]+) 
(?P<data>.*)' => ('EBEP231', 'OK', 'Completed (0.000 sec)')
DEBUG[imap]:   19:59.82 untagged_responses[FETCH] => [('241 (UID 357 BODY[] 
{5512}', '[... trimmed ...]'), ')']
DEBUG[imap]: savemessage: called
DEBUG[imap]: savemessage: using date " 5-Oct-2004 15:45:56 +1000"
DEBUG[imap]: savemessage: initial content is: '[... trimmed ...]'
DEBUG[imap]: savemessage: new headers are: 
X-OfflineIMAP-1157413186-4c6f63616c466173746d61696c494d4150-494e424f582e43616e6f6e6963616c2e4c61756e6368706164:
 1097140800-0268074547404-v4.0.6
DEBUG[imap]: savemessage_addheader: called to add 
X-OfflineIMAP-1157413186-4c6f63616c466173746d61696c494d4150-494e424f582e43616e6f6e6963616c2e4c61756e6368706164:
 1097140800-0268074547404-v4.0.6
DEBUG[imap]: savemessage_addheader: insertionpoint = 57
DEBUG[imap]: savemessage_addheader: leader = 'Return-Path: 
<launchpad-bounces@xxxxxxxxxxxxxxxxxxxxxxxx>'
DEBUG[imap]: savemessage_addheader: newline = 
'\r\nX-OfflineIMAP-1157413186-4c6f63616c466173746d61696c494d4150-494e424f582e43616e6f6e6963616c2e4c61756e6368706164:
 1097140800-0268074547404-v4.0.6'
DEBUG[imap]: savemessage_addheader: trailer = '[... trimmed ...]'
DEBUG[imap]: savemessage: new content is: '[... trimmed ...]'
DEBUG[imap]: savemessage: new content length is 5657
DEBUG[imap]:   20:00.36 > LJP418 APPEND INBOX.Canonical.Launchpad (\Seen) " 
5-Oct-2004 15:45:56 +1000" {5657}
DEBUG[imap]:   20:00.36 < + OK
DEBUG[imap]:   20:00.42         matched r'\+( (?P<data>.*))?' => (' OK', 'OK')
DEBUG[imap]:   20:00.42 write literal size 5657
DEBUG[imap]:   20:00.49 < LJP418 OK [APPENDUID 1096894592 429] APPEND Ok.
DEBUG[imap]:   20:00.49         matched r'(?P<tag>LJP\d+) (?P<type>[A-Z]+) 
(?P<data>.*)' => ('LJP418', 'OK', '[APPENDUID 1096894592 429] APPEND Ok.')
DEBUG[imap]:   20:00.49         matched r'\[(?P<type>[A-Z-]+)( 
(?P<data>[^\]]*))?\]' => ('APPENDUID', ' 1096894592 429', '1096894592 429')
DEBUG[imap]:   20:00.49 untagged_responses[APPENDUID] 1 += ["1096894592 429"]
DEBUG[imap]:   20:00.49 > LJP419 CHECK
DEBUG[imap]:   20:00.55 < * 242 EXISTS
DEBUG[imap]:   20:00.55         matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.*))?' => ('242', 'EXISTS', None, None)
DEBUG[imap]:   20:00.55 untagged_responses[EXISTS] 36 += ["242"]
DEBUG[imap]:   20:00.55 < * 0 RECENT
DEBUG[imap]:   20:00.55         matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.*))?' => ('0', 'RECENT', None, None)
DEBUG[imap]:   20:00.60 untagged_responses[RECENT] 36 += ["0"]
DEBUG[imap]:   20:00.60 < LJP419 OK CHECK completed
DEBUG[imap]:   20:00.60         matched r'(?P<tag>LJP\d+) (?P<type>[A-Z]+) 
(?P<data>.*)' => ('LJP419', 'OK', 'CHECK completed')
DEBUG[imap]: savemessage: first attempt to get new UID
DEBUG[imap]: savemessage: returning 428
Copy message 358 IMAP[INBOX.Canonical.Launchpad] -> 
MappedIMAP[INBOX.Canonical.Launchpad], LocalStatus[INBOX.Canonical.Launchpad]
DEBUG[imap]:   20:00.65 > EBEP232 UID FETCH 358 (BODY.PEEK[])
DEBUG[imap]:   20:00.98 < EBEP232 OK Completed (0.000 sec)
DEBUG[imap]:   20:00.98         matched r'(?P<tag>EBEP\d+) (?P<type>[A-Z]+) 
(?P<data>.*)' => ('EBEP232', 'OK', 'Completed (0.000 sec)')
Thread 'Copy message 358 from INBOX.Canonical.Launchpad' terminated with 
exception:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line 153, 
in run
    Thread.run(self)
  File "/usr/lib/python2.3/threading.py", line 416, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py", line 272, 
in copymessageto
    message = self.getmessage(uid)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", line 110, 
in getmessage
    return imapobj.uid('fetch', '%d' % uid, 
'(BODY.PEEK[])')[1][0][1].replace("\r\n", "\n")
TypeError: unsubscriptable object


Last 3 debug messages logged for Copy message 358 from 
INBOX.Canonical.Launchpad prior to exception:
imap:   20:00.65 > EBEP232 UID FETCH 358 (BODY.PEEK[])
imap:   20:00.98 < EBEP232 OK Completed (0.000 sec)
imap:   20:00.98        matched r'(?P<tag>EBEP\d+) (?P<type>[A-Z]+) 
(?P<data>.*)' => ('EBEP232', 'OK', 'Completed (0.000 sec)')


-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBZSZtAfqZj7rGN0oRAkQdAJwO5wCzTPUJVzs/c46V0KxrZxcCkQCghfxX
De1dfvZLC6FcMlp9Zf7+R4w=
=KhBC
-----END PGP SIGNATURE-----




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