Complete.Org: Mailing Lists: Archives: offlineimap: October 2006:
imaplib.py hangs when * NO FETCH (D107)
Home

imaplib.py hangs when * NO FETCH (D107)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap mailing list <offlineimap@xxxxxxxxxxxx>
Subject: imaplib.py hangs when * NO FETCH (D107)
From: Adam Spiers <offlineimap@xxxxxxxxxxxxxx>
Date: Fri, 20 Oct 2006 23:07:01 +0100
Reply-to: Adam Spiers <offlineimap@xxxxxxxxxxxxxx>

Hi again,

I just noticed a strange bug in the Groupwise IMAP server whereby
occasionally a UID FETCH results in a response

  * NO FETCH (D107)

for no apparent good reason.  I will try to work with the good folk
here at Novell to fix it, but you should also know that offlineimap
hangs when it encounters this situation.  I can't tell immediately
from the debug why, because it looks like the debug output is
line-buffered and the hang happens before a flush - the below was the
last thing in the log file:

DEBUG[imap]:   58:51.39 < HAMC62 OK [READ-WRITE] SELECT completed
DEBUG[imap]:   58:51.39    matched r'(?P<tag>HAMC\d+) (?P<type>[A-Z]+) 
(?P<data>.*)'
DEBUG[imap]:   58:51.39    matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' 
=> (
DEBUG[imap]:   58:51.39 untagged_responses[READ-WRITE] 0 += [""]
DEBUG[imap]:   58:51.39 > HAMC63 FETCH 1:2 (FLAGS UID)
DEBUG[imap]:   58:51.59 < * 1 FETCH (FLAGS (\Seen) UID 1)
DEBUG[imap]:   58:51.59    matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.
DEBUG[imap]:   58:51.59 untagged_responses[FETCH] 0 += ["1 (FLAGS (\Seen) UID 
1)"]
DEBUG[imap]:   58:51.59 < * 2 FETCH (FLAGS (\Seen) UID 2)
DEBUG[imap]:   58:51.59    matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( 
(?P<data2>.
DEBUG[imap]:   58:51.59 untagged_responses[FETCH] 1 += ["2 (FLAGS (\Seen) UID 
2)"]
DEBUG[imap]:   58:51.59 < HAMC63 OK FETCH completed
DEBUG[imap]:   58:51.59    matched r'(?P<tag>HAMC\d+) (?P<type>[A-Z]+) 
(?P<data>.*)'
DEBUG[imap]:   58:51.59 untagged_responses[FETCH] => ['1 (FLAGS (\\Seen) UID 
1)', '2
DEBUG[imap]: imapsplit() called with input: FLAGS (\Seen) UID 1
DEBUG[imap]: imapsplit() returning: ['FLAGS', '(\\Seen)', 'UID', '1']
DEBUG[imap]: options2hash called with input: ['FLAGS', '(\\Seen)', 'UID', '1']
DEBUG[imap]: options2hash returning: {'FLAGS': '(\\Seen)', 'UID': '1'}
DEBUG[imap]: imapsplit() called with input: FLAGS (\Seen) UID 2
DEBUG[imap]: imapsplit() returning: ['FLAGS', '(\\Seen)', 'UID', '2']
DEBUG[imap]: options2hash called with input: ['FLAGS', '(\\Seen)', 'UID', '2']

Hope this makes sense to someone ...
Adam



[Prev in Thread] Current Thread [Next in Thread]
  • imaplib.py hangs when * NO FETCH (D107), Adam Spiers <=