Re: [Mimedefang] Part’s parent content-type

2017-11-04 Thread Dianne Skoll
On November 4, 2017 9:25:20 PM EDT, Amit Gupta wrote: >Thank you Dianne! This is going to sound silly, but what I'm looking >for is a function like >$parent_part = get_parent ($top_entity, $part); No such function exists. That's why you have to do it the way I illustrated.

Re: [Mimedefang] Part’s parent content-type

2017-11-04 Thread Amit Gupta
Thank you Dianne! This is going to sound silly, but what I'm looking for is a function like $parent_part = get_parent ($top_entity, $part); So given the top level entity and a specific part, the function will return the MIME::Entity for the parent of $part. I'm struggling with getting the

Re: [Mimedefang] Part’s parent content-type

2017-11-04 Thread Dianne Skoll
On Fri, 3 Nov 2017 22:37:46 -0700 Amit Gupta wrote: > 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? Pass it in when you recurse. sub process { my