[Mimedefang] Part’s parent content-type

Amit Gupta amit777 at gmail.com
Sat Nov 4 01:37:46 EDT 2017

When iterating through the parts of a MIME::Entity using parts_DFS, what would be the best way to get a reference to a part’s parent entity or parent entity type? I’m trying to do some logic on an HTML part depending on if the parent type is multipart/related or not.  I was thinking of just setting a variable as I iterate through the parts, but it can get tricky if I don’t know the depth level I’m at. 

More information about the MIMEDefang mailing list