[haiku-commits] r40974 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 16 Mar 2011 20:09:19 +0100 (CET)

Author: czeidler
Date: 2011-03-16 20:09:19 +0100 (Wed, 16 Mar 2011)
New Revision: 40974
Changeset: http://dev.haiku-os.org/changeset/40974

Modified:
   
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPParser.cpp
Log:
Fix ExtractBetweenBrackets. It was assumed that the string starts with a 
bracket, be a little bit more lenient now.



Modified: 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPParser.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPParser.cpp
  2011-03-16 18:48:41 UTC (rev 40973)
+++ 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPParser.cpp
  2011-03-16 19:09:19 UTC (rev 40974)
@@ -37,7 +37,7 @@
        int32 startPos = outString.FindFirst(start);
        if (startPos < 0)
                return "";
-       outString.Remove(startPos, 1);
+       outString.Remove(0, startPos + 1);
 
        int32 searchPos = 0;
        while (true) {


Other related posts:

  • » [haiku-commits] r40974 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib - clemens . zeidler