Remap Internal Rules


ListNanny provides the capability to allow the developer to recategorize bounces, and move them to different categories.

Each ruleset decision tree is represented by a key (guid). With this key, the developer can tell ListNanny to move a ruleset to a different NDR type classification. Here is an example:

[C#]

string path = "c:\\temp\\sample.eml"; NDR n = NDR.ParseFile( path ); Console.WriteLine( n.Type ); //if we don't agree with the type, we can move the pattern to a different classification string key = n.PatternKey; //change to a SoftBounce NDR.CategorizeBounce( key, NDRType.SoftBounce ); //reparse n = NDR.ParseFile( path ); //verify the type changed Console.WriteLine( n.Type );

[VB.NET]

Dim path As String = "c:\temp\sample.eml" Dim n As NDR = NDR.ParseFile(path) Console.WriteLine(n.Type) 'if we don't agree with the type, we can move the pattern to a different classification Dim key As String = n.PatternKey 'change to a SoftBounce NDR.CategorizeBounce(key, NDRType.SoftBounce) 'reparse n = NDR.ParseFile(path) 'verify the type changed Console.WriteLine(n.Type)