(self)
| 1015 | return self.as_string(policy=self.policy.clone(utf8=True)) |
| 1016 | |
| 1017 | def is_attachment(self): |
| 1018 | c_d = self.get('content-disposition') |
| 1019 | return False if c_d is None else c_d.content_disposition == 'attachment' |
| 1020 | |
| 1021 | def _find_body(self, part, preferencelist): |
| 1022 | if part.is_attachment(): |