def accumulate_body(self): """ returns bodystring extracted from this mail """ #TODO: don't hardcode which part is considered body but allow toggle # commands and a config default setting return extract_body(self.get_email())
def get_text_content(self): return extract_body(self.get_email(), types=['text/plain'])
def accumulate_body(self): """ returns bodystring extracted from this mail """ #TODO: allow toggle commands to decide which part is considered body return extract_body(self.get_email())