feisty meow concerns codebase  2.140
eml_to_txt.py File Reference

Go to the source code of this file.

Namespaces

 eml_to_txt
 

Functions

def eml_to_txt.file_exists (f)
 
def eml_to_txt.save_file (fn, cont)
 
def eml_to_txt.construct_name (id, fn)
 
def eml_to_txt.disqo (s)
 
def eml_to_txt.disgra (s)
 
def eml_to_txt.pullout (m, key)
 
def eml_to_txt.extract (msgfile, key)
 
def eml_to_txt.clean_header (h)
 
def eml_to_txt.caption (origin)
 

Variables

string eml_to_txt.startdirname = "Email"
 
int eml_to_txt.num = 1
 
 eml_to_txt.nam = i[:-4]
 
string eml_to_txt.path = "./" + startdirname + str(num) + "/" + nam
 
 eml_to_txt.f = open(i, "r")
 
def eml_to_txt.emailDict = extract(f, f.name)
 
string eml_to_txt.textFile = ""
 
def eml_to_txt.froms = emailDict["from"]
 
def eml_to_txt.tos = emailDict["to"]
 
def eml_to_txt.subject = emailDict["subject"]
 
def eml_to_txt.parts = emailDict["parts"]
 
def eml_to_txt.date = emailDict["date"]
 
def eml_to_txt.txt = emailDict["text"]
 
def eml_to_txt.html = emailDict["html"]
 
list eml_to_txt.files = []
 
 eml_to_txt.wf = open("./" + startdirname + str(num) + "/" + nam + "/" + "txt_" + nam + ".txt", "w")