def transform_text_part(part)
      type = part.part_type?
      text = part.body.decoded.strip
      transform_text(type, text)
    end
def transform_text_part(part)
      type = part.part_type?
      text = part.body.decoded.strip
      transform_text(type, text)
    end
Helper for process_media template method to transform text.