Create attachments while walking the tree of multipart content, so we find the ones Apple mail clients make

I copied heavily from here: https://github.com/martinrusev/imbox/blob/master/imbox/parser.py#L111