Im writing a IMAP mail application running on J2ME. It's my senior project.
First, I would like to know that are there any IMAP messages to get the body of message only, not include an attachement?
When I send the message to IMAP Server like..
. fetch 20 body[text]
The IMAP Server will response like
<--BODY PART-->
---MOQ1233897306fd448beb67b3c728ca47f0f5c3dbef2f Content-Type: image/jpeg; name="card.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="card.jpg" /9j/4RPsRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAA ...
So, I have no idea how to get just the body not an attachment!? How do I know the file size and how many attached files in the message before load all these message and calculate for the file size?
If anyone knows about this, pls help me. Thank you a lot.