Move email into a designated folder

Looking for some help, We are running Lotus Notes 8.5, I am trying to use a “simple agent” to “run after new mail arrives” and “move” the specific email by a specific “send to” address to a specific folder. The native way of creating the simple agent only works properly if I run it manually. When it is automatic, The “move” actually gets “copied” to the specific folder and still appears in the inbox as well as in the folder. So I figured that I would attempt a lotus script instead, I found a few resources to use, but just cant get it to work; Can anyone suggest sample script that can get me started?

Here is what I am trying to accomplish;

looking at the email address sent to field (SendTo, AltSendTo and Addressees).Yes sent to feild, using an internet address attached to a multipurpose email group that has 3 recipients. When a email is sent to this email group address, I would like to have that email be “moved” into a folder automatically on the client. This email must not stay in the inbox.

Please help!

Thanks

Subject: Much easier to just use a mail rule

Hi, Mark. Instead of creating an agent to move the email, why not use a mail rule? It is much easier and less work. I am actually using a rule right now in my mail file to move mail with a certain subject to a specific folder and it works great.

Subject: remove from folder ‘inbox’ or ‘one agent per database’

I agree with Dave, that I would use a rule. What you describe seems like it would fit in a rule.

But assuming that for some reason you cannot use a rule, from what I see of your steps you ahve left out “remove from folder inbox”. Remember that in Notes, a message can be in multiple folders, so adding it to the desired folder does not necessarily remove it from the inbox.

Also, be sure you do not have multiple agents running “before new mail arrives”. Designer Help says: Note that this option is limited to one agent per database.