Posted By:
Alfred_Sniff
Posted On:
Wednesday, August 3, 2005 10:05 AM
Hi, I'm new with JavaMail and i wanted to know how to get only unread message from a Pop3. Actually, today I get all messages from the Inbox, but I want only unread messages. I saw a method but it return only the number onf unread messages. I tried a way to make it by using StatusHeader (statusHeader = msgs[msgNum].getHeader("Status");) but i doesn't work. Can someone help me? Morevover, I have an other problem when I want to save Attachment Documents. For example, I've got a mail with a file called "File000.pdf" in attachment. I tried to save it on the hard disk but it fails. I've got a file called "File000.pdf" but which can't be open. Can you show me how to do? Tha
More>>
Hi,
I'm new with JavaMail and i wanted to know how to get only unread message from a Pop3. Actually, today I get all messages from the Inbox, but I want only unread messages. I saw a method but it return only the number onf unread messages. I tried a way to make it by using StatusHeader (statusHeader = msgs[msgNum].getHeader("Status");) but i doesn't work. Can someone help me?
Morevover, I have an other problem when I want to save Attachment Documents. For example, I've got a mail with a file called "File000.pdf" in attachment. I tried to save it on the hard disk but it fails. I've got a file called "File000.pdf" but which can't be open. Can you show me how to do?
Thanks in advance for your answers
<<Less