'Create a folder on the IMAP server
This will not update the list cached in :meth:`getfolders`. You
will need to invoke :meth:`forgetfolders` to force new caching
when you are done creating folders yourself.
:param foldername: Full path of the folder to be created.'

def makefolder(self, foldername):

    if (foldername is ''):
        return
    if self.getreference():
        foldername = ((self.getreference() + self.getsep()) + foldername)
    if (not foldername):
        foldername = self.getsep()
    self.ui.makefolder(self, foldername)
    if self.account.dryrun:
        return
    imapobj = self.imapserver.acquireconnection()
    try:
        result = imapobj.create(foldername)
        if (result[0] != 'OK'):
            raise OfflineImapError(("Folder    '%s'[%s]    could    not    be    created.    Server    responded:    %s" % (foldername, self, str(result))), OfflineImapError.ERROR.FOLDER)
    finally:
        self.imapserver.releaseconnection(imapobj)
