Field check in OOO agent - then exit

Hi,

I got a spam filter implented in Notes which will work with SpamAssassin x-headers. The filter adss a field in the mail if it has been marked as spam based on the user’s level - hope you can follow me…

the field is doc.markedAsSPAM = “yes”

when the field is set to yes - as above - should the OOO agent not run on this mail. I have looked at the OOO agent but am not sure how I can do it. Something similar to…

If Me.markedAsSPAM == “yes” Then

Exit Function

End If

Can anyone help here??

Thanks,

Kjeld