New emails don’t go ping
Q My Mail notification sounds don’t work. They worked for two weeks and now, nothing. The Notifications app, and Mail preferences, are correctly set, but it doesn’t happen. Have you come across this unwelcome phenomenon? Roger Kean
A This is indeed a long-standing bug that dates back to Lion. It’s related to sleep states and App Nap, but the precise cause hasn’t been narrowed down yet.
I can give you a few workarounds. Turn off ‘Put hard disks to sleep when possible’ in Energy Saver Preferences. If that doesn’t help, try using Activity Monitor to force quit the coreaudiod process (when it restarts, you may hear several notification sounds played at once).
A slightly more long-winded tactic is to create your own notification system. You can do this by creating a Mail rule that runs an Applescript, which in turn plays the
sound. Open the Applescript editor and type: tell application " Mail" to if (count of (every message of inbox whose read status is false)) is greater than 0 then
do shell script " afplay‘/Applications/Mail.app/Contents/ Resources/New Mail.aiff’"
Save this as ‘New Mail’ in ~/Library/ Application Scripts/com.apple.mail. Now in Mail -> Preferences, create a rule that applies to ‘Every Message’ and runs the New Mail script.
If you force-quit coreaudiod, OS X relaunches it but this might restore the notification sounds.