Easy way to determine which mail files have rules set up?

Hi everyone,

Over the past two weeks, our main mail server has had three hard crashes. When IBM looked at the log files, the three crash logs showed fatal router errors and mentioned particular mail files.

When I checked the 3 mail files, 2 of them had mail rules set up. Those 2 had the rule “when sender is in block list, send to junk mail”. I’ve since disabled those rules.

So, is there an quick way to scan all mail files to see which ones have mail rules set up and, if possible, what the mail rules are blocking/doing? I can think of a long way by either going to their desk or opening their mail file from the admin client and looking at the Rules section.

Subject: Easy way to determine which mail files have rules set up?

YOu can do an agent to scan every mail files to get those mail rules (form MailRule , folder (rules)) depending of what your looking for (Redirection, blocking)

JYR

Subject: RE: Easy way to determine which mail files have rules set up?

I have no development experience, so I’d need to pass this note on to our Domino developer.

Would this be an easy agent for him to create? What would it look like? Can you scan for all mail rules in the mail files rather than picking a particular category (e.g., redirection, blocking)?

Subject: RE: Easy way to determine which mail files have rules set up?

This loops through the Mail folder and will count the # of mail rules in each database and create a doc with the database title and the number of rules.

Dim session As New Notessession

Dim db As NotesDatabase

Dim db2 As NotesDatabase

Dim directory As NotesDbDirectory

Set db2 = session.CurrentDatabase

Set directory = New NotesDbDirectory( "" )

Set db = directory.GetFirstDatabase( DATABASE )

Dim view As NotesView

Dim vc As NotesViewEntryCollection

Dim doc As NotesDocument

Dim title As String

Dim viewcount As String

Dim test As Integer

Dim dbtest As String



While Not(db Is Nothing)

	test = 0

	dbtest = Left(db.FilePath,5)

	If dbtest <> "mail/" Goto NextDatabase

	

	Call db.Open ("","")

	Forall v In db.Views

		If v.name = ("(Rules)") Then

			test = 1

			Set view = v

		End If

	End Forall

	

	If test = 0 Goto NextDatabase

	

	Set vc = view.AllEntries

	Set doc = New NotesDocument (db2)

	viewcount = vc.Count

	title = db.Title

	doc.Form = "MailRules"

	doc.dbname = title

	doc.rulecount = viewcount

	Call doc.Save(True,False)

NextDatabase:

	Set db = directory.GetNextDatabase

	

Wend

Subject: RE: Easy way to determine which mail files have rules set up?

It will be easy for your developer.

YOu can scan ALL mail rules but your gonna get junk like “copy to folder…”

I think, you should scan for particular items, I did something similar. I have a local db that scans redirection outside the mail domain, i’ll try to find it

JYR