Create attachments while walking the tree of parts, so we find ones apple mail clients make

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