"when new mail arrives" agent and new db copy

Hello. if anybody has a minute…

  1. Mail-in database created from Domino mail template.

  2. Agent scheduled for “when new mail arrives” added to the database. The agent sends notifications for each newly arrived email.

  3. Db copy made of mail-in database somehow triggers “when new mail arrives” agent…it appears to treat all existing records as newly arrived mail…so notifications are sent for every existing memo from the db copy.

I would think the records are just new and unread documents…even in the new db copy…at this point. Is there a reason why the agent saw every record in the new copy as newly arrived mail?

Thank you very much for your consideration and time.

Subject: document selection

what is the document selection you run the agent on?the trigger ‘after new mail arrived’ says only when it gets started.

I persume you have ‘Unprocessed documents’ selected: If you create a copy with all documents the new copies had never been processed.

So you have to add eighter a flag to the forwarded documents or add a condition before processing the mail like checking the delivery date to be within the last xx minutes

btw for the mail notification it is much easier to use mail-rules:

set the condition to ‘All documents’ and the action to ‘send copy to’ and ‘headers only’

→ rules are performed much faster and only on newly received documents.

Subject: Re: document selection

Hello. Thank you for the advice on the mail rules. i might incorporate that, this is an old app I just inherited.

I’m still kinda bugged as to why thi agent was triggered though…when you select “after new mail has arrived” for the agent trigger, the document selection, or target, automatically defaults to “Newly received mail documents”. There is no option to select “Unprocessed Documents”. I think maybe it’s something internal to how the mail template treats unread documents with all the inbound headers and stuff…