Mail Processing Code. More...
Functions | |
def | fast_mutiple.multiple (mail_dir) |
Method to predict results for all mails individually. More... | |
def | fast_mutiple.predict (mail_file) |
Method to predict result of a single mail. More... | |
def | fast_mutiple.mail_features (mail) |
Method to find features of a single mail. More... | |
def | fast_mutiple.preprocessor (mail) |
Method to pre-process the mails. More... | |
def | fast_mutiple.find_payload (mail_body, all_words) |
Method to recursively find single part payloads. More... | |
def | fast_mutiple.split_payload (payload, all_words) |
Method to split the large payloads into smaller chunks. More... | |
def | fast_mutiple.get_words_plain (content, all_words) |
Method to get words out of plain text content. More... | |
def | fast_mutiple.get_words_html (content, all_words) |
Method to get words out of html content. More... | |
Mail Processing Code.
This code loads the modules and process all files at once.
def fast_mutiple.find_payload | ( | mail_body, | |
all_words | |||
) |
Method to recursively find single part payloads.
mail_body | The complete mail body |
all_words | List of all words in the mail |
def fast_mutiple.get_words_html | ( | content, | |
all_words | |||
) |
Method to get words out of html content.
content | The html content |
all_words | List of all words in the mail |
def fast_mutiple.get_words_plain | ( | content, | |
all_words | |||
) |
Method to get words out of plain text content.
content | Plain text content |
all_words | List of all words in the mail |
def fast_mutiple.mail_features | ( | ) |
Method to find features of a single mail.
The address of mail |
def fast_mutiple.multiple | ( | mail_dir | ) |
Method to predict results for all mails individually.
mail_dir | The directory containing mails |
def fast_mutiple.predict | ( | mail_file | ) |
Method to predict result of a single mail.
mail_file | The address of mail |
def fast_mutiple.preprocessor | ( | ) |
Method to pre-process the mails.
The address of mail |
def fast_mutiple.split_payload | ( | payload, | |
all_words | |||
) |
Method to split the large payloads into smaller chunks.
payload | The complete payload |
all_words | List of all words in the mail |