In matlab, how can I delete an email using JavaMail API's "Flags"?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
Deepanshu
2012년 12월 14일
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.
댓글 수: 0
Lewin Probst
2017년 4월 18일
Although the post is about 5 Years old, maybe this question can help:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!