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

Unanswered Question
Jan 5th, 2010
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
mychrislo Tue, 01/05/2010 - 21:25
User Badges:

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

Actions

This Discussion