Regarding Java Mail

Hi, Can anyone tell me how to get already read msgs using Java Mail or is there any other way to get itWith Regards,Subramanya
[154 byte] By [Subramanyaa] at [2007-11-26 18:15:00]
# 1
More detail, please.IMAP? POP3?JavaMail can easily access already read messages that are still on your server.
bshannona at 2007-7-9 5:48:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
hi,I'm using POP3 as my incoming, yes i wanted how to get already read mails from mail server....thanks in advance,Subramanya
Subramanyaa at 2007-7-9 5:48:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

If the messages are still on your mail server in your INBOX,

you can read them using normal JavaMail access. Note

that the POP3 protocol provides no notion of "new" or "already

read" messages; see the FAQ.

If you're using POP3 in the common form where you download

all new messages to your desktop machine, remove them from

the server, and only keep them locally on your desktop machine,

then JavaMail isn't going to be able to find them on your server.

bshannona at 2007-7-9 5:48:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

you will have the flag for the messages, depening on the flag value you can determine what state the message is

Javax.mail.Message

isSet(Flags.Flag flag)-- returns boolean depending upon the flag value

Flag values

ANSWERED

DELETED

DRAFT

FLAGGED

RECENT

SEEN

USER

Veeramania at 2007-7-9 5:48:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
POP3 doesn't support any flags. Read the FAQ.
bshannona at 2007-7-9 5:48:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...