From 9d0d40308c79218419e24d3d118f4bcf09df059b Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 24 Oct 2014 06:49:12 -0400
Subject: [PATCH] Merge pull request #238 from bnogas/master-p5

---
 program/lib/Roundcube/rcube_imap_generic.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php
index 63d4f06..d78b526 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -2569,7 +2569,6 @@
             return false;
         }
 
-        $initiated = false;
         $binary    = true;
 
         do {
@@ -2732,7 +2731,7 @@
                     }
                 }
             }
-        } while (!$this->startsWith($line, $key, true));
+        } while (!$this->startsWith($line, $key, true) || !$initiated);
 
         if ($result !== false) {
             if ($file) {

--
Gitblit v1.9.1