There are at least two options, I'll go over the easiest first.
Inserting a header into the body of the message
This isn't exactly what you asked for but it does convey the information by inserting a header into the
message body.
- Open the "Program Options" form by pressing F7.
- Press the "Message Text Quoting" tab.
- Select the "Bounced Header" tab.
- Check the "Insert header" box.
- Enter the text you want to insert, including any common variable tags.
- Press "Ok" to save the changes.
- Test your changes by bouncing a message (you don't actually have to send it, just examine the
header).
Modifying the "From:" header
To modify the "From:" header you have to be a bit more creative...
In the bounce header area of the options set a phrase that will be unique to messages you bounce.
Then write a script to process outgoing messages. Run the script when the body contains the phrase
"This message bounced to you by". In the script extract the body of the message and the full "From:"
header. Delete the first line of the body and replace the body.
Change the "From:" header to include the phrase you want to use and replace it in the message.
Hints:
- Use the "ExtractName" and "ExtractEMail" commands to easily parse the header).
- Read the full "From:" header as follows:
ReadAllHeaders $hdrs "From:" %message
LocateLine #LineNo "From:" $hdrs
GetLine $From #LineNo $hdrs
ChopString $From 1 5
Trim $From
|