Hi,

while working on gpgit.py, I needed a function to show me how the content of an email was structured. I came up with this:

It will print the structure in the form of:

$$\begin{array}{ll} | & \\ |\textrm{multipart/related} & \\ &| \\ &|\textrm{text/html} \\ &| \\ &|\textrm{image/gif} \\ &| \\ &|\textrm{image/gif} \\ \end{array}$$

I hope it comes in as handy for you as it was for me!