Complete.Org: Mailing Lists: Archives: offlineimap: September 2006:
Re: IMAP to IMAP problem
Home

Re: IMAP to IMAP problem

[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: IMAP to IMAP problem
From: David Wallin <david.wallin@xxxxx>
Date: Wed, 27 Sep 2006 13:48:00 +0100

At Sat, 16 Sep 2006 08:29:17 -0500,
John Goerzen <jgoerzen@xxxxxxxxxxxx> wrote:
> Just FYI: the EOF error you were getting meant that the server closed
> the connection for some reason.  The first step in troubleshooting
> that sort of thing is to look at the server logs (if you have access
> to them).  Otherwise, try running with -d imap -1 and see what were
> some of the last things OfflineIMAP received.

Thanks,

I tried the above flags on a macbook that consistently refuses to download a
particular email from the server. An IMAP<->IMAP configuration is used.

The relevant information seems to be this:

Copy message 778 IMAP[INBOX/ul] -> MappedIMAP[INBOX/ul], LocalStatus[INBOX.ul]
DEBUG[imap]:   29:06.80 > CAP82 UID FETCH 778 (BODY.PEEK[])
DEBUG[imap]:   29:07.11 < * 777 FETCH (BODY[] {4933099}
DEBUG[imap]:   29:07.11         matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.*))?' => ('777', 'FETCH', ' (BODY[] {4933099}', '(BODY[] {4933099}')
DEBUG[imap]:   29:07.11         matched r'.*{(?P<size>\d+)}$' => ('4933099',)
DEBUG[imap]:   29:07.11 read literal size 4933099
Thread 'Copy message 778 from INBOX/ul' terminated with exception:
Traceback (most recent call last):
  File "/opt/local/lib/python2.4/site-packages/offlineimap/threadutil.py", line 
153, in run
    Thread.run(self)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py",
 line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/local/lib/python2.4/site-packages/offlineimap/folder/Base.py", 
line 272, in copymessageto
    message = self.getmessage(uid)
  File "/opt/local/lib/python2.4/site-packages/offlineimap/folder/IMAP.py", 
line 111, in getmessage
    initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])')
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
671, in uid
    typ, dat = apply(self._simple_command, (name, command) + args)
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
974, in _simple_command
    return self._command_complete(name, apply(self._command, (name,) + args))
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
804, in _command_complete
    typ, data = self._get_tagged_response(tag)
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
905, in _get_tagged_response
    self._get_response()
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
867, in _get_response
    data = self.read(size)
  File "/opt/local/lib/python2.4/site-packages/offlineimap/imaplib.py", line 
235, in read
    retval += self.file.read(size - len(retval))
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/socket.py",
 line 303, in read
    data = self._sock.recv(recv_size)
MemoryError


Last 5 debug messages logged for Copy message 778 from INBOX/ul prior to 
exception:
imap:   29:06.80 > CAP82 UID FETCH 778 (BODY.PEEK[])
imap:   29:07.11 < * 777 FETCH (BODY[] {4933099}
imap:   29:07.11        matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.*))?' => ('777', 'FETCH', ' (BODY[] {4933099}', '(BODY[] {4933099}')
imap:   29:07.11        matched r'.*{(?P<size>\d+)}$' => ('4933099',)
imap:   29:07.11 read literal size 4933099

I'll send you all the output if you think it would help.

thanks,

--david.



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