[balsa/48-bad-capability: 4/4] imap-handle: Check for IMR_BAD status




commit 2517bf27c07c099dc77781478d6a0456649a7158
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Dec 12 10:52:00 2020 -0500

    imap-handle: Check for IMR_BAD status

 libbalsa/imap/imap-handle.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libbalsa/imap/imap-handle.c b/libbalsa/imap/imap-handle.c
index 625a121eb..75488f4d6 100644
--- a/libbalsa/imap/imap-handle.c
+++ b/libbalsa/imap/imap-handle.c
@@ -1814,6 +1814,8 @@ imap_cmd_step(ImapMboxHandle* handle, unsigned lastcmd)
     if(rc == IMR_BYE) {
       return handle->doing_logout ? IMR_UNTAGGED : IMR_BYE;
     }
+    if(rc == IMR_BAD)
+      return rc;
     return IMR_UNTAGGED;
   }
 
@@ -4182,7 +4184,8 @@ ir_handle_response(ImapMboxHandle *h)
       }
     }
   }
-  imap_handle_process_tasks(h);
+  if (rc != IMR_BAD)
+    imap_handle_process_tasks(h);
   return rc;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]