Search code examples
jakarta-mail

saving back to drafts using javamail


I am using javamail in my app to read / send mails. I want to save a mail opened from Drafts back to drafts .Is it possible to edit the message and save it back. I am currently doing append which save it as a new mail.What is the right way to do it


Solution

  • You can't change a message in the folder. You have to add a new message and delete the old message.