Because I like the button idea more than the "Mail-Service_Bounce" method I've done the following steps to get the "Bounce" button working in Lions Mail.app:
- stop Email
- create the script named "Bounce Message.scpt" in /Library/scripts/Mail Scripts/
- go to /Application/Mail.app/Contents an make a backup first using "tar cvfp mail.tar *" as root
- in /Application/Mail.app/Contents go to Resources and edit the two files: MainWindow.toolbar and SingleMessageViewer.toolbar
in "MainWindow.toolbar" find the section TOOLTIP_PRINT and put in the following lines after the TOOLTIP_PRINT section
{
help = "TOOLTIP_BOUNCE";
identifier = "returnToSender:";
image = TB_Bounce;
paletteLabel = "TOOLBAR_PALETTE_BOUNCE";
tag = 0;
target = "MessageViewer";
title = "TOOLBAR_BOUNCE";
},
in "SingleMessageViewer.toolbar" find the section TOOLTIP_PRINT_COMPOSE and put in the following lines after the TOOLTIP_PRINT_COMPOSE section
{
help = "TOOLTIP_BOUNCE";
identifier = "returnToSender:";
image = TB_Bounce;
paletteLabel = "TOOLBAR_PALETTE_BOUNCE";
tag = 0;
title = "TOOLBAR_BOUNCE";
},
- also copy the file "TB_Bounce.png" (see attachment) to the Resource directory
- change to /Application/Mail.app/Contents_CodeSignature and edit the file "CodeResources".
Search for "<key>Resources/TB_AttachTemplate.png</key>" and put the lines in after the TB_AttachTemplate.png section
<key>Resources/TB_Bounce.png</key
<data
SmQvzk53CYitSLVRk26HdCloTio=
</data>
- start email find the "Bounce" button in the toolbar and drag it to your working toolbar
Happy bouning.......