I am writing some code to handle SOAP with Attachments ( as needed by ebXML ) which uses MIME.
Fine, I think.. no problem thats all standard internet stuff the perl community will have dealt with plenty.
Nope. No mention of MIME in the SOAP::Lite perldoc, you need to check out the SOAP::Mime docs instead.
Not a problem, works fine.
The problem comes to when I use MIME::Parser to extract the MIME stuff at the other end - MIME::Parser doesn't directly deal with headers, it just parses it into a MIME::Entity object, which then holds the header in a MIME::Head object.
Fine, nice object oriented encapsulation.. except..
There is no way to get several important headers through the accessors, because at some point one of the modules throws them away!
For the love of god, why?!?
If you want to get the Content-Id from a part of a multipart message, you have to stick your fingers into the guts of objects inside objects and pull the value out from a hashref hidden deep inside.
gah!!!!
between fetching the MIME::Head myself manually, and through the M::E accessor, it sheds a load of headers that I want to use.
Very annoying.