In matlab, how can I delete an email using JavaMail API's "Flags"?

1 Ansicht (letzte 30 Tage)
Xiaobang
Xiaobang am 12 Sep. 2012
Beantwortet: Lewin Probst am 18 Apr. 2017
Hi all:
I am trying to read emails in matlab, and this can be achieved by using a Java component called JavaMail API. I already succeed in loading the information of email, however, I have problem with marking the processed email as "READ" OR " Deleted".
After running the following code, there will always be an error message:
setFlags(Flags.Flag.DELETED,true);
Error messgae: "No appropriate method, property, or field Flag for class javax.mail.Flags."
I am very sure that "Flag" is a class of javax.mail.Flags. Is there anyone else here having similar problems before? It will be appreciated if you could give me some guidance/suggestions. Thanks a lot.
Kind Regards, Fred

Antworten (2)

Deepanshu
Deepanshu am 14 Dez. 2012
I am sorry for asking a question instead of giving an answer.how did you read the mail by the way. Thanks for your time.

Lewin Probst
Lewin Probst am 18 Apr. 2017
Although the post is about 5 Years old, maybe this question can help:

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by