Version 7.1 incorporated a new header in the messages caught by Imail's
rules. It is the X-IMail-Rule header which will tell you which rule and the
test that it caught.
Eric S
----- Original Message -----
From: "Andrew SNOWDEN" <[EMAIL PROTECTED]>
To: "Imail" <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 3:27 AM
Subject: [IMail Forum] Imail Rules - finding which one caught the message
> Another way to track down which is rule is being used is to copy & oast
the email into MS Word, and use a word macro to highlight any phrases that
break the rules. This can be a little anoying to set up in the first place
(and maintain if you make regular changes to your rules), but once set up
can be very useful.
>
> I use this method very effectively, but then, I don't have so many rules.
>
> Example macro...
>
> Sub Imail()
> Dim x As Integer
> Dim list1, list2, list3, list4, list5, list6, list7, list8, list9, list10,
list11
>
> list1 = Array("word1", "word2", "word3", "word4", "word5", "word6",
"word7", "word8", "word9", "word10", "word11", "word12", "word13", "word14",
"word15", "word16", "word17", "word18", "word19", "word20")
>
> For x = 0 To 19
> Selection.Find.ClearFormatting
> Selection.Find.Replacement.ClearFormatting
> With Selection.Find.Replacement.Font
> .Bold = True
> .Color = wdColorRed
> End With
> With Selection.Find
> .Text = list1(x)
> .Replacement.Text = ""
> .Forward = True
> .Wrap = wdFindContinue
> .Format = True
> .MatchCase = False
> .MatchWholeWord = False
> .MatchWildcards = False
> .MatchSoundsLike = False
> .MatchAllWordForms = False
> End With
> Selection.Find.Execute Replace:=wdReplaceAll
> Next
>
> End Sub
>
> Andrew Snowden
> ICT Co-ordinator
> Cheadle Hulme School, UK
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
> Please visit the Knowledge Base for answers to frequently asked
> questions: http://www.ipswitch.com/support/IMail/
>
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Please visit the Knowledge Base for answers to frequently asked
questions: http://www.ipswitch.com/support/IMail/