<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,<br><br>I've installed Twisted 15.3.0 on Ubuntu 14.04LTS. Excellent work but there's one problem bothering me for a long time: twisted.mail.imap4.IMAP4Client.fetchMessage always throws exception and the exception occured at random, e.g. somtimes the exception occured when the program read the 120th mail, sometimes it occured at the 150th or 200th mail. The traceback of the exception is as follows:<br><br>Unhandled Error<br>Traceback (most recent call last):<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/python/log.py", line 101, in callWithLogger<br>    return callWithContext({"system": lp}, func, *args, **kw)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/python/log.py", line 84, in callWithContext<br>    return context.call({ILogContext: newCtx}, func, *args, **kw)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/python/context.py", line 118, in callWithContext<br>    return self.currentContext().callWithContext(ctx, func, *args, **kw)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/python/context.py", line 81, in callWithContext<br>    return func(*args,**kw)<br>--- <exception caught here> ---<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/internet/posixbase.py", line 597, in _doReadOrWrite<br>    why = selectable.doRead()<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/internet/tcp.py", line 209, in doRead<br>    return self._dataReceived(data)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/internet/tcp.py", line 215, in _dataReceived<br>    rval = self.protocol.dataReceived(data)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/protocols/basic.py", line 571, in dataReceived<br>    why = self.lineReceived(line)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/mail/imap4.py", line 2356, in lineReceived<br>    self._regularDispatch(line)<br>  File "/usr/local/lib/python2.7/dist-packages/Twisted-15.3.0-py2.7-linux-i686.egg/twisted/mail/imap4.py", line 2383, in _regularDispatch<br>    tag, rest = parts<br>exceptions.ValueError: need more than 1 value to unpack<br><br>My code is as simple as possible and the exception is thrown by the following codes:<br><br>dlist = []<br>for msg in messages:    # use message number, not UID<br>    d = self.fetchMessage(msg, uid=False)<br>    d.addCallback(cbGetAttachment)<br>    dlist.append(d)<br>dl = defer.DeferredList(dlist)<br>return dl.addCallback(cbLogout)<br><br>Is there anybody know about this issue?<br><br><br></div></div><br><br><span title="neteasefooter"><p> </p></span>