HaikuDepot: notify work status from main window
[haiku.git] / src / add-ons / mail_daemon / inbound_protocols / imap / Utilities.cpp
blobf1a74c27d665f52dc9b8de195461e3d238317629
1 /*
2 * Copyright 2013, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "Utilities.h"
10 BString
11 MailboxToFolderName(const BString& mailbox, const BString& separator)
13 if (separator == "/")
14 return mailbox;
16 BString name = mailbox;
17 name.ReplaceAll('/', '_');
18 name.ReplaceAll(separator.String(), "/");
20 return name;