cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1049
Views
0
Helpful
1
Replies

How can I bounce() a message with friendly text?

aliebrahim
Level 1
Level 1

I have set up the following incoming content filter to bounce messages with executable content:

executableFileBounce: if (attachment-filetype == "Executable")                      {                           bounce();                       }

It works fine, however, it gives the sender the following bounce text which is not very descriptive:

5.x.0 - Message bounced by administrator

Can anyone shed some light as to how to change this message to something like "Message bounced because it has an executable (EXE) or other prohibited attachment"?

1 Reply 1

mychrislo
Level 1
Level 1

Personally I did not try. but i suspect this should work.

executableFileBounce: if (attachment-filetype == "Executable")                      {  

strip-header("Subject");
insert-header("Subject", "$Subject \\{Bounced: due to executable\\}");

bounce();

}

If not, then you may need to use custom DSN notification in the "Text Resources".

Cheers

Chris

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: