Notes Agent... What is it performing?

We have a Domino server providong service for about 250 users. Its a Version 6.5.3 running in a 2003 server. We are having periodic problems because it hangs every now and then and it needs to be re-booted. We have been able to identify the problem but I need some advised. The problem is caused by and Agent that was inserted to the Mail box template by a previous Notes Administrator, I know I can forcibly update the template with the orifinal file and get rid of the agent (which is schedule to run every day a 1AM on every mailbox) but first I want to identify it’s pourpuse. I can tell by the commands that it’s looking for items on the “Tasks” seccion of each database and then performing a task on each one of them, but I can’t figure out exactly what is performing on them and why. I’m pasiting the agent in hopes that you guys can look at it and tell me what it’s doing and if I really need to perhaps implement this on a more efficient maner.

Any help would be appreciated.

PS: As you can imagine I’m not a Developer.

Sub Initialize

Dim session As New NotesSession

Dim db As notesdatabase

Dim viewTodo As NotesView

Dim note As NotesDocument

Dim dtToday As NotesDateTime

Dim viewEntries As NotesViewEntryCollection

Dim viewEntry As NotesViewEntry

Dim vTodo As Variant



' Initialize variables

Set db = session.currentdatabase

Set viewTodo = db.GetView("Tasks")



If (viewTodo Is Nothing) Then Exit Sub



' Enumerate the todo entries

Set viewEntries = viewTodo.AllEntries()



Set viewEntry = viewEntries.GetFirstEntry()



While Not(viewEntry Is Nothing)

	If (viewEntry.IsDocument()) Then

		Set note = viewEntry.Document

		

		If (CanProcessNote(note)) Then

			If (NOTEUserIsCreator(note)) Then

				Set vTodo = New NotesCSEventOwnerDocument(2)

			Else

				Set vTodo = New NotesCSEventParticipantDocument(2)

			End If

			' See if this is a repeating entry

			If (note.HasItem("OrgRepeat")) Then Call InitTodoObject(vTodo, note)

			

			Call vTodo.Init(note)

			Call vTodo.SetDueState()

			Call vTodo.SetCalendarDateTime()

			If Not(note.GetItemValue("DueState")(0)=10) And Not(note.GetItemValue("DueState")(0)=9) Then

				Call vTodo.SetViewIcon()

			End If

			

			Call note.replaceitemvalue("tmpMod", "1")

			

			Call vTodo.MarkTempItems()

			

			If (note.HasItem("OrgRepeat")) Then

				vTodo.RepeatModify = REPEAT_CURRENT

				Call vTodo.CreateRepeatExceptions(REPEAT_CURRENT)					

			End If

			Call note.save(True, True, True)

		End If

	End If

	Set viewEntry = viewEntries.GetNextEntry(viewEntry)

Wend

End Sub

Subject: Notes Agent… What is it performing???

By “mail box” template, are you referring to the mail file template? This code is straight from the standard mail template, Agent Update Tasks|Update Tasks. I can’t check back with 6.5 now, so it could have been introduced in 7, but I wouldn’t bet my money on that.

Anyway, it’s not custom code, but Lotus code, making use of their special classes like e.g. NotesCSEventOwnerDocument (which are not deployed as source code).

Subject: RE: Notes Agent… What is it performing???

All right, may be I got it wrong then, but none the less this Agent is causing Domino to freeze every now and then at 1am. The Agent is called “Update Tasks|Update Tasks” and it is part of the ?mail file" template. Although I don’t think it has it’s origins on Ver 7 since we are running still ver 6.5.3, byt it may have been the case that the previos admin could have grab the template from the 7 version. Don’t know.

In any case if any one has any usefull info on this task I would appreciate the input.

Carlos

Subject: RE: Notes Agent… What is it performing???

After having a second look at it, I’m pretty sure that this agent has been there since Notes 6. It is enabled or disabled through user’s mail preferences:

Tools → Preferences… → Calendar & To Do → To Do → Allow Notes to update To Do status and dates for incomplete entries

If this box is not checked, any incomplete To Do will be displayed in the calendar view only up to its due date. If you just wait long enough, it will slowly fall out of sight, even if you never marked it as complete. If the box is checked, the nightly agent will modify incomplete To Dos to show up on the current date, until you mark them as finished.

Unfortunately I’ve never heard of any problems with this agent. If you are 100% sure that the agent is the cause of the server freezing and the template has not been tampered with, I have no more suggestions for you.

Subject: RE: Notes Agent… What is it performing???

Thanks for the tip! What is curiuos about it is that setting you mentio is currently uncheck on my settings. I try to check it and the uncheck it but no changes occure on the scheduling of this agent. I wonder is it was forcibly schedule by midifying the original template. But at least now I know exactly what it’'s doing.

Thanks a lot.

Carlos