Bouncing email in OSX Mountain Lion (10.8)

In Snow Leopard, the Mail app had a seldom-used, but very useful (to me), feature called “Bounce”.

Basically, when you bounce an email it sends an automated message to the sender stating that an error occured and their message was not delivered. This was often useful to send spam back to the sender, informing them your email address “isn’t valid”.

This feature was removed in Lion, but it can be easily recreated by using Apple Script. The original source tested it in Lion & Mountain Lion. I’ve confirmed it in Mountain Lion (10.8.2 as of this writing), but haven’t tested in 10.7.

Steps to recreate “Bounce”:

1. Open the automator app
2. Make a new service
3. In the main window (right-column), select “no input” in “Mail” for the ‘Service receives’ selectbox
4. Drag “Get Selected Mail Items” into the workflow from the pane on the left
5. Drag “Run Applescript” into the workflow
6. Insert the following code:

on run {input, parameters}
   tell application "Mail"
      repeat with eachMessage in input
         bounce eachMessage
      end repeat
   end tell
end run

7. Save as “Bounce” (or whatever you’d like to call it)

The service is now created, so to test it:

1. Open Mail
2. Select a message (probably a good idea to send yourself a message so you can verify the response!)
3. Click the “Mail” menu up top –> “Services” –>”Bounce”. A bounced notification will be sent to the sender.

Original Source