Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:00:26+00:00 2026-06-08T04:00:26+00:00

Currently im doing as following, @Override public void saveDraftMessage(MimeMessage draftMessage) throws MessagingException { Folder

  • 0

Currently im doing as following,

@Override
public void saveDraftMessage(MimeMessage draftMessage) throws MessagingException 
{
    Folder draftsMailBoxFolder = imapsStore.getFolder("inbox");//[Gmail]/Drafts
    draftsMailBoxFolder.open(Folder.READ_WRITE);    
    draftMessage.setFlag(Flag.DRAFT, true);
    MimeMessage draftMessages[] = {draftMessage};
    draftsMailBoxFolder.appendMessages(draftMessages);
}

It works but , as you could see message is being appended to “inbox” folder without complain from server end !

Is there any kind of validation or an alternative method to ensure that message is saved as Draft only at appropriate place.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:00:28+00:00Added an answer on June 8, 2026 at 4:00 am

    As others have suggested above, you need to store your draft messages in a different folder. You can choose the name of that folder. If you’re only using Gmail and you want to be consistent with what Gmail is doing, saving it in the folder Gmail uses (“[Gmail]/Drafts”?) would make sense. Remember to delete the message from the folder when you send it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently doing the following to compensate for boolean's not mapping well to radio
I'm currently doing the following as part of my iPhone application NSArray *paths =
I'm currently doing integration testing on a database and I have the following sql
I am currently doing the following in my code avoid the issue of obscured
I'm currently doing the following to clear out an NSMutableDictionary [myDictionary release]; myDictionary =
I'm currently doing the following: timestamp = Time.new.to_time.to_i.to_s Is there a function in rails
I have a folder hierarchy represented by the following class: public class Folder {
I am currently doing the following to select posts from a custom post-type, query_posts('post_type=slideshow')
I currently run tests that look like the following: // In Blah.cs public class
I have a list l:List[T1] and currently im doing the following: myfun : T1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.