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

I have to force quit Mail almost every time I shut down my computer?

I am running Mac OSX 10.7.3 and I recently been having issues shutting down my computer with mail running. Sometimes it takes 2-3 mins for it to shut mail down and other times it says it couldn't shut down because of the mail app. Is there anything I can do short of reinstalling Lion? Thanks

MacBook Pro, Mac OS X (10.7.3), mid 2009 Macbook Pro

Posted on May 7, 2012 11:38 AM

Reply
10 replies

May 7, 2012 12:16 PM in response to jbizn

Please read this whole message before doing anything.


This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.


The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:


  • Be sure your Mac is shut down.
  • Press the power button.
  • Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
  • Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).


Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.


Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.


The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Test while in safe mode. Same problem(s)?


After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

May 7, 2012 2:01 PM in response to jbizn

jbizn wrote:


I am not at my computer right now, so I am unable to try that at this point in time, but when I try this and it doesn't work, what is the next course of action?

It's a test, it won't fix anything (as this sentence says)


"This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it."


Post the results back here

May 7, 2012 2:16 PM in response to jbizn

Please read this whole message before doing anything.


This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.


Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.


These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.


Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.


Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.


Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.


When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” (without the quotes) and press return. You should then get a new line ending in a dollar sign.


Step 1


Copy or drag — do not type — the line below into the Terminal window, then press return:


kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'


Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.)


Step 2


Repeat with this line:


sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'


This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.


Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.


Step 3


launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'


Step 4


ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null


Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.


Step 5


osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null


Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.


You can then quit Terminal.

May 7, 2012 2:29 PM in response to Linc Davis

I completed that task in terminal, this is what had happened

Last login: Mon May 7 17:04:20 on console

joshs-macbook-pro:~ josh$

joshs-macbook-pro:~ josh$ kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'

com.rogueamoeba.InstantOn (5.0.2)

com.Cycling74.driver.Soundflower (1.5.3)

com.zeobit.kext.Firewall (2.0.1)

joshs-macbook-pro:~ josh$ com.rogueamoeba.InstantOn (5.0.2)

-bash: syntax error near unexpected token `5.0.2'

joshs-macbook-pro:~ josh$ com.Cycling74.driver.Soundflower (1.5.3)

-bash: syntax error near unexpected token `1.5.3'

joshs-macbook-pro:~ josh$ com.zeobit.kext.Firewall (2.0.1)

-bash: syntax error near unexpected token `2.0.1'

joshs-macbook-pro:~ josh$ sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfi x|x)/{print $3}'



WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.



To proceed, enter your password, or type Ctrl-C to abort.



Password:

com.zeobit.MacKeeper.plugin.AntiTheft.daemon

com.zeobit.MacKeeper.AntiVirus

com.microsoft.office.licensing.helper

com.dymo.pnpd

joshs-macbook-pro:~ josh$ launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'

com.hp.help.tocgenerator

com.zeroonetwenty.jar

com.zeobit.MacKeeper.Helper

com.google.keystone.user.agent

joshs-macbook-pro:~ josh$ ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/nu

-bash: /dev/nu: Permission denied

joshs-macbook-pro:~ josh$ osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null

Growl, Mail, MacKeeper Helper, Cookie, F-Secure Mac Protection, HPEventHandler

joshs-macbook-pro:~ josh$

Please let me know if you think I had done something incorrectly? Thanks

May 7, 2012 2:54 PM in response to jbizn

That's not all the information I asked for, but it may be enough.



Remove MacKeeper by dragging the application to the Trash. It will pop up a dialog asking you why you want to uninstall it. You don't have to provide that information. Enter any text in the text box, then click the Uninstall button. Reboot.


IMPORTANT: MacKeeper reportedly has what the developer calls an “encryption” feature. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.”

I have to force quit Mail almost every time I shut down my computer?

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