After new mail arrives agent - runs but no output based on trigger

I have an agent that runs after new mail arrives. If I tell it to run from the console using "tell amgr run “database name” ‘agent name’ it runs and give output (print statements to the log and sends email). If I leave it alone to be triggered by new mail arriving in the mail-in database, it does run, but I don’t get any output. The first Print statement is the very first line after the Dim statements and it doesn’t get to the log. So I am not having trouble getting it to run - the console shows it runs, but it doesn’t seem to do anything unless I call it using tell amgr run.

Why do you think the same code won’t run the same way based on the trigger (manual call to amgr to run or amgr being run from the arrival of new mail)?

Subject: After new mail arrives agent - runs but no output based on trigger

Found it!

AMgr_DisableMailLookup=1 was needed.

Sorry to bother you all, hope this helps someone else.

Subject: RE: After new mail arrives agent - runs but no output based on trigger

Hi Adrienne, Where can u set this?

I tried setting it in the agent itself but I didn’t work, I have the same problem.

Thanks

Jenny