Outlook shows SOME deleted messages even after restart

I'm having a problem with deleting messages on Exchange (IMAP). This problem falls somewhere between javamail, Exchange, and Outlook. I do something like this:
    folder = store.getFolder(folderPath);
    folder.open(Folder.READ_WRITE);
    Message[] msgs = folder.getMessages();
    // do processing
    for ( Message m : msgs )
        m.setFlag( javax.mail.Flags.Flag.DELETED, true );
    folder.close(true); //  Expunge all messages w/DELETED flagThis works MOST of the time. For some reason, Outlook 2003 continues to show SOME of the deleted messages in the folder, even if I click on "Send/Receive", and even if I restart Outlook. No exceptions occur during the processing.
I also wrote a simple program to get all messages in the folder. This program shows that there are 0 messages in the folder, but they continue to show up in Outlook. Anyone know why Outlook still displays these "phantom" messages!?
TIA,
Vick

Here's a debug session sample where the folder shows 2 messages in Outlook, but none in JavaMail. The two messages in Outlook can be opened and viewed. They remain even after "Send/Receive" and restart of Outlook. These two "phantom" messages were deleted with JavaMail in a previous pass using code shown in previous post.
DEBUG: no connections in the pool, creating a new one
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (xxxxx.com) ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
A0 OK CAPABILITY completed.
IMAP DEBUG: AUTH: NTLM
A1 LOGIN xxxx yyyy
A1 OK LOGIN completed.
A2 SELECT GRN/GRNInbox
* 0 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags
* OK [UIDVALIDITY 2544] UIDVALIDITY value
A2 OK [READ-WRITE] SELECT completed.
A3 LIST "" GRN/GRNInbox
* LIST (\Marked \HasNoChildren) "/" GRN/GRNInbox
A3 OK LIST completed.

Similar Messages

  • My mac mail on just keeps sending the same messages even after deleted and shows thousands of emails supposed to be coming in

    My mac mail on just keeps sending the same messages even after deleted and shows thousands of emails supposed to be coming in

    If you have a backup, you can restore the e-mails. Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Library/Mail/V2.
    Thanks to leonie for some information contained in this.

  • Messages doesn't  keep my "Show as Boxes"display preference after restart.

    Any ideas on how to make Messages keep my “Show as Boxes”display preference after restart. It always defaults back to “Show as Ballons”.
    Thank you community,
    Paul

    Hi,
    Open a Finder  window
    Go to the View Menu and chose "Show Path Bar"
    This will show the way to the folders and files you navigate to.
    In the Finder still, use the Go Menu whilst holding down the ALT key
    Select the Library that appears
    Navigate to the Preferences Folder.
    Now Right click the Library in the Path Bar.
    Choose Get Info.
    In the panel that opens up check the Ownership and Permissions section
    highlight your Name and then use the cogwheel type icon.
    Your shortname should appear in a sentence that reads "Make Shortname (me) the Owner" but it should be greyed out if you already Own the folder.
    Your name in the list should have Read and Write Permissions.
    Do you have Read and Write Permissions an Own the Library folder ?
    Repeat for the Preferences Folder.
    Repeat for a file in the Preferences folder called  com.apple.ichat.plist (just highlight the file and then do CMD + i keys (Get Info))
    Basically to be able to change a Preference you need permission to Write to the file involved.
    However you also need Read and Write permissions to the containing folders.
    If it is not sticking then it would seem you do not have those.
    9:30 pm      Monday; November 4, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Unresponsive system but mouse still moves; even after restart

    I was transferring a few files over my LAN wirelessly via file sharing to another macbook (B) when that macbook was closed and caused a disconnect. My macbook (A) has experienced issues since this disconnect. Even after restarts and resetting the pram, my system is unresponsive. The mouse will move but I cannot open applications, folders, files, or even the menu. It is as if my mouse is moving over top a picture of the desktop. I did manage to click and highlight my HD icon once but as soon as I did, the color wheel showed up and never stopped. My hard drive has over 10GB of space free. I was able to do a target disk boot and test the drive and its ok according to disk utility. Any ideas about what I could do would be greatly appreciated...preferably without wiping the hard drive.

    The first issue occurred while I was transferring large files from one computer to another via afp file sharing over my wireless network. In the middle of this transfer, someone closed the receiving macbook. The macbook sending the files didn't respond well after this. It would intermittently freeze without a linked resource draining process. I believe the first occurrence was when I tried to right click a file that had been interrupted during transfer. I forced a restart, used the killall Finder command in terminal thinking that it might still be trying to transfer the file to a ghost in some way...even though that didn't make sense. I was able to verify and repair the external drive the file was on. After doing this and resetting the PRAM, it was back to normal for a little while. After a bit of normal activity (nothing strenuous), it began to freeze again. I tried the same steps and also booted in target disk mode so I could use the other macbook to run diagnostics. The drive got repaired. I attempted to restart the affected macbook but I couldn't do anymore than one thing and the never-ending colorwheel would appear. That one thing could be a single click on a file or an attempt of opening an application. After that I turned to this discussion forum after already impatiently attempting to safe mode boot and repair disk permissions. I tried this again with patience after your suggestion. It worked for a few hours and I was able to surf the web once more and go about the usual. I pulled up dashboard and pressed command+ to bring up the list of widgets and it froze on me again. I attempted previous steps again after restarting but there has been no difference in response. Throughout the entirety of this experience, there have been no error messages. Also, there's no difference in behavior if I disconnect everything but the power cable.
    Sorry for the lengthy post but hopefully it will be helpful.
    Message was edited by: AG_Jazz

  • Indesign CS6 quits during document recovery, even after restart. How do I get out of this cycle?

    Indesign CS6 quits during document recovery, even after restart. How do I get out of this cycle?
    I was saving a document when it originally quit. so "locked" file appeared in directory as well as reg file.
    Upon restart of InDesign, recovery failed and software quit again.
    Restarted computer, then indesign, file opens but as soon as I select "recover" it sends a message that indesign needs to close.
    I cannot seem to get out of this cycle. Help.

    Use your operating system’s Search utility to find a folder called (InDesign Recovery) and delete it.

  • Deleted messages remove after one day (one week, one month) not working

    Has anyone noticed that since the upgrade to iOS 7 automatic email cleanup does not seem to be working?
    I have an IMAP email account set up with the following setting: Settings > Mail, Contacts, Calendars, [then tap the email account in question] > Account > Advanced > Deleted Messages Remove > After one week
    I have had that configuration on my iPhone and iPad for a very long time, and it always deleted everything out of my deleted messages folder (which, on my system, is called Trash) that was older than one week. It would do this no matter when the message was actually deleted, and no matter whether I deleted it on my iPhone, my iPad, on a computer using Outlook, or through a web interface. (It actually would have been nice to retain a message I had just deleted for the one-week period in case I changed my mind; instead the way it worked was if I deleted a message that was received months ago, it would be removed from Trash almost right away. But it worked consistently.)
    Now, since iOS 7, it does not appear to be cleaning out that folder at all. Has anyone else noticed this?
    I'm not sure if it's not removing any messages, or if it's just not removing messages I delete on another platform (like Outlook). So today I've done a test with a specific message that I will watch over the next little while to see how it works. But in the meantime I thought I'd ask if anyone else has noticed this, and if there is a solution.

    Really nobody?
    Is this working properly for people? It's not working for me on either my IMAP account or on an iCloud email accout, so I think iOS 7 broke something here. I've submitted a bug report on the feedback form, but it would be nice to know I'm not alone.

  • When ever I customize the toolbar the open new tab sign that is the + sign near the lastly opened tab in the tab bar disappears and it remains so even after restarting Firefox.

    When ever I customize the toolbar, the open new tab sign that is the + sign near the lastly opened tab in the tab bar disappears and it remains so even after restarting Firefox. This happens only after updating to the new version 4.0.1 it never happened in the older versions 3.x.xx- checked it thrice. Thought it could be a bug and i didn't know where to report also don't have time and patience to search for the appropriate page so i'm reporting here for improving my favorite browser.

    You can find the New Tab button showing as a '+' on the Tab bar.<br />
    You can open the Customize window and drag the New Tab button from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
    If you want the New Tab button at the far right end of the Tab bar then place a flexible to the left of it.<br />
    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosn

    I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosnole
    Any idea?

    Hello,
    Can you tell us what versions of CUCM and CUxAC you are using?  Just extensions alone in CUCM will not sync to the corporate directory within the attendant console application.  You will at least have to have user's associated with those extensions and depending on your rule set within the console that should then bring those extensions into the console directory.
    Thanks,
    Tony

  • One of the e-mails in my ipad deletes messages automatically after reading without backup.  what do I do to correct this so that my mails would remain in the inbox after reading for reference purpose

    One of the e-mails in my ipad deletes messages automatically after reading without backup.  What do I do to correct this so that my mails would remain in the inbox for reference purpose?

    As you are on a residential service you have to wait for engineer availability priority is given to Business users as they get a different service level agreement also using a residential line for business use can leave you open for suspension or cancellation of service as it breach's the terms and conditions
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • When the Mavericks download was complete (about 45 minutes), nothing happened, even after restarting. Still running 10.8.5

    When the Mavericks download was complete (about 45 minutes), nothing happened, even after restarting. Still running 10.8.5

    Look in your Applications folder. Is there a Mac OS X Mavericks installer in the folder? If there is then select it. Press COMMAND-I to open the Get Info window. See if the size of the file is around 5.3 GBs. If it is then try double-clicking on it to run it. If you cannot run it, then you have an incomplete download. Try it again. It's a very large file, and unless you have a really fast pipe it can take longer than 45 minutes to download.

  • HT4059 I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't

    I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't cheap.

    Hi I had a similar issue to you, I could connect to the router but no internet. Here is my explanation of how I sorted it.....I hope this works for you.
    *To anyone that is reading this it appears that the problem lay in the airport setting: IPV6: set to 'Automatically'. I turned it off (after reading someones plight on MacFixIt) & everything is back to normal.*
    *The worrying thing is although my problem was extreme with other computers on the network being locked out nothing was changed, one minute it worked the next it didn't. Reading on other forums it appears to be a problem with laptops (but I could be mistaken). A lot of people on the Macfixit forum are complaining of network just dropping out even when they are next to the router.*
    *I hope this is the fix (although I dont know why it suddenly went to sh*t!) & I hope my hair pulling & trawling the forums can help someone else out.*
    Much Respect
    Lammo

  • When I run repair permissions I continue to get this message even after a full reformat and re-install of OS.  "Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repai

    When I run repair permissions I continue to get this message even after a full reformat and re-install of OS.  "Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired."

    Doug,
    According to Apple, Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore.

  • Acrobat Pro for Mac won't start, even after restarting the machine.  Any suggestions?

    Acrobat Pro for Mac won't start, even after restarting the machine.  Any suggestions?

    Hi Patrick,
    Can you please mention the version of Adobe Acrobat that you are using and on what OS version. Also mention whether this problem has started recently and was running fine earlier or is it a fresh install and has never worked for you.
    Have you tried uninstalling and reinstalling the product after you started facing this issue.
    -Shashi

  • Tried restoring iPad to prepare it to sell, encountered error now iTunes won't recognize.  The iPad just shows the connect to iTunes even after restarting.

    I tried restoring iPad1 to prepare it to sell, encountered error during the restore.  iTunes dispalyed a message that there had been an error.  My iPad1 is just showing the image to connect to iTunes, even after i try restarting the iPad1.  I've also restarted my PC and iTunes will not recognize the iPad1.
    iTunes is and will recognize my new iPad3 just fine.
    How do I get my iPad1 to come back to life?
    Thanks!

    No luck.  The article says to press and hold the home button, then plug in the usb cable.  When i do that, I still just have the connect to itunes image on the iPad, and iTunes is not recognizing the iPad.

  • I just brought a apple protection plan as my phone warranty is going to end in a day, when i am trying to enter the protection plan code and my phone serial no its showing an error message try after some time is there any solution to that?

    i just brought a apple protection plan as my phone warranty is going to end in a day, after entering the protection plan code and my phone serial no its showing an error message "technical error try after some time", is there any solution for that?
    As i need the warranty to extend for another year please help me regarding this issue.
    When i bought a new iphone5 in Inda after using it for three days lock button was not working properly and it was warranty claimed and exchanged from apple service center in India, for the same phone I want to extend the warranty but its showing a error message is there any solution?

    Here is some information on the applecare +:
    http://www.apple.com/support/products/iphone.html
    It appears that you have to buy the applecare within 30 days of buying your phone - you said that your phone warranty is almost over, so when did you buy it??? That could be the explanation for the error.

Maybe you are looking for