mport re                                                                                                                                                                                                                         
def oimaptransfolder_Geekosphere(foldername):                                                                                                                                                                                     
    if(foldername == "INBOX"):                                                                                                                                                                                                    
        retval = "Geekosphere"                                                                                                                                                                                                    
    else:                                                                                                                                                                                                                         
        retval = "Geekosphere." + foldername                                                                                                                                                                                      
    retval = re.sub("/", ".", retval)                                                                                                                                                                                             
    return retval                                                                                                                                                                                                                                                                                                                                                                                                                           
def localtransfolder_Geekosphere(foldername):                                                                                                                                                                                     
    if(foldername == "Geekosphere"):                                                                                                                                                                                              
        retval = "INBOX"                                                                                                                                                                                                          
    else:                                                                                                                                                                                                                         
        retval = re.sub("Geekosphere\.", "", foldername)                                                                                                                                                                          
    retval = re.sub("\.", ".", retval)                                                                                                                                                                                            
    return retval