02-19-2009 07:43 PM
Hello, I am trying to write a message filter that will encrypt and remove our Encryption Subject keyword and leave the topical subject in place. So far, i have had no luck removing and encrytping messages. Our subject line keyword is TestIEA2009
Here is the message filter that was written:
encrypt-and-edit-subject:
if ((sendergroup == "RELAYLIST") AND (subject == '(?i)\\[TestIEA2009\\]'))
{
edit-header-text('subject', '(?i)\\[TestIEA2009\\]', '');
insert-header('X-Envelope-Encrypt', 'Yes');
}
}
I recieve the encrypted message but it still has the keywork in the subject.
Any Help is appreciated!
02-20-2009 07:46 AM
I have exactly the same challenge ! Any advice would be highly appreciated.
02-20-2009 08:46 AM
This filter of your's works perfectly fine, except the end flower bracket.
Working filter
encrypt-and-edit-subject:
if ((sendergroup == "RELAYLIST") AND (subject == '(?i)\\[TestIEA2009\\]'))
{
edit-header-text('subject', '(?i)\\[TestIEA2009\\]', '');
insert-header('X-Envelope-Encrypt', 'Yes');
}
-Kishore
02-24-2009 04:32 PM
Thanks for the help Kishore. I have corrected the Message Filter but I still have the same issue.
When a message is composed we are using the subject 'TestIEA2009 Then the Email Subject Here' (minus the quotes)
The encryption is still applied but the message filter doesn't strip the TestIEA2009 from the recipients email message.
What am I missing?
03-05-2009 05:32 PM
OK. Finally got it working. Here is the resolution.
The message filter is correct. Place this on the C-Series.
encrypt-and-edit-subject:
if ((sendergroup == "RELAY_LIST") AND (subject == '(?i)TestIEA2009'))
{
edit-header-text('subject', '(?i)TestIEA2009', '');
insert-header('X-Envelope-Encrypt', 'Yes');
}
Then create a new Outgoing Content Filter as follows:
Test_IEA: if (header("X-Envelope-Encrypt"))
{ encrypt ("Presidio_IEA_High", "$Subject"); }
Thanks,
Jason
07-28-2009 08:53 PM
I can't seem to get the last peice to work where I'm trying to insert the header. I have the code just like is posted but it still doesn't work? Any thoughts on what I might have configured wrong?
07-30-2009 05:14 PM
When you try to implement the following filters,
encrypt-and-edit-subject:
if ((sendergroup == "RELAY_LIST") AND (subject == '(?i)TestIEA2009'))
{
edit-header-text('subject', '(?i)TestIEA2009', '');
insert-header('X-Envelope-Encrypt', 'Yes');
}
Then create a new Outgoing Content Filter as follows:
Test_IEA: if (header("X-Envelope-Encrypt"))
{ encrypt ("Presidio_IEA_High", "$Subject"); }
I can't seem to get the last peice to work where I'm trying to insert the header. I have the code just like is posted but it still doesn't work? Any thoughts on what I might have configured wrong?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide