Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
General iPhone Chatforums, a part of the
I have a hotmail (POP3) account and noticed the directory /private/var/mobile/Library/Mail/[email protected]/INBOX.mbox/Messages constantly grows and contains the xxx.emlx messages even after deleted. This can be verified with the Mail.app / Account...
04-17-2010, 08:25 PM #1INBOX mail remains after deleting
I have a hotmail (POP3) account and noticed the directory /private/var/mobile/Library/Mail/[email protected]/INBOX.mbox/Messages constantly grows and contains the xxx.emlx messages even after deleted. This can be verified with the Mail.app / Account / Inbox.
With a lot of investigation, I noted the Deleted Messages.mbox/Message folder gets a copy (with a new xxx.emlx) of the INBOX message --- the original remains in the INBOX.
Deleting the contents of the Trash folder removes xxx.emlx from the Deleted Messages.mbox folder -- but NOT the original xxx.emlx in the INBOX.mbox folder --- and of course it still does not show in the Mail App Inbox.
QUESTION: Why isn't the real INBOX message deleted? I've been testing this for a week or so, the original INBOX xxx.emlx continue to build up and never go away.
NOTE: The same thing happens with the SEND.mbox folder.
NOTE1: I have changed the Settings/Mail/Advanced settings to no avail. The changes (like remove immediately (or keep forever0 work as expected on the server.
NOTE2: I started testing/checking this after noticing my Mail folder had grown to 350M. A lot of the junk was on IMAP mail servers and was easily cleaned, but the POP3 (Hotmail) accounts are not behaving.
NOTE3: I deleted ALL POP accounts and recreated from scratch and made sure their Mail/POP-xxxxx account folders were also deleted. Then created two new accounts, started the test by sending a message from one hotmail account to the another account.
NOTE4: This has nothing to do with sync'ing w/iTunes or keeping mail on the server or anything external to the iPhone. All my tests (and issues) are 100% localized to the iPhone.
Anybody care to take a jab at this one? Or is this far too complex for MMI?
04-17-2010, 09:38 PM #2
Nothing is far to complex for mmiKeithsta
04-17-2010, 09:44 PM #3
04-17-2010, 09:47 PM #4
04-17-2010, 09:48 PM #5
Update (solution): The only way to truly clean out a mail folder on the iPhone (3.1.2) is to delete all the accounts, delete the complete Mail folder (messages, directories, everything) in /private/var/mobile/Library/, reboot (important!), re-enter the email accounts, and allow everything to download again. (I went from around 350M to 35M). How does this happen? For Hotmail (POP) accounts I'm not 100% sure, but for Google/Yahoo (IMAP) accounts it will happen when folders are renamed. The original folder (on the iPhone remains) and depending upon the email size, either a new directory structure is created or the small messages are added to the Envelope Index file .... and since the original folder remains, this results in having duplicate messages. With a lot of pictures, this adds up fast. The prior folder is not even available from the mail app. In my case I monitor multiple email accounts so it was easy to find problems.
If you're planning on experimenting, these are the two key areas:
/private/var/mobile/Library/Mail folder contains all your messages in multiple folders and files
/private/var/mobile/Library/Preferences/com.apple.accountsettings.plist contains your email accounts
----- Note: Save & restore this one to eliminate re-entering email accounts from Settings/Mail, Contacts, Calendar ------
Be sure to make back-ups of everything, just in case.
Note: Your messages will be re-downloaded as long as they are on the server. Remember, if messages are NOT on the server account, they can not be downloaded. Check first!! In this case ---- stay away. There are ways to re-import these 'raw and non-indexed' messages into Mail but the process is tedious and many people experience errors. Also, there are few tools available for the iPhone. It was easy in my case as everything was either on the email server or stored within my Outlook account.
Last edited by Mes; 04-25-2010 at 06:27 PM. Reason: Solution Found