dcsimg
How to access contents of a mail, when that mail is embedded in another mail ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prasad_Nutalapati
Posted On:   Tuesday, January 15, 2002 11:37 AM

I recieved a mail with another mail drag and dropped in to it. The embedded mail contains two or more files attached to it.Then the structure of the overall message would look like this. main body text body of the embedded mail as INLINE content. file1 mentioned as ATTACHMENT file2 mentioned as ATTACHMENT Now when using either flat-out method or architecturally "correct" method of hierarchial method, you will fail to store those attached files file1, and file2. What actually happens is since embedded email is reported as INLINE content, whole content of the embedded email along with its attached files, will be treated as part of the main email body.   More>>

I recieved a mail with another mail drag and dropped in to it. The embedded mail contains two or more files attached to it.Then the structure of the overall message would look like this.


			


main body text



body of the embedded mail as INLINE content.


file1 mentioned as ATTACHMENT


file2 mentioned as ATTACHMENT





Now when using either flat-out method or architecturally "correct" method of hierarchial method, you will fail to store those attached files file1, and file2. What actually happens is since embedded email is reported as INLINE content, whole content of the embedded email along with its attached files, will be treated as part of the main email body. To store the attached files from the embedded email, what can be done ? Thanks in advance.



Prasad.

   <<Less

Re: How to access contents of a mail, when that mail is embedded in another mail ?

Posted By:   Gianluca_Sartori  
Posted On:   Thursday, January 17, 2002 12:37 AM

The answer you are looking for is in the FAQ.

Anyway, you just have to treat each part of a message as a container of other parts or the message text.

If you get a Multipart object calling getContent(), you know you have to walk through the parts of that object to get what they contain. Any of those parts can be a Multipart object.
About | Sitemap | Contact