It's not working
Hi,
I found program on sun...\Retrieving Mail with the JavaMail API and Working with the Java Communications API.mht for fetching mail
I copid it and compiled.
But It gives me error for "Fetch" program as
incompatible types for
Message message[]=folder.getMessages();
Can you tell me what I will do?
# 3
I know nothing about the Comm API.
Let's assume the Comm API defines a javax.comm.Message class.
If you have
import javax.comm.*;
import javax.mail.*;
which Message class is it going to use? The one from javax.comm?
Or the one from javax.mail? It will use the first one.
If you need to use both, you can say
javax.mail.Message[] msgs = folder.getMessages();