Source

wd_pys60 / wd_mail_box_py.py

Full commit
import os
def cn(x):
    return x.decode("utf8")
files=[]
fileNames=[]
MAIL_PATH="c:\\Private\\1000484b\\Mail2\\00001001_S\\"
choices=os.listdir(MAIL_PATH)
#print choices
#print dir(os)
for c in choices:
    for s in os.listdir(os.path.join(MAIL_PATH,c)):
        try:
            fileName=os.listdir(os.path.join(MAIL_PATH,c,s))
        except OSError:
            fileName=None
            pass
        try:
            if fileName:
                fileName=fileName[0]
                fileNames.append(fileName)
                files.append(os.path.join(MAIL_PATH,c,s,fileName))
                print cn(fileName)
        except IndexError:
            pass
            
import appuifw
index = appuifw.popup_menu([cn(f) for f in fileNames]
, u"Select:") 

execfile(files[index])