Processing a MIME Part
Processing a MIME part presents a special problem: when you receive a part, you may not know whether or not the part contains multipart content. This section presents a simple procedure for processing both simple and multipart MIME parts:
1. Receive the part as a string (Receive the Part as a String).
3. Fill the MIME part from the string (Fill the MIME Part From the String).
4. Retrieve the headers as necessary for your application (Retrieve the Headers as Necessary).
5. Process the part body (Process the Body).