Hi, I installed an Alfred Workflow (see code below) that will mark all my mails as read. After you run it for a minute, the mail has crashed and I had to forcequit. However, now, when you open the Mail it crashes instantly, even after restart and repair o

Hello

I installed an Alfred Workflow (see code below) that will mark all my mails as read. After you run it for a minute, the mail has crashed and I had to forcequit. However, now, when you open the Mail it crashes instantly, even after restart and repair the permissions. I also used the Ctrl + C and CTRL-Z commands in the Terminal to leave the alfred_script, but nothing helped. I'm running out of ideas here, so I hope you could help me either reinstall the mail.app. I could always just switch to a different mail application, but it's kind of a last resort.

Code:

Tell application "Mail".

Define allAccounts on each account name

Repeat with currAccount in allAccounts

the unreadMboxes value (each mailbox to the account currAccount the unread number is not 0)

Repeat with currMbox in unreadMboxes

(read status of each message to currMbox including the playback State is set to false) true value

end repeat

end repeat

tell the end

Any input would be greatly appreciated. Can post the report of crash on demand.

Not sure that Alfred's, but it's just an Applescript script and it would not cause Mail to be planted.

However, when running through all the messages, it is possible Mail database has been corrupted and it crashes because of this.

I'll probably get anything out of the accident report, but others might.

My first instinct would be to rebuild the mailbox. Because you can't do that with him crashing, you can simply delete the databases and it will rebuild them.

Navigate to this folder:

~/Library/Mail/v3/MailData/

You can either manually through the files, or copy the full path and paste it into go the folder in the menu go to the Finder.

Remove the envelope Index files. Open Mail and see if it works well.

If your library does not appear in your folder, hold down the Option key and select library in the menu go to in the Finder.

Tags: Mac OS & System Software

Similar Questions

Maybe you are looking for