For months I’ve been having problems with Apple Mail crashing all the time. This seems to happen when a little spinning gear shows up in my menu bar indicating that the apple-mail-server-junk-mailbox script is running. It offers an option to cancel the script by clicking on a little ‘x’ but that never does anything. Sometimes it looks as if there are multiple instances of the script running. I’ve attached a screenshot of this problem.