Does anyone know if it is possible to edit the code of the "bounce" command that is used in the Automator/AppleScript that jasonfromcorvallis posted? Where is it actually located?
My application for bounce is this: when I recently moved my domain's email from a personal server to Google Apps for Domains, my address became the "catch-all" for all mail set to the domain which does not go to one of the designated mailboxes (there are about 5 actual users). I can disable the catch-all, but would like to keep it for now to make sure things are working correctly. Anyway, since there is a catch-all address, mail sent to non-existent users is not bounced as it would normally be, but is instead sent to my mailbox. This is not spam (which Google does a great job of filtering) but is mis-addressed email intended for others.
I do not have time to reply to each one with a message, but would simply like to bounce the messages, which is exactly what would happen if I had not configured the domain with a catch-all. However, the AppleScript, which works like a charm, bounces the messages as if it had been addressed to me, not to the actual intended receipient. In that case, the bounce will be inexplicable to the sender, and thus not worthwhile.
But if I had access to the code that "bounce" uses, I could probably fix it. Ideas?