Best way to filter parts of a email.message.Message

Chris Angelico rosuav at
Thu Sep 4 06:08:43 CEST 2014

On Thu, Sep 4, 2014 at 1:52 PM, Cameron Simpson <cs at> wrote:
> On 03Sep2014 20:59, Tim Chase <python.list at> wrote:
>> - mime-parts can be nested, so I need to recursively handle them
> Just to this. IIRC, the MIME part delimiter is supposed to be absolute. That
> is, it will not occur in the nested subparts, if any.

I think the point here is that the validity check of a mime-part may
involve checking sub-parts - eg the message is a mailing list digest
(with one part per actual message), and some of those have
attachments, which are to be stripped off if over 1MB.


More information about the Python-list mailing list