Revision
3637
Author
wsanchez@apple.com
Date
2009-02-04 13:40:48 -0800 (Wed, 04 Feb 2009)

Log Message

Ignore 'BYE LOGOUT' response.

Modified Paths

Diff

Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.mail.imap4.patch (3636 => 3637)


--- CalendarServer/trunk/lib-patches/Twisted/twisted.mail.imap4.patch	2009-02-04 19:08:39 UTC (rev 3636)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.mail.imap4.patch	2009-02-04 21:40:48 UTC (rev 3637)
@@ -21,8 +21,12 @@
              else:
                  unuse.append(L)
          d, self.defer = self.defer, None
-@@ -2247,8 +2242,8 @@
+@@ -2245,10 +2240,12 @@
+                     for f in fetched.get('FLAGS', []):
+                         sum.append(f)
                      flags.setdefault(mId, []).extend(sum)
++            elif L.find('BYE LOGOUT') != -1:
++                pass
              else:
                  log.msg('Unhandled unsolicited response: ' + repr(L))
 -        if flags:
@@ -32,7 +36,7 @@
          if recent is not None or exists is not None:
              self.newMessages(exists, recent)
  
-@@ -3336,6 +3331,8 @@
+@@ -3336,6 +3333,8 @@
                              if len(data) < 2:
                                  raise IllegalServerResponse("Not enough arguments", data)
                              flags.setdefault(id, {})[data[0]] = data[1]
@@ -41,7 +45,7 @@
                              del data[:2]
                  else:
                      print '(2)Ignoring ', parts
-@@ -3431,7 +3428,16 @@
+@@ -3431,7 +3430,16 @@
                      except ValueError:
                          raise IllegalServerResponse, line
                      else: