preprocesses a the body of an email and returns a list of word_indices