How to extract .doc attachment from e-Mail

Hi:

We recieve outlook e-Mails using the e-Mail protocol(POP3) , how to extract the attachment from the e-Mail.

now i am extracting mimedata as a whole e-Mail instead of getting it as part by part, and then i am converting stream to String.

is there any posibility to extract the attachment from e-Mail and saving it to a folder.

Thanks
Ram