[Twisted-Python] Flag storing broke in IMAP4Client

Hello, I have discovered what I believe to be a bug in IMAP4Client in the file imap4.py. I received the following traceback: Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/twisted/protocols/imap4.py", line 1136, in _defaultHandler cmd.finish(rest, self._extraInfo) File "/usr/lib/python2.2/site-packages/twisted/protocols/imap4.py", line 146, in finish self.defer.callback((send, lastLine)) File "/usr/lib/python2.2/site-packages/twisted/internet/defer.py", line 218, in callback self._startRunCallbacks(result) File "/usr/lib/python2.2/site-packages/twisted/internet/defer.py", line 274, in _startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/lib/python2.2/site-packages/twisted/internet/defer.py", line 288, in _runCallbacks self.result = callback(self.result, *args, **kw) exceptions.TypeError: __cbFetch() got an unexpected keyword argument 'lookFor' In fact, imap4.py contains: def _store(self, messages, cmd, flags, uid): store = uid and 'UID STORE' or 'STORE' args = ' '.join((messages, cmd, '(%s)' % ' '.join(flags))) d = self.sendCommand(Command(store, args, wantResponse=('FETCH',))) d.addCallback(self.__cbFetch, lookFor='FLAGS') return d In fact, __cbFetch is defined as: def __cbFetch(self, (lines, last)): No lookfor parameter. This is with Twisted 1.0.6. This would likely be a problem for all IMAP commands that issues STORE to the server: setFlags(), addFlags(), removeFlags(), etc. -- John

On Thu, Jul 31, 2003 at 08:47:11PM -0500, John Goerzen wrote:
I *strongly* recommend using either CVS or the latest alpha if you are using IMAP. There has been a lot of work (almost forty checkins) done on it since 1.0.6: http://twistedmatrix.com/users/jh.twistd/viewcvs/cgi/viewcvs.cgi/twisted/pro... -Andrew.

Andrew Bennetts <andrew-twisted@puzzling.org> writes:
It hasn't fixed this problem, however. Am I the only one using IMAP4Client for serious work? (This is not a rhetorical or accusatory question; merely an honest inquiry) Some of these problems I feel like I should be able to fix myself, but the imap4.py code is sparsely-commented and I fear unintended side-effects... -- John

On Tuesday, August 5, 2003, at 07:57 PM, John Goerzen wrote:
Am I the only one using IMAP4Client for serious work? (This is not a rhetorical or accusatory question; merely an honest inquiry)
Nope. We are too. http://www.divmod.org/ However, we are waiting for the maintainer to get back from vacation.

On Thu, Jul 31, 2003 at 08:47:11PM -0500, John Goerzen wrote:
I *strongly* recommend using either CVS or the latest alpha if you are using IMAP. There has been a lot of work (almost forty checkins) done on it since 1.0.6: http://twistedmatrix.com/users/jh.twistd/viewcvs/cgi/viewcvs.cgi/twisted/pro... -Andrew.

Andrew Bennetts <andrew-twisted@puzzling.org> writes:
It hasn't fixed this problem, however. Am I the only one using IMAP4Client for serious work? (This is not a rhetorical or accusatory question; merely an honest inquiry) Some of these problems I feel like I should be able to fix myself, but the imap4.py code is sparsely-commented and I fear unintended side-effects... -- John

On Tuesday, August 5, 2003, at 07:57 PM, John Goerzen wrote:
Am I the only one using IMAP4Client for serious work? (This is not a rhetorical or accusatory question; merely an honest inquiry)
Nope. We are too. http://www.divmod.org/ However, we are waiting for the maintainer to get back from vacation.
participants (3)
-
Andrew Bennetts
-
Glyph Lefkowitz
-
John Goerzen