How to delete message from the fodler of  AOL account using Java mail

Hello All,
I am using Java MAil API in my application, i want to delete message from AOL account's folder,
when i set the folder as "Recently Deleted" or "Trash" , i get an exception as "folder does not exist".
when i tested , some times mail is moving into Recently Deleted folder, but not every time.
this is happening in both the interface as AOl Interface or my application.
when i use folder.close(true) after setting the flag of message as DELETED. it completely remove the message from the acount.
but i want to let the message be remained in the Recently Deleted folder. what should i do.
i dont want to remove the message completely from the account.I am using IMAP also.

You'll need to figure out what the real name of the "Recently Deleted" folder is on the AOL IMAP server
(assuming it's a real folder and not some sort of "virtual" folder), then copy the message into that folder.
See the folderlist.java demo program as a way to explore the names of all the folders on the server.

Similar Messages

  • HT1277 How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info Messages on server.

    How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info > Messages on server. What am I doing wrong?

    Mail > Preferences… > Accounts > Advanced > Remove copy from server after retrieving a message

  • Deleting messages from the sxmb_moni

    Hi frnz
    i want to delete messages from the sxmb_moni. i am trying to delete these from the sxmb_adm---->schedule delete jobs.
    here i found 1> schedule delete job for xml messages
                           2>schedule delete jobs for history entries
    i scheduled the time and executed the job. after executing the job i am getting the status finished. while seeing the  job log here its showing 0 XML messages deleted.
    so the job is running but the messages are not deleting.
    can u tell whatu2019s the procedure to follow the schedule delete jobs.
    i gone through some blogs and threads, but i found clearly how to schedule archive jobs but not how to schedule delete jobs clearly.
    pls tel me whatu2019s the mistake happening.
    Regards
    Munna

    thanks  Sekhar, Ramesh and Suresh for the relies.
    its a very good blog from u Sekhar.
    i need some clarifications how to delete the messages. first i canceled the messages by running the program RSXMB_CANCEL_MESSAGES . all the messages now are in the manually canceled status.
    now i want to archive the messages and delete the messages, right?
    i am trying to archive the messages by scheduling the archive job.here i am giving the archive  message program      RSXMB_ARCHIVE_MESSAGES,but its asking the access  key.
    what i have to give here. i dont know the access key.
    another question , i am able to see ITFACTION field in the  SXMSPMAST table. i am not able to see the messages in this field.
    how to delete the messages from the table SXMSPMAST. can i delete the field or not here?
    please reply
    Thanks Regards
    Munna

  • I joined this community in error and don't know how to delete myself from the group. Can someone please advise me on this ?

    I joined this community in error and don't know how to delete myself from the group. Can someone please tell me how to do that ?
    Thanks,
    Skeebo

  • Phone not deleting messages from the server

    Please help! My Blackberry Curve 9360 is not deleting messages from the server meaning that, after returning home from a week working away, i've still got a few hundred messages to wade through on my PC.
    I receive e-mails on the PC via Outlook Express. I've clicked on 'tools', 'accounts' then 'advanced' to ensure that the box for 'leave a copy of the message on the server' is unchecked i.e. messages sould be being deleted from the server when prompted to by the phone but this is not happening. Not sure what else to try or perhaps there was something i did / didn't do during the set-up of the phone.
    Any guidance would be much appreciated.
    Thanks in advance,
    Barry.

    Hello,
    Please check this KB:
    KB05133 Email reconciliation features for the BlackBerry Internet Service
    All reconciliation capabilities between your BB and your email SERVER are governed by that KB. So, even if you set the other settings (e.g., "Delete On") correctly, they will be irrelevant if your email service does not support it (as per that KB).
    Further still, reconciliation between your email SERVER and your PC CLIENT software are something completely separate. Only in a very few circumstances (e.g., IMAP) does (for instance) Outlook reconcile items deleted at the Server down to the PC Client.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to delete messages from IMAP server but keep on computer???

    Hi
    I am using Mail to receive my email messages from the University's IMAP server. My problem is that I need to keep copies of my sent and received emails for archives on my computer but not on the server because space is limited. However, when I check the 'remove messages from server' box in the preferences, it also removes them all from my Mail inbox and sent mail folders. Consequently, I'm constantly needing to go to the server (once a week) and manually delete the messages when my folder is too full and then I lose all of my messages.
    Can someone please tell me how I can keep all of my sent, received and trashed emails on my computer without them being stored on the server?
    thanks
    adam

    Eric is right. An IMAP account is designed specifically to keep email on line, on a server somewhere on the planet. That way you can use any machine anywhere and see your email. A POP account is designed to actually download your email to the specific machine that you are using and remove it from the server. Although there are ways around that...
    So if you want to keep an email on your computer and you want to delete it from the server, you have to make an "On my Mac" mailbox.

  • How to delete messages in the queue?

    The system log shows that it could not send message from queue , so I want to delete messages in the queue.
    Please tell me how to deal with , thank you !

    because the system log (/var/adm/messages) shows that it could not upload bulk message and not send message from queue. I am afraid of system down , I always uses
    imsimta qclean -from=sendmailuser -delete
    the result is Deleted N message files
    but I found that message files was exist at the same
    could you tell me the reasons!!

  • How to delete items from the list of "auto-open" tabs that load whenever FF4 opens?

    When I recently downloaded FF4, I was asked if I'd like to have FF automatically open the same tabs as were set in my IE. Great! Worked perfectly until I set those tabs as App Tabs. Now both the App Tabs and the original IE set of tabs open whenever I open FF -- essentially each tab loads twice -- as app tab and large tab. How can I delete tabs from the list of "auto-open" tabs? In addition, for some reason, every time I try to set my home page, it's not working -- I keep getting the same home page regardless of how many times I have tried to set a new one.

    You can close a tab with a middle-click or with a left click on the close X on the tab or via the right-click context menu of that tab.<br />
    Do those tabs come back if you close then and lose Firefox?

  • "Command-i" which was so useful in being able to selectively delete messages from the servers no longer works. Is their a replacement? Will it be fixed? Or should I change my mail application?

    "Command-i" which was so useful for selectively deleting messages from servers has disappeared in  Maverick. I wonder if it has been replaced by something else or should I look into other mail applications.

    Hmmm.  Which Mail program are you referring to?
    in Mac Mail command -i used to bring up the Account info pane on the server  (10.8.5)
    Now it seems you have to use the gear at the bottom in "Mail Activity" to get the drop down (10.9) :

  • Please someone tell me how to delete songs from the newest/latest verison of Itunes! You can't just right click anymore... :(

    So I have the latest version of Itunes and I can't figure out how to delete songs from Itunes when my IPad mini is connected; it's not like it was before when all you had to do was right click and select the delete option...
    Thank you all so much

    I have exactly the same problem with videos and my right click does not work either.  There is no delete function that I can see.

  • IMAP and deleting messages from the server

    Anyone else trying to use IMAP in the default mail app and seeing that messages deleted locally are not removed from the server?
    I found a lot of posts about this issue on older Android versions and devices, but nothing for the Bionic yet.
    And unlike for POP accounts, there is not an option in the settings to turn this on. IMAP is all about keeping messages and folders in sync between multiple clients, so this is an annoying bug.
    I have been using K-9 as a work around, but I'd rather not use two different mail programs, and don't like the look/feel of K9 as much either.

    DCZim,
      Are you using IMAP or POP?  Also, are you using a popular public IMAP service like GMail, MSN, etc. that can be "auto configured" without having to manually enter the server name?
      Per Google the IMAP bug (which has been fixed some time ago in the Android Mail app but not yet in Motorola's Blur mail app) is triggered by visiting the incoming server settings for the account.
      IMAP's entire purpose it to keep everything in sync between multiple devices/clients.  If you want to delete messages on your phone without deleting them from the server, you should use POP3 instead of IMAP and ensure you have the client configured to NOT remove messages from the server when deleted locally and to always "leave a copy of message on the server".  This is a general concept of POP3, nothing specific to the Bionic, Blur, or Android.

  • God morning can some  one tell me how to delete app from the iphone4?

    cAN SOME ONE TELL ME HOW TO DELETE APP FORM THE IPHONE4??

    If it is an App you have Downloaded and there is no X when it Wiggles...
    Perhaps this Assistant can Help you:
    http://www.apple.com/support/iphone/assistant/application/

  • After adding a new account, I can't delete emails from the inbox of this account.

    I just added a sixth account to my Thunderbird installation. There was no problem adding the account and I can send and receive emails without problem. However, I cannot delete emails from the inbox. What should I do to correct this?

    It is a POP account.
    I just backed up the profile.
    I don't know the size of the inbox nor how to see what it is nor change it. However, the inbox for this account is currently empty. (Yes, I know this post is about not being able to delete emails from the inbox, so how can it be empty? In my research I found a post of someone with the same problem who discovered he could move emails from the inbox to another folder and then delete that folder (not the individual mails in the folder, but only the entire folder). That is how I emptied the inbox, but it is a very cumbersome work around that I shouldn't have to do.

  • How can I delete messages from the local Sent folder without deleting from the remote server?

    I am running out of disk space on my local machine. Analysing this, I can see that a large amount of space is being taken up by local storage of Sent emails from my IMAP synchronised account.
    I do not see how I can delete the local copies from my PC without them being deleted from the Server as well. There is an account setting option under Synchronisation and Storage to delete messages, but it says they will be deleted from both the local machine and the remote server.
    I need to keep the server versions as these are business accounts and it is important I have all my old messages stored somewhere.

    Short answer: get a bigger hard disk.
    You could disable synchronization and free up the space on your local disk without loosing the messages. However, this would eliminate the possibility to create backups of your messages.<br>
    Since you mentioned this is important business mail, you shouldn't take chances.

  • Cannot delete messages from the Drafts folder in Mail.

    I am running Mail 2.1.3. For some reason I am no longer able to delete draft messages from my Drafts folder. It is by no means a serious problem, just annoying! Can anyone figure this out? Thanks.

    Hi Dubaiman, and a warm welcome to the forums!
    I'm having trouble finding exactly where that is stored, but maybe move these to the Desktop in case we want to put them back, quit Mail first...
    /Users/YourUserName/Library/Mail/[email protected]/.mboxCa che.plist
    /Users/YourUserName/Library/Mail/Mailboxes/.mboxCache.plist

Maybe you are looking for

  • How do I delete photos from an external hard drive before downloading to my new Mac?

    I have a Seagate FreeAgent GoFlex external hard drive that has all my photos from my old computer on it  Because there are thousands, I want to delete a bunch of them before downloading onto my new Mac.  However, when I click on the photos, they say

  • Trying to get Mac Pro wi fi to be recognized by iPOD touch

    My mac Pro was purchased with the Aiport Extreme card. I can use airport on the MAc to connect to my remote Airport Express card to pipe music to my hi fi. I cannot get the iPOD touch to establish a wi fi connection to the Mac though. When I turn air

  • Determine LVOOP class name? - of a child class...

    Hi, I have a number of modules (classes) that inherit from a base class called "Module".  I have these all in an array of type "Module", I would like to log some information from each of these modules, but I need to distinguish between each module. I

  • What are the benefits of compiling in a fakeroot environment? [SOLVED]

    Out of curiosity, what exactly are the benefits of compiling packages in a fakeroot environment?  There are a couple packages I've had to compile manually before running makepkg because they wouldn't compile in a fakeroot environment, and was just wo

  • Restriction of BAPI_TRANSACTION_COMMIT in User Exit

    Dear Experts,                       I am trying to create Sales Order upon saving Purchase Order through user exit EXIT_SAPMM06E_012  using BAPI_SALESORDER_CREATEFROMDAT2.But i got to know that ...we should not use BAPI TRANSACTION COMMIT in user exi