Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

IMAP Exchange and Delete

I have my iPhone connecting to IMAP on my Exchange server. It downloads mail just fine, but if I delete mail on my iPhone it does not delete off the exchange server. Anyone know how to fix this?

Oddly, it works in reverse. If I delete from Outlook then it does delete from my iPhone.

Keith

iPhone

Posted on Jun 30, 2007 3:49 PM

Reply
15 replies

Jul 1, 2007 4:34 AM in response to krs1171

It is because of the way that IMAP handles deletes. In IMAP mode, when a message is deleted, it is marked that way but still left on the server until you choose to erase deleted messages. If you open the account in Apple Mail or Outlook Express, you will not see the messages, but Outlook still shows them.

This is also true of messages you move. To erase them, choose to erase deleted messages in Outlook Express or Apple Mail and they will go away. There's also an option to erase deleted messages after one day in the iPhone settings.

It would be great if there was a setting to do it immediately in the iPhone, but I don't think there is.

Jul 1, 2007 10:13 AM in response to Smaug2

There's
also an option to erase deleted messages after one
day in the iPhone settings.


I don't see that option anywhere on my Exchange email setup in iPhone, that must be an IMAP only setting.

Likewise for the "Purge deleted messages" in Outlook. My Outlook is connected to the exchange server so it doesn't think that way.

Anyone else have luck deleting messages on the iPhone with an Exchange setup?

Jul 1, 2007 6:42 PM in response to Smaug2

Thanks for the comment. This makes sense and would explain my situation. Mail and my iPhone both show 51 messages in my inbox but at the end of the iPhone inbox list it says there are -495 messages total.

Ok now that I am going back to look at it, its not saying that anymore. I guess it just took a while to get everything in sync. Either way I can see how this would be a problem if your email client doesn't interpret IMAP the same way.

Jul 13, 2007 12:13 PM in response to krs1171

I have a solution that works (although not ideal) assuming you are using Outlook for your Exchange email when at your desktop/laptop.

1. You need to create a 2nd account in Outlook...an IMAP account using the same parameters you used when creating the IMAP account on your iPhone.
2. When you log into Outlook, first go to the IMAP Inbox and select "Purge Items Marked for Deletion" from the "Edit" menu. That deletes everything you had deleted on the iPhone. This menu item is only available when you have the IMAP Inbox selected.
3. You can then work as usual in Outlook...using your Exchange inbox or the IMAP inbox.

Not ideal, but works while we wait for ActiveSync or a more complete solution from Apple.

Oct 29, 2007 7:53 PM in response to jimmyz80

I have IMAPs syncing working fine with Exchange 2007 and iPhone with 1.1.1 but deletion of emails from iPhone still do not update on the server. The message moves to Deleted Items but no expunge. I know 1.1.1 was suppose to fix it but does anyone have this fixed expunge working with Exchange 2007 or are you all on Exchange 2003?

Nov 1, 2007 5:51 AM in response to Thunderdrinker

Thanks for the reply. I think it is Exch 2007. I am now using the expunge.exe (found at http://blogs.freshlogicstudios.com/Posts/View.aspx?Id=44a01293-3b32-4ee0-b23c-fa c99348e1cd ) and it is just doing an expunge IMAP command every 5 sec I believe. This works but is not exactly an pretty solution. Hopefully a slight tweak in a future iphone update will correct this.

Nov 2, 2007 11:07 AM in response to krs1171

I have mine setup to delete after one day on the iPhone and it works fine with Outlook. It's not instantaneous though and I think that's true of IMAP accounts in general with Outlook. It does take a while to update back to Outlook.

The problem that just started happening in my setup is that I've started losing folders on the iPhone if I edit their names on Outlook. When I first set it up I could make changes and it would be reflected on the iPhone. I'm investigating whether our IT made changes to the IMAP setting on our server. Now if I change a folder's name in Outlook it won't show up on the iPhone. Has anyone had this problem?

Nov 4, 2007 12:50 AM in response to krs1171

I guess the issue is in the IMAP implementation in Exchange 2007 rather than a problem on the iPhone. I am syncing my iPhone mail on three different IMAP servers (Linux CommuniGate Pro, Exchange 2003 and Exchange 2007). Only EX2007 is having that problem. Maybe the coming SP1 for EX2007 will fix that...

IMAP Exchange and Delete

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.