[Mimedefang] Part’s parent content-type

Dianne Skoll dfs at roaringpenguin.com
Sat Nov 4 22:29:36 EDT 2017

On November 4, 2017 9:25:20 PM EDT, Amit Gupta <amit777 at gmail.com> 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.

You could probably use the framework I posted to write such a function,
but I would rethink what you're trying to do to make it fit more naturally
into the recursive MIME structure.  You are thinking non-recursively
when you request such a function.



More information about the MIMEDefang mailing list