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


Question: mail error cocoa 512 can't delete messages

That says it all

Posted on


Page content loaded

Jun 22, 2012 2:23 PM in response to michaelfromdelta In response to michaelfromdelta

Hi Michael,

NSFileWriteUnknownError = 512

Not certain, but this can fix myriad Mail problems...

Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move this folder & file to the Desktop.

Move this Folder to the Desktop...


Move this file to the Desktop...

/Users/YourUserName/Library/Mail/Envelope Index


If that doesn't do it and you can afford to redo all your Rules, try these & reboot...



Note, in 10.5 & up /Users/YourUserName/Library/Caches/Mail/ may or may not exist.

Jun 22, 2012 2:23 PM

Reply Helpful
User profile for user: michaelfromdelta

Question: mail error cocoa 512 can't delete messages