How do I stop Apple Mail from opening because of iCal appointments?

42

29

I use only webbased Gmail for mail, but Mail.app keeps popping up as a result from iCal-appointments that have a e-mail reminder setting. I also get these reminders from Gmail anyway and I would like to disable the Mail.app program altogether.

I'm kind of fed up of doing "forcequit Mail.app" from Alfred several times a day. How can I solve this? Is there some kind of hook like "When Mail.app launches, kill it"? Mail.app cannot be removed from OSX.

Michiel Borkent

Posted 2011-09-18T20:34:13.347

Reputation: 917

Very similar question: How do I make Mail.app quit after iCal sends an alert?

– slhck – 2011-09-18T20:49:52.940

GARR damn straight! latest osx is, like, constant annoying city! – david van brink – 2012-12-02T02:11:09.163

Answers

50

There's really only one way to kill Mail.app (as per my comment on waiwai's answer). Open Terminal.app from Applications/Utilities and enter:

sudo chmod 000 /Applications/Mail.app/Contents/MacOS/Mail

This will prompt you for your administrator password.

To reverse this, enter:

sudo chmod 755 /Applications/Mail.app/Contents/MacOS/Mail

I originally thought iCal was using the Launch Services database to open Mail, but in order to get the communication working, it relies upon AppleScript instead. You can find the script here:

/Applications/iCal.app/Contents/Resources/Mail.applescript

Unfortunately, it says:

… changes to this file will not be reflected in iCal behavior unless manually recompiled.

Thus you can't just delete or move away this file. You won't see any difference.

slhck

Posted 2011-09-18T20:34:13.347

Reputation: 182 472

This always worked great, but on El Capitan, I'm now getting: Unable to change file mode on /Applications/Mail.app/Contents/MacOS/Mail: Operation not permitted – kvz – 2015-10-21T06:59:17.897

This is because of the new security system they deployed, which even permits root from changing some system files. Maybe you have to boot into recovery and then follow these steps to turn off this protection: https://forums.developer.apple.com/thread/4138

– slhck – 2015-10-22T08:18:53.623

13

For those with Mountain Lion, you can try this: http://www.quora.com/OS-X-10-8-Mountain-Lion/Is-there-a-way-to-completely-disable-OS-X-Mail-app-to-fire-up-and-send-Calendar-notifications

In Calendar.app, click Calendars to show your calendars in the left sidebar. Then right-click the calendar in question, choose Get Info, then click Ignore alerts. This way you'll continue to receive your Google Calendar email alerts, but not the additional OS X Calendar alerts.

bradenm

Posted 2011-09-18T20:34:13.347

Reputation: 231

Excellent. After upgrading to Mountain Lion, I was confused as to why I was receiving e-mails from both Google Calendar and myself for the same events. Thanks! – jrhorn424 – 2013-03-03T20:57:22.667

4

I renamed /Applications/Mail.app to /Applications/Mail.disabled using the following command in Terminal:

sudo mv /Applications/Mail.app /Applications/Mail.disabled

Michiel Borkent

Posted 2011-09-18T20:34:13.347

Reputation: 917

2This wasn't a complete solution, as OSX started asking where Mail.app was. So 'sudo chmod 000 /Applications/Mail.app/Contents/MacOS/Mail' is the solution that works best. – Michiel Borkent – 2011-09-19T07:59:55.790

Renaming mail didn't work for me. They must have figured out people were doing that. I'm on 10.7.3. – user4649 – 2012-02-24T19:52:15.667

2

This is happening because Google calendar is trying tho send the email notification. If you don't need the email notification but an alarm is enough you can just adjust settings in Google calendar to not send email notifications and it will stop trying to start Mail.app every time you have an appointment coming.

Luis Villegas

Posted 2011-09-18T20:34:13.347

Reputation: 21

1

For complete Mail.app killage (and not just changing default mail app), open Terminal (inside /Applications/Utilities in an administrative account and enter

sudo chmod 000 /Applications/Mail.app

It will prompt you for your password. Enter it, and then try to open Mail. It won't open!

To undo:

sudo chmod 755 /Applications/Mail.app

(If using Terminal, then you could also remove the app too, I guess, but I'd suggest just chmodding it in case you need it in a year's time.)

waiwai933

Posted 2011-09-18T20:34:13.347

Reputation: 2 293

Thanks for the suggestion! I've added that to my answer. – waiwai933 – 2011-09-18T21:00:44.483

Tried this, but I could still launch mail after doing this. Weird. But I solved it like this, using the Terminal: sudo mv /Applications/Mail.app /Applications/Mail.disabled. If I want Mail.app back, I'll just rename it back. – Michiel Borkent – 2011-09-18T21:12:55.623

3Ah, well of course that won't really work, because the real binary /Applications/Mail.app/Contents/MacOS/Mail is still executable. So use the chmod command on this, not the Mail.app folder. @MichielBorkent – slhck – 2011-09-18T21:19:59.513

1

Wouldn't it work to just disable all alerts in iCal, so that it never tries to send an alert via Mail?

In iCal preferences, click on Advanced, then click on "Disable all Alerts".

This leaves Mail executable in case you ever want to use it for another purpose (like looking at locally archived email).

EFC

Posted 2011-09-18T20:34:13.347

Reputation: 111

If you disable all alerts, you won't get the popup alert either. – Marc – 2012-08-01T17:23:21.070

0

Highlight "Mail" in applications folder. "Command I" or "get info" from file menu. At bottom in "sharing and permissions" you must unlock, then highlight the user, and click the "minus" sign below. This places a tiny red minus sign on the Mail folder and disables it

Gregory Moore

Posted 2011-09-18T20:34:13.347

Reputation: 1

Per the comment on waiwai's answer, this only disables the .app folder, not the actual application, so it wouldn't work. Are you sure it works for you? – slhck – 2013-01-20T16:29:38.823

-1

Open Mail.app, then open the preferences. On the General pane set the "Default Email Reader" to whatever you actually use (like Firefox.app). Mail.app will stop opening then!

polynomial

Posted 2011-09-18T20:34:13.347

Reputation: 1 424

I tried this several times, with several apps, but Mail just kept popping up. – Michiel Borkent – 2011-09-18T20:59:00.913