Close
jGuru Forums
Posted By: Dmtiry_Rubinstein Posted On: Sunday, December 16, 2001 07:20 AM
It's not a question but rather a request (in a vain hope that the developers of the appropriate SW are receiving events from this FAQ).
I'm using the IMAP4 provider and am trying to access the information on the nested MIME body parts of the message (such as Content-Language etc.). This info is available after a .fetch() with a CONTENT_INFO fetch item. However, if I try to access it by issuing mp.getHeader("Content-Type") another fetch is being performed. This is because the IMAP provider (by Sun) does not recognise the information received by ussuing a "FETCH x BODYSTRUCTURE" as headers. This information is only available through the direct calls to getSomething methods (that go into the BODYSTRUCTURE class). Too bad, since it makes the processing code lengthier and unreadeablier.
mp.getHeader("Content-Type")
So the request is to make a getHeader method smart enough to recognise information already fetched.
Re: Access to nested MIME part headers
Posted By: John_Zukowski Posted On: Thursday, December 20, 2001 08:29 PM