Attach a message to an outer message. outermsg must be a MIMEMultipart. Modifies a header in the outer message to keep track of number of attachments.
(self, outer_msg, part)
| 342 | return fetched_count |
| 343 | |
| 344 | def _attach_part(self, outer_msg, part): |
| 345 | """ |
| 346 | Attach a message to an outer message. outermsg must be a MIMEMultipart. |
| 347 | Modifies a header in the outer message to keep track of number of |
| 348 | attachments. |
| 349 | """ |
| 350 | part_count = self._multi_part_count(outer_msg) |
| 351 | self._process_before_attach(part, part_count + 1) |
| 352 | outer_msg.attach(part) |
| 353 | self._multi_part_count(outer_msg, part_count + 1) |
| 354 | |
| 355 | |
| 356 | def is_skippable(part): |
no test coverage detected