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

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 13 Feb 2011 23:23:09 +0100 (CET)

Author: czeidler
Date: 2011-02-13 23:23:08 +0100 (Sun, 13 Feb 2011)
New Revision: 40481
Changeset: http://dev.haiku-os.org/changeset/40481
Ticket: http://dev.haiku-os.org/ticket/7214

Modified:
   
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
Log:
Use quotation marks around mailbox names. Maybe fix #7214.



Modified: 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
 2011-02-13 21:50:15 UTC (rev 40480)
+++ 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
 2011-02-13 22:23:08 UTC (rev 40481)
@@ -76,8 +76,9 @@
        if (fMailboxName == "")
                return "";
 
-       BString command = "SELECT ";
+       BString command = "SELECT \"";
        command += fMailboxName;
+       command += "\"";
        return command;
 }
 
@@ -773,8 +774,9 @@
 BString
 SubscribeCommand::Command()
 {
-       BString command = "SUBSCRIBE ";
+       BString command = "SUBSCRIBE \"";
        command += fMailboxName;
+       command += "\"";
        return command;
 }
 
@@ -797,8 +799,9 @@
 BString
 UnsubscribeCommand::Command()
 {
-       BString command = "UNSUBSCRIBE ";
+       BString command = "UNSUBSCRIBE \"";
        command += fMailboxName;
+       command += "\"";
        return command;
 }
 


Other related posts:

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