⛏️ index : haiku.git

/*
 * Copyright 2013, Axel DΓΆrfler, axeld@pinc-software.de.
 * Distributed under the terms of the MIT License.
 */


#include "Utilities.h"


BString
MailboxToFolderName(const BString& mailbox, const BString& separator)
{
	if (separator == "/")
		return mailbox;

	BString name = mailbox;
	name.ReplaceAll('/', '_');
	name.ReplaceAll(separator.String(), "/");

	return name;
}