match Content-Type: multipart/alternative;

Unanswered Question
Feb 2nd, 2009
User Badges:


we´re doing a 30 Day trial and we´re trying to migrate functions out of our Surfcontrol EF to 2 Ironport C-150.

[Sender is] and
["Content-Type: multipart/alternative;" is not in Header] and
["aw:, re:, fwd:, wg:" is not in Subject] and
["7999979" is not in Body] and
[Message < 50kBytes] then add txtfooter

[Sender is] and
["Content-Type: multipart/alternative;" is in Header] and
["aw:, re:, fwd:, wg:" is not in Subject] and
["7999979" is not in Body] and
[Message < 50kBytes] then add htmlfooter

- how can we do that?

Current situation:
add_txt_footer: if (mail-from == "$") AND (header("Content-Type:") != "multipart/alternative;") AND (body-size < 50000) { add-footer("txtfooter"); }
allways matches, so RTF and HTML Mails dont get the html footer

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<font face="Trebuchet MS"><strong>MASTERS OF DIRT:</strong>
21. + 22. Februar 2009 / Wiener Stadthalle
INFO: <a href=""></a> 01 / 79 999 79 </font>

any suggestion welcome!


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Douglas Hardison Tue, 02/03/2009 - 16:28
User Badges:
  • Cisco Employee,

Hi Klemens,

I made some slight modifications to your posted filter, and tried out my versions on an IronPort, which good results.

There are other options you will probably want to add, such as including the name of the outgoing listener to keep messages from being "double-footered".
This is covered in a Knowledge Base article already:

I created the following as message filters from the CLI.

if(mail-from == "$") AND (header("Content-Type") != "multipart/alternative") AND (body-size < 50000)

if(mail-from == "$") AND (header("Content-Type") == "multipart/alternative") AND (body-size < 50000)

Hope that helps.


Klemens Untner_... Sun, 02/08/2009 - 09:21
User Badges:

Hello whardison!

we replaced the outgoing Filters with a CLI Filter:

if ((mail-from == "$") and (not(body-dictionary-match("words", 1))) and (body-size < 50000))
if (header("Content-Type") != "multipart/alternative;")
{ add-footer("txtfooter"); }
{ add-footer("htmlfooter"); }

the words dictionary contains the following items:
aw:, fwd:, wg:, re:, Converted from text\0x2frtf format

the last entry is needed for some special Outlook rtf circumstances, where the Exchange 2003 is converting the RTF to text due it is mutlipart/alternative. - No Footer

For a new Problem "Group Matching LDAP" i created a new topic 1199


This Discussion