Fix bug: don't signal an error when reading BYE message.
authorChris Hanson <org/chris-hanson/cph>
Mon, 22 May 2000 22:40:09 +0000 (22:40 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 22 May 2000 22:40:09 +0000 (22:40 +0000)
v7/src/imail/imail-imap.scm

index dd0d3f0581452392c5174d702ee4c73e13843074..19cc79f8655dfe842703418a40de9effaa392807 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-imap.scm,v 1.77 2000/05/22 20:50:37 cph Exp $
+;;; $Id: imail-imap.scm,v 1.78 2000/05/22 22:40:09 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
           (if code
               (process-response-text connection command code text))
           (if (and (imap:response:bye? response)
-                   (not (eq? command 'LOGOUT)))
+                   (not (memq command '(LOGOUT #F))))
               (begin
                 (close-imap-connection connection)
                 (error "Server shut down connection:" text)))